/* ==========================================================================
   help.aritma.com knowledge base: header, footer, contact block, page styling
   and article blocks.

   Loaded by the knowledge base "header HTML" setting (one <link>), together
   with kb-site.js. The knowledge base pages use HubSpot's own theme, which we
   cannot edit, so this file only adds rules:

   1. Header and footer (.kb-header, .kb-footer): the theme's shared help
      centre header and footer. The rules are help.css from the theme repo
      (PR #29, ef583be), carried over by tools/port_help_css.py; the markup is
      rendered from partials/help-header, help-products and help-footer by
      tools/snippets_v4.py. 1b adds what only the knowledge base needs: the
      search form in the bar, the contact block (.kb-help) and guards against
      HubSpot's knowledge base theme.
   2. Restyling of HubSpot's knowledge base page (search band, breadcrumb,
      sidebar, article text, feedback, related articles, category listing,
      search results) toward web-17. Every rule starts with .kb-body-wrapper,
      HubSpot's wrapper around the knowledge base page. HubSpot's search and
      feedback widgets keep their markup and behaviour; only colour, type and
      spacing change.
   3. Article blocks (kb-*), copied from revops-svc-knowledge
      src/Knowledge.Api/Site/article.css (origin/main, includes PR #5:
      screenshots keep their own size and only scale down).

   Kit rules: weight 400 only, no left-border accents, no tracked uppercase,
   no arrows in buttons, pink never as text on a light surface.
   ========================================================================== */

/* The knowledge base already serves this font file. */
@font-face {
  font-family: 'Aritma Uten';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://help.aritma.com/hubfs/AritmaUten1.0-Regular.ttf') format('truetype');
}

:root {
  --kbs-indigo: #45095a;
  --kbs-pink: #fb8caf;
  --kbs-seashell: #f9f0ee;
  --kbs-white: #ffffff;
  --kbs-blue: #2549d2;
  --kbs-indigo-70: #7d538b;
  --kbs-text: #222222;
  --kbs-border: rgba(69, 9, 90, 0.23);
  --kbs-on-dark-line: rgba(249, 240, 238, 0.3);
  --kbs-radius-sm: 5px;
  --kbs-radius-md: 10px;
  --kbs-font: 'Aritma Uten', 'Aritma-uten', 'Aritma Uten 1.0', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* The old snippet painted the page indigo behind everything. */
html body {
  margin: 0;
  background-color: var(--kbs-seashell);
}

/* HubSpot's own header module (logo, menu with old links, language switcher)
   is replaced by .kb-header. Hidden only when .kb-header is on the page, so
   HubSpot's header comes back by itself if the snippet is removed. The same
   for HubSpot's footer row. */
body:has(.kb-header) #hs_cos_wrapper_knowledgebase_header,
body:has(.kb-footer) .kb-body-wrapper .footer {
  display: none !important;
}

/* ===== 1. Header and footer (help.css) ===== */
.kb-header,
.kb-footer {
  --kb-indigo: #45095a;
  --kb-pink: #fb8caf;
  --kb-seashell: #f9f0ee;
  --kb-white: #ffffff;
  --kb-blue: #2549d2;
  --kb-indigo-70: #7d538b;
  --kb-text: #222222;
  --kb-border: rgba(69, 9, 90, 0.23);
  --kb-on-dark-line: rgba(249, 240, 238, 0.3);
  --kb-on-dark-muted: rgba(249, 240, 238, 0.78);
  --kb-card-alt: #fff7f5;
  --kb-measure: 760px;
  --kb-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --kb-radius-sm: 5px;
  --kb-radius-md: 10px;
  --kb-space-1: 4px;
  --kb-space-2: 8px;
  --kb-space-3: 16px;
  --kb-space-4: 24px;
  --kb-space-5: 32px;
  --kb-space-6: 48px;
  --kb-space-7: 64px;
  --kb-font: 'Aritma Uten', 'Aritma Uten 1.0', Inter, system-ui, -apple-system,
    'Segoe UI', sans-serif;
  font-family: var(--kb-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
.kb-header :is(p, ul, ol, li),
.kb-footer :is(h2, p, ul, ol, li) {
  margin: 0;
  padding: 0;
  font-weight: 400;
}
/* main.css sets its own font-family on every heading, so headings do not
   inherit the one set on the containers above. */
.kb-footer h2 {
  font-family: var(--kb-font);
  color: inherit;
}
.kb-header ul,
.kb-footer ul {
  list-style: none;
}
.kb-header a,
.kb-footer a {
  color: inherit;
}
.kb-header img,
.kb-footer img {
  display: block;
}
.kb-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--kb-space-6);
}
.kb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.kb-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: 5px;
  background: #ffffff;
  color: #45095a;
}
.kb-skip:focus {
  top: 16px;
}
.kb-header :focus-visible,
.kb-footer :focus-visible {
  outline: 2px solid var(--kb-seashell);
  outline-offset: 2px;
}
/* Buttons: one shape. The label stands alone. */
.kb-button {
  display: inline-block;
  padding: var(--kb-space-3) var(--kb-space-4);
  border: 0;
  border-radius: var(--kb-radius-sm);
  font-family: inherit;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.kb-button:hover {
  text-decoration: underline;
}
.kb-mobile .kb-button--dark {
  background-color: var(--kb-indigo);
  color: var(--kb-seashell);
}
.kb-header .kb-button--light {
  background-color: var(--kb-white);
  color: var(--kb-indigo);
}
/* ===== Header ===== */
.kb-header {
  position: relative;
  z-index: 20;
  padding: var(--kb-space-5) 0;
  background-color: var(--kb-indigo);
  color: var(--kb-seashell);
}
/* Straight into an indigo band below: the two read as one. */
.kb-header--joined {
  padding-bottom: var(--kb-space-4);
}
.kb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kb-space-4);
}
.kb-header__start {
  display: flex;
  align-items: center;
  gap: var(--kb-space-5);
  min-width: 0;
}
.kb-header__brand {
  display: flex;
  align-items: center;
  gap: var(--kb-space-3);
  text-decoration: none;
}
.kb-header__brand span {
  font-size: 18px;
  line-height: 28px;
  white-space: nowrap;
}
.kb-header__nav {
  display: flex;
  align-items: center;
  gap: var(--kb-space-5);
  font-size: 14px;
  line-height: 20px;
}
.kb-header__nav > a {
  text-decoration: none;
  white-space: nowrap;
}
.kb-header__nav > a:hover,
.kb-header__nav > a[aria-current] {
  text-decoration: underline;
}
.kb-header__nav .kb-button {
  padding: var(--kb-space-2) var(--kb-space-3);
  font-size: 14px;
  line-height: 20px;
}
.kb-header__nav .kb-show-sm,
.kb-header__nav .kb-show-md {
  display: none;
}
/* Looks like a field. In the theme it opens the front page; here it is the knowledge base search form (1b). */
.kb-header__search {
  display: flex;
  align-items: center;
  width: 280px;
  padding: var(--kb-space-2) var(--kb-space-3);
  border: 1px solid var(--kb-on-dark-line);
  border-radius: var(--kb-radius-sm);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.kb-header__search:hover span {
  text-decoration: underline;
}
.kb-header .kb-menu__panel :focus-visible,
.kb-header .kb-mobile :focus-visible {
  outline-color: var(--kb-blue);
}
/* kb-menu: "Produkter". A disclosure, not a hover menu: it opens on click and
   closes on a second click, Escape or a click outside. */
.kb-menu {
  position: relative;
}
.kb-header .kb-menu__button {
  display: inline-flex;
  align-items: center;
  gap: var(--kb-space-1);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.kb-header .kb-menu__button:hover,
.kb-header .kb-menu__button[aria-expanded='true'],
.kb-header .kb-menu__button[aria-current] {
  text-decoration: underline;
}
.kb-menu__button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}
.kb-menu__button[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.kb-menu__panel {
  position: absolute;
  top: calc(100% + var(--kb-space-4));
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  border-radius: var(--kb-radius-md);
  background-color: var(--kb-white);
  color: var(--kb-indigo);
  box-shadow: 0 16px 32px rgba(69, 9, 90, 0.16);
  overflow: hidden;
}
.kb-menu__panel[hidden],
.kb-mobile[hidden] {
  display: none;
}
.kb-menu__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--kb-space-4);
  padding: var(--kb-space-4);
}
.kb-menu__group > p {
  margin-bottom: var(--kb-space-2);
  padding: 0 var(--kb-space-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}
.kb-menu__group a {
  display: block;
  padding: var(--kb-space-2) var(--kb-space-3);
  border-radius: var(--kb-radius-sm);
  text-decoration: none;
}
.kb-menu__group a:hover,
.kb-menu__group a[aria-current] {
  background-color: var(--kb-seashell);
}
.kb-menu__group a:hover .kb-menu__name {
  text-decoration: underline;
}
.kb-menu__name {
  display: block;
  font-size: 16px;
  line-height: 26px;
}
.kb-menu__desc {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-text);
}
.kb-menu__more {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kb-space-2) var(--kb-space-5);
  padding: var(--kb-space-3) var(--kb-space-5);
  border-top: 1px solid var(--kb-border);
  background-color: var(--kb-card-alt);
  font-size: 14px;
  line-height: 20px;
}
.kb-menu__more a {
  text-decoration: none;
}
.kb-menu__more a:hover {
  text-decoration: underline;
}
/* "Meny": the whole nav under 640 px. */
.kb-header .kb-menu-toggle {
  display: none;
  margin: 0;
  padding: var(--kb-space-2) var(--kb-space-3);
  border: 1px solid var(--kb-on-dark-line);
  border-radius: var(--kb-radius-sm);
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.kb-mobile {
  display: none;
}
/* ===== Footer ===== */
.kb-footer {
  padding: var(--kb-space-6) 0 var(--kb-space-5);
  background-color: var(--kb-indigo);
  color: var(--kb-seashell);
}
.kb-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--kb-space-5);
}
.kb-footer .kb-footer__address {
  max-width: 320px;
  margin-top: var(--kb-space-3);
  font-size: 14px;
  line-height: 20px;
}
.kb-footer h2 {
  margin-bottom: var(--kb-space-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-pink);
}
.kb-footer li + li {
  margin-top: var(--kb-space-2);
}
.kb-footer a {
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.kb-footer a:hover {
  text-decoration: underline;
}
.kb-footer__bottom {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--kb-space-4);
  margin-top: var(--kb-space-6);
  padding-top: var(--kb-space-3);
  border-top: 1px solid var(--kb-on-dark-line);
  font-size: 14px;
  line-height: 20px;
}
.kb-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kb-space-2) var(--kb-space-4);
}
.kb-footer__bottom li + li {
  margin-top: 0;
}
@media (max-width: 1280px) {
  .kb-header__nav .kb-hide-md {
    display: none;
  }
}
@media (max-width: 1100px) {
  .kb-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kb-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}
