/* global.css — base styling for bare HTML elements, shared across the whole
   page (design tokens, fonts, reset, body, links, headings). Everything
   component/section-specific lives in page.css. */

:root {
  --er-orange: #FF5F00;
  --er-orange-dim: #E85400;
  --er-orange-pale: #FFF4EE;
  --er-orange-border: rgba(255, 95, 0, 0.35);
  --er-teal: #257886;
  --er-text: #1C1C1C;
  --er-text-mid: #555555;
  --er-text-light: #888888;
  --er-page-bg: #FEF0E8;
  --er-bg: #FFFFFF;
  --er-bg-subtle: #F7F7F7;
  --er-border: #E8E8E8;
  --er-border-light: #FDF6EE;
  --er-success: #1F7A4A;
  --er-success-bg: #EDF7F1;
  --er-error: #C0392B;
  --er-error-bg: #FEF2F2;
  --er-field-error: #C0311B;
  --er-amber: #F5A623;
  --er-shadow: 0 0.125em 1em rgba(0, 0, 0, 0.07);
  --er-radius-lg: 1em;
}

@font-face {
  font-family: 'SwedbankHeadlineBlack';
  src: url('SwedbankHeadline-Black.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SwedbankHeadlineBold';
  src: url('SwedbankHeadline-Bold.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('Roboto-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('Roboto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('Roboto-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  /* Explicit 100% (browser default) so 1em/1rem is an intentional 16px
     baseline everywhere else, while still respecting the user's own
     browser font-size/zoom settings. */
  font-size: 100%;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, "Helvetica Neue", sans-serif;
  color: var(--er-text);
  background: var(--er-page-bg);
  line-height: 1.5;
}

a {
  color: var(--er-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

/* Titles — every h1/h2 on the page shares this styling; no per-element
   classes needed. */
h1,
h2 {
  font-weight: 400;
  color: var(--er-orange);
  font-family: 'SwedbankHeadlineBlack', Arial, sans-serif;
}

h1 {
  font-size: 3.125em; /* 50px at the 16px root */
  line-height: 1.05;
  margin: 0 0 0.3em;
}

h2 {
  font-size: 1.5em; /* 24px at the 16px root */
  line-height: 1.1;
  margin: 1em 0 0.7em;
}

/* h3 — a smaller sub-title (e.g. one per wizard step), plain bold rather
   than the h1/h2 display font, so it doesn't compete visually with them. */
h3 {
  font-size: 1em; /* 16px at the 16px root */
  font-weight: 800;
  color: var(--er-orange);
  margin: 0 0 1em;
}

@media (max-width: 620px) {
  h1 {
    font-size: 2em; /* 32px at the 16px root */
  }
}

.mt-0 {
  margin-top: 0 !important;
}
