/* Standalone guide pages use the same locally hosted typefaces as the articles. */
@font-face { font-family: Gilroy; src: url("/fonts/Gilroy-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: Gilroy; src: url("/fonts/Gilroy-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap }
@font-face { font-family: Gilroy; src: url("/fonts/Gilroy-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap }
@font-face { font-family: Gilroy; src: url("/fonts/Gilroy-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap }

.bosch-guide, .bg-article-tools, .bg-lookup, .bg-assist, .bg-pdf-dialog {
  --ink: #1a202c;
  --muted: #4a5568;
  --rule: #d8dfe5;
  --soft: #f4f6f8;
  --accent: #d81c25;
  --link: #273746;
  --bg-ink: var(--ink);
  --bg-muted: var(--muted);
  --bg-rule: var(--rule);
  --bg-accent: var(--accent);
  font-family: Gilroy, Arial, sans-serif;
  color: var(--ink);
}
.bg-article-tools, .bg-article-tools * { box-sizing: border-box }
.bg-article-tools { margin: 40px 0 48px; min-width: 0 }
.bg-finder, .bosch-guide .bg-lookup { background: var(--soft); border: 0; border-radius: 8px }
.bg-finder { padding: 24px 28px 0 }
.bg-finder .bg-lookup { padding: 0; margin: 0; border: 0; background: transparent }
.bg-lookup h2, .bg-assist h2, .bg-pdf-dialog h2, .bg-lookup button,
.bg-assist .bg-order-button, .bg-pdf-close { font-family: inherit }
.bg-lookup h2, .bosch-guide .bg-lookup h2 {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
  margin: 0 0 16px;
}
.bg-lookup .bg-search-form label { margin: 0 0 6px; font-size: 15px; line-height: 20px; font-weight: 600 }
.bg-lookup .bg-form-row { max-width: none; gap: 8px }
.bg-lookup input, .bg-lookup select {
  min-height: 46px;
  padding: 10px 14px;
  border-color: #adb8c2;
  border-radius: 5px;
  font: 500 16px/1.4 Gilroy, Arial, sans-serif;
}
.bg-lookup input::placeholder { color: #697684; opacity: 1 }
.bg-lookup input:focus, .bg-lookup select:focus { border-color: #5d7487 }
.bg-lookup .bg-form-row button, .bg-pdf-close {
  background: var(--accent);
  color: white;
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  padding: 10px 26px;
  font-size: 16px;
  font-weight: 700;
}
.bg-lookup .bg-form-row button:hover, .bg-pdf-close:hover { background: #bd151d }
.bg-lookup .bg-search-form .bg-muted {
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.bg-lookup .bg-example { margin: 4px 0 0 }
.bg-example button[data-bg-example] {
  min-height: 36px; padding: 0; border: 0; background: none; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; font-size: 15px; font-weight: 500;
}
.bg-lookup .bg-status:not(:empty) { margin: 18px 0 0; line-height: 1.4 }
.bg-lookup .bg-docs { background: white; border: 1px solid var(--rule); border-radius: 6px }
.bg-lookup .bg-docs h3, .bosch-guide .bg-docs h3 { margin: 0 0 8px; font-weight: 600 }
.bg-lookup .bg-docs ul, .bosch-guide .bg-docs ul { gap: 7px }
.bg-docs li:has(a[data-bg-pdf]) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.bg-docs li:has(a[data-bg-pdf]) + li { border-top: 1px solid var(--rule); padding-top: 7px }
.bg-docs li a.bg-file-download { margin-inline-start: 0 }
.bg-browse {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
  position: relative;
  font-size: 16px;
  line-height: 1.35;
}
.bg-model-picker { color: var(--ink) }
.bg-model-picker summary, .bg-browse-all {
  display: flex; align-items: center; gap: 9px; width: fit-content; min-height: 52px;
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.bg-model-picker summary { max-width: calc(100% - 170px); list-style: none }
.bg-model-picker summary::-webkit-details-marker { display: none }
.bg-model-picker summary::before {
  content: ""; width: 7px; height: 7px; flex: none; margin: -4px 3px 0 2px;
  border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.bg-model-picker[open] summary::before { transform: rotate(225deg); margin-top: 4px }
.bg-model-picker summary span { color: var(--muted); font-weight: 500 }
.bg-browse a.bg-browse-all { position: absolute; top: 0; right: 0; color: var(--link); text-decoration: none; font-weight: 500 }
.bg-browse-all span { font-family: Arial, sans-serif }
.bg-model-picker ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(172px,100%), 1fr));
  gap: 6px; padding: 2px 0 18px; margin: 0; list-style: none;
}
.bg-model-picker li { margin: 0; padding: 0; list-style: none }
.bg-model-picker li a {
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
  padding: 8px 12px; color: var(--link); text-decoration: none; font-weight: 500;
  background: white; border: 1px solid var(--rule); border-radius: 5px;
}
.bg-model-picker li a::after { content: "›"; color: #758291; font: 19px/1 Arial, sans-serif }
.bg-model-picker li a:hover, .bg-model-picker li a:focus-visible { background: #fbf0f1; color: #ad151e }
.bg-article-tools a:hover, .bg-model-picker summary:hover, .bg-example button:hover { color: #ad151e; text-decoration: underline; text-underline-offset: 3px }
.bg-article-tools :focus-visible, .bosch-guide :focus-visible, .bg-pdf-dialog :focus-visible {
  outline: 2px solid #395972; outline-offset: 2px;
}
.bg-model-picker li a:focus-visible { outline-offset: -3px }

.bg-assist.bg-service-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  margin: 0; padding: 20px 0; line-height: 1.4;
}
.bg-service-info { flex: 1 1 220px }
.bg-service-info h3 { margin: 0; font: 600 18px/1.3 Gilroy, Arial, sans-serif }
.bg-service-line .bg-service-info p { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4 }
.bg-service-line .bg-assist-context { display: none }
.bg-article-tools:has(.bg-result-title) .bg-assist-context { display: block }
.bg-service-contact { display: grid; gap: 2px }
.bg-service-contact a { width: fit-content; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px }
.bg-service-contact a[href^="tel:"] { color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap }
.bg-assist .bg-order-button {
  background: white; border: 1px solid #bd3037; border-radius: 5px;
  color: #ad151e; font-weight: 700; font-size: 16px; text-decoration: none;
}
.bg-assist .bg-order-button:hover { background: #fbf0f1; color: #96121a; text-decoration: none }

.bosch-guide { background: white; font-size: 17px }
.bosch-guide .bg-container { width: min(1170px, calc(100% - 48px)) }
.bosch-guide .bg-hero { background: transparent; border: 0; border-radius: 0; padding: 0 }
.bosch-guide h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -.02em }
.bosch-guide .bg-hero > p { margin: 12px 0 24px }
.bosch-guide .bg-lookup { padding: 24px 28px }
.bosch-guide .bg-section { margin: 38px 0 }
.bosch-guide a:hover, .bg-lookup a:hover { color: #ad151e }
.bosch-guide .bg-section > h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 600 }
.bosch-guide .bg-assist { background: var(--soft); border: 0; border-radius: 8px; padding: 22px 28px }
.bosch-guide .bg-models a, .bosch-guide .bg-topics a, .bosch-guide .bg-docs { border-radius: 6px }
.bosch-guide #bg-order-panel input[type=submit] { color: white }
.bg-pdf-dialog .bg-pdf-close { min-height: 40px; padding: 8px 16px }

@media (max-width: 650px) {
  .bg-article-tools { margin: 28px 0 36px }
  .bg-finder { padding: 18px 16px 0 }
  .bg-lookup .bg-form-row button { padding-inline: 17px }
  .bg-lookup .bg-search-form .bg-muted { font-size: 14px }
  .bg-lookup h2, .bosch-guide .bg-lookup h2 { margin-bottom: 14px }
  .bg-browse { display: block; margin-top: 15px }
  .bg-model-picker summary { min-height: 44px; max-width: 100%; gap: 6px }
  .bg-browse a.bg-browse-all { position: static; min-height: 40px; padding-bottom: 4px; font-size: 15px }
  .bg-model-picker ul { grid-template-columns: repeat(auto-fit,minmax(min(132px,100%),1fr)); padding-bottom: 6px }
  .bg-model-picker li a { padding: 8px; font-size: 14px }
  .bg-service-line .bg-service-info { flex-basis: 100% }
  .bg-assist.bg-service-line { justify-content: space-between; gap: 12px; padding: 16px 0 }
  .bg-service-contact { gap: 3px }
  .bg-assist .bg-order-button { padding-inline: 12px }
  .bosch-guide .bg-container { width: calc(100% - 32px) }
  .bosch-guide .bg-lookup, .bosch-guide .bg-assist { padding: 18px 16px }
  .bosch-guide .bg-section { margin: 28px 0 }
}
