/*
 * Formogram Hjälpcenter (support.formogram.com): custom stylesheet for HelpScout Docs, 2026.
 * The owner app's "Lugn" look: cool grey page, white panels, soft radii, Inter for text and Lato 900 for headings.
 * The fonts load from the custom <head> code (fonts-head.html), not from an @import here.
 *
 * Selectors are HelpScout Docs' standard theme: #mainNav, #docsSearch, #searchBar, #contentArea, .category-list,
 * .most-pop-articles, #sidebar, #categoryHead, .articleList, #fullArticle, .articleRatings, .articleFoot, .related,
 * footer. Some rules use !important because HelpScout writes the six Branding colours inline after this file.
 */

:root {
  color-scheme: light;
  --fd-page: #f3f5f7;
  --fd-surface: #ffffff;
  --fd-subtle: #f6f8fa;
  --fd-hero: #e8edfa;
  --fd-text: #1f2a37;
  --fd-muted: #65717f;
  --fd-faint: #8a95a3;
  --fd-border: #e3e8ee;
  --fd-border-strong: #c9d2db;
  --fd-primary: #3457d5;
  --fd-primary-hover: #2a47b3;
  --fd-accent-bg: #e7ecfb;
  --fd-accent-text: #2d49b8;
  --fd-ok-bg: #dcf5e9;
  --fd-ok-text: #146c43;
  --fd-warn-bg: #fff1d6;
  --fd-warn-text: #9a5b00;
  --fd-danger-bg: #fdebe3;
  --fd-danger-text: #b03a0a;
  --fd-tag: #fff3c4;
  --fd-tag-text: #5f4a00;
  --fd-chip: #eef1f5;
  --fd-chip-text: #334155;
  --fd-brand: #f48b0c;
  --fd-heart: #e0245e;
  --fd-shadow-panel: 0 1px 2px rgba(31, 42, 55, 0.04);
  --fd-shadow-menu: 0 8px 24px rgba(31, 42, 55, 0.12);
  --fd-font: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fd-heading: Lato, "Helvetica Neue", Arial, sans-serif;
  --fd-radius-panel: 10px;
  --fd-radius-control: 8px;
  --fd-radius-tag: 6px;
}

/* ---------- Base ---------- */

html,
body {
  background: var(--fd-page) !important;
}

body,
.contentWrapper,
.popArticles,
#fullArticle,
input,
button,
select,
textarea {
  font-family: var(--fd-font);
  color: var(--fd-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fd-heading);
  font-weight: 900;
  color: var(--fd-text);
  letter-spacing: 0;
  text-wrap: balance;
}

a,
a:visited {
  color: var(--fd-primary) !important;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--fd-primary-hover) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--fd-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--fd-tag);
  color: var(--fd-tag-text);
}

/* ---------- Top bar ---------- */

#mainNav,
#mainNav.navbar,
#mainNav .navbar-inner {
  background: var(--fd-surface) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

#mainNav {
  border-bottom: 1px solid var(--fd-border) !important;
}

#mainNav .navbar-inner {
  min-height: 60px;
}

#mainNav .brand {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0;
}

#mainNav .brand img {
  max-height: 30px;
  width: auto;
}

#mainNav .nav > li > a,
#mainNav .nav > li > a:visited {
  color: var(--fd-muted) !important;
  font-size: 15px;
  font-weight: 600;
  text-shadow: none !important;
  line-height: 20px;
  margin: 12px 0 0 4px;
  padding: 6px 12px;
  border-radius: var(--fd-radius-control);
}

#mainNav .nav > li > a:hover,
#mainNav .nav > li > a:focus {
  color: var(--fd-text) !important;
  background: var(--fd-subtle) !important;
  text-decoration: none;
}

#mainNav .nav > .active > a,
#mainNav .nav > .active > a:hover {
  color: var(--fd-text) !important;
  background: var(--fd-chip) !important;
  box-shadow: none !important;
}

#mainNav .caret {
  display: none;
}

/* "Kontakta oss" as an outlined button at the right end of the bar. */
#mainNav #contact a,
#mainNav #contactMobile a {
  border: 1.5px solid var(--fd-border-strong);
  color: var(--fd-text) !important;
}

#mainNav .btn-navbar {
  background: var(--fd-surface) !important;
  background-image: none !important;
  border: 1.5px solid var(--fd-border-strong) !important;
  border-radius: var(--fd-radius-control);
  box-shadow: none !important;
  margin-top: 13px;
}

