:root {
  --kb-ink: #18344b;
  --kb-muted: #526578;
  --kb-teal: #087668;
  --kb-teal-dark: #075c53;
  --kb-line: #dce5eb;
  --kb-paper: #f5f8fa;
  --kb-radius: 1rem;
  --bs-body-color: var(--kb-ink);
  --bs-body-font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --bs-link-color: var(--kb-teal);
  --bs-link-hover-color: var(--kb-teal-dark);
}
html {
  scroll-padding-top: 6rem;
}
body {
  font-size: 1rem;
  line-height: 1.65;
  background: #fff;
  overflow-wrap: anywhere;
}
a {
  text-underline-offset: 0.22em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0c8175 !important;
  outline-offset: 4px;
  box-shadow: none !important;
}
h1,
h2,
h3 {
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.kb-container {
  max-width: 1320px;
  padding-left: 2rem;
  padding-right: 2rem;
}
.skip-link {
  position: fixed;
  top: -8rem;
  left: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 1rem;
  border: 2px solid var(--kb-teal);
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--kb-line);
}
.navbar {
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--kb-ink);
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #173d56;
  color: #b8ede2;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.7rem;
  font-size: 1.4rem;
}
.brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.09em;
}
.brand-dot {
  color: var(--kb-teal);
}
.brand-divider {
  height: 1.5rem;
  width: 1px;
  background: #d4dfe6;
  margin: 0 0.5rem;
}
.brand-label {
  font-size: 0.95rem;
  font-weight: 550;
}
.navbar-nav {
  gap: 0.7rem;
}
.navbar .nav-link {
  padding: 0.6rem 0.75rem !important;
  color: #374f63;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 0.45rem;
}
.navbar .nav-link:hover {
  background: #eff7f5;
  color: var(--kb-teal-dark);
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-toggler {
  font-size: 1.5rem;
  border-color: var(--kb-line);
  color: var(--kb-ink);
}
.kb-hero {
  background:
    radial-gradient(ellipse at 88% 18%, #245d65 0, transparent 46%),
    linear-gradient(120deg, #102c43, #163c52);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  padding-top: 4.3rem;
  padding-bottom: 4.4rem;
  text-align: center;
  max-width: 950px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
  color: var(--kb-teal);
}
.kb-hero .eyebrow {
  color: #a9e0d7;
}
.hero-inner h1 {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-bottom: 1.4rem;
  font-weight: 740;
}
.hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #d9e7ed;
  margin: 0 0 2rem;
}
.hero-orbit {
  width: 600px;
  height: 600px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  position: absolute;
  right: -280px;
  top: -120px;
  box-shadow:
    0 0 0 65px #ffffff03,
    0 0 0 130px #ffffff03;
}
.kb-search {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.65rem 0.6rem 1.3rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #cedce4;
  box-shadow: 0 7px 25px #0823330d;
  width: 100%;
  max-width: 750px;
  margin: auto;
}
.kb-search > .bi {
  font-size: 1.3rem;
  color: #637989;
}
.kb-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0.55rem 0.2rem;
  font: inherit;
  font-size: 1rem;
  color: var(--kb-ink);
  outline-offset: 1px;
}
.kb-search input::placeholder {
  color: #647789;
  opacity: 1;
}
.btn-kb {
  background: var(--kb-teal);
  border: 1px solid var(--kb-teal);
  color: #fff;
  font-weight: 650;
  border-radius: 0.5rem;
  padding: 0.65rem 1.3rem;
  white-space: nowrap;
}
.btn-kb:hover,
.btn-kb:active {
  background: var(--kb-teal-dark) !important;
  border-color: var(--kb-teal-dark) !important;
  color: white !important;
}
.btn-kb:disabled {
  background: #657b79;
  color: white;
  border-color: #657b79;
}
.popular-searches {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: #bed2dc;
}
.popular-searches a {
  color: #fff;
  text-decoration-color: #7cabb8;
}
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}
.start-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  text-decoration: none;
  color: var(--kb-ink);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.start-card:hover {
  border-color: #6faaa2;
  box-shadow: 0 7px 25px #14394a08;
}
.start-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  background: #edf7f4;
  color: #086e62;
  border-radius: 0.85rem;
  font-size: 1.7rem;
}
.start-icon.violet {
  color: #635288;
  background: #f2eef8;
}
.mini-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--kb-muted);
}
.start-card h2 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.3rem;
}
.start-card p {
  color: var(--kb-muted);
  font-size: 0.9rem;
  margin: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.8rem;
}
.section-heading h2 {
  font-size: 2.1rem;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 0.55rem;
}
.section-heading > p {
  color: var(--kb-muted);
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  padding: 1.6rem 1.65rem;
  background: #fff;
  box-shadow: 0 3px 5px #16384903;
}
.topic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.topic-icon {
  display: inline-grid;
  place-items: center;
  background: #eaf5f2;
  color: #087366;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.75rem;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.article-count {
  font-size: 0.8rem;
  color: var(--kb-muted);
  font-weight: 550;
}
.topic-card h3 {
  font-size: 1.17rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.025em;
}
.topic-card h3 a {
  color: var(--kb-ink);
  text-decoration: none;
}
.topic-card h3 a:hover {
  text-decoration: underline;
}
.topic-card > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--kb-muted);
  min-height: 4.3rem;
  margin-bottom: 1rem;
}
.topic-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.topic-card li + li {
  border-top: 1px solid #eef2f5;
}
.topic-card li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #344f63;
  text-decoration: none;
}
.topic-card li a:hover {
  color: var(--kb-teal);
  text-decoration: underline;
}
.topic-browse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.05rem;
  margin-top: 0.7rem;
  border-top: 1px solid var(--kb-line);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}
