/* ==========================================================================
   help.aritma.com: the shared frame of every help centre page.

   Tokens, header with the "Produkter" menu and the phone menu, footer,
   buttons, breadcrumb, the product band and product cards, and the product
   guide frame around the FinanceManagerDocs module. Design approved
   2026-11-19 (proto-views/produktsider-2026-11-19, shared/hjelp.css). Loaded
   first by every template that includes help-header and help-footer; page
   files (topic-page.css, kb-front-page.css) add only what their page has.

   Regular weight only, hierarchy from size and colour, 5 px controls and
   10 px cards, spacing 4/8/16/24/32/48/64, no tracked uppercase labels,
   left-border accents or arrows in buttons. Every selector starts with .kb-
   so nothing reaches main.css or other templates.
   ========================================================================== */

/* Same font file the knowledge base on help.aritma.com already serves. */
@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');
}

.kb-page,
.kb-guide,
.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;
}

/* <main> stretches inside .body-wrapper, so the page colour is set on both. */
.body-wrapper:has(.kb-page),
.body-container-wrapper:has(.kb-page) {
  background: #f9f0ee;
}

.kb-page {
  background: var(--kb-seashell);
  color: var(--kb-indigo);
}

.kb-page :is(h1, h2, h3, p, ul, ol, li),
.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-page :is(h1, h2, h3),
.kb-footer h2 {
  font-family: var(--kb-font);
  color: inherit;
}

.kb-page :is(ul, ol),
.kb-header ul,
.kb-footer ul {
  list-style: none;
}

.kb-page a,
.kb-header a,
.kb-footer a {
  color: inherit;
}

.kb-page img,
.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-page :focus-visible {
  outline: 2px solid var(--kb-blue);
  outline-offset: 2px;
}
.kb-header :focus-visible,
.kb-footer :focus-visible {
  outline: 2px solid var(--kb-seashell);
  outline-offset: 2px;
}

/* Type roles */
.kb-page .kb-h2 {
  font-size: 40px;
  line-height: 50px;
  text-wrap: balance;
}
.kb-page .kb-h3 {
  font-size: 24px;
  line-height: 34px;
  text-wrap: balance;
}
.kb-page .kb-lead {
  max-width: 720px;
  margin-top: var(--kb-space-3);
  font-size: 18px;
  line-height: 28px;
  color: var(--kb-text);
}
.kb-page .kb-small {
  font-size: 14px;
  line-height: 20px;
}
.kb-muted {
  color: var(--kb-indigo-70);
}

/* 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-page .kb-button--dark,
.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);
}
.kb-page .kb-textlink {
  color: var(--kb-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-page .kb-textlink:hover {
  text-decoration-thickness: 2px;
}

/* ===== 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, but opens the front page, where the search is. */
.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;
}

/* ===== Breadcrumb, also on the indigo product band ===== */
.kb-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kb-space-1) var(--kb-space-2);
  margin-bottom: var(--kb-space-5);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}
.kb-breadcrumb li + li::before {
  content: '/';
  margin-right: var(--kb-space-2);
}
.kb-breadcrumb a {
  text-decoration: none;
}
.kb-breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== kb-product-head: the product band on the guide pages =====
   The front-page hero's indigo at about half its height, with its shelf on
   the lower edge. The product name is the loudest thing on the page. */