#mainNav .btn-navbar .icon-bar {
  background: var(--fd-muted) !important;
  box-shadow: none !important;
}

/* ---------- Search hero ---------- */

/* A soft wash of the app's blue with a touch of the logo's orange. */
#docsSearch {
  background-color: var(--fd-hero) !important;
  background-image:
    radial-gradient(ellipse 60% 90% at 12% 10%, rgba(52, 87, 213, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 80% at 90% 95%, rgba(244, 139, 12, 0.26), transparent 70%),
    radial-gradient(ellipse 40% 60% at 60% 0%, rgba(91, 123, 224, 0.12), transparent 70%) !important;
  border-bottom: 1px solid var(--fd-border) !important;
  padding: 56px 20px 60px;
  margin-bottom: 0;
  text-align: center;
}

#docsSearch h1 {
  font-family: var(--fd-heading);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--fd-text) !important;
  margin: 0 0 24px;
}

#searchBar {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

#searchBar .search-query {
  width: 100%;
  height: 56px;
  box-sizing: border-box;
  padding: 0 20px 0 52px;
  font-family: var(--fd-font);
  font-size: 17px;
  color: var(--fd-text);
  background: var(--fd-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2365717f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 20px center;
  border: 1.5px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-panel);
  box-shadow: var(--fd-shadow-panel);
  transition: border-color 120ms, box-shadow 120ms;
}

#searchBar .search-query::placeholder {
  color: var(--fd-faint);
}

#searchBar .search-query:focus {
  border-color: var(--fd-primary);
  box-shadow: 0 0 0 3px var(--fd-accent-bg);
  outline: 0;
}

/* The search icon sits in the field, so the button is hidden; Enter searches. */
#searchBar button {
  display: none;
}

/* The live results under the field. */
#serp-dd {
  top: 62px !important;
  left: 0;
  right: 0;
  width: auto !important;
  text-align: left;
  background: var(--fd-surface) !important;
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius-control);
  box-shadow: var(--fd-shadow-menu) !important;
  overflow: hidden;
}

#serp-dd .result a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--fd-text) !important;
}

#serp-dd .result a:hover,
#serp-dd .result > li.active a {
  background: var(--fd-accent-bg) !important;
  color: var(--fd-accent-text) !important;
  text-decoration: none;
}

/* ---------- Content area ---------- */

#contentArea {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 40px;
}

/* ---------- Home: popular articles ---------- */

.most-pop-articles,
.twoCol .collection,
.threeCol .collection {
  background: var(--fd-surface) !important;
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius-panel);
  box-shadow: var(--fd-shadow-panel);
  padding: 28px 32px 20px;
  margin-bottom: 32px;
  box-sizing: border-box;
}

.most-pop-articles h2,
.collection h2 {
  font-size: 13px !important;
  line-height: 1.4;
  font-family: var(--fd-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fd-muted) !important;
  text-align: left;
  margin: 0 0 12px;
}

.collection h2 a {
  color: var(--fd-muted) !important;
}

.popArticles {
  font-size: 16px !important;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.popArticles li {
  break-inside: avoid;
  padding: 0;
  margin: 0;
}

.popArticles a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--fd-border);
  color: var(--fd-text) !important;
}

.popArticles a:hover {
  color: var(--fd-primary) !important;
}

.popArticles i,
.articleList i,
.related i {
  display: none;
}

.collection .browse {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Home: categories ---------- */

.category-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  text-align: left;
  margin: 0 0 48px;
}

.category-list::before,
.category-list::after {
  display: none !important;
}

.category-list .category {
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 24px !important;
  box-sizing: border-box;
  text-align: left;
  background: var(--fd-surface) !important;
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius-panel);
  box-shadow: var(--fd-shadow-panel);
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}

.category-list .category:hover {
  border-color: var(--fd-border-strong) !important;
  box-shadow: var(--fd-shadow-menu);
  text-decoration: none;
  transform: translateY(-1px);
}

.category-list h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--fd-text) !important;
}

.category-list p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fd-muted) !important;
  margin: 0 0 16px;
}

.category-list .article-count {
  align-self: flex-start;
  margin: auto 0 0;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--fd-accent-text) !important;
  background: var(--fd-accent-bg);
  border-radius: var(--fd-radius-tag);
}

/* ---------- Two columns: article and category pages ---------- */

#main-content {
  background: none !important;
}

