.kb-wide,
.kb-reading {
  max-width: 1152px;
  margin-inline: auto;
  padding: 0 clamp(21px, 5vw, 56px) clamp(54px, 8vw, 94px);
}
.kb-reading {
  max-width: 860px;
}
.kb-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  font-size: 0.87rem;
  color: var(--muted);
}
.kb-crumb a,
.kb-next a,
.kb-sources a,
.question-link {
  color: var(--action);
  text-underline-offset: 0.2em;
}
.kb-crumb a,
.question-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.kb-crumb a {
  text-decoration: none;
}
.kb-crumb a:hover,
.kb-group a:hover span {
  text-decoration: underline;
}
.kb-intro,
.kb-title {
  margin: 14px 0 23px;
}
.kb-intro h1,
.kb-title h1 {
  font:
    600 clamp(2.1rem, 5vw, 3.55rem) / 1.08 Roboto,
    Arial,
    sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 25ch;
  text-wrap: balance;
}
.kb-title h1 {
  font-size: clamp(1.95rem, 4.7vw, 2.85rem);
  max-width: 29ch;
}

.kb-intro > p {
  max-width: 54ch;
  margin-top: 14px;
  line-height: 1.55;
}
.kb-title p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
}
.kb-search {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 55px);
}
.kb-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.92rem;
}
.kb-search > div {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.kb-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8e99a8;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}
.kb-search input::placeholder {
  color: #596675;
  opacity: 1;
}
.kb-search button {
  min-height: 48px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: #182338;
  font-weight: 570;
}
.kb-search button:hover {
  background: #283955;
}
.kb-wide h2,
.kb-sources h2 {
  font-size: clamp(1.36rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.kb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.kb-group {
  border-top: 2px solid #263753;
  padding-top: 13px;
}
.kb-group h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}
.kb-group ul,
#hit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kb-group a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  line-height: 1.35;
}
.kb-group small,
#hit-list small {
  color: var(--muted);
  font-size: 0.8rem;
}
.kb-group a svg {
  color: var(--action);
  width: 15px;
}
#kb-results[hidden],
#topic-index[hidden] {
  display: none;
}
#matches {
  margin: 10px 0;
  color: var(--muted);
}
#hit-list a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 0;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
  color: var(--action);
  text-decoration: none;
}
#hit-list a:hover span {
  text-decoration: underline;
}
#clear-search {
  min-height: 44px;
  margin-top: 14px;
}
.kb-qa {
  border-top: 1px solid var(--rule);
  scroll-margin-block-start: 14px;
}
.kb-qa:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.kb-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 16px 1px;
  cursor: pointer;
  list-style: none;
}
.kb-qa summary::-webkit-details-marker {
  display: none;
}
.kb-qa summary h2 {
  margin: 0;
  font-size: clamp(1.04rem, 2vw, 1.16rem);
  font-weight: 545;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.kb-qa summary::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-right: 6px;
  border: solid #344d96;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}
.kb-qa[open] summary::after {
  transform: rotate(225deg);
}
.kb-qa[open] summary {
  color: #233e88;
}
.answer-body {
  max-width: 65ch;
  overflow-wrap: anywhere;
}
.answer-body p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  color: #354151;
}
.answer-body p + p {
  margin-top: 12px;
}
.question-link {
  font-size: 0.85rem;
  margin: 5px 0 9px;
}
.kb-sources {
  margin: 34px 0 0;
  background: #f5f6f8;
  border-radius: 8px;
  padding: 18px 20px;
}
.kb-sources h2 {
  font-size: 1.12rem;
}
.kb-sources ul {
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.kb-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.94rem;
}
.kb-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 20px;
}
.kb-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 740px) {
  .kb-crumb {
    min-height: 68px;
  }
  .kb-intro,
  .kb-title {
    margin-top: 22px;
    margin-bottom: 32px;
  }
  .kb-intro > p {
    font-size: 1.1rem;
  }
  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 54px;
  }
  .kb-group a {
    min-height: 54px;
  }
}