.topic-browse .bi {
  font-size: 1.05rem;
}
.help-banner {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  border-radius: var(--kb-radius);
  background: #f0f6f8;
  border: 1px solid #e1ebef;
  padding: 2rem 2.3rem;
  margin: 3.7rem 0 4rem;
}
.help-banner > span {
  font-size: 2.5rem;
  color: #315b70;
}
.help-banner h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.help-banner p {
  margin: 0;
  max-width: 850px;
  font-size: 0.95rem;
  color: var(--kb-muted);
}
.site-footer {
  border-top: 1px solid var(--kb-line);
  background: #fafcfd;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem 3rem;
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
}
.footer-brand {
  text-decoration: none;
  color: var(--kb-ink);
  font-size: 1.7rem;
  letter-spacing: -0.07em;
  font-weight: 800;
}
.footer-brand span {
  color: var(--kb-teal);
}
.footer-inner p {
  font-size: 0.85rem;
  color: var(--kb-muted);
  margin: 0.5rem 0 0;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 1.6rem;
  padding-top: 0.7rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: #344f63;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-note {
  grid-column: 1/-1;
  font-size: 0.75rem !important;
  padding-top: 0.7rem;
}
.inner-page {
  padding-top: 1.6rem;
  padding-bottom: 4rem;
  min-height: 70vh;
}
.kb-breadcrumb {
  margin-bottom: 2.4rem;
}
.breadcrumb {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.6;
  --bs-breadcrumb-divider: "›";
}
.breadcrumb-item a {
  color: #516b7d;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #526578;
}
.collection-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 3.5rem;
}
.topic-rail h2 {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #64798b;
  margin: 0 0 1rem 1rem;
}
.topic-rail nav {
  display: grid;
  gap: 0.35rem;
}
.topic-rail nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  color: #476175;
  text-decoration: none;
  border-radius: 0.55rem;
  font-size: 0.87rem;
  line-height: 1.45;
}
.topic-rail nav a .bi {
  font-size: 1.1rem;
}
.topic-rail nav a[aria-current],
.topic-rail nav a:hover {
  background: #edf7f4;
  color: #075f54;
}
.topic-rail nav a[aria-current] {
  font-weight: 650;
}
.rail-help {
  margin: 2rem 0.8rem 0;
  padding: 1.2rem;
  border: 1px solid var(--kb-line);
  border-radius: 0.8rem;
  background: #fafcfd;
}
.rail-help > .bi {
  font-size: 1.35rem;
  color: var(--kb-teal);
}
.rail-help h3 {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.6rem 0;
}
.rail-help p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--kb-muted);
  margin: 0;
}
.collection-heading {
  border-bottom: 1px solid var(--kb-line);
  padding-bottom: 1.6rem;
  margin-bottom: 0.4rem;
}
.collection-heading .topic-icon {
  margin-bottom: 1.2rem;
}
.collection-heading .eyebrow {
  margin-bottom: 0.65rem;
}
.collection-heading h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}
.collection-heading .lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--kb-muted);
  max-width: 680px;
  margin-bottom: 1rem;
}
.collection-count {
  font-size: 0.8rem;
  color: var(--kb-muted);
  margin: 0;
}
.guide-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--kb-line);
}
.guide-icon {
  font-size: 1.3rem;
  color: #6d8393;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.guide-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--kb-muted);
  margin-bottom: 0.65rem;
}
.role-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 0.3rem;
  background: #f0f5f7;
  padding: 0.12rem 0.45rem;
  font-size: 0.73rem;
  line-height: 1.5;
  color: #496477;
  letter-spacing: 0.005em;
}
.guide-card h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.guide-card h2 a {
  color: var(--kb-ink);
  text-decoration: none;
}
.guide-card h2 a:hover {
  color: var(--kb-teal);
  text-decoration: underline;
}
.guide-card p {
  font-size: 0.9rem;
  color: var(--kb-muted);
  margin: 0;
  max-width: 700px;
}
.kb-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1.6rem 0 2.5rem;
  font-size: 0.82rem;
  color: var(--kb-muted);
}
.kb-pagination > div {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-page,
.page-number {
  border: 1px solid var(--kb-line);
  border-radius: 0.45rem;
  color: var(--kb-ink);
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  text-decoration: none;
  background: white;
}
.page-number[aria-current] {
  background: var(--kb-teal);
  color: white;
  border-color: var(--kb-teal);
}
.btn-page:hover,
.page-number:hover {
  border-color: var(--kb-teal);
}
.collection-search {
  background: #f3f7f9;
  padding: 1.6rem;
  border-radius: var(--kb-radius);
}
.collection-search h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.kb-search-compact {
  box-shadow: none;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 220px;
  gap: 5rem;
  justify-content: center;
}
.article-eyebrow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--kb-teal);
  font-size: 0.83rem;
  font-weight: 650;
}
.article-eyebrow a {
  text-decoration: none;
}
.kb-article h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  letter-spacing: -0.045em;
  margin: 0 0 1.2rem;
  line-height: 1.12;
}
.article-lead {
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--kb-muted);
  margin-bottom: 1.6rem;
  max-width: 760px;
}
.article-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--kb-line);
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
  color: var(--kb-muted);
  font-size: 0.78rem;
}
.article-meta > .role-tag {
  font-size: 0.75rem;
}
.text-button {
  border: 0;
  background: none;
  padding: 0.2rem;
  color: #3c6074;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
}
.text-button:hover {
  text-decoration-color: currentColor;
}
.article-meta .text-button:first-of-type {
  margin-left: auto;
}
.article-body {
  font-size: 1rem;
  line-height: 1.85;
}
.article-body h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.025em;
}
.article-body section:first-of-type h2 {
  margin-top: 1.8rem;
}
.article-body p {
  margin-bottom: 1.1rem;
}
.article-body strong {
  font-weight: 650;
  color: #153c55;
}
.task-steps {
  padding-left: 1.55rem;
  counter-reset: steps;
}
.task-steps li {
  padding-left: 0.6rem;
  margin-bottom: 1.1rem;
}
.task-steps li::marker {
  font-weight: 750;
  color: var(--kb-teal);
}
.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #edf6f4;
  border-left: 3px solid #258476;
  border-radius: 0 0.6rem 0.6rem 0;
  padding: 1.1rem 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.8;
}
.guide-note > .bi {
  color: #087466;
  margin-top: 0.15rem;
  font-size: 1.1rem;
}
.guide-note p {
  margin: 0;
}
.article-toc {
  padding-top: 0.5rem;
  min-width: 0;
}
.article-toc > nav {
  position: sticky;
  top: 2rem;
}
.article-toc h2 {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.article-toc nav a {
  display: block;
  border-left: 2px solid var(--kb-line);
  padding: 0.5rem 0 0.5rem 1rem;
  text-decoration: none;
  color: var(--kb-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.article-toc nav a:hover,
.article-toc nav a.is-active {
  color: var(--kb-teal-dark);
  border-color: var(--kb-teal);
  background: #f4faf8;
}
.toc-category {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f5f8fa;
  border: 1px solid var(--kb-line);
  border-radius: 0.7rem;
}
.toc-category p {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--kb-muted);
}
.toc-category h2 {
  font-size: 1rem;
  line-height: 1.5;
}
.toc-category a {
  font-size: 0.82rem;
  font-weight: 650;
}
.guide-figure {
  margin: 1.6rem 0 2.2rem;
}
.guide-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d6e1e8;
  border-radius: 0.8rem;
  box-shadow: 0 5px 25px #12334b09;
}
.guide-figure a {
  cursor: zoom-in;
}
.guide-figure figcaption {
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--kb-muted);
  padding: 0.8rem 0.2rem;
}
.guide-figure figcaption span {
  display: block;
}
.related-guides {
  border-top: 1px solid var(--kb-line);
  padding-top: 2.1rem;
  margin-top: 2.5rem;
}
.related-guides .eyebrow {
  margin-bottom: 0.5rem;
}
.related-guides h2 {
  font-size: 1.35rem;
}
.related-guides > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}
.related-guides > div > a {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #f7fafb;
  border: 1px solid var(--kb-line);
  padding: 1.1rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: #23475d;
}
.related-guides > div > a:hover {
  border-color: #80b2a9;
}
.related-guides .bi {
  color: var(--kb-teal);
}
.discussion-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--kb-line);
}
.discussion-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.discussion-heading .eyebrow {
  margin: 0 0 0.4rem;
}
.discussion-heading h2 {
  font-size: 1.55rem;
  margin: 0;
}
.discussion-section > p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--kb-muted);
}
.discussion-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(120deg, #f0f8f5, #f5f8fb);
  border: 1px solid #dbe9e4;
  border-radius: 0.9rem;
  margin: 1.5rem 0;
}
.discussion-launch strong {
  font-size: 1rem;
}
.discussion-launch p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--kb-muted);
  margin: 0.3rem 0 0;
}
.discussion-status {
  font-size: 0.85rem;
}
.giscus,
.giscus-frame {
  width: 100%;
  border: 0;
}
.giscus-frame {
  min-height: 15rem;
}
.command-block {
  background: #102d43;
  border: 1px solid #24475e;
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 1.5rem 0;
}
.command-block > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #193d55;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: #d4e7ee;
}
.command-block .text-button {
  color: #d4e7ee;
}
.command-block pre {
  color: #eef9fb;
  line-height: 1.8;
  font-size: 0.85rem;
  tab-size: 4;
  padding: 1.2rem;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-flag {
  color: #a9e7c7;
}
.search-heading {
  max-width: 850px;
  margin: 0 auto 2.5rem;
}
.search-heading h1 {
  font-size: 2.6rem;
  margin-bottom: 1.8rem;
}
.search-heading .kb-search {
  margin: 0;
  max-width: none;
}
.search-filters {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--kb-muted);
}
.search-filters select {
  max-width: 220px;
  font-size: 0.9rem;
  color: var(--kb-ink);
  border-color: var(--kb-line);
}
.search-page > #search-status,
.search-results,
#search-pagination {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}
.search-page > #search-status {
  font-size: 0.88rem;
  color: var(--kb-muted);
}
.search-results .guide-card {
  padding: 1.5rem 0;
}
.empty-results {
  background: #f5f8fa;
  border: 1px solid var(--kb-line);
  padding: 2rem;
  border-radius: 0.8rem;
}
.empty-results h2 {
  font-size: 1.3rem;
}
.empty-results p {
  font-size: 0.95rem;
  margin: 0;
}
.modal-content {
  border: 0;
  border-radius: 0.8rem;
  overflow: hidden;
}
.modal-header {
  border-color: var(--kb-line);
  padding: 1rem 1.5rem;
}
.modal-body {
  background: #f5f8fa;
  padding: 1rem;
}
.modal-body img {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;
}
.toast {
  color: var(--kb-ink);
  border: 1px solid var(--kb-line);
  background: white;
}
.bi {
  line-height: 1;
}
@media (min-width: 1600px) {
  .kb-container {
    max-width: 1400px;
  }
  .topics-grid {
    gap: 1.7rem;
  }
}
@media (max-width: 1100px) {
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-layout {
    gap: 2rem;
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .article-layout {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr) 190px;
  }
  .brand-label {
    font-size: 0.85rem;
  }
  .navbar-nav {
    gap: 0.1rem;
  }
  .footer-links {
    gap: 1rem;
  }
}
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem 0;
  }
  .navbar-nav {
    gap: 0.2rem;
  }
  .brand-divider {
    margin: 0 0.15rem;
  }
  .kb-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .article-toc {
    display: none;
  }
  .article-layout {
    display: block;
    max-width: 800px;
    margin: auto;
  }
  .collection-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .topic-rail {
    display: none;
  }
  .hero-inner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .section-heading > p {
    max-width: 240px;
  }
  .navbar .nav-link {
    padding: 0.8rem !important;
  }
  .start-card {
    padding: 1.4rem;
  }
  .start-card p {
    font-size: 0.85rem;
  }
}
@media (max-width: 640px) {
  .kb-container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .navbar {
    min-height: 76px;
  }
  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.15rem;
  }
  .brand-name {
    font-size: 1.6rem;
  }
  .brand-label {
    font-size: 0.78rem;
  }
  .brand {
    gap: 0.45rem;
  }
  .brand-divider {
    display: none;
  }
  .navbar-toggler {
    padding: 0.25rem 0.45rem;
  }
  .hero-inner {
    padding-top: 2.8rem;
    padding-bottom: 2.9rem;
  }
  .hero-inner h1 {
    font-size: 2.6rem;
  }
  .hero-lead {
    font-size: 1rem;
  }
  .eyebrow {
    font-size: 0.67rem;
  }
  .kb-search {
    gap: 0.5rem;
    padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  }
  .kb-search > .bi {
    font-size: 1rem;
  }
  .kb-search input {
    font-size: 0.9rem;
    padding: 0.55rem 0.1rem;
  }
  .kb-search .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  .popular-searches {
    font-size: 0.77rem;
    gap: 0.75rem;
  }
  .start-grid {
    grid-template-columns: 1fr;
    padding-top: 1.3rem;
    padding-bottom: 2.6rem;
    gap: 0.9rem;
  }
  .start-card {
    padding: 1.2rem;
    gap: 0.9rem;
  }
  .start-card h2 {
    font-size: 1.1rem;
  }
  .start-icon {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.4rem;
  }
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 1.4rem;
  }
  .section-heading h2 {
    font-size: 1.75rem;
  }
  .section-heading > p {
    max-width: none;
    font-size: 0.9rem;
    margin-top: 0.7rem;
  }
  .topic-card {
    padding: 1.4rem;
  }
  .topic-card > p {
    min-height: 0;
  }
  .topic-card-top {
    margin-bottom: 1rem;
  }
  .topic-card li a {
    font-size: 0.91rem;
    padding: 0.85rem 0;
  }
  .help-banner {
    padding: 1.4rem;
    gap: 1rem;
    align-items: flex-start;
    margin: 2.5rem 0;
  }
  .help-banner > span {
    font-size: 1.5rem;
  }
  .help-banner h2 {
    font-size: 1.13rem;
  }
  .help-banner p {
    font-size: 0.87rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-links {
    justify-content: flex-start;
    padding-top: 0;
    gap: 1rem;
  }
  .footer-note {
    grid-column: auto;
  }
  .inner-page {
    padding-top: 1.2rem;
    padding-bottom: 3rem;
  }
  .kb-breadcrumb {
    margin-bottom: 1.7rem;
  }
  .breadcrumb {
    font-size: 0.75rem;
  }
  .collection-heading h1 {
    font-size: 2rem;
  }
  .guide-card {
    gap: 0.7rem;
    padding: 1.35rem 0;
  }
  .guide-card h2 {
    font-size: 1.12rem;
  }
  .guide-icon {
    font-size: 1.1rem;
  }
  .guide-card p {
    font-size: 0.88rem;
  }
  .kb-pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .collection-search {
    padding: 1.1rem;
  }
  .kb-article h1 {
    font-size: 2.05rem;
  }
  .article-lead {
    font-size: 1rem;
  }
  .article-meta {
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 1.6rem;
  }
  .article-meta .text-button:first-of-type {
    margin-left: 0;
  }
  .article-body {
    font-size: 0.97rem;
    line-height: 1.85;
  }
  .article-body h2 {
    font-size: 1.3rem;
  }
  .task-steps {
    padding-left: 1.25rem;
  }
  .task-steps li {
    padding-left: 0.25rem;
  }
  .related-guides > div {
    grid-template-columns: 1fr;
  }
  .discussion-launch {
    display: block;
    padding: 1.2rem;
  }
  .discussion-launch button {
    margin-top: 1rem;
  }
  .discussion-heading h2 {
    font-size: 1.35rem;
  }
  .guide-note {
    padding: 0.9rem;
    gap: 0.65rem;
  }
  .search-heading h1 {
    font-size: 2rem;
  }
  .search-heading {
    margin-bottom: 1.6rem;
  }
  .search-filters {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
  .search-filters select {
    max-width: 100%;
  }
  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-body {
    padding: 0.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .article-toc,
  .kb-breadcrumb,
  .article-meta button,
  .related-guides,
  .discussion-section,
  .modal,
  .toast-container,
  .skip-link {
    display: none !important;
  }
  .kb-container {
    max-width: none;
    padding: 0;
  }
  .inner-page {
    padding: 0;
  }
  .article-layout {
    display: block;
  }
  .kb-article h1 {
    font-size: 24pt;
  }
  .article-body {
    font-size: 11pt;
  }
  .guide-figure img {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    box-shadow: none;
  }
  .guide-note {
    break-inside: avoid;
    background: white;
    border: 1px solid #bbb;
  }
  .task-steps li {
    break-inside: avoid;
  }
  .command-block {
    background: white !important;
  }
  .command-block pre {
    color: black;
  }
  .command-block > div {
    display: none;
  }
  .code-flag {
    color: black;
  }
}

@media (max-width: 420px) {
  .brand-label {
    display: none;
  }
  .kb-search {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .kb-search .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .kb-search input {
    width: 100%;
  }
  .collection-search {
    padding: 0.9rem;
  }
}

/* Keep navigation readable; only secondary metadata uses the smaller sizes. */
.mini-label,
.eyebrow,
.toc-category p,
.topic-rail h2,
.role-tag {
  font-size: 0.75rem;
}
.topic-browse,
.topic-rail nav a,
.article-toc nav a,
.footer-links a,
.search-filters {
  font-size: 0.9rem;
}
.breadcrumb {
  font-size: 0.875rem;
}
:root {
  --bs-link-color-rgb: 8, 118, 104;
  --bs-link-hover-color-rgb: 7, 92, 83;
}
@media (max-width: 640px) {
  .discussion-launch .btn {
    max-width: 100%;
    white-space: normal;
  }
}