/* The header bar keeps Tema, Produkter, the language link and Kontakt support
   down to 641 px; to make room the search field becomes a Søk button, then the
   site name goes. */
@media (max-width: 1120px) {
  .kb-header__search {
    display: none;
  }
  .kb-header__nav .kb-show-md {
    display: inline-block;
  }
}
@media (max-width: 920px) {
  .kb-header__brand span {
    display: none;
  }
  .kb-header__nav {
    gap: var(--kb-space-4);
  }
}
@media (max-width: 640px) {
  .kb-container {
    padding-left: var(--kb-space-4);
    padding-right: var(--kb-space-4);
  }
  .kb-header {
    padding: var(--kb-space-4) 0;
  }
  .kb-header__nav {
    gap: var(--kb-space-2);
  }
  .kb-header__nav > a:not(.kb-button),
  .kb-header__nav .kb-hide-sm,
  .kb-header__nav .kb-menu,
  .kb-header__search,
  .kb-header__brand span {
    display: none;
  }
  .kb-header__nav .kb-show-sm,
  .kb-header .kb-menu-toggle {
    display: inline-block;
  }
  .kb-header__brand img {
    width: 112px;
    height: auto;
  }
  .kb-mobile:not([hidden]) {
    display: block;
    margin-top: var(--kb-space-4);
    padding: var(--kb-space-3) var(--kb-space-4) var(--kb-space-4);
    background: var(--kb-white);
    color: var(--kb-indigo);
  }
  .kb-mobile > ul > li > a {
    display: block;
    padding: var(--kb-space-3) 0;
    border-bottom: 1px solid var(--kb-border);
    font-size: 18px;
    line-height: 28px;
    text-decoration: none;
  }
  .kb-mobile .kb-menu__group {
    padding: var(--kb-space-3) 0;
    border-bottom: 1px solid var(--kb-border);
  }
  .kb-mobile .kb-menu__group > p {
    padding: 0;
  }
  .kb-mobile .kb-menu__group a {
    margin: 0 calc(-1 * var(--kb-space-2));
    padding: var(--kb-space-2);
  }
  .kb-mobile .kb-button {
    display: block;
    margin-top: var(--kb-space-4);
  }
  .kb-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== 1b. Knowledge base only ===== */

/* HubSpot's own "Gå til innhold" (a.header__skip in its hidden header) was a second, invisible tab stop: its
   :focus rule moves it to the corner of a header that is not shown. Ours (.kb-skip) does the same job. */
html body a.header__skip {
  display: none !important;
}
/* The skip target takes focus (kb-site.js gives it tabindex=-1) so the next Tab starts in the content; it is a
   whole page region, not a control, so no ring. */
html body main#main-content:focus {
  outline: none;
}

/* HubSpot's theme styles bare elements; inside our parts everything sizes like the theme's Tailwind base. */
.kb-header,
.kb-help,
.kb-footer,
.kb-skip {
  box-sizing: border-box;
  font-family: var(--kbs-font);
}
.kb-header *,
.kb-help *,
.kb-footer * {
  box-sizing: border-box;
}
.kb-header img,
.kb-footer img {
  max-width: 100%;
  height: auto;
}
/* HubSpot's theme gives every link its own font and line height; ours inherit, as in the theme. */
.kb-header :where(a, button),
.kb-footer :where(a),
.kb-help :where(a) {
  font-family: inherit;
  line-height: inherit;
}
html body .kb-header :is(h2, p, ul, li),
html body .kb-footer :is(h2, p, ul, li) {
  font-family: var(--kb-font);
}

/* The brand link is never underlined, in any state. */
html body .kb-header a.kb-header__brand,
html body .kb-header a.kb-header__brand:is(:hover, :focus, :active, :visited),
html body .kb-header a.kb-header__brand span {
  text-decoration: none;
}

/* The search field in the bar: the theme's link box, holding a real field that submits to the knowledge
   base search (q, type=KNOWLEDGE_ARTICLE, groupId, as the theme's front page search does). */
html body .kb-header form.kb-header__search {
  margin: 0;
  color: var(--kb-seashell);
}
html body .kb-header form.kb-header__search:focus-within {
  outline: 2px solid var(--kb-seashell);
  outline-offset: 2px;
}
html body .kb-header .kb-header__search input[type='search'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
  font-family: var(--kb-font);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
html body .kb-header .kb-header__search input[type='search']::placeholder {
  color: inherit;
  opacity: 1;
}
html body .kb-header .kb-header__search input[type='search']::-webkit-search-cancel-button {
  filter: invert(1);
}

/* HubSpot's search band goes: the bar has the search. It stays where it is the page's own search: the
   knowledge base home (where the bar, like on the theme's front page, has no field and no Søk button) and the
   search results page under 1121 px, where the field in the bar has become the Søk button. */
body:has(.kb-header__search) .kb-body-wrapper:not(:has(.hs-kb-home-list)):not(:has(.hs-kb-search-results)) .hs-kb-search-input-wrapper {
  display: none;
}
body:has(.hs-kb-home-list) .kb-header .kb-header__search,
body:has(.hs-kb-home-list) .kb-header__nav .kb-show-md {
  display: none !important;
}
@media (min-width: 1121px) {
  body:has(.kb-header__search) .kb-body-wrapper:has(.hs-kb-search-results) .hs-kb-search-input-wrapper {
    display: none;
  }
}

/* "Søk" under 1121 px (kb-site.js setUpHeaderSearch): opens the bar's own field in a row under the bar, full
   width, with "Lukk" in it. The field's text is 16 px there so phones do not zoom in on it. */
.kb-header__search-close {
  display: none;
}
@media (max-width: 1120px) {
  .kb-header.kb-header--search-open .kb-header__inner {
    flex-wrap: wrap;
    row-gap: var(--kb-space-3);
  }
  .kb-header.kb-header--search-open .kb-header__start {
    display: contents;
  }
  html body .kb-header.kb-header--search-open form.kb-header__search {
    box-sizing: border-box;
    display: flex;
    order: 3;
    flex: 1 0 100%;
    gap: var(--kb-space-3);
    width: 100%;
    min-height: 48px;
    padding: 4px 4px 4px var(--kb-space-3);
    border-color: var(--kb-seashell);
  }
  html body .kb-header.kb-header--search-open .kb-header__search input[type='search'] {
    height: 24px;
    font-size: 16px;
    line-height: 24px;
  }
  html body .kb-header.kb-header--search-open .kb-header__search-close {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 var(--kb-space-2);
    border: 0;
    border-radius: var(--kb-radius-sm);
    background: none;
    color: var(--kb-seashell);
    font-family: var(--kb-font);
    font-size: 14px;
    line-height: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  html body .kb-header .kb-header__search-close:focus-visible {
    outline: 2px solid var(--kb-seashell);
    outline-offset: -2px;
  }
  /* Open: the button steps back to an outline, the field below is the thing to use. */
  .kb-header .kb-header__nav .kb-show-md[aria-expanded='true'] {
    background-color: transparent;
    color: var(--kb-seashell);
    box-shadow: inset 0 0 0 1px var(--kb-seashell);
  }
}

/* Contact block above the footer, the target of "Kontakt support". Its button is help.css's .kb-button,
   which reads the theme's spacing tokens. */
.kb-help {
  --kb-space-1: 4px;
  --kb-space-2: 8px;
  --kb-space-3: 16px;
  --kb-space-4: 24px;
  /* .kb-container's side padding. Without it the box ran 48 px past the page column on each side. */
  --kb-space-6: 48px;
  --kb-radius-sm: 5px;
  padding: 64px 0;
  background-color: var(--kbs-seashell);
  color: var(--kbs-indigo);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
.kb-help :is(p, h2) {
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-family: var(--kbs-font);
}
.kb-help :focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}
.kb-help__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding: 32px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
}
.kb-help h2 {
  font-size: 24px;
  line-height: 34px;
  color: var(--kbs-indigo);
  text-wrap: balance;
}
.kb-help p {
  margin-top: 4px;
  color: var(--kbs-text);
}
.kb-help__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.kb-help .kb-button--dark {
  background-color: var(--kbs-indigo);
  color: var(--kbs-seashell);
}
/* The knowledge base's own column has 24 px sides from 767 px down (the header keeps 48 px to 641 px). */
@media (max-width: 767px) {
  .kb-help {
    --kb-space-6: 24px;
  }
}
@media (max-width: 640px) {
  .kb-help {
    padding: 48px 0;
  }
  .kb-help__row {
    padding: 24px;
  }
}

/* ===== 2. HubSpot's knowledge base page ===== */
body .kb-body-wrapper {
  background-color: var(--kbs-seashell);
  color: var(--kbs-indigo);
  font-family: var(--kbs-font);
  -webkit-font-smoothing: antialiased;
}
body .kb-body-wrapper main {
  padding-bottom: 0;
}

/* Search band: continues the indigo header. On the front page the label is
   the page title; elsewhere it is read by screen readers only. */
body .kb-body-wrapper .hs-kb-search-input-wrapper {
  position: relative;
  z-index: 10;
  padding: 0 48px 32px;
  background-color: var(--kbs-indigo);
}
body .kb-body-wrapper #hs_cos_wrapper_hs_kb-search-input-module {
  max-width: 1184px;
  margin: 0 auto;
}
body .kb-body-wrapper .hs-search-field .hs-search-field__bar {
  max-width: 720px;
  margin: 0;
}
/* HubSpot centres the field; inside pages it lines up with the page column. */
body .kb-body-wrapper .hs-search-field {
  justify-content: flex-start;
}
body .kb-body-wrapper:has(.hs-kb-home-list) .hs-search-field {
  justify-content: center;
}
body .kb-body-wrapper .hs-search-field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
body .kb-body-wrapper:has(.hs-kb-home-list) .hs-kb-search-input-wrapper {
  padding-top: 32px;
  padding-bottom: 64px;
}
body .kb-body-wrapper:has(.hs-kb-home-list) .hs-search-field__label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  margin: 0 0 24px;
  font-family: var(--kbs-font);
  font-size: 40px;
  line-height: 50px;
  font-weight: 400;
  color: var(--kbs-seashell);
}
body .kb-body-wrapper .hs-search-field__input {
  box-sizing: border-box;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--kbs-radius-sm);
  background-color: var(--kbs-white);
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-search-field__input::placeholder {
  color: var(--kbs-indigo-70);
  opacity: 1;
}
body .kb-body-wrapper .hs-search-field__input:focus-visible {
  outline: 2px solid var(--kbs-seashell);
  outline-offset: 2px;
}
/* The old snippet hid the search button too (blue on indigo is off-kit); Enter submits the form. */
body .kb-body-wrapper .hs-search-field__button {
  display: none !important;
}
body .kb-body-wrapper .hs-search-field__suggestions-container,
body .kb-body-wrapper #autocomplete-results {
  z-index: 30;
}
body .kb-body-wrapper .hs-search-field--open .hs-search-field__suggestions {
  border-radius: var(--kbs-radius-sm);
}
body .kb-body-wrapper .hs-search-field__suggestions a {
  text-decoration: none;
}