#main-content .contentWrapper {
  background: var(--fd-surface) !important;
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius-panel);
  box-shadow: var(--fd-shadow-panel);
  padding: 36px 44px 32px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

/* ---------- Sidebar ---------- */

#sidebar {
  padding-top: 4px;
}

#sidebar form .search-query,
#sidebar #searchBar .search-query {
  height: 42px;
  font-size: 15px;
  padding-left: 42px;
  background-position: 14px center;
  background-size: 17px;
  border-radius: var(--fd-radius-control);
  box-shadow: none;
}

#sidebar #searchBar {
  margin-bottom: 24px;
}

#sidebar h3,
.related h3 {
  font-family: var(--fd-font);
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fd-faint) !important;
  margin: 0 0 8px;
}

#sidebar .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar .nav-list li {
  margin: 0;
}

#sidebar .nav-list a,
#sidebar .nav-list a:visited {
  display: block;
  padding: 7px 12px;
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--fd-muted) !important;
  border-radius: var(--fd-radius-control);
  text-shadow: none;
}

#sidebar .nav-list a:hover {
  color: var(--fd-text) !important;
  background: var(--fd-subtle) !important;
  text-decoration: none;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover {
  color: var(--fd-text) !important;
  background: var(--fd-chip) !important;
  font-weight: 700;
  box-shadow: none;
}

#sidebar .nav-list .active a .icon-arrow,
#sidebar .nav-list .icon-arrow {
  display: none;
}

/* ---------- Category page ---------- */

#categoryHead h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 6px;
}

#categoryHead .descrip {
  color: var(--fd-muted);
  font-size: 16px;
  margin: 0 0 20px;
}

/* The sort menu adds little for 2–12 articles. */
.sort {
  display: none;
}

.articleList {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.articleList li {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--fd-border);
}

.articleList li:first-child {
  border-top: 0;
}

.articleList a {
  display: block;
  padding: 13px 4px;
  color: var(--fd-text) !important;
  font-weight: 500;
}

.articleList a:hover {
  color: var(--fd-primary) !important;
}

/* Search results page */
#serp h1,
#serp-head h1 {
  font-size: 26px;
}

#serp .articleList p,
.articleList p {
  color: var(--fd-muted);
  font-size: 14px;
  margin: 2px 0 0;
}

/* ---------- Article ---------- */

#fullArticle {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 44rem;
}

#fullArticle .title,
h1.title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--fd-text) !important;
  margin: 0 0 20px;
  padding-right: 40px;
}

#fullArticle h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 2em 0 0.5em;
}

#fullArticle h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 1.6em 0 0.4em;
}

#fullArticle h4 {
  font-family: var(--fd-font);
  font-size: 16px;
  font-weight: 700;
  margin: 1.4em 0 0.3em;
}

#fullArticle p,
#fullArticle li {
  color: var(--fd-text) !important;
  font-size: 16.5px !important;
  line-height: 1.7;
}

#fullArticle p {
  margin: 0 0 1em;
}

#fullArticle ul,
#fullArticle ol {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}

#fullArticle li {
  margin: 0 0 0.35em;
  padding-left: 0.2em;
}

#fullArticle li::marker {
  color: var(--fd-muted);
}

#fullArticle strong,
#fullArticle b {
  font-weight: 700;
}

#fullArticle a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 2px;
}

#fullArticle a:hover {
  text-decoration-color: currentColor;
}

#fullArticle img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-control);
  box-shadow: var(--fd-shadow-panel);
  margin: 0.4em 0 1.2em;
}

#fullArticle hr {
  border: 0;
  border-top: 1px solid var(--fd-border);
  margin: 2em 0;
}

#fullArticle code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  color: var(--fd-chip-text);
  background: var(--fd-chip);
  border: 0;
  border-radius: var(--fd-radius-tag);
}

#fullArticle pre {
  font-size: 14px;
  padding: 14px 16px;
  background: var(--fd-subtle);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-control);
  overflow-x: auto;
}

#fullArticle pre code {
  padding: 0;
  background: none;
}

#fullArticle table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 15px;
  border: 1px solid var(--fd-border);
}

#fullArticle th,
#fullArticle td {
  padding: 9px 12px;
  border: 1px solid var(--fd-border);
  text-align: left;
  vertical-align: top;
}

#fullArticle th,
#fullArticle thead td {
  background: var(--fd-subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fd-muted);
}

