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

   Base rules for the page body, the breadcrumb, the product band and product
   cards, the announcements, and the product guide frame around the
   FinanceManagerDocs module. Design approved 2026-11-19
   (proto-views/produktsider-2026-11-19, shared/hjelp.css). Loaded by every
   template that includes help-header and help-footer, after help-chrome.css,
   which help-header loads and which has the header, menus, contact block,
   footer, the tokens and the font; 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.
   ========================================================================== */

/* <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) {
  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) {
  font-family: var(--kb-font);
  color: inherit;
}

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

.kb-page a {
  color: inherit;
}

.kb-page img {
  display: block;
}

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

.kb-page .kb-button--dark {
  background-color: var(--kb-indigo);
  color: var(--kb-seashell);
}
.kb-page .kb-textlink {
  color: var(--kb-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-page .kb-textlink:hover {
  text-decoration-thickness: 2px;
}

/* ===== 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 =====
   A short indigo top: where you are, the product, one line on what it is and,
   on the user guides, the guide's search as the biggest thing in it. */
.kb-product-head {
  position: relative;
  padding: 0 0 var(--kb-space-6);
  background-color: var(--kb-indigo);
  color: var(--kb-seashell);
}
.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 {
  max-width: 720px;
}
.kb-page .kb-product-head h1 {
  font-size: 40px;
  line-height: 50px;
  text-wrap: balance;
}
.kb-page .kb-product-head__lead {
  max-width: 640px;
  margin-top: var(--kb-space-2);
  color: var(--kb-on-dark-muted);
}
/* Looks like a field, opens the guide's search dialog (product-guide's script). */
.kb-guide-search {
  display: flex;
  align-items: center;
  gap: var(--kb-space-3);
  width: 100%;
  min-height: 56px;
  margin-top: var(--kb-space-4);
  padding: var(--kb-space-3);
  border: 0;
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
  color: var(--kb-indigo-70);
  font: inherit;
  text-align: left;
  cursor: text;
}
.kb-guide-search:hover {
  color: var(--kb-indigo);
}
.kb-guide-search:focus-visible {
  outline: 2px solid var(--kb-pink);
  outline-offset: 2px;
}
.kb-guide-search svg {
  flex: none;
  color: var(--kb-indigo);
}
.kb-guide-search kbd {
  margin-left: auto;
  padding: 0 var(--kb-space-2);
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius-sm);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}
.kb-page .kb-guide-search + .kb-product-head__meta {
  margin-top: var(--kb-space-4);
}
.kb-page .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-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--kb-on-dark-muted);
}
.kb-product-head__meta:not(:has(span:not([hidden]))) {
  display: none;
}
.kb-product-head__meta [hidden] {
  display: none;
}
.kb-product-head__meta a {
  color: var(--kb-seashell);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Plain text: a frame made it look like a button. */
.kb-lang-note {
  color: var(--kb-seashell);
}

/* ===== 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-product-tile: the product's icon, in the style of the topic tiles. Above
   the name on wide screens, beside it on phones (the 640 px block below). */
.kb-product-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--kb-radius-md);
  background-color: var(--kb-seashell);
}
.kb-product-tile svg {
  display: block;
  width: 28px;
  height: 28px;
}
.kb-product-card .kb-product-tile {
  margin-bottom: var(--kb-space-2);
}

/* ===== kb-announce: the announcements list and a single announcement =====
   The topic overview's head and white cards, one reading column for a post. */