/* Page width: one 1184 px column like the header, sidebar 224 px, text 720 px. */
body .kb-body-wrapper .hs-kb-content-wrapper--responsive-spacing {
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 0;
}
body .kb-body-wrapper .hs-kb-home-list {
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 0;
}

/* Breadcrumb: small, muted, slash between items. */
body .kb-body-wrapper .hs-kb-breadcrumb-container {
  margin: 0 0 24px;
}
body .kb-body-wrapper .hs-kb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .kb-body-wrapper .hs-kb-breadcrumb_item {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .hs-kb-breadcrumb_item::after {
  content: none;
}
body .kb-body-wrapper .hs-kb-breadcrumb_item + .hs-kb-breadcrumb_item::before {
  content: '/';
  margin-right: 8px;
}
body .kb-body-wrapper .hs-kb-breadcrumb_item a {
  padding: 0;
  font-family: var(--kbs-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
  text-decoration: none;
}
body .kb-body-wrapper .hs-kb-breadcrumb_item a:hover {
  color: var(--kbs-indigo);
  text-decoration: underline;
}

/* Sidebar and content columns. HubSpot lays them out with row-reverse, which
   pushes a narrower text column to the far right; on wide screens the sidebar
   is ordered first instead. HubSpot's own stacking on phones is left alone. */
body .kb-body-wrapper aside.hs-kb-sidebar,
body .kb-body-wrapper .hs-kb-content {
  border: 0;
}
body .kb-body-wrapper .hs-kb-content {
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
}
body .kb-body-wrapper #hs_focus_mode {
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar {
    flex-direction: row;
    justify-content: flex-start;
    gap: 48px;
  }
  body .kb-body-wrapper aside.hs-kb-sidebar {
    order: -1;
    flex: 0 0 224px;
    width: 224px;
    max-width: 224px;
    padding: 0;
  }
  body .kb-body-wrapper .hs-kb-content {
    flex: 1 1 auto;
    max-width: 720px;
  }
}

/* Sidebar: plain list, the current page on a white chip. */
body .kb-body-wrapper .hs-kb-category_accordion_nav_list {
  margin: 0;
  padding: 0;
  background: none;
}
body .kb-body-wrapper .hs-kb-category_accordion_nav_list_item {
  margin: 0;
  background: none;
}
body .kb-body-wrapper .hs-kb-category_accordion_nav_list_item + .hs-kb-category_accordion_nav_list_item {
  margin-top: 4px;
}
body .kb-body-wrapper .hs-kb-category-accordion_link {
  padding: 4px 8px;
  border-radius: var(--kbs-radius-sm);
  background: none;
  font-family: var(--kbs-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo);
  text-decoration: none;
}
body .kb-body-wrapper .hs-kb-category-accordion_link:hover {
  text-decoration: underline;
}
body .kb-body-wrapper .hs-kb-anchor_toggle,
body .kb-body-wrapper .hs-kb-anchor_toggle--active,
body .kb-body-wrapper .hs-kb-category_accordion_nav_list_item--has-children,
body .kb-body-wrapper .hs-kb-category_accordion_nav_list_item .hs-kb-category_accordion_nav_list {
  background: none;
}
/* HubSpot puts the --active class on the <li> as well; only the link gets the chip. */
body .kb-body-wrapper li.hs-kb-category-accordion_link--active {
  background: none;
}
body .kb-body-wrapper a.hs-kb-category-accordion_link--active {
  background-color: var(--kbs-white);
  font-weight: 400;
}
body .kb-body-wrapper .hs-kb-category_accordion_nav_list .hs-kb-category_accordion_nav_list {
  margin: 4px 0 8px 8px;
}

/* Article page: date, title and text in the web-17 type roles. */
body .kb-body-wrapper article.knowledgebase-post {
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 26px;
  color: var(--kbs-text);
}
body .kb-body-wrapper article.knowledgebase-post .hs-search-hidden time {
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper article.knowledgebase-post h1 {
  margin: 8px 0 16px;
  font-family: var(--kbs-font);
  font-size: 40px;
  line-height: 50px;
  font-weight: 400;
  color: var(--kbs-indigo);
  text-wrap: pretty;
}
body .kb-body-wrapper article.knowledgebase-post h2:empty,
body .kb-body-wrapper article.knowledgebase-post h2[hidden] {
  display: none;
}
body .kb-body-wrapper article.knowledgebase-post h2 {
  margin: 48px 0 16px;
  font-family: var(--kbs-font);
  font-size: 24px;
  line-height: 34px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper article.knowledgebase-post h3 {
  margin: 32px 0 8px;
  font-family: var(--kbs-font);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper article.knowledgebase-post h4 {
  margin: 24px 0 8px;
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper article.knowledgebase-post :is(p, li) {
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 26px;
}
body .kb-body-wrapper article.knowledgebase-post p {
  margin: 0 0 16px;
  color: var(--kbs-text);
}
body .kb-body-wrapper article.knowledgebase-post :is(strong, b) {
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper article.knowledgebase-post :is(p, li, td) a:not(.kb-button) {
  font-family: inherit;
  color: var(--kbs-indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper article.knowledgebase-post :is(p, li, td) a:not(.kb-button):hover {
  color: var(--kbs-indigo);
  text-decoration-thickness: 2px;
}
body .kb-body-wrapper article.knowledgebase-post :is(p, li) img {
  max-width: 100%;
  height: auto;
  border-radius: var(--kbs-radius-md);
}
body .kb-body-wrapper article.knowledgebase-post table {
  max-width: 100%;
  border-collapse: collapse;
}
body .kb-body-wrapper article.knowledgebase-post :is(td, th) {
  padding: 8px;
  border: 1px solid var(--kbs-border);
  font-size: 14px;
  line-height: 20px;
  vertical-align: top;
}
/* Wide tables and embeds scroll inside the column instead of the page. */
body .kb-body-wrapper article.knowledgebase-post .hs_cos_wrapper_type_inline_richtext_field {
  overflow-x: auto;
}
/* kb-site.js puts each table in .kb-scrolltable > .kb-scrolltable__box: the box scrolls, the frame fades out the
   side that has more (--more-end / --more-start, set from the scroll position), so a phone shows there is more. */
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable {
  position: relative;
}
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable__box {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
/* Inside the box: the text block around it clips anything outside (its own overflow-x). */
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable__box:focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: -2px;
}
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable::before,
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable::before {
  left: 0;
  background: linear-gradient(to right, var(--kbs-seashell), rgba(249, 240, 238, 0));
}
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable::after {
  right: 0;
  background: linear-gradient(to left, var(--kbs-seashell) 8px, rgba(249, 240, 238, 0));
}
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable--more-start::before,
body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable--more-end::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable::before,
  body .kb-body-wrapper article.knowledgebase-post .kb-scrolltable::after {
    transition: none;
  }
}
body .kb-body-wrapper article.knowledgebase-post iframe {
  max-width: 100%;
}

/* Feedback: HubSpot's widget, restyled only. Its parts show and hide with inline display: inherit / none, so the
   section is a flex container and each visible part inherits flex from it: the question and Yes/No sit on one row. */
body .kb-body-wrapper .hs-kb-feedback {
  margin-top: 32px;
  padding: 0;
  border: 0;
}
body .kb-body-wrapper #ka-feedback-form-container,
body .kb-body-wrapper #ka-feedback-form {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
body .kb-body-wrapper #ka-feedback-form {
  padding: 16px 24px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
}
body .kb-body-wrapper #ka-feedback-form section {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
}
body .kb-body-wrapper #ka-feedback-form section > div {
  margin: 0;
  padding: 0;
  border: 0;
}
/* HubSpot draws the two rules and 30 px padding on this wrapper with a two-id selector. */
body .kb-body-wrapper #ka-feedback-form #ka-feedback-rating-input-wrapper {
  padding: 0;
  border: 0;
}
body .kb-body-wrapper #ka-feedback-form :is(#ka-feedback-rating-btn-yes, #ka-feedback-rating-btn-no) {
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 22px;
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-rating-button span {
  font: inherit;
  color: inherit;
}
body .kb-body-wrapper #ka-feedback-rating-input-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-rating-question,
body .kb-body-wrapper #ka-feedback-form .ka-feedback-rating-buttons {
  margin: 0;
  padding: 0;
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-rating-buttons {
  display: flex;
  gap: 8px;
}
body .kb-body-wrapper #ka-feedback-comment-wrapper,
body .kb-body-wrapper #ka-feedback-follow-up-form-wrapper {
  flex-direction: column;
  gap: 16px;
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-double-padding-top,
body .kb-body-wrapper #ka-feedback-form .ka-feedback-padding-top {
  padding-top: 0;
}
body .kb-body-wrapper #ka-feedback-email-submitted-message:empty,
body .kb-body-wrapper #ka-feedback-email-submitted-message:has(> span:empty) {
  display: none;
}
body .kb-body-wrapper #ka-feedback-form :is(.ka-feedback-label, .ka-feedback-label-light) {
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 26px;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-rating-button,
body .kb-body-wrapper #ka-feedback-form .ka-feedback-submit-button {
  min-height: 40px;
  padding: 8px 24px;
  border: 1px solid var(--kbs-border);
  border-radius: var(--kbs-radius-sm);
  background: var(--kbs-white);
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 22px;
  color: var(--kbs-indigo);
  cursor: pointer;
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-rating-button:hover,
body .kb-body-wrapper #ka-feedback-form .ka-feedback-submit-button:hover {
  text-decoration: underline;
}
body .kb-body-wrapper #ka-feedback-form .ka-feedback-submit-button {
  border-color: var(--kbs-indigo);
  background: var(--kbs-indigo);
  color: var(--kbs-seashell);
}
body .kb-body-wrapper #ka-feedback-form :is(textarea, input[type='email']) {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--kbs-border);
  border-radius: var(--kbs-radius-sm);
  font-family: var(--kbs-font);
  font-size: 16px;
}
body .kb-body-wrapper #ka-feedback-form :focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}

