/* Tudástár – Kazán Szerviz Kecskemét
   Navy / workshop blue / measured orange, aligned with the existing brand. */

body.kb-body {
  --kb-navy: #0f172a;
  --kb-navy-soft: #1e293b;
  --kb-blue: #0369a1;
  --kb-blue-dark: #025888;
  --kb-blue-pale: #e0f2fe;
  --kb-orange: #f97316;
  --kb-orange-dark: #ea580c;
  --kb-ink: #152238;
  --kb-copy: #334155;
  --kb-muted: #64748b;
  --kb-line: #dbe4ed;
  --kb-paper: #ffffff;
  --kb-wash: #f5f8fb;
  --kb-radius: 12px;
  --kb-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  margin: 0;
  min-height: 100dvh;
  background: var(--kb-wash);
  color: var(--kb-ink);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.kb-skip { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 12px; background: #fff; color: #0f172a; }
.kb-skip:focus { top: 12px; }
.kb-body .kb-reset { display: inline-block; margin: 12px; text-decoration: underline; }
.kb-body .kb-meta { color: #64748b; font-size: .875rem; }
.kb-sidebar .kb-button { color: #1f2937; }
.kb-body .kb-breadcrumb > * + *::before { content: none; }

.kb-body *,
.kb-body *::before,
.kb-body *::after {
  box-sizing: border-box;
}

.kb-body img {
  display: block;
  max-width: 100%;
}

.kb-body a {
  color: inherit;
  text-decoration: none;
}

.kb-body button,
.kb-body input,
.kb-body select {
  font: inherit;
}

.kb-body .container {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.kb-body a:focus-visible,
.kb-body button:focus-visible,
.kb-body input:focus-visible,
.kb-body select:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 3px;
}

/* Compact dark masthead keeps the same familiar visual signature. */
.kb-nav {
  position: relative;
  z-index: 5;
  color: #fff;
  background: var(--kb-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.12);
}

.kb-nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.kb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.kb-logo img {
  width: auto;
  height: 44px;
}

.kb-logo span {
  color: #7dd3fc;
}

.kb-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.kb-nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: #7dd3fc;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.kb-nav-links a:hover,
.kb-nav-links a[aria-current="page"] {
  color: #fff;
}

.kb-nav-links a:hover::after,
.kb-nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.kb-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.kb-phone:hover {
  border-color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  color: #bae6fd;
}

/* Knowledge landing hero */
.kb-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 92px) 0 clamp(66px, 9vw, 104px);
  background:
    radial-gradient(ellipse at 85% 10%, rgba(3, 105, 161, 0.38), transparent 40%),
    linear-gradient(118deg, #0f172a 0%, #172a42 68%, #123855 100%);
  color: #fff;
}

.kb-hero::after {
  position: absolute;
  right: max(4vw, calc((100vw - 1160px) / 2));
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(125, 211, 252, 0.035), 0 0 0 70px rgba(125, 211, 252, 0.025);
  content: "";
  pointer-events: none;
}

.kb-hero .container {
  position: relative;
  z-index: 1;
}

.kb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #7dd3fc;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kb-eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--kb-orange);
  content: "";
}

.kb-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.kb-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.kb-main.container {
  position: relative;
  z-index: 2;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(58px, 8vw, 92px);
}

/* Search controls */
.kb-search {
  margin: 18px 0 44px;
  padding: 22px;
  border: 1px solid rgba(219, 228, 237, 0.9);
  border-radius: 14px;
  background: var(--kb-paper);
  box-shadow: 0 18px 44px rgba(8, 23, 42, 0.19);
}

.kb-search form {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(150px, 0.8fr) auto;
  align-items: end;
  gap: 14px;
}

.kb-fields {
  display: contents;
}

.kb-fields label {
  display: grid;
  gap: 7px;
  color: var(--kb-navy-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.kb-fields input,
.kb-fields select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cbd7e3;
  border-radius: 7px;
  background-color: #fff;
  color: var(--kb-ink);
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.kb-fields input::placeholder {
  color: #8795a5;
}

.kb-fields input:focus,
.kb-fields select:focus {
  border-color: var(--kb-blue);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
  outline: none;
}

.kb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--kb-orange);
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.kb-button:hover {
  background: var(--kb-orange-dark);
  box-shadow: 0 7px 16px rgba(249, 115, 22, 0.22);
  transform: translateY(-1px);
}

.kb-button:active {
  transform: translateY(0);
}

.kb-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-results-header h2,
.kb-results-header h3 {
  margin: 0;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.kb-results-header p,
.kb-results-header > span {
  margin: 0;
  color: var(--kb-muted);
  font-size: 0.87rem;
}

/* Article listing cards */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.kb-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 23px 21px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  background: var(--kb-paper);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.kb-card:hover {
  border-color: rgba(3, 105, 161, 0.35);
  box-shadow: var(--kb-shadow);
  transform: translateY(-3px);
}

.kb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--kb-blue-pale);
  color: var(--kb-blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.kb-card h2 {
  margin: 0 0 9px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.38;
  text-wrap: pretty;
}

.kb-card p {
  margin: 0 0 18px;
  color: var(--kb-copy);
  font-size: 0.91rem;
  line-height: 1.7;
}

.kb-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--kb-blue);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 160ms ease, gap 160ms ease;
}

.kb-card-link::after {
  content: "→";
  font-size: 1.05rem;
  line-height: 1;
}

.kb-card-link:hover {
  gap: 12px;
  color: var(--kb-orange-dark);
}

.kb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.kb-pagination a,
.kb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--kb-line);
  border-radius: 7px;
  background: #fff;
  color: var(--kb-copy);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.kb-pagination a:hover {
  border-color: var(--kb-blue);
  color: var(--kb-blue);
}

.kb-pagination [aria-current="page"],
.kb-pagination .is-current {
  border-color: var(--kb-blue);
  background: var(--kb-blue);
  color: #fff;
}

/* Article reading experience */
.kb-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--kb-muted);
  font-size: 0.82rem;
}

