/* Static runtime fixes only. The visual design remains in the original page code. */
[data-static-hidden] { display: none !important; }
.sbn-static-backdrop {
  position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, .35);
}
.sbn-search-results {
  max-height: min(55vh, 520px); overflow: auto; background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .1);
}
.sbn-search-result { display: block; padding: 1rem 1.25rem; color: inherit; text-decoration: none; }
.sbn-search-result + .sbn-search-result { border-top: 1px solid rgba(0, 0, 0, .08); }
.sbn-search-result strong { display: block; font-size: 1rem; }
.sbn-search-result span { display: block; margin-top: .25rem; color: #666; font-size: .9rem; }
.sbn-search-empty { padding: 1rem 1.25rem; color: #666; }
.sbn-contact-result { display: block; margin-top: .75rem; min-height: 1.5em; }
.sbn-contact-result[data-state="success"] { color: #2f6b43; }
.sbn-contact-result[data-state="error"] { color: #9b2c2c; }
.sbn-optimized-picture { display: contents; }

/* Static header: deliberately independent from Odoo's menu runtime. */
.sbn-site-header,
.sbn-site-header * { box-sizing: border-box; }
.sbn-site-header {
  position: relative; z-index: 1030; width: 100%; background: #fff; color: #171717;
  border-bottom: 1px solid rgba(23, 23, 23, .08);
  box-shadow: 0 2px 8px rgba(23, 23, 23, .08);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.sbn-site-header a { color: inherit; text-decoration: none; }
.sbn-site-header__inner {
  width: min(1240px, calc(100% - 80px)); min-height: 68px; margin: 0 auto; padding: 0;
  display: flex; align-items: center; gap: 24px;
}
.sbn-site-header__logo { display: inline-flex; flex: 0 0 auto; align-items: center; }
.sbn-site-header__logo img { display: block; width: auto; height: 40px; }
.sbn-site-header__desktop { flex: 1 1 auto; min-width: 0; }
.sbn-site-header__desktop ul,
.sbn-site-header__mobile ul { margin: 0; padding: 0; list-style: none; }
.sbn-site-header__desktop ul { display: flex; align-items: center; gap: clamp(10px, 1vw, 18px); }
.sbn-site-header__desktop a {
  display: inline-flex; align-items: center; min-height: 68px; position: relative;
  font-size: 13px; line-height: 1.2; white-space: nowrap;
}
.sbn-site-header__desktop a::after {
  position: absolute; right: 0; bottom: 17px; left: 0; height: 1px;
  background: #171717; content: ""; transform: scaleX(0); transition: transform 160ms ease;
}
.sbn-site-header__desktop a:hover::after,
.sbn-site-header__desktop a.is-active::after { transform: scaleX(1); }
.sbn-site-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.sbn-site-header__languages { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; }
.sbn-site-header__languages a { color: #777; }
.sbn-site-header__languages a.is-active { color: #171717; font-weight: 700; }
.sbn-site-header__icon,
.sbn-site-header__menu-button {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.sbn-site-header__icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 999px; background: #f5f5f5;
}
.sbn-site-header__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.sbn-site-header__menu-button { display: none; width: 42px; height: 42px; padding: 11px 9px; }
.sbn-site-header__menu-button span { display: block; width: 23px; height: 1px; margin: 5px auto; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
.sbn-site-header__menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sbn-site-header__menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sbn-site-header__menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sbn-site-header__search {
  width: min(1240px, calc(100% - 80px)); margin: 0 auto; padding: 20px 0;
  border-top: 1px solid rgba(23, 23, 23, .1);
}
.sbn-site-header__search[hidden],
.sbn-site-header__mobile[hidden] { display: none !important; }
.sbn-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.sbn-search-form input {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid rgba(23, 23, 23, .25);
  border-radius: 0; background: #fff; color: #171717; font: inherit;
}
.sbn-search-form button {
  min-height: 48px; padding: 12px 22px; border: 1px solid #171717; background: #171717;
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}
.sbn-site-header__mobile { padding: 5px 24px 28px; background: #fff; border-top: 1px solid rgba(23, 23, 23, .1); }
.sbn-site-header__mobile li + li { border-top: 1px solid rgba(23, 23, 23, .1); }
.sbn-site-header__mobile li a { display: block; padding: 14px 0; font-family: "Bodoni 72", Didot, Georgia, serif; font-size: 25px; line-height: 1.15; }
.sbn-site-header__mobile li a.is-active { font-style: italic; }
.sbn-site-header__mobile > .sbn-site-header__languages { margin-top: 24px; }
.sbn-article-teaser-shell {
  width: calc(100% - 30px); margin-right: auto !important; margin-left: auto !important;
}
@media (min-width: 576px) { .sbn-article-teaser-shell { max-width: 510px; } }
@media (min-width: 768px) { .sbn-article-teaser-shell { max-width: 690px; } }
@media (min-width: 992px) { .sbn-article-teaser-shell { max-width: 930px; } }
@media (min-width: 1200px) { .sbn-article-teaser-shell { max-width: 1110px; } }
@media (min-width: 1400px) { .sbn-article-teaser-shell { max-width: 1290px; } }

/* Large editorial colour bands may reach the viewport edges, while their
   existing inner shells continue to protect line length and readability. */
@media (min-width: 821px) {
  .sbn-pillar1 .sbn-audience,
  .sbn-pillar1 .sbn-included,
  .sbn-pillar1 .sbn-outcomes,
  .sbn-pillar1 .sbn-nafi,
  .sbn-pillar1 .sbn-final {
    width: 100%; max-width: none; margin-right: 0; margin-left: 0;
  }
}
.sbn-contact-top,
.sbn-contact-after {
  width: 100vw !important; max-width: none !important;
  margin-right: calc(50% - 50vw) !important; margin-left: calc(50% - 50vw) !important;
}
@media (max-width: 1180px) {
  .sbn-site-header__inner { min-height: 66px; }
  .sbn-site-header__desktop { display: none; }
  .sbn-site-header__actions { margin-left: auto; }
  .sbn-site-header__menu-button { display: block; }
}
@media (max-width: 520px) {
  .sbn-site-header__inner { width: calc(100% - 32px); gap: 8px; }
  .sbn-site-header__logo img { height: 38px; }
  .sbn-site-header__actions > .sbn-site-header__languages { display: none; }
  .sbn-site-header__icon { width: 39px; height: 39px; }
  .sbn-site-header__menu-button { width: 39px; height: 39px; }
  .sbn-site-header__search { width: calc(100% - 32px); }
  .sbn-search-form { grid-template-columns: 1fr; }
}


/* Six-language picker */
.sbn-language-picker { position: relative; flex: 0 0 auto; font-size: 13px; }
.sbn-language-picker summary {
  min-width: 56px; min-height: 38px; padding: 0 10px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(23,23,23,.18);
  background: #fff; color: #171717; cursor: pointer; font-weight: 650; letter-spacing: .08em;
  list-style: none;
}
.sbn-language-picker summary::-webkit-details-marker { display: none; }
.sbn-language-picker summary svg { width: 11px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sbn-language-picker[open] summary svg { transform: rotate(180deg); }
.sbn-language-picker__menu {
  position: absolute; z-index: 1100; top: calc(100% + 8px); right: 0; width: 205px;
  padding: 7px; border: 1px solid rgba(23,23,23,.14); background: #fff;
  box-shadow: 0 14px 32px rgba(23,23,23,.13);
}
[dir="rtl"] .sbn-language-picker__menu { right: auto; left: 0; }
.sbn-language-picker__menu a {
  min-height: 42px; padding: 9px 10px; display: grid; grid-template-columns: 48px 1fr;
  align-items: center; gap: 8px; color: #444; font-size: 14px; letter-spacing: 0;
}
.sbn-language-picker__menu a:hover,
.sbn-language-picker__menu a.is-active { background: #f5dddd; color: #171717; }
.sbn-language-picker__code { color: #777; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.sbn-site-header__mobile > .sbn-language-picker { margin-top: 24px; }
.sbn-site-header__mobile > .sbn-language-picker summary { width: 100%; justify-content: space-between; }
.sbn-site-header__mobile > .sbn-language-picker .sbn-language-picker__menu {
  position: static; width: 100%; margin-top: 8px; box-shadow: none;
}
[dir="rtl"] body { text-align: right; }
@media (max-width: 520px) {
  .sbn-site-header__actions > .sbn-language-picker { display: none; }
}


/* Context links to the online-service pillar */
.sbn-online-context-line { margin: 18px 0 0; }
.sbn-rate .sbn-online-context-line { margin-top: 16px; }
.sbn-article__faq-item .sbn-online-context-line { margin-top: 18px; }