.kb-product-head {
  position: relative;
  padding: 0 0 var(--kb-space-6);
  overflow: hidden;
  background-color: var(--kb-indigo);
  color: var(--kb-seashell);
}
.kb-product-head .kb-container {
  position: relative;
}
.kb-product-head :focus-visible {
  outline-color: var(--kb-seashell);
}
.kb-product-head .kb-breadcrumb ol {
  margin-bottom: var(--kb-space-4);
  color: var(--kb-on-dark-muted);
}
.kb-product-head__body {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.kb-page .kb-product-head__kind {
  margin-bottom: var(--kb-space-1);
  color: var(--kb-pink);
}
.kb-page .kb-product-head h1 {
  font-size: 56px;
  line-height: 66px;
  text-wrap: balance;
}
.kb-page .kb-product-head__lead {
  max-width: 640px;
  margin-top: var(--kb-space-2);
  font-size: 18px;
  line-height: 28px;
}
.kb-product-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--kb-space-2) var(--kb-space-4);
  margin-top: var(--kb-space-4);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-on-dark-muted);
}
.kb-product-head__meta [hidden] {
  display: none;
}
.kb-product-head__meta a {
  color: var(--kb-seashell);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-lang-note {
  display: inline-flex;
  align-items: center;
  padding: var(--kb-space-1) var(--kb-space-3);
  border: 1px solid var(--kb-on-dark-line);
  border-radius: var(--kb-radius-sm);
  color: var(--kb-seashell);
}
.kb-product-head__art {
  position: absolute;
  right: var(--kb-space-6);
  bottom: calc(-1 * var(--kb-space-6));
  width: 300px;
  aspect-ratio: 600 / 390;
  overflow: hidden;
  pointer-events: none;
}
.kb-page .kb-product-head__art img {
  width: 100%;
  height: auto;
}

/* ===== kb-product-cards: front page, one card per product, each says where it leads ===== */
.kb-page .kb-product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--kb-space-4);
}
.kb-page .kb-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--kb-space-2);
  padding: var(--kb-space-5);
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
}
.kb-product-card:focus-within {
  outline: 2px solid var(--kb-blue);
  outline-offset: 2px;
}
.kb-page .kb-product-card :focus-visible {
  outline: none;
}
.kb-page .kb-product-card h3 {
  font-size: 24px;
  line-height: 34px;
}
.kb-product-card h3 a {
  text-decoration: none;
}
.kb-product-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.kb-product-card:hover h3 a {
  text-decoration: underline;
}
.kb-page .kb-product-card p {
  color: var(--kb-text);
}
.kb-page .kb-product-card .kb-product-card__kind {
  margin-top: auto;
  padding-top: var(--kb-space-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}

/* ===== kb-guide: the product guide frame around the FinanceManagerDocs module ===== */
.kb-guide-frame {
  padding-top: var(--kb-space-6);
  padding-bottom: var(--kb-space-6);
}
/* The module's own HTML, restyled from outside until the module itself
   follows the help centre (listed for the module owner in the pull request).
   Its body font is set inline, so only !important reaches it. */
.kb-guide .swebase-docs {
  --swebase-font-body: var(--kb-font) !important;
  --da-font-family-body: var(--kb-font) !important;
  --swebase-font-display: var(--kb-font) !important;
  --da-font-family-title: var(--kb-font) !important;
}
.kb-guide .swebase-docs :is(*) {
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
/* The band carries the title, lead and language, so the module's hero goes. */
.kb-guide .swebase-docs__hero {
  display: none;
}
.kb-guide .swebase-docs__content h3 {
  padding: var(--kb-space-5) 0 0;
  border: 0;
  border-top: 1px solid var(--kb-border);
  background: none;
}
.kb-guide .swebase-docs__rail-list,
.kb-guide .swebase-docs__rail-list a,
.kb-guide .swebase-docs__rail-subs a {
  border: 0;
}

.kb-guide-after {
  padding-bottom: var(--kb-space-7);
}

/* kb-doc: the guide layout the module is moving to. Left: the guide's parts.
   Middle: the content. Right: on this page, and the help centre. */
.kb-doc {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--kb-measure)) 240px;
  justify-content: space-between;
  column-gap: var(--kb-space-6);
}
.kb-doc__nav,
.kb-doc__aside {
  align-self: start;
  position: sticky;
  top: var(--kb-space-4);
}
.kb-doc__nav :is(ul, ol, p),
.kb-doc__aside :is(ul, ol, p) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kb-doc__family + .kb-doc__family {
  margin-top: var(--kb-space-4);
}
.kb-guide .kb-doc__family > p,
.kb-guide .kb-doc__aside-title {
  margin-bottom: var(--kb-space-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}
.kb-doc__nav a {
  display: block;
  margin-left: calc(-1 * var(--kb-space-3));
  padding: var(--kb-space-1) var(--kb-space-3);
  border-radius: var(--kb-radius-sm);
  font-size: 15px;
  line-height: 24px;
  text-decoration: none;
}
.kb-doc__nav a:hover {
  text-decoration: underline;
}
.kb-doc__nav a[aria-current] {
  background-color: var(--kb-white);
}
.kb-doc__home {
  margin-bottom: var(--kb-space-4);
}
.kb-toc a {
  display: block;
  margin-left: calc(-1 * var(--kb-space-2));
  padding: var(--kb-space-1) var(--kb-space-2);
  border-radius: var(--kb-radius-sm);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
  text-decoration: none;
}
.kb-toc a:hover {
  color: var(--kb-indigo);
  text-decoration: underline;
}
.kb-toc a[aria-current='true'] {
  background: var(--kb-white);
  color: var(--kb-indigo);
}

.kb-aside-block {
  margin-top: var(--kb-space-5);
  padding-top: var(--kb-space-4);
  border-top: 1px solid var(--kb-border);
}
.kb-aside-block li + li {
  margin-top: var(--kb-space-2);
}
.kb-aside-block a {
  font-size: 14px;
  line-height: 20px;
}
.kb-guide .kb-textlink {
  color: var(--kb-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* kb-prose: the guide's Markdown HTML, as the module renders it today. */
.kb-guide :is(.kb-prose, .swebase-docs__content) {
  color: var(--kb-text);
  overflow-wrap: break-word;
}
.kb-guide
  :is(.kb-prose, .swebase-docs__content)
  :is(h2, h3, h4, strong, b, th) {
  font-weight: 400;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) :is(h2, h3, h4) {
  color: var(--kb-indigo);
  font-family: var(--kb-font);
  text-wrap: balance;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) h2 {
  margin: 0 0 var(--kb-space-4);
  padding: 0;
  border: 0;
  font-size: 40px;
  line-height: 50px;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) h3 {
  margin: var(--kb-space-7) 0 var(--kb-space-3);
  padding-top: var(--kb-space-5);
  border-top: 1px solid var(--kb-border);
  font-size: 26px;
  line-height: 36px;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) :is(h2 + h3, h2 + p + h3) {
  margin-top: var(--kb-space-5);
  padding-top: 0;
  border-top: 0;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) h4 {
  margin: var(--kb-space-5) 0 var(--kb-space-2);
  font-size: 20px;
  line-height: 30px;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) p {
  margin-top: var(--kb-space-3);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) :is(h2, h3, h4) + p {
  margin-top: 0;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .h-anchor {
  display: none;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) :is(ul, ol) {
  margin: var(--kb-space-3) 0;
  padding-left: var(--kb-space-4);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) ul {
  list-style: disc;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) ol {
  list-style: decimal;
}
/* A bold label in the guide is almost always a field or button name, shown as a chip. */
.kb-guide
  :is(.kb-prose, .swebase-docs__content)
  :is(p, li)
  > strong:not(.callout__title) {
  padding: 1px var(--kb-space-1);
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius-sm);
  background-color: var(--kb-white);
  color: var(--kb-indigo);
  font-size: 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) code {
  padding: 2px var(--kb-space-1);
  border-radius: var(--kb-radius-sm);
  background: var(--kb-white);
  font-family: var(--kb-mono);
  font-size: 14px;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .doc-fig {
  margin: var(--kb-space-4) 0;
  padding: var(--kb-space-2);
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .doc-fig img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
/* Callouts: a surface and a word label, never a stripe. */
.kb-guide :is(.kb-prose, .swebase-docs__content) .callout {
  margin: var(--kb-space-4) 0;
  padding: var(--kb-space-4);
  border: 0;
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .callout > :first-child {
  margin-top: 0;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .callout__title {
  display: block;
  margin-bottom: var(--kb-space-1);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}
/* Tables: white surface, rows split by hairlines, scrolling sideways when wide. */
.kb-guide :is(.kb-prose, .swebase-docs__content) .table-wrap {
  margin: var(--kb-space-4) 0;
  overflow-x: auto;
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 24px;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) th {
  padding: var(--kb-space-3) var(--kb-space-3) var(--kb-space-2);
  text-align: left;
  vertical-align: bottom;
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) td {
  padding: var(--kb-space-2) var(--kb-space-3);
  vertical-align: top;
  border-top: 1px solid var(--kb-border);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .fm-release-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--kb-space-1) var(--kb-space-3);
}
.kb-guide :is(.kb-prose, .swebase-docs__content) .swebase-docs__release-date {
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-indigo-70);
}

/* kb-guide-more: the help centre links under the module, until the module
   has a place for them in its right column. */
.kb-guide-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--kb-space-4);
  padding-top: var(--kb-space-5);
  border-top: 1px solid var(--kb-border);
}
.kb-guide-more li + li {
  margin-top: var(--kb-space-2);
}
.kb-page .kb-guide-more a {
  font-size: 16px;
  line-height: 26px;
}

/* kb-help-row: the one support line at the end of a guide. */
.kb-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--kb-space-3) var(--kb-space-4);
  margin-top: var(--kb-space-6);
  padding: var(--kb-space-4);
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
}
.kb-page .kb-help-row p:first-child {
  font-size: 18px;
  line-height: 28px;
}
.kb-page .kb-help-row p + p {
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-text);
}
.kb-help-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--kb-space-3) var(--kb-space-4);
}
.kb-page .kb-help-row .kb-button {
  padding: var(--kb-space-2) var(--kb-space-3);
}

