/* Shared by website, customer portal and admin. Fonts are self-hosted. */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/source-sans-3/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/source-sans-3/source-sans-3-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/source-sans-3/source-sans-3-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/source-sans-3/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/source-sans-3/source-sans-3-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/jetbrains-mono/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #15191b;
  --ink-2: #3a4246;
  --ink-3: #6a7478;
  --line: #dde2e1;
  --line-2: #ebeeed;
  --paper: #ffffff;
  --paper-2: #f5f6f4;
  --paper-3: #eceeeb;

  /* from the logo */
  --teal: #12a19a;
  --teal-ink: #0b6c67;
  --teal-soft: #e2f2f0;
  --orange: #f3922b;
  --orange-ink: #9c560d;
  --orange-soft: #fdf0e0;
  --violet: #7f549a;
  --violet-ink: #5e3b75;
  --violet-soft: #f1ebf5;

  --petrol: #0f2629;
  --petrol-2: #173437;
  --petrol-3: #24474b;

  --green: #2b7a4b;
  --green-soft: #e5f1e9;
  --amber: #93620f;
  --amber-soft: #faf0da;
  --red: #b8392a;
  --red-soft: #fbe9e5;

  --font-head: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

a { color: var(--teal-ink); text-underline-offset: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }

code, kbd, samp, pre, .mono { font-family: var(--font-mono); font-size: 0.9em; }

::selection { background: #bfe6e2; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }

/* language picker, used everywhere */
.lang-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lang-form select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent;
  padding: 5px 26px 5px 9px; font-size: 13px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236a7478' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.lang-form .icon { color: var(--ink-3); }