.kb-announce__head {
  padding: var(--kb-space-6) 0 var(--kb-space-5);
}
.kb-announce__body,
.kb-announce__post {
  padding-bottom: var(--kb-space-7);
}
.kb-page .kb-announce__list {
  display: grid;
  gap: var(--kb-space-3);
  max-width: var(--kb-measure);
}
.kb-page .kb-announce__item,
.kb-announce .kb-empty {
  display: flex;
  flex-direction: column;
  gap: var(--kb-space-2);
  max-width: var(--kb-measure);
  padding: var(--kb-space-5);
  border-radius: var(--kb-radius-md);
  background-color: var(--kb-white);
}
.kb-page .kb-announce__item p,
.kb-announce .kb-empty p {
  color: var(--kb-text);
}
.kb-announce__item h2 a {
  text-decoration: none;
}
.kb-announce__item h2 a:hover {
  text-decoration: underline;
}
.kb-announce .kb-empty .kb-textlink {
  align-self: flex-start;
}
.kb-announce__pager {
  display: flex;
  gap: var(--kb-space-5);
  margin-top: var(--kb-space-5);
}
.kb-announce__post {
  padding-top: var(--kb-space-6);
}
.kb-announce__post > * {
  max-width: var(--kb-measure);
}
.kb-announce__post .kb-h2 {
  margin-top: var(--kb-space-1);
}
.kb-page .kb-announce__prose {
  margin-top: var(--kb-space-5);
  color: var(--kb-text);
  overflow-wrap: break-word;
}
.kb-page .kb-announce__prose :is(h2, h3) {
  margin: var(--kb-space-5) 0 var(--kb-space-2);
  color: var(--kb-indigo);
}
.kb-page .kb-announce__prose h2 {
  font-size: 24px;
  line-height: 34px;
}
.kb-page .kb-announce__prose h3 {
  font-size: 20px;
  line-height: 30px;
}
.kb-page .kb-announce__prose :is(p, ul, ol) {
  margin-top: var(--kb-space-3);
}
.kb-page .kb-announce__prose :is(ul, ol) {
  padding-left: var(--kb-space-4);
}
.kb-page .kb-announce__prose ul {
  list-style: disc;
}
.kb-page .kb-announce__prose ol {
  list-style: decimal;
}
.kb-page .kb-announce__prose :is(strong, b) {
  font-weight: 400;
  color: var(--kb-indigo);
}
.kb-page .kb-announce__prose a {
  color: var(--kb-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-page .kb-announce__prose img {
  max-width: 100%;
  height: auto;
  margin: var(--kb-space-4) 0;
  border-radius: var(--kb-radius-md);
}

/* ===== kb-guide: the product guide frame around the FinanceManagerDocs module ===== */
.kb-guide-frame {
  padding-top: var(--kb-space-5);
  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. Aritma Uten has
   only a regular weight, so the module's bold would be drawn by the browser. */
.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;
  /* The release notes' subscribe form (a HubSpot form) falls back to Helvetica. */
  --hsf-global__font-family: var(--kb-font);
  /* The module's warm surface (root, sticky tool bar, drawer) is the page's
     seashell, so the guide is not a lighter panel of its own. */
  --swebase-surface-warm: var(--kb-seashell);
  /* As tall as its content, so the help centre links follow right after it. */
  min-height: 0;
  background: var(--kb-seashell);
}
.kb-guide .swebase-docs :is(*) {
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
/* The band carries the title, lead and search, 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,
.kb-guide .swebase-docs .release-notes__version-list :is(ul, a) {
  border: 0;
}
/* The band's field is the guide search; the right column's button comes back
   once the field has scrolled away (product-guide's script). */
.kb-guide[data-kb-band-search='visible']
  :is(.swebase-docs__rail-search-button, .swebase-docs__compact-search) {
  visibility: hidden;
}

/* The search dialog is white, so its selected result is seashell. */
.kb-guide .swebase-docs .swebase-docs__search-result[aria-selected='true'] {
  background: var(--kb-seashell);
  box-shadow: none;
}

/* Depth from surfaces, not lines: the current item in the guide's menus is a
   white surface on the page colour, never a stripe at its left edge. */
.kb-guide
  .swebase-docs
  :is(
    .swebase-docs__group-row,
    .swebase-docs__group-button,
    .swebase-docs__nav-link,
    .swebase-docs__nav-sub,
    .swebase-docs__topic-row
  )::before {
  content: none;
}
.kb-guide
  .swebase-docs
  :is(
    .swebase-docs__group-button[aria-current='page'],
    .swebase-docs__nav-link[aria-current='location'],
    .swebase-docs__nav-sub[aria-current='location'],
    .swebase-docs__topic-row[data-active='true'],
    .swebase-docs__rail-list a[aria-current='location'],
    .swebase-docs__rail-subs a[aria-current='location']
  ) {
  background: var(--kb-white);
  color: var(--kb-indigo);
}
.kb-guide .swebase-docs .swebase-docs__group-row:hover,
.kb-guide
  .swebase-docs
  .swebase-docs__group-button:not([aria-current='page']):hover {
  background: var(--kb-card-alt);
}
/* The release notes' version list: the same white surface, no rule or stripe. */
.kb-guide .release-notes .release-notes__version-list :is(ul, a) {
  border: 0;
}
.kb-guide .release-notes .release-notes__version-list a {
  margin-left: 0;
  border-radius: var(--kb-radius-sm);
}
.kb-guide .release-notes .release-notes__version-list a[aria-current] {
  background: var(--kb-white);
  color: var(--kb-indigo);
}
/* An open group whose page is current stays plain; only the page is marked. */
.kb-guide .swebase-docs .swebase-docs__group-row[data-active='true'] {
  background: transparent;
}
.kb-guide
  .swebase-docs
  .swebase-docs__group-row[data-active='true']
  .swebase-docs__nav-icon {
  color: var(--kb-indigo);
}
.kb-guide .swebase-docs__nav-family {
  border-top: 0;
  color: var(--kb-indigo-70);
}
/* The guide's text sits on one white card; the empty rule at its top goes. */
.kb-guide .swebase-docs__content div.da-card {
  padding: var(--kb-space-6) var(--kb-space-7);
  border: 0;
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
}
.kb-guide .swebase-docs__content div.da-card > hr:first-child {
  display: none;
}
/* The guide home's section cards: white on the page colour, no outline. */
.kb-guide .swebase-docs__quick-link {
  border: 0;
  border-radius: var(--kb-radius-md);
  background: var(--kb-white);
  box-shadow: none;
}
.kb-guide .swebase-docs__quick-link:hover {
  box-shadow: 0 8px 24px rgba(69, 9, 90, 0.1);
}
.kb-guide .swebase-docs__quick-link strong {
  color: var(--kb-indigo);
  font-size: 20px;
  line-height: 30px;
}
/* Phones and tablets: the compact bar with Contents and Search. */
.kb-guide .swebase-docs[data-guide] .swebase-docs__guide-tools,
.kb-guide .swebase-docs__guide-tools {
  border-color: transparent;
  background: var(--kb-white);
}
.kb-guide .swebase-docs__rail-search-button {
  border-color: var(--kb-border);
  background: var(--kb-white);
}

/* The help centre's focus ring (2 px blue, 2 px off), not the module's 3 px. */
.kb-guide .swebase-docs {
  --swebase-focus: var(--kb-blue);
}
.kb-guide
  .swebase-docs
  :is(a, button, input, summary, .table-wrap):focus-visible {
  outline: 2px solid var(--kb-blue);
  outline-offset: 2px;
}
/* "Til toppen": the help centre's dark button, not the design system's blue. */
.kb-guide .swebase-docs .swebase-docs__back-to-top {
  border: 0;
  border-radius: var(--kb-radius-sm);
  background: var(--kb-indigo);
  color: var(--kb-seashell);
}
.kb-guide .swebase-docs .swebase-docs__back-to-top:hover {
  background: var(--kb-indigo-70);
}

.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;
}
/* Bold in the guide's text names a field or button, a sub-heading or just
   stresses a word. With one font weight it gets the heading colour, nothing
   more: drawn as a box it made every sub-heading look like a button. */
.kb-guide :is(.kb-prose, .swebase-docs__content) :is(p, li) > strong {
  color: var(--kb-indigo);
}
/* A paragraph that is only a bold line is a sub-heading in the guide's
   Markdown ("Simplicity", "See also"): set as a heading. */
.kb-guide :is(.kb-prose, .swebase-docs__content) p.prose-label {
  margin: var(--kb-space-5) 0 var(--kb-space-2);
  font-size: 24px;
  line-height: 34px;
  color: var(--kb-indigo);
  text-wrap: balance;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) p.prose-label > strong {
  all: unset;
}
.kb-guide :is(.kb-prose, .swebase-docs__content) p.prose-label + p {
  margin-top: 0;
}
.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);
}
/* The other user guides: icon beside the name at every width, since it is a list. */
.kb-page .kb-guide-others li {
  display: flex;
  align-items: center;
  gap: var(--kb-space-3);
}
.kb-guide-others .kb-product-tile {
  background-color: var(--kb-white);
}
.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);
}