/* Related articles: white cards in a grid. */
body .kb-body-wrapper .hs-kb-related-articles {
  margin-top: 48px;
  padding: 0;
  border: 0;
}
body .kb-body-wrapper #kb-related-articles h3 {
  margin: 0 0 16px;
  font-family: var(--kbs-font);
  font-size: 24px;
  line-height: 34px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper #kb-related-articles ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .kb-body-wrapper #kb-related-articles li {
  position: relative;
  margin: 0;
  padding: 16px 24px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  list-style: none;
}
body .kb-body-wrapper #kb-related-articles li:focus-within {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}
body .kb-body-wrapper #kb-related-articles a {
  display: inline;
  padding: 0;
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 26px;
  color: var(--kbs-indigo);
  text-decoration: none;
}
body .kb-body-wrapper #kb-related-articles a::after {
  content: '';
  position: absolute;
  inset: 0;
}
body .kb-body-wrapper #kb-related-articles a:focus-visible {
  outline: none;
}
body .kb-body-wrapper #kb-related-articles li:hover a {
  text-decoration: underline;
}

/* Front page: category tiles as white cards. */
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__category {
  border: 0;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  box-shadow: none;
}
body .kb-body-wrapper .hs-kb-home-list__category-link {
  font-family: var(--kbs-font);
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-kb-home-list__category-link:hover {
  text-decoration: underline;
}
body .kb-body-wrapper .hs-kb-home-list :is(h2, h3) {
  font-family: var(--kbs-font);
  font-weight: 400;
  color: var(--kbs-indigo);
}

/* Compact tiles: icon left, title and one short line, about 108 px tall instead of HubSpot's 294 px.
   HubSpot sets min-height and centring inline-ish, so these need !important. */
body .kb-body-wrapper .hs-kb-home-list.hs-kb-home-list--tiles {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
}
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__category {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex: none !important;
}
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__category-link {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 28px 1fr;
  column-gap: 16px;
  align-items: center;
  height: 100%;
  min-height: 0 !important;
  padding: 20px 24px !important;
  text-align: left !important;
}
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__icon {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
}
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__icon :is(span, svg, img) {
  display: block;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  margin: 0 !important;
  object-fit: contain;
}
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__text {
  margin: 0 !important;
  text-align: left !important;
}
body .kb-body-wrapper .hs-kb-home-list--tiles :is(h2, h3) {
  margin: 0 0 4px !important;
  font-size: 18px !important;
  line-height: 24px !important;
}
body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__text > :not(h2, h3) {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: var(--kbs-indigo-70);
}
@media (max-width: 640px) {
  body .kb-body-wrapper .hs-kb-home-list.hs-kb-home-list--tiles {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body .kb-body-wrapper .hs-kb-home-list--tiles .hs-kb-home-list__category-link {
    padding: 16px !important;
  }
}

/* Category pages and search results */
body .kb-body-wrapper .hs-kb-category-listing h1,
body .kb-body-wrapper .hs-kb-content > h1 {
  margin: 0 0 16px;
  font-family: var(--kbs-font);
  font-size: 40px;
  line-height: 50px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-kb-category-listing p,
body .kb-body-wrapper .hs-kb-content > p {
  font-size: 18px;
  line-height: 28px;
  color: var(--kbs-text);
}
body .kb-body-wrapper .hs-kb-subcategory-listing h2,
body .kb-body-wrapper .hs-search-results-title {
  font-family: var(--kbs-font);
  font-size: 24px;
  line-height: 34px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-kb-category-article-list {
  padding: 0 24px;
  border: 0;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
}
body .kb-body-wrapper .hs-kb-category-article-list > li {
  margin: 0;
  padding: 12px 0;
  border: 0;
}
body .kb-body-wrapper .hs-kb-category-article-list > li + li {
  border-top: 1px solid var(--kbs-border);
}
body .kb-body-wrapper :is(.hs-kb-category-listing, .hs-kb-subcategory-listing) {
  margin-bottom: 48px;
  padding-bottom: 0;
  border-bottom: 0;
}
body .kb-body-wrapper .hs-kb-category-article-list a {
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 26px;
  color: var(--kbs-indigo);
  text-decoration: none;
}
body .kb-body-wrapper .hs-kb-category-article-list a:hover {
  text-decoration: underline;
}
body .kb-body-wrapper .hs-kb-category-article-list__toggle {
  font-family: var(--kbs-font);
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-search-results__message {
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .hs-search-results__listing {
  margin: 16px 0;
  padding: 0;
}
body .kb-body-wrapper .hs-search-results__listing li {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--kbs-border);
}
body .kb-body-wrapper .hs-search-results__title {
  font-family: var(--kbs-font);
  font-size: 18px;
  line-height: 28px;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-search-results__description {
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-text);
}
body .kb-body-wrapper .hs-search-results__pagination__link {
  font-family: var(--kbs-font);
  color: var(--kbs-indigo);
}
/* Matches from the Finance Manager and SweBase guides (kb-site.js setUpGuideSearch), above HubSpot's list. */
body .kb-body-wrapper .kb-guide-hits {
  margin: 16px 0 24px;
  padding: 20px 24px 8px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
}
body .kb-body-wrapper .kb-guide-hits h2 {
  margin: 0;
  font-family: var(--kbs-font);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .kb-guide-hits__lead {
  margin: 2px 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .kb-guide-hits__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
body .kb-body-wrapper .kb-guide-hits__item {
  margin: 0;
  padding: 12px 0;
}
body .kb-body-wrapper .kb-guide-hits__item + .kb-guide-hits__item {
  border-top: 1px solid var(--kbs-border);
}
body .kb-body-wrapper .kb-guide-hits__item h3 {
  margin: 0;
  font-family: var(--kbs-font);
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
}
/* The theme sets its own size on links (22 px here): the title is the h3's 17 px, as the articles' titles below. */
body .kb-body-wrapper .kb-guide-hits__item h3 a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--kbs-indigo);
  text-decoration: none;
}
body .kb-body-wrapper .kb-guide-hits__item h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper .kb-guide-hits__meta {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .kb-guide-hits__snippet {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-text);
  overflow-wrap: anywhere;
}
body .kb-body-wrapper .kb-guide-hits__more {
  margin: 4px 0 12px;
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--kbs-indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 640px) {
  body .kb-body-wrapper .kb-guide-hits {
    padding: 16px 16px 4px;
  }
}
/* HubSpot's pagination row is wider than a phone; let it wrap. */
body .kb-body-wrapper .hs-search-results__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 100%;
}
body .kb-body-wrapper .hs-search-results__pagination * {
  max-width: 100%;
}

@media (max-width: 1000px) {
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar {
    gap: 32px;
  }
  body .kb-body-wrapper .hs-kb-content {
    max-width: none;
  }
}
/* HubSpot stacks the sidebar under the content on small screens. */
@media (max-width: 767px) {
  body .kb-body-wrapper .hs-kb-search-input-wrapper {
    padding: 0 24px 24px;
  }
  body .kb-body-wrapper:has(.hs-kb-home-list) .hs-kb-search-input-wrapper {
    padding-top: 16px;
    padding-bottom: 48px;
  }
  body .kb-body-wrapper:has(.hs-kb-home-list) .hs-search-field__label {
    font-size: 32px;
    line-height: 40px;
  }
  body .kb-body-wrapper .hs-kb-content-wrapper--responsive-spacing,
  body .kb-body-wrapper .hs-kb-home-list {
    padding: 32px 24px 0;
  }
  body .kb-body-wrapper aside.hs-kb-sidebar {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }
  body .kb-body-wrapper article.knowledgebase-post h1,
  body .kb-body-wrapper .hs-kb-category-listing h1,
  body .kb-body-wrapper .hs-kb-content > h1 {
    font-size: 32px;
    line-height: 40px;
  }
  body .kb-body-wrapper #kb-related-articles ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* HubSpot editor callouts (hs-callout-type-tip/note/caution/warning, about 20 in the articles): HubSpot draws
   them with a 5 px left stripe. Restyled as our .kb-callout, a surface with a radius and no left border; the
   type only tints the surface. */
body .kb-body-wrapper .knowledgebase-post :is([class^='hs-callout-type-'], [class*=' hs-callout-type-']) {
  box-sizing: border-box;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  color: var(--kbs-text);
}
body .kb-body-wrapper .knowledgebase-post .hs-callout-type-note {
  border-color: var(--kbs-border);
}
body .kb-body-wrapper .knowledgebase-post :is(.hs-callout-type-caution, .hs-callout-type-warning) {
  border-color: rgba(251, 140, 175, 0.55);
  background-color: #fff7f5;
}
body .kb-body-wrapper .knowledgebase-post :is([class^='hs-callout-type-'], [class*=' hs-callout-type-']) > :last-child {
  margin-bottom: 0;
}
/* Quotes (the editor's quote button, used as notes, e.g. "Heads up:"): HubSpot's theme draws a 3 px bar on the
   left with blockquote::before. Same surface as a note callout instead. */
body .kb-body-wrapper .knowledgebase-post blockquote {
  box-sizing: border-box;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--kbs-border);
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  color: var(--kbs-text);
}
body .kb-body-wrapper .knowledgebase-post blockquote::before {
  content: none;
  display: none;
}
body .kb-body-wrapper .knowledgebase-post blockquote > :first-child {
  margin-top: 0;
}
body .kb-body-wrapper .knowledgebase-post blockquote > :last-child {
  margin-bottom: 0;
}

/* ===== Article page layout (v3): topic sidebar, text, "On this page" =====
   kb-site.js fills the sidebar (.kb-topicnav, from kb-topics-v3.json) and the right column (.kb-toc). The columns
   are set here from the start, so nothing moves when the script fills them. HubSpot's category menu and its
   category breadcrumb point at the old categories, so both are hidden on article pages; the script puts the
   article's topic in their place (or a link to all topics if the data cannot be loaded). */
body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) aside.hs-kb-sidebar > :not(.kb-topicnav) {
  display: none !important;
}
body .kb-body-wrapper .hs-kb-content-wrapper--responsive-spacing:has(article.knowledgebase-post) .hs-kb-breadcrumb_item:nth-child(n + 2):not(.kb-crumb) {
  display: none;
}
body .kb-body-wrapper .kb-crumb--current span {
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper article.knowledgebase-post .hs_cos_wrapper_type_inline_richtext_field :is(h2, h3) {
  scroll-margin-top: 24px;
}
body .kb-body-wrapper article.knowledgebase-post .hs-search-hidden time {
  display: block;
}

/* v9: text and "On this page" only. The topic sidebar is gone (the breadcrumb names the topic, and a link to it
   sits by "Related articles"), so the text and its list centre in the page. */
body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) aside.hs-kb-sidebar {
  display: none !important;
}
@media (min-width: 1000px) {
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) {
    display: grid;
    grid-template-columns: minmax(0, 720px) 200px;
    justify-content: center;
    align-items: start;
    gap: 0 96px;
  }
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) .hs-kb-content {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    max-width: none;
  }
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) .kb-toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
  }
  /* The breadcrumb lines up with the text. */
  body .kb-body-wrapper .hs-kb-content-wrapper--responsive-spacing:has(article.knowledgebase-post) .hs-kb-breadcrumb-container {
    max-width: 1016px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
  }
}