#fullArticle blockquote {
  margin: 0 0 1.2em;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--fd-border-strong);
  color: var(--fd-muted);
}

/* Callouts from the Docs editor: tinted boxes with the app's chip colours. */
#fullArticle .callout,
#fullArticle .callout-blue,
#fullArticle .callout-yellow,
#fullArticle .callout-red,
#fullArticle .callout-green {
  margin: 0 0 1.2em;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--fd-radius-control);
  background: var(--fd-chip);
  color: var(--fd-chip-text);
}

#fullArticle .callout-blue {
  background: var(--fd-accent-bg);
}

#fullArticle .callout-yellow {
  background: var(--fd-warn-bg);
}

#fullArticle .callout-red {
  background: var(--fd-danger-bg);
}

#fullArticle .callout-green {
  background: var(--fd-ok-bg);
}

#fullArticle .callout p,
#fullArticle [class^="callout"] p,
#fullArticle [class^="callout"] li {
  color: inherit !important;
  font-size: 15.5px !important;
}

#fullArticle .callout-blue,
#fullArticle .callout-blue p {
  color: var(--fd-accent-text) !important;
}

#fullArticle .callout-yellow,
#fullArticle .callout-yellow p {
  color: var(--fd-warn-text) !important;
}

#fullArticle .callout-red,
#fullArticle .callout-red p {
  color: var(--fd-danger-text) !important;
}

#fullArticle .callout-green,
#fullArticle .callout-green p {
  color: var(--fd-ok-text) !important;
}

#fullArticle [class^="callout"] > :last-child {
  margin-bottom: 0;
}

#fullArticle .printArticle {
  top: 6px;
  color: var(--fd-faint) !important;
}

#fullArticle .printArticle:hover {
  color: var(--fd-text) !important;
}

/* ---------- Rating, footer of the article, related ---------- */

.articleRatings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--fd-subtle) !important;
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius-control);
  color: var(--fd-text);
}

.articleRatings-question {
  font-weight: 600;
}

.articleRatings .rateAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--fd-radius-control);
  transition: background 120ms;
}

.articleRatings .rateAction:hover {
  background: var(--fd-chip);
}

.articleFoot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fd-muted);
}

.articleFoot p,
.articleFoot .help {
  color: var(--fd-muted) !important;
  font-size: 14px !important;
}

.articleFoot time.lu {
  color: var(--fd-faint);
  font-size: 13px;
}

.related {
  background: var(--fd-surface) !important;
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius-panel);
  box-shadow: var(--fd-shadow-panel);
  padding: 22px 28px 14px;
  margin-bottom: 32px;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li {
  margin: 0;
  border-top: 1px solid var(--fd-border);
}

.related li:first-child {
  border-top: 0;
}

.related a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
}

/* ---------- Pagination ---------- */

.pagination ul,
.pagination ul > li > a,
.pagination ul > li > span {
  box-shadow: none !important;
  border-color: var(--fd-border) !important;
}

.pagination ul > li > a {
  color: var(--fd-text) !important;
  background: var(--fd-surface);
}

.pagination ul > .active > a,
.pagination ul > .active > span {
  background: var(--fd-primary) !important;
  color: #ffffff !important;
}

/* ---------- Site footer ---------- */

footer {
  border-top: 1px solid var(--fd-border);
  margin-top: 24px;
  padding: 24px 0 40px;
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--fd-muted) !important;
}

footer a,
footer a:visited {
  color: var(--fd-muted) !important;
  font-weight: 600;
}

footer a:hover {
  color: var(--fd-text) !important;
}

/* ---------- Phones ---------- */

@media (max-width: 768px) {
  #docsSearch {
    padding: 36px 16px 40px;
  }

  #contentArea {
    padding-top: 24px;
  }

  #docsSearch h1 {
    font-size: 28px;
  }

  #searchBar .search-query {
    height: 50px;
    font-size: 16px;
  }

  .popArticles {
    columns: 1;
  }

  .most-pop-articles,
  .twoCol .collection,
  .threeCol .collection {
    padding: 22px 20px 14px;
  }

  #main-content .contentWrapper {
    padding: 24px 20px;
    border-radius: var(--fd-radius-control);
  }

  #fullArticle .title,
  h1.title {
    font-size: 26px;
    padding-right: 0;
  }

  #fullArticle .printArticle {
    display: none;
  }

  #mainNav .nav-collapse .nav > li > a {
    margin: 2px 0;
  }
}