/* ===== kb-error: the help centre 404 (templates/system/help-404) =====
   The hero and search come from kb-front-page.css; the hero has no shelf
   here, so it keeps its bottom padding at every width. */
.kb-page.kb-error h1 {
  margin-bottom: var(--kb-space-3);
}
.kb-page.kb-error .kb-hero {
  padding-bottom: var(--kb-space-7);
}
.kb-error__after {
  padding-top: var(--kb-space-6);
  padding-bottom: var(--kb-space-7);
}
.kb-page .kb-error__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kb-space-3) var(--kb-space-5);
}
.kb-page .kb-error__links + .kb-help-row {
  margin-top: var(--kb-space-6);
}

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

@media (max-width: 1100px) {
  .kb-page .kb-product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@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-guide-frame {
    padding-top: 0;
  }
  .kb-guide .swebase-docs__content div.da-card {
    padding: var(--kb-space-4);
  }
  /* The help centre's container already has the side margin. */
  .kb-guide .swebase-docs__main {
    padding-inline: 0;
  }
  .kb-guide .swebase-docs__guide-tools {
    width: 100%;
  }
  .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: 32px;
    line-height: 42px;
  }
  .kb-guide-search kbd {
    display: none;
  }
  .kb-page .kb-product-cards,
  .kb-guide-more {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Icon beside the text on phones, like the topic cards. */
  .kb-page .kb-product-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-content: start;
    gap: var(--kb-space-1) var(--kb-space-3);
    padding: var(--kb-space-4);
  }
  .kb-product-card .kb-product-tile {
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }
  .kb-product-card > :not(.kb-product-tile) {
    grid-column: 2;
  }
  .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-page.kb-error .kb-hero {
    padding-bottom: var(--kb-space-6);
  }
  .kb-error__after {
    padding-top: var(--kb-space-5);
    padding-bottom: var(--kb-space-6);
  }
}