/* On phones the title follows right after, so the breadcrumb stops at the topic. */
@media (max-width: 767px) {
  body .kb-body-wrapper .kb-crumb--current {
    display: none;
  }
}

/* Under 1000 px: one column. The side list is replaced by the folded list under the title. */
@media (max-width: 999px) {
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(article.knowledgebase-post) .hs-kb-content {
    grid-row: 1;
    max-width: 720px;
  }
  body .kb-body-wrapper .kb-toc {
    display: none;
  }
}
@media (min-width: 1000px) {
  body .kb-body-wrapper .kb-toc-inline {
    display: none;
  }
}

/* Topic sidebar (web-17 kb-sidenav) */
body .kb-body-wrapper .kb-topicnav {
  font-family: var(--kbs-font);
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .kb-topicnav :is(p, ul, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}
body .kb-body-wrapper .kb-topicnav p {
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .kb-topicnav a {
  color: var(--kbs-indigo);
  text-decoration: none;
}
body .kb-body-wrapper .kb-topicnav a:hover {
  text-decoration: underline;
}
body .kb-body-wrapper .kb-topicnav .kb-topicnav__title {
  display: block;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 28px;
}
body .kb-body-wrapper .kb-topicnav .kb-topicnav__group {
  margin-bottom: 4px;
}
body .kb-body-wrapper .kb-topicnav li + li {
  margin-top: 4px;
}
body .kb-body-wrapper .kb-topicnav li a {
  display: block;
  margin-left: -8px;
  padding: 4px 8px;
  border-radius: var(--kbs-radius-sm);
  font-size: 14px;
  line-height: 20px;
}
body .kb-body-wrapper .kb-topicnav li a[aria-current] {
  background-color: var(--kbs-white);
}
body .kb-body-wrapper .kb-topicnav .kb-topicnav__all {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper .kb-topicnav .kb-topicnav__also {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--kbs-border);
}
body .kb-body-wrapper .kb-topicnav__also a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper .kb-topicnav :focus-visible,
body .kb-body-wrapper .kb-toc :focus-visible,
body .kb-body-wrapper .kb-toc-inline :focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}

/* "On this page" (web-17 kb-toc) */
body .kb-body-wrapper .kb-toc {
  font-family: var(--kbs-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .kb-toc :is(p, ol, li),
body .kb-body-wrapper .kb-toc-inline :is(ol, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}
body .kb-body-wrapper .kb-toc__title {
  margin-bottom: 12px;
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .kb-toc__list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
  text-decoration: none;
}
body .kb-body-wrapper .kb-toc__list a:hover {
  color: var(--kbs-indigo);
  text-decoration: underline;
}
/* An h3 under an h2 */
body .kb-body-wrapper .kb-toc__list .kb-toc__sub a {
  padding-left: 20px;
}
body .kb-body-wrapper .kb-toc__list a[aria-current='true'] {
  color: var(--kbs-indigo);
  font-weight: 500;
}
body .kb-body-wrapper .kb-toc__help {
  color: var(--kbs-indigo-70);
}
body .kb-body-wrapper .kb-toc__list + .kb-toc__help {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--kbs-border);
}
body .kb-body-wrapper .kb-toc__help p + p {
  margin-top: 4px;
}
body .kb-body-wrapper .kb-toc__help a {
  color: var(--kbs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper .kb-toc__help a:hover {
  text-decoration-thickness: 2px;
}

/* Folded "On this page" under the title on small screens */
body .kb-body-wrapper .kb-toc-inline {
  margin: 0 0 24px;
  border-top: 1px solid var(--kbs-border);
  border-bottom: 1px solid var(--kbs-border);
  font-family: var(--kbs-font);
}
body .kb-body-wrapper .kb-toc-inline summary {
  padding: 12px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo);
  cursor: pointer;
}
body .kb-body-wrapper .kb-toc-inline .kb-toc__list {
  padding-bottom: 12px;
}
body .kb-body-wrapper .kb-toc-inline .kb-toc__list a {
  margin-left: 0;
}
body .kb-body-wrapper .kb-toc-inline .kb-toc__list .kb-toc__sub a {
  padding-left: 20px;
}

/* ===== 2b. Knowledge base home: "Tema" and "Produkter" (v5) =====
   kb-site.js builds both from kb-topics-v5.json and puts them before HubSpot's category tiles, then hides the
   tiles. Until then the tiles keep their place, invisible, so nothing below them moves twice; if the script never
   gets there they show after 3 s, and at once when the file cannot be read (kb-home-failed). */
@keyframes kb-home-reveal {
  to {
    visibility: visible;
  }
}
body .kb-body-wrapper .hs-kb-home-list--tiles {
  visibility: hidden;
  animation: kb-home-reveal 0s 3s forwards;
}
html.kb-home-failed body .kb-body-wrapper .hs-kb-home-list--tiles {
  visibility: visible;
  animation: none;
}
html.kb-home-ready body .kb-body-wrapper .hs-kb-home-list {
  display: none !important;
}
/* While kb-topics-v5.json loads (about half a second) the tiles' box is shorter than "Tema" and "Produkter" will be,
   so the contact block and footer showed early and then jumped down, and a #produkt-… link pushed the footer
   off-screen as it opened (layout shift 0.05 on desktop, 0.5–0.8 with a product hash). The box the tiles sit in
   reserves the built home's height instead: the smallest height measured in each layout band with the six topics
   (re-measure when topics are added), so the space never shrinks once the home is in. kb-js is set by
   kb-site.js, so without the script nothing is reserved. */
html.kb-js:not(.kb-home-ready):not(.kb-home-failed) body .kb-body-wrapper :has(> .hs-kb-home-list--tiles) {
  min-height: 958px;
}
@media (max-width: 1120px) {
  html.kb-js:not(.kb-home-ready):not(.kb-home-failed) body .kb-body-wrapper :has(> .hs-kb-home-list--tiles) {
    min-height: 1156px;
  }
}
@media (max-width: 900px) {
  html.kb-js:not(.kb-home-ready):not(.kb-home-failed) body .kb-body-wrapper :has(> .hs-kb-home-list--tiles) {
    min-height: 1399px;
  }
}
@media (max-width: 767px) {
  html.kb-js:not(.kb-home-ready):not(.kb-home-failed) body .kb-body-wrapper :has(> .hs-kb-home-list--tiles) {
    min-height: 1379px;
  }
}
@media (max-width: 640px) {
  html.kb-js:not(.kb-home-ready):not(.kb-home-failed) body .kb-body-wrapper :has(> .hs-kb-home-list--tiles) {
    min-height: 1616px;
  }
}

.kb-home {
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 16px;
  font-family: var(--kbs-font);
  font-weight: 400;
  color: var(--kbs-indigo);
  -webkit-font-smoothing: antialiased;
}
.kb-home *,
.kb-home *::before,
.kb-home *::after {
  box-sizing: border-box;
}
.kb-home :where(h2, h3, h4, p, ul, ol, li) {
  margin: 0;
  padding: 0;
  font-family: var(--kbs-font);
  font-weight: 400;
  color: inherit;
}
.kb-home :where(ul, ol) {
  list-style: none;
}
.kb-home :where(a) {
  color: inherit;
}
.kb-home :focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}
.kb-home__section + .kb-home__section {
  margin-top: 56px;
}
.kb-home__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 24px;
}
.kb-home__head h2 {
  font-size: 24px;
  line-height: 34px;
}
.kb-home__lead {
  flex-basis: 100%;
  font-size: 16px;
  line-height: 24px;
  color: var(--kbs-indigo-70);
}
.kb-home .kb-home__more {
  font-size: 16px;
  line-height: 24px;
  color: var(--kbs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-home .kb-home__more:hover {
  text-decoration-thickness: 2px;
}

/* Topic cards: icon, title, one line, article count. The whole card is the link. */
.kb-home__topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.kb-home__topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
}
.kb-home__topic:focus-within {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}
.kb-home__topic :focus-visible {
  outline: none;
}
.kb-home__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-seashell);
}
.kb-home__tile svg {
  display: block;
  width: 28px;
  height: 28px;
}
.kb-home__topic h3 {
  font-size: 20px;
  line-height: 28px;
}
.kb-home__topic h3 a {
  text-decoration: none;
}
.kb-home__topic h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--kbs-radius-md);
}
.kb-home__topic:hover h3 a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-home__topic p {
  font-size: 15px;
  line-height: 22px;
  color: var(--kbs-text);
}
.kb-home__topic .kb-home__count {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}