.kb-breadcrumb a {
  color: var(--kb-blue);
  font-weight: 600;
}

.kb-breadcrumb a:hover {
  color: var(--kb-orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-breadcrumb > * + *::before {
  margin-right: 9px;
  color: #9aa8b7;
  content: "/";
}

.kb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
}

.kb-article-layout article.kb-article {
  min-width: 0;
  padding: clamp(25px, 5vw, 54px);
  border: 1px solid var(--kb-line);
  border-radius: 14px;
  background: var(--kb-paper);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
}

.kb-article > header {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-article > header .kb-tag {
  margin-bottom: 13px;
}

.kb-article h1 {
  margin: 0 0 14px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.13;
  text-wrap: balance;
}

.kb-article > header p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.kb-article section {
  margin: 0 0 34px;
  scroll-margin-top: 24px;
}

.kb-article section:last-child {
  margin-bottom: 0;
}

.kb-article section h2 {
  margin: 0 0 13px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.kb-article section h3 {
  margin: 24px 0 9px;
  color: var(--kb-navy-soft);
  font-family: 'Poppins', sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.4;
}

.kb-article section p,
.kb-article section li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.82;
}

.kb-article section p {
  margin: 0 0 17px;
}

.kb-article section p:last-child {
  margin-bottom: 0;
}

.kb-article section ol,
.kb-article section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 20px;
  padding-left: 1.45rem;
}

.kb-article section ol li,
.kb-article section ul li {
  padding-left: 5px;
}

.kb-article section ol li::marker {
  color: var(--kb-blue);
  font-weight: 700;
}

.kb-article section ul li::marker {
  color: var(--kb-orange);
}

.kb-article section strong {
  color: var(--kb-navy);
  font-weight: 700;
}

.kb-article section a {
  color: var(--kb-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(3, 105, 161, 0.35);
  text-underline-offset: 3px;
}

.kb-article section a:hover {
  color: var(--kb-orange-dark);
  text-decoration-color: currentColor;
}

.kb-answer,
.kb-warning {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: 8px;
}

.kb-answer {
  border: 1px solid #b8dced;
  border-left: 4px solid var(--kb-blue);
  background: #f0f9ff;
}

.kb-warning {
  border: 1px solid #f5c7a8;
  border-left: 4px solid var(--kb-orange);
  background: #fff8f2;
}

.kb-answer h2,
.kb-answer h3,
.kb-warning h2,
.kb-warning h3 {
  margin: 0 0 7px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.kb-answer p,
.kb-warning p {
  margin: 0;
  color: var(--kb-copy);
  font-size: 0.95rem;
  line-height: 1.75;
}

.kb-warning strong {
  color: #9a3412;
}

.kb-toc {
  margin: 0 0 30px;
  padding: 20px 22px;
  border: 1px solid var(--kb-line);
  border-radius: 9px;
  background: var(--kb-wash);
}

.kb-toc h2,
.kb-toc h3 {
  margin: 0 0 10px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.kb-toc ol,
.kb-toc ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.25rem;
}

.kb-toc li {
  color: var(--kb-blue);
  font-size: 0.87rem;
  line-height: 1.55;
}

.kb-toc a {
  color: var(--kb-blue-dark);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.kb-toc a:hover {
  color: var(--kb-orange-dark);
  text-decoration-color: currentColor;
}

.kb-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.kb-figures figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--kb-line);
  border-radius: 9px;
  background: var(--kb-wash);
}

.kb-figures img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.kb-figures figcaption {
  padding: 10px 12px;
  color: var(--kb-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.kb-author {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 36px;
  padding: 19px;
  border-top: 2px solid var(--kb-blue);
  background: var(--kb-wash);
}

.kb-author img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--kb-line);
}

.kb-author h2,
.kb-author h3,
.kb-author strong {
  display: block;
  margin: 0 0 3px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.kb-author p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* Aside widgets remain useful without competing with the article. */
.kb-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.kb-sidebar > section,
.kb-sidebar > div {
  padding: 21px;
  border: 1px solid var(--kb-line);
  border-radius: 10px;
  background: var(--kb-paper);
}

.kb-sidebar h2,
.kb-sidebar h3 {
  margin: 0 0 12px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.kb-sidebar p {
  margin: 0 0 13px;
  color: var(--kb-copy);
  font-size: 0.88rem;
  line-height: 1.7;
}

.kb-sidebar ul,
.kb-sidebar ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-sidebar li {
  color: var(--kb-copy);
  font-size: 0.86rem;
  line-height: 1.55;
}

.kb-sidebar a {
  color: var(--kb-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.kb-sidebar a:hover {
  color: var(--kb-orange-dark);
  text-decoration-color: currentColor;
}

.kb-related {
  margin-top: clamp(44px, 7vw, 72px);
}

.kb-related h2 {
  margin: 0 0 18px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 2.7vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kb-related .kb-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kb-cta {
  position: relative;
  overflow: hidden;
  margin-top: 38px;
  padding: clamp(25px, 4vw, 38px);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(56, 189, 248, 0.2), transparent 40%),
    var(--kb-navy);
  color: #fff;
}

.kb-cta h2,
.kb-cta h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
}

.kb-cta p {
  max-width: 650px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.kb-cta a,
.kb-cta .kb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border: 0;
  border-radius: 7px;
  background: var(--kb-orange);
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.kb-cta a:hover,
.kb-cta .kb-button:hover {
  background: var(--kb-orange-dark);
  transform: translateY(-1px);
}

.kb-footer {
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  background: #0b1220;
  color: rgba(255, 255, 255, 0.7);
}

.kb-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
}

.kb-footer p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.kb-footer a {
  color: #bae6fd;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.kb-footer a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

@media (max-width: 960px) {
  .kb-nav-inner {
    gap: 18px;
  }

  .kb-nav-links {
    gap: 12px;
  }

  .kb-nav-links a {
    font-size: 0.82rem;
  }

  .kb-article-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 24px;
  }

  .kb-grid,
  .kb-related .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kb-body .container {
    width: min(100% - 36px, 620px);
  }

  .kb-nav-inner {
    min-height: 68px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 14px;
    padding-block: 10px;
  }

  .kb-logo img {
    height: 40px;
  }

  .kb-nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px 20px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 4px 0 1px;
    scrollbar-width: thin;
  }

  .kb-nav-links a {
    min-height: 38px;
    white-space: nowrap;
  }

  .kb-nav-links a::after {
    bottom: 2px;
  }

  .kb-phone {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.78rem;
  }

  .kb-hero {
    padding: 51px 0 105px;
  }

  .kb-hero::after {
    right: -140px;
    bottom: -165px;
    width: 280px;
    height: 280px;
  }

  .kb-search {
    margin-top: 18px;
    padding: 17px;
  }

  .kb-search form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .kb-fields {
    display: contents;
  }

  .kb-fields label:first-child {
    grid-column: 1 / -1;
  }

  .kb-search .kb-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .kb-article-layout {
    grid-template-columns: 1fr;
  }

  .kb-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kb-body .container {
    width: min(100% - 32px, 430px);
  }

  .kb-nav-inner {
    column-gap: 8px;
  }

  .kb-logo {
    gap: 7px;
    font-size: 0.93rem;
  }

  .kb-logo img {
    height: 36px;
  }

  .kb-phone {
    max-width: 54vw;
    padding-inline: 9px;
    font-size: 0.72rem;
  }

  .kb-nav-links {
    gap: 7px 18px;
  }

  .kb-nav-links a {
    font-size: 0.79rem;
  }

  .kb-hero {
    padding: 43px 0 93px;
  }

  .kb-eyebrow {
    margin-bottom: 14px;
    font-size: 0.68rem;
  }

  .kb-hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.12;
  }

  .kb-hero p {
    margin-top: 15px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .kb-main.container {
    padding-top: 25px;
    padding-bottom: 54px;
  }

  .kb-search {
    margin-top: 16px;
    margin-bottom: 34px;
    padding: 14px;
    border-radius: 11px;
  }

  .kb-search form {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .kb-fields label:first-child,
  .kb-search .kb-button {
    grid-column: auto;
  }

  .kb-fields label {
    gap: 5px;
    font-size: 0.75rem;
  }

  .kb-fields input,
  .kb-fields select,
  .kb-button {
    min-height: 46px;
  }

  .kb-results-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .kb-grid,
  .kb-related .kb-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .kb-card {
    min-height: 0;
    padding: 19px 18px;
  }

  .kb-card h2 {
    font-size: 1.05rem;
  }

  .kb-card p {
    font-size: 0.88rem;
  }

  .kb-pagination {
    gap: 6px;
    margin-top: 28px;
  }

  .kb-pagination a,
  .kb-pagination span {
    min-width: 38px;
    min-height: 40px;
    padding-inline: 9px;
  }

  .kb-breadcrumb {
    margin-bottom: 17px;
    font-size: 0.76rem;
  }

  .kb-article-layout article.kb-article {
    padding: 22px 18px;
    border-radius: 11px;
  }

  .kb-article > header {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .kb-article h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .kb-article > header p {
    font-size: 0.94rem;
  }

  .kb-article section {
    margin-bottom: 28px;
  }

  .kb-article section h2 {
    font-size: 1.32rem;
  }

  .kb-article section h3 {
    margin-top: 21px;
    font-size: 1.04rem;
  }

  .kb-article section p,
  .kb-article section li {
    font-size: 0.96rem;
    line-height: 1.78;
  }

  .kb-answer,
  .kb-warning {
    margin: 21px 0;
    padding: 16px;
  }

  .kb-answer p,
  .kb-warning p {
    font-size: 0.91rem;
  }

  .kb-toc {
    padding: 17px;
  }

  .kb-figures {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 21px 0;
  }

  .kb-author {
    gap: 12px;
    padding: 15px;
  }

  .kb-author img {
    width: 46px;
    height: 46px;
  }

  .kb-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kb-sidebar > section,
  .kb-sidebar > div {
    padding: 18px;
  }

  .kb-cta {
    margin-top: 28px;
    padding: 22px 19px;
  }

  .kb-cta a,
  .kb-cta .kb-button {
    width: 100%;
  }

  .kb-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-body *,
  .kb-body *::before,
  .kb-body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Knowledge search: make room for the required boiler-type filter. */
.kb-body .kb-search form {
  grid-template-columns: minmax(220px, 1.55fr) repeat(4, minmax(0, 1fr));
  align-items: start;
}

.kb-body .kb-search .kb-fields label,
.kb-body .kb-search .kb-fields input,
.kb-body .kb-search .kb-fields select {
  width: 100%;
  min-width: 0;
}

.kb-body .kb-search .kb-fields #kb-type-help,
.kb-body .kb-search .kb-filter-help {
  grid-column: 1 / -1;
  max-width: 100%;
  color: var(--kb-muted);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.kb-body .kb-search .kb-fields select:disabled {
  border-color: #cbd7e3;
  background-color: #edf2f7;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.kb-body .kb-search > form > .kb-button {
  grid-column: 1 / span 2;
  justify-self: start;
}

.kb-body .kb-search > form > .kb-reset {
  grid-column: 3 / -1;
  align-self: center;
}

@media (max-width: 960px) {
  .kb-body .kb-search form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kb-body .kb-search .kb-fields label:first-child {
    grid-column: span 2;
  }

  .kb-body .kb-search > form > .kb-button {
    grid-column: 1 / span 2;
  }

  .kb-body .kb-search > form > .kb-reset {
    grid-column: 3;
  }
}

/* Bosch model directory: grouped, technical index cards use the established
   knowledgebase palette without changing the existing article-card system. */
.kb-body main.kb-model-index {
  min-width: 0;
}

.kb-body .kb-model-group {
  min-width: 0;
  margin: 0 0 clamp(34px, 5vw, 54px);
}

.kb-body .kb-model-group:last-child {
  margin-bottom: 0;
}

.kb-body .kb-model-group > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--kb-line);
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.kb-body .kb-model-group > h2::before {
  width: 4px;
  min-width: 4px;
  height: 1.2em;
  border-radius: 3px;
  background: var(--kb-blue);
  content: "";
}

.kb-body .kb-model-group--commercial > h2::before,
.kb-body .kb-model-group--industrial > h2::before {
  background: var(--kb-orange);
}

.kb-body .kb-model-group--former > h2::before {
  background: var(--kb-muted);
}

.kb-body .kb-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 17px;
}

.kb-body .kb-model-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 21px;
  border: 1px solid var(--kb-line);
  border-top: 3px solid var(--kb-blue);
  border-radius: 10px;
  background: var(--kb-paper);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.kb-body .kb-model-card:hover {
  border-color: rgba(3, 105, 161, 0.42);
  border-top-color: var(--kb-blue);
  box-shadow: var(--kb-shadow);
  transform: translateY(-2px);
}

.kb-body .kb-model-group--commercial .kb-model-card,
.kb-body .kb-model-group--industrial .kb-model-card {
  border-top-color: var(--kb-orange);
}

.kb-body .kb-model-group--former .kb-model-card {
  border-top-color: #94a3b8;
}

.kb-body .kb-model-card h2,
.kb-body .kb-model-card h3 {
  max-width: 100%;
  margin: 0 0 9px;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.kb-body .kb-model-card h2 a,
.kb-body .kb-model-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.kb-body .kb-model-card h2 a:hover,
.kb-body .kb-model-card h3 a:hover {
  color: var(--kb-blue-dark);
  text-decoration-color: currentColor;
}

.kb-body .kb-model-card p {
  width: 100%;
  margin: 0 0 12px;
  color: var(--kb-copy);
  font-size: 0.89rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.kb-body .kb-model-card p:last-child {
  margin-bottom: 0;
}

.kb-body .kb-model-card details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kb-body .kb-model-card summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}

.kb-body .kb-model-card details ul {
  padding-left: 1.2rem;
}

.kb-body .kb-model-card details a {
  overflow-wrap: anywhere;
}

.kb-body .kb-model-status {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 4px 9px;
  border: 1px solid #c8dfeb;
  border-radius: 999px;
  background: #edf7fb;
  color: #075985;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.kb-body .kb-model-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--kb-blue);
  content: "";
}

.kb-body .kb-model-status--commercial,
.kb-body .kb-model-status--industrial {
  border-color: #f3d2bc;
  background: #fff6ef;
  color: #9a4516;
}

.kb-body .kb-model-status--commercial::before,
.kb-body .kb-model-status--industrial::before {
  background: var(--kb-orange);
}

.kb-body .kb-model-status--former {
  border-color: #d8e0e8;
  background: #f1f4f7;
  color: #526276;
}

.kb-body .kb-model-status--former::before {
  background: #8493a5;
}

.kb-body .kb-model-card .kb-model-source,
.kb-body .kb-model-card .kb-model-source a {
  color: var(--kb-blue-dark);
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kb-body .kb-model-card .kb-model-source {
  margin-top: auto;
  padding-top: 6px;
}

.kb-body .kb-model-card .kb-model-source a {
  text-decoration: underline;
  text-decoration-color: rgba(3, 105, 161, 0.32);
  text-underline-offset: 3px;
}

.kb-body .kb-model-card .kb-model-source a:hover {
  color: var(--kb-orange-dark);
  text-decoration-color: currentColor;
}

/* Compact specification sheet inside the standard article reading surface. */
.kb-detail .kb-article section .kb-model-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 25px;
  padding: 1px;
  border: 1px solid #d8e2eb;
  border-radius: 9px;
  background: #d8e2eb;
  overflow: hidden;
}

.kb-detail .kb-model-specs > div {
  min-width: 0;
  padding: 14px 16px;
  background: #f3f7fa;
}

.kb-detail .kb-model-specs dt {
  margin: 0 0 5px;
  color: #5b6d80;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kb-detail .kb-model-specs dd {
  min-width: 0;
  margin: 0;
  color: #162840;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kb-detail .kb-article .kb-model-documents,
.kb-main > .kb-model-documents {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid #d7e3eb;
  border-left: 3px solid #0875a8;
  border-radius: 0 8px 8px 0;
  background: #f0f6f9;
}

.kb-detail .kb-model-documents h2,
.kb-detail .kb-model-documents h3 {
  margin: 0 0 8px;
  color: #14263e;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.kb-detail .kb-model-documents p,
.kb-detail .kb-model-documents li {
  color: #40546a;
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kb-detail .kb-model-documents p {
  margin: 0 0 9px;
}

.kb-detail .kb-model-documents p:last-child {
  margin-bottom: 0;
}

.kb-detail .kb-model-documents ul,
.kb-detail .kb-model-documents ol {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 1.25rem;
}

.kb-detail .kb-model-documents a {
  color: #075f91;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 960px) {
  .kb-body .kb-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kb-body .kb-model-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .kb-body .kb-model-group {
    margin-bottom: 36px;
  }

  .kb-body .kb-model-group > h2 {
    margin-bottom: 14px;
    font-size: 1.23rem;
  }

  .kb-body .kb-model-card {
    padding: 17px 16px;
  }

  .kb-body .kb-model-card h2,
  .kb-body .kb-model-card h3 {
    font-size: 1.02rem;
  }

  .kb-detail .kb-article section .kb-model-specs {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    margin-block: 17px 21px;
  }

  .kb-detail .kb-model-specs > div {
    padding: 12px 14px;
  }

  .kb-detail .kb-article section .kb-model-documents {
    padding: 15px 14px;
  }
}

/* Bosch Condens 2300 code index — scoped to the index content only. */
.kb-main.container .kb-code-index {
  min-width: 0;
}

.kb-main.container .kb-code-summary,
.kb-main.container .kb-code-notes {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kb-main.container .kb-code-summary {
  margin-bottom: 24px;
  padding: 17px 20px;
  border: 1px solid #b8dced;
  border-left: 4px solid var(--kb-blue);
  border-radius: 8px;
  background: #f0f9ff;
  color: var(--kb-copy);
}

.kb-main.container .kb-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.kb-main.container article.kb-code-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 8px 12px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--kb-line);
  border-radius: 9px;
  background: var(--kb-paper);
}

.kb-main.container .kb-code-item > strong {
  min-width: 0;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

.kb-main.container .kb-code-kind {
  align-self: start;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--kb-blue-pale);
  color: var(--kb-blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.45;
}

.kb-main.container .kb-code-item h3 {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  color: var(--kb-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.kb-main.container .kb-code-item h3 a {
  color: var(--kb-blue-dark);
  text-decoration: underline;
  text-decoration-color: rgba(3, 105, 161, 0.28);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.kb-main.container .kb-code-item h3 a:hover {
  color: var(--kb-orange-dark);
  text-decoration-color: currentColor;
}

.kb-main.container .kb-code-item small {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--kb-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kb-main.container .kb-code-notes {
  margin-top: 24px;
}

.kb-main.container .kb-code-notes > * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 600px) {
  .kb-main.container .kb-code-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .kb-main.container article.kb-code-item {
    padding: 14px 15px;
  }

  .kb-main.container .kb-code-summary {
    padding: 15px 16px;
  }
}

@media (max-width: 760px) {
  .kb-body .kb-search form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kb-body .kb-search .kb-fields label:first-child {
    grid-column: 1 / -1;
  }

  .kb-body .kb-search > form > .kb-button,
  .kb-body .kb-search > form > .kb-reset {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .kb-body .kb-search form {
    grid-template-columns: minmax(0, 1fr);
  }
}