/* ===== 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;
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .kb-doc {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .kb-doc__aside {
    display: none;
  }
}

@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;
  }
  .kb-page .kb-product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kb-product-head__art {
    display: none;
  }
}

/* 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: 900px) {
  .kb-doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .kb-doc__nav {
    position: static;
    margin-bottom: var(--kb-space-5);
  }
}

@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-page .kb-h2 {
    font-size: 32px;
    line-height: 40px;
  }
  .kb-page .kb-h3 {
    font-size: 18px;
    line-height: 28px;
  }
  .kb-page .kb-lead {
    font-size: 16px;
    line-height: 26px;
  }
  .kb-page .kb-product-head h1 {
    font-size: 40px;
    line-height: 50px;
  }
  .kb-page .kb-product-head__lead {
    font-size: 16px;
    line-height: 26px;
  }
  .kb-page .kb-product-cards,
  .kb-guide-more {
    grid-template-columns: minmax(0, 1fr);
  }
  .kb-page .kb-product-card {
    padding: var(--kb-space-4);
  }
  .kb-guide :is(.kb-prose, .swebase-docs__content) h2 {
    font-size: 32px;
    line-height: 40px;
  }
  .kb-guide :is(.kb-prose, .swebase-docs__content) h3 {
    font-size: 22px;
    line-height: 32px;
  }
  .kb-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