/* Product cards: the three knowledge base products open their articles below; the two guides are links. */
.kb-home__products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.kb-home__product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-height: 132px;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: var(--kbs-indigo);
  cursor: pointer;
}
.kb-home__product:hover .kb-home__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-home__product[aria-expanded='true'] {
  box-shadow: inset 0 0 0 2px var(--kbs-indigo);
}
.kb-home__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  line-height: 24px;
}
.kb-home__name svg {
  flex: none;
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.kb-home__product[aria-expanded='true'] .kb-home__name svg {
  transform: rotate(180deg);
}
.kb-home__desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-text);
}
.kb-home__kind {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}

/* The open product's articles, grouped by topic. */
.kb-home__panel {
  margin-top: 16px;
  padding: 32px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  scroll-margin-top: 24px;
}
.kb-home__panel[hidden] {
  display: none;
}
.kb-home__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.kb-home__panel-head h3 {
  font-size: 22px;
  line-height: 30px;
}
.kb-home__panel-head h3:focus {
  outline: none;
}
.kb-home__panel-head p {
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
.kb-home__groups {
  columns: 3 280px;
  column-gap: 40px;
}
.kb-home__group {
  break-inside: avoid;
  padding-bottom: 28px;
}
.kb-home__group h4 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 24px;
}
.kb-home__group h4 a {
  text-decoration: none;
}
.kb-home__group h4 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-home__group h4 span {
  color: var(--kbs-indigo-70);
}
.kb-home__group li {
  margin: 0;
  padding: 5px 0;
  font-size: 15px;
  line-height: 22px;
}
.kb-home__group li a {
  color: var(--kbs-blue);
  text-decoration: none;
}
.kb-home__group li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-home__note {
  padding-top: 16px;
  border-top: 1px solid var(--kbs-border);
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-indigo-70);
}
.kb-home__note a {
  color: var(--kbs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1120px) {
  .kb-home__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .kb-home__topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .kb-home {
    padding: 32px 24px 8px;
  }
  .kb-home__section + .kb-home__section {
    margin-top: 40px;
  }
}
@media (max-width: 640px) {
  .kb-home__topics,
  .kb-home__products {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  /* Icon beside the text on phones. */
  .kb-home__topic {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 2px 16px;
    padding: 16px;
  }
  .kb-home__tile {
    grid-row: span 3;
    margin-bottom: 0;
  }
  .kb-home__topic h3 {
    font-size: 18px;
    line-height: 24px;
  }
  .kb-home__topic .kb-home__count {
    padding-top: 2px;
  }
  /* One column: no equal heights, and the open product's articles sit in the same list item. */
  .kb-home__product {
    height: auto;
    min-height: 0;
    padding: 16px;
  }
  .kb-home__product {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 2px 16px;
  }
  .kb-home__product .kb-home__tile {
    grid-row: span 3;
  }
  .kb-home__panel {
    margin-top: 12px;
  }
  .kb-home__panel {
    padding: 20px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kb-home__name svg {
    transition: none;
  }
}

/* ===== 2c. Search results page (v8) =====
   kb-site.js (setUpSearchPage) puts the topics in the side column, the article's topic under each result and an
   empty state in place of HubSpot's "no results" sentences. HubSpot fills the results after the page has loaded;
   until the script has done its part (kb-search-done) the results and the guide box keep out of sight, so the
   page fills in once. If the script stops halfway, everything shows after 6 s; without the script (no kb-js)
   nothing is held back.
   From 768 px the results column is at least 700 px tall from the first paint: the contact block then starts
   below the fold at 1440 x 900 and nothing on screen moves when the results come in (before: 0.1 layout shift
   with results, more on page 2). It stays that tall when the results are short (one result, or the empty state
   without the topics file): releasing it moved the contact block up instead. On phones the contact block is
   below the fold anyway, so the space is only held while loading. */
@keyframes kb-search-reveal {
  to {
    visibility: visible;
  }
}
@keyframes kb-search-release {
  to {
    min-height: 0;
  }
}
@media (min-width: 768px) {
  body .kb-body-wrapper .hs-kb-search-results {
    min-height: 700px;
  }
}
@media (max-width: 767px) {
  body .kb-body-wrapper .hs-kb-search-results:not(.kb-search-done) {
    min-height: 560px;
    animation: kb-search-release 0s 6s forwards;
  }
}
html.kb-js body .kb-body-wrapper .hs-kb-search-results:not(.kb-search-done) :is(.hs-search-results, .kb-guide-hits) {
  visibility: hidden;
  animation: kb-search-reveal 0s 6s forwards;
}

/* Side column: HubSpot's old category menu gives way to the topic list; the menu shows after 4 s only if the
   script never adds the list. */
body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(.hs-kb-search-results) aside.hs-kb-sidebar > :not(.kb-topicnav) {
  visibility: hidden;
  animation: kb-search-reveal 0s 4s forwards;
}
body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(.hs-kb-search-results) aside.hs-kb-sidebar:has(.kb-topicnav) > :not(.kb-topicnav) {
  display: none;
}
body .kb-body-wrapper .kb-topicnav--search .kb-topicnav__kicker {
  margin-bottom: 8px;
}
body .kb-body-wrapper .kb-topicnav--search li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 15px;
  line-height: 20px;
}
body .kb-body-wrapper .kb-topicnav--search li a:hover {
  background-color: var(--kbs-white);
  text-decoration: none;
}
body .kb-body-wrapper .kb-topicnav__icon {
  flex: none;
  display: flex;
  width: 18px;
  height: 18px;
}
body .kb-body-wrapper .kb-topicnav__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
body .kb-body-wrapper .kb-topicnav--search li + li {
  margin-top: 2px;
}
/* The theme pads a bare span in the crumbs (0.8em above and below), which made the row 42 px instead of 20. */
body .kb-body-wrapper .kb-crumb--search span {
  display: inline;
  padding: 0;
  color: var(--kbs-indigo-70);
}

/* Results: one white card with calm dividers, like "I brukerveiledningene" above it. HubSpot's list had a 2 rem
   gap and 16 px padding per row on top of the theme's paragraph margins. The title link covers the row. */
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__message {
  margin: 16px 0 8px;
}
body .kb-body-wrapper .hs-kb-search-results .kb-guide-hits + .hs-search-results .hs-search-results__message {
  margin-top: 0;
}
/* The guide box after the list and its pagination. */
body .kb-body-wrapper .hs-kb-search-results .hs-search-results + .kb-guide-hits {
  margin-top: 8px;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__listing {
  display: block;
  margin: 0 0 24px;
  padding: 4px 24px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
  list-style: none;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__listing li.hs-search-results__listing__item {
  position: relative;
  display: block;
  margin: 0;
  padding: 14px 0;
  border: 0;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__listing li.hs-search-results__listing__item + li {
  border-top: 1px solid var(--kbs-border);
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__listing__item:focus-within {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
  border-radius: var(--kbs-radius-sm);
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__link {
  display: block;
  text-decoration: none;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__link:focus-visible {
  outline: none;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__link::after {
  content: '';
  position: absolute;
  inset: 0;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__title {
  margin: 0;
  font-family: var(--kbs-font);
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__title .hs-search-highlight {
  font-weight: inherit;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__listing__item:hover .hs-search-results__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__category {
  margin: 2px 0 0;
  font-family: var(--kbs-font);
  font-size: 13px;
  line-height: 18px;
  color: var(--kbs-indigo-70);
}
/* HubSpot's old category name stays invisible (its line kept) until the script has put the topic there. */
html.kb-js body .kb-body-wrapper .hs-kb-search-results .hs-search-results__category:not(.kb-result-topic) {
  visibility: hidden;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__description {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  font-family: var(--kbs-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--kbs-text);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__description:empty {
  display: none;
}

/* Pagination: tap-sized links that wrap. One page: no row at all. The first/last links go on phones, and a
   link to the page itself (HubSpot's empty previous/next, its first/last on the first/last page; kb-site.js
   marks them hidden) goes everywhere. */
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination {
  justify-content: center;
  gap: 4px;
  margin: 0 0 8px;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination:not(:has(.hs-search-results__pagination__link--number:not(.hs-search-results__pagination__link--active))) {
  display: none;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--kbs-radius-sm);
  font-family: var(--kbs-font);
  font-size: 15px;
  line-height: 20px;
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .hs-kb-search-results a.hs-search-results__pagination__link:hover {
  background-color: var(--kbs-white);
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination__link--active {
  background-color: var(--kbs-white);
  box-shadow: inset 0 0 0 1px var(--kbs-indigo);
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination__link-icon {
  width: 12px;
  height: 12px;
  margin: 0;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination__link-icon svg {
  width: 12px;
  height: 12px;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination :is(a[href=''], a[hidden]) {
  display: none;
}
body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination__link:focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  body .kb-body-wrapper .hs-kb-search-results .hs-search-results__listing {
    padding: 2px 16px;
  }
  body .kb-body-wrapper .hs-kb-search-results .hs-search-results__description {
    -webkit-line-clamp: 3;
  }
  body .kb-body-wrapper .hs-kb-search-results :is(.hs-search-results__pagination__link--first, .hs-search-results__pagination__link--last) {
    display: none;
  }
  /* Arrows only, so one row holds previous, five page slots and next at 342 px; the links keep their
     aria-label ("Forrige", "Neste"). */
  body .kb-body-wrapper .hs-kb-search-results :is(.hs-search-results__pagination__link--prev, .hs-search-results__pagination__link--next) {
    gap: 0;
    font-size: 0;
  }
  body .kb-body-wrapper .hs-kb-search-results .hs-search-results__pagination {
    gap: 2px;
  }
}

/* No results: HubSpot's sentences stay for screen readers (its box is the live region that announces them); the
   empty state shows in their place. Without guide matches its heading is the page's, so HubSpot's title steps
   aside the same way. */
html.kb-js body .kb-body-wrapper .hs-kb-search-results [class*='no-results'],
html.kb-js body .kb-body-wrapper .hs-kb-search-results.kb-search--empty .hs-search-results-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body .kb-body-wrapper .kb-empty {
  font-family: var(--kbs-font);
  color: var(--kbs-indigo);
}
body .kb-body-wrapper .kb-empty :where(h2, h3, p, ul, li) {
  margin: 0;
  padding: 0;
  font-family: var(--kbs-font);
  font-weight: 400;
  color: inherit;
}
body .kb-body-wrapper .kb-empty :where(ul) {
  list-style: none;
}
body .kb-body-wrapper .kb-empty :where(a) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
body .kb-body-wrapper .kb-empty :focus-visible {
  outline: 2px solid var(--kbs-blue);
  outline-offset: 2px;
}
body .kb-body-wrapper .kb-empty > h2 {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 28px;
  overflow-wrap: anywhere;
}
body .kb-body-wrapper .kb-search--empty .kb-empty > h2 {
  font-size: 24px;
  line-height: 34px;
}
body .kb-body-wrapper .kb-empty__tips li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 24px;
  color: var(--kbs-text);
}
body .kb-body-wrapper .kb-empty__tips li + li {
  margin-top: 6px;
}
body .kb-body-wrapper .kb-empty__tips li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--kbs-pink);
}
/* The one thing to do when the query is a bank code: the topic that explains them. */
body .kb-body-wrapper .kb-empty__code {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: var(--kbs-radius-md);
  background-color: var(--kbs-white);
}
body .kb-body-wrapper .kb-empty__code .kb-home__tile {
  flex: none;
  margin: 0;
}
body .kb-body-wrapper .kb-empty__code p {
  font-size: 16px;
  line-height: 24px;
  color: var(--kbs-text);
}
body .kb-body-wrapper .kb-empty__code a {
  display: inline-block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 26px;
  color: var(--kbs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .kb-body-wrapper .kb-empty__code a:hover {
  text-decoration-thickness: 2px;
}
body .kb-body-wrapper .kb-empty__browse {
  margin-top: 40px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__head {
  margin-bottom: 16px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__head h2 {
  font-size: 20px;
  line-height: 28px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__more {
  font-size: 15px;
  line-height: 22px;
  color: var(--kbs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The text column is 720 px: two columns of compact cards, icon beside the text (the home's phone layout). */
body .kb-body-wrapper .kb-empty__browse .kb-home__topics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__topic {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  gap: 2px 16px;
  padding: 16px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__tile {
  grid-row: span 3;
  margin-bottom: 0;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__topic h3 {
  font-size: 18px;
  line-height: 24px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__topic p {
  font-size: 14px;
  line-height: 20px;
}
body .kb-body-wrapper .kb-empty__browse .kb-home__topic .kb-home__count {
  padding-top: 2px;
  font-size: 13px;
  line-height: 18px;
}
@media (max-width: 640px) {
  body .kb-body-wrapper .kb-empty__browse .kb-home__topics {
    grid-template-columns: minmax(0, 1fr);
  }
  body .kb-body-wrapper .kb-empty__code {
    align-items: flex-start;
    padding: 16px;
  }
}
/* On phones the side column comes after the text: with the topic cards above, the list would say it twice. */
@media (max-width: 767px) {
  body .kb-body-wrapper .hs-kb-content-wrapper--sidebar:has(.kb-empty__browse) aside.hs-kb-sidebar {
    display: none;
  }
}

/* ===== 3. Article blocks: copied from revops-svc-knowledge Site/article.css ===== */
/* ===== Tokens, on our blocks only ===== */
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-figure, .kb-table, .kb-code, .kb-deflist, .kb-video, .kb-ui) {
  --kb-indigo: #45095A; --kb-pink: #FB8CAF; --kb-seashell: #F9F0EE; --kb-white: #FFFFFF; --kb-blue: #2549D2;
  --kb-card-alt: #FFF7F5; --kb-indigo-70: #7D538B; --kb-text: #222222; --kb-border: rgba(69, 9, 90, 0.23);
  --kb-radius-sm: 5px; --kb-radius-md: 10px;
  --kb-space-1: 4px; --kb-space-2: 8px; --kb-space-3: 16px; --kb-space-4: 24px;
  --kb-font: 'Aritma Uten', 'Aritma Uten 1.0', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kb-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-figure, .kb-table, .kb-code, .kb-deflist, .kb-video) {
  box-sizing: border-box; font-family: var(--kb-font); font-size: 16px; line-height: 26px; font-weight: 400;
  color: var(--kb-indigo);
}
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-figure, .kb-table, .kb-code, .kb-deflist, .kb-video) *,
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-figure, .kb-table, .kb-code, .kb-deflist, .kb-video) ::before {
  box-sizing: border-box;
}
/* The theme's p { margin: 0 0 1.4rem } would open gaps inside every block. */
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-figure, .kb-table, .kb-deflist) p { margin: 0; }

/* Links inside our blocks: indigo and underlined, as in the kit. The theme gives links their own font family, so they
   take the text's font here. Its hover colour is pink, which the kit does not allow as text on a light surface, so
   hover thickens the line instead. */
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-table, .kb-deflist) a {
  font: inherit; color: var(--kb-indigo); text-decoration: underline; text-underline-offset: 3px;
}
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-table, .kb-deflist) a:hover {
  color: var(--kb-indigo); text-decoration-thickness: 2px;
}
.knowledgebase-post :where(.kb-steps, .kb-callout, .kb-table, .kb-deflist, .kb-video) :focus-visible {
  outline: 2px solid var(--kb-blue); outline-offset: 2px;
}

/* ===== kb-ui: a label exactly as it reads in the app ===== */
.knowledgebase-post .kb-ui {
  display: inline-block; padding: 0 var(--kb-space-2); border: 1px solid var(--kb-border); border-radius: var(--kb-radius-sm);
  background-color: var(--kb-white); font-family: var(--kb-font); font-size: 14px; line-height: 24px; font-weight: 400;
  color: var(--kb-indigo); white-space: nowrap;
}

/* ===== kb-callout: note, tip, warning. A surface and a word label, never a left border. ===== */
.knowledgebase-post .kb-callout { display: block; margin: var(--kb-space-4) 0; padding: var(--kb-space-4); border-radius: var(--kb-radius-md); }
.knowledgebase-post .kb-callout-label { display: block; margin-bottom: var(--kb-space-1); font-size: 14px; line-height: 20px; }
.knowledgebase-post .kb-callout p { color: var(--kb-text); }
.knowledgebase-post .kb-callout p + p { margin-top: var(--kb-space-2); }
.knowledgebase-post .kb-callout--note { background-color: var(--kb-white); }
.knowledgebase-post .kb-callout--note .kb-callout-label { color: var(--kb-indigo-70); }
.knowledgebase-post .kb-callout--tip { border: 1px solid var(--kb-border); }
.knowledgebase-post .kb-callout--tip .kb-callout-label { color: var(--kb-blue); }
.knowledgebase-post .kb-callout--warning { background-color: var(--kb-indigo); }
.knowledgebase-post .kb-callout--warning .kb-callout-label { color: var(--kb-pink); }
.knowledgebase-post .kb-callout--warning p,
.knowledgebase-post .kb-callout--warning a,
.knowledgebase-post .kb-callout--warning a:hover { color: var(--kb-seashell); }
.knowledgebase-post .kb-callout--warning :focus-visible { outline-color: var(--kb-seashell); }

/* ===== kb-steps: numbered steps; the number sits in its own column ===== */
/* Undoes the theme's ol (margin, padding-left, decimal markers) and li (margin 0.7rem, margin-left 17px, padding-left 8px). */
.knowledgebase-post .kb-steps { counter-reset: kb-step; margin: var(--kb-space-4) 0; padding: 0; list-style: none; }
.knowledgebase-post .kb-step {
  counter-increment: kb-step; display: grid; grid-template-columns: 48px minmax(0, 1fr); margin: 0; padding: var(--kb-space-4) 0;
  list-style: none; border-top: 1px solid var(--kb-border);
}
.knowledgebase-post .kb-step:last-child { border-bottom: 1px solid var(--kb-border); }
.knowledgebase-post .kb-step::before {
  content: counter(kb-step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--kb-border); border-radius: 50%; background-color: var(--kb-white);
  font-size: 14px; line-height: 20px; color: var(--kb-indigo);
}
.knowledgebase-post .kb-step > div { min-width: 0; padding-top: var(--kb-space-1); }
/* Only the step's own text: a warning callout inside a step keeps its light text. */
.knowledgebase-post .kb-step > div > p { color: var(--kb-text); }
.knowledgebase-post .kb-step > div > p + p { margin-top: var(--kb-space-2); }
.knowledgebase-post .kb-step .kb-figure,
.knowledgebase-post .kb-step .kb-callout { margin: var(--kb-space-4) 0 0; }

/* ===== kb-figure: a screenshot with a caption and numbered markers ===== */
.knowledgebase-post .kb-figure { display: block; margin: var(--kb-space-4) 0; padding: 0; }
.knowledgebase-post .kb-figure figcaption { margin-top: var(--kb-space-2); font-size: 14px; line-height: 20px; color: var(--kb-indigo-70); }
.knowledgebase-post .kb-shot {
  position: relative; overflow: hidden; border: 1px solid var(--kb-border); border-radius: var(--kb-radius-md);
  background-color: var(--kb-white);
}
/* The markers are placed in percent of the box, so the box shrinks to the image and the image fills it exactly. The
   image keeps its own size and only scales down to fit the column: a small crop of a dropdown must not be stretched to
   full width. The theme sets img to inline, and the editor may add a pixel width in a style attribute; both would move
   the markers off their targets. */
.knowledgebase-post .kb-shot--file { width: fit-content; max-width: 100%; }
.knowledgebase-post .kb-shot--file > img {
  display: block; width: auto !important; max-width: 100% !important; height: auto !important; margin: 0; border: 0;
}
.knowledgebase-post .kb-marker {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background-color: var(--kb-blue); color: var(--kb-white); font-family: var(--kb-font); font-size: 14px; line-height: 20px;
}
/* A picture that could not be moved from the old help centre: a dashed gap with a note, so nothing looks broken. */
.knowledgebase-post .kb-shot--missing {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 670 / 320; padding: var(--kb-space-4);
  border-style: dashed; background-color: var(--kb-card-alt);
}
.knowledgebase-post .kb-shot--missing p { font-size: 14px; line-height: 20px; color: var(--kb-indigo-70); text-align: center; }

/* ===== kb-table: an ARIA table from divs; stacks under 640 px ===== */
/* The first column is the name of the thing; every further cell gets an equal share. Auto-placed columns keep this
   right for two, three or four columns without reading --kb-cols, in case the editor drops custom properties. */
.knowledgebase-post .kb-table { margin: var(--kb-space-4) 0; padding: 0 var(--kb-space-4); border-radius: var(--kb-radius-md); background-color: var(--kb-white); }
.knowledgebase-post .kb-table [role="row"] {
  display: grid; grid-template-columns: 184px; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column;
  gap: var(--kb-space-4); padding: var(--kb-space-3) 0;
}
.knowledgebase-post .kb-table [role="row"] + [role="row"] { border-top: 1px solid var(--kb-border); }
.knowledgebase-post .kb-table [role="columnheader"] { font-size: 14px; line-height: 20px; color: var(--kb-indigo-70); }
.knowledgebase-post .kb-table [role="cell"] { min-width: 0; color: var(--kb-text); overflow-wrap: anywhere; }
.knowledgebase-post .kb-table [role="cell"]:first-child { color: var(--kb-indigo); }

/* ===== kb-code: exact text to copy or recognise ===== */
.knowledgebase-post .kb-code {
  display: block; margin: var(--kb-space-4) 0; padding: 0; overflow: hidden; border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius-md); background-color: var(--kb-white);
}
.knowledgebase-post .kb-code figcaption {
  padding: var(--kb-space-2) var(--kb-space-4); border-bottom: 1px solid var(--kb-border); background-color: var(--kb-card-alt);
  font-size: 14px; line-height: 20px; color: var(--kb-indigo-70);
}
/* Undoes the theme's pre and code (grey fill, own border, 1.4rem margin, black text, normal line height). */
.knowledgebase-post .kb-code pre {
  margin: 0; padding: var(--kb-space-3) var(--kb-space-4); overflow-x: auto; border: 0; border-radius: 0; background: none;
  white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--kb-mono); font-size: 14px; line-height: 20px; color: var(--kb-text);
}
.knowledgebase-post .kb-code code {
  padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; vertical-align: baseline;
}

/* ===== kb-deflist: terms or error codes with a short meaning ===== */
.knowledgebase-post .kb-deflist { margin: var(--kb-space-4) 0; padding: var(--kb-space-1) var(--kb-space-4); border-radius: var(--kb-radius-md); background-color: var(--kb-white); }
.knowledgebase-post .kb-deflist > div {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--kb-space-1) var(--kb-space-4); align-items: baseline;
  padding: var(--kb-space-3) 0;
}
.knowledgebase-post .kb-deflist > div + div { border-top: 1px solid var(--kb-border); }
.knowledgebase-post .kb-deflist dt { margin: 0; font-family: var(--kb-mono); font-size: 16px; line-height: 26px; font-weight: 400; color: var(--kb-indigo); }
.knowledgebase-post .kb-deflist dd { margin: 0; color: var(--kb-text); }
.knowledgebase-post .kb-deflist dd + dd { grid-column: 2; }
.knowledgebase-post .kb-deflist dd a { font-size: 14px; line-height: 20px; }
.knowledgebase-post .kb-deflist--terms > div { grid-template-columns: 184px minmax(0, 1fr); }
.knowledgebase-post .kb-deflist--terms dt { font-family: var(--kb-font); }

/* ===== kb-video: a click-to-load facade (YouTube, Vimeo, Loom, Scribe) or a native video (MP4) ===== */
/* The play icon's inline fill reads var(--indigo). */
.knowledgebase-post .kb-video { --indigo: #45095A; display: block; margin: var(--kb-space-4) 0; padding: 0; }
.knowledgebase-post .kb-video figcaption { margin-top: var(--kb-space-2); font-size: 14px; line-height: 20px; color: var(--kb-indigo-70); }
.knowledgebase-post .kb-video-frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--kb-radius-md); background-color: var(--kb-indigo);
}
.knowledgebase-post .kb-video-frame > iframe,
.knowledgebase-post .kb-video-frame > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.knowledgebase-post .kb-video-frame > img {
  position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover;
}
/* Undoes the theme's button reset (line-height 1.15, font-size 100%). */
.knowledgebase-post .kb-video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--kb-space-2);
  width: 100%; margin: 0; padding: var(--kb-space-4); border: 0; background: transparent; color: var(--kb-seashell);
  font-family: var(--kb-font); font-weight: 400; text-align: center; cursor: pointer;
}
.knowledgebase-post .kb-video-frame > img + .kb-video-play { background-color: rgba(69, 9, 90, 0.6); }
.knowledgebase-post .kb-video-icon {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: var(--kb-space-2);
  border-radius: 50%; background-color: var(--kb-white);
}
.knowledgebase-post .kb-video-icon svg { display: block; width: 22px; height: 22px; margin-left: 4px; }
.knowledgebase-post .kb-video-title { font-size: 18px; line-height: 28px; }
.knowledgebase-post .kb-video-meta { font-size: 14px; line-height: 20px; }
.knowledgebase-post .kb-video-play:hover .kb-video-title { text-decoration: underline; }
.knowledgebase-post .kb-video-play:focus-visible { outline: 2px solid var(--kb-seashell); outline-offset: -6px; }

/* ===== Small screens ===== */
@media (max-width: 640px) {
  .knowledgebase-post .kb-step { grid-template-columns: 40px minmax(0, 1fr); }
  .knowledgebase-post .kb-callout { padding: var(--kb-space-3); }
  .knowledgebase-post .kb-table { padding: 0 var(--kb-space-3); }
  .knowledgebase-post .kb-code figcaption,
  .knowledgebase-post .kb-code pre { padding-left: var(--kb-space-3); padding-right: var(--kb-space-3); }
  .knowledgebase-post .kb-table [role="row"] { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: var(--kb-space-1); }
  .knowledgebase-post .kb-table [role="row"]:first-child { display: none; }
  .knowledgebase-post .kb-table [role="row"]:nth-child(2) { border-top: 0; }
  .knowledgebase-post .kb-deflist { padding: var(--kb-space-1) var(--kb-space-3); }
  .knowledgebase-post .kb-deflist > div,
  .knowledgebase-post .kb-deflist--terms > div { grid-template-columns: minmax(0, 1fr); }
  .knowledgebase-post .kb-deflist dd + dd { grid-column: 1; }
  .knowledgebase-post .kb-video-icon { width: 48px; height: 48px; margin-bottom: 0; }
  .knowledgebase-post .kb-video-title { font-size: 16px; line-height: 26px; }
}

/* v9: "Related articles" with a link to the article's topic beside it. */
body .kb-body-wrapper .kb-relhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 24px;
}
body .kb-body-wrapper .kb-relhead > :first-child {
  margin-bottom: 0;
}
body .kb-body-wrapper .kb-relhead__link {
  font-family: var(--kbs-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--kbs-indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
