/* TripleCo Solutions: fonts, colours and the header/footer shared by every page.
   Fonts and layout as www.tripleco.nl; colours taken from the TripleCo Solutions logo, used
   sparingly: the "Solutions" blue for actions, the spectrum only as a thin band and step accents. */
@font-face { font-family: open-sans; src: url(/assets/font/opensans-reg.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: open-sans; src: url(/assets/font/opensans-semibold.ttf); font-weight: 600 700; font-display: swap; }
@font-face { font-family: saira-ec; src: url(/assets/font/saira-extra-cond-reg.ttf); font-display: swap; }

:root {
  /* Logo colours */
  --logo-magenta: #ef0088;
  --logo-red: #ec1d37;
  --logo-orange: #f7941f;
  --logo-yellow: #ffea00;
  --logo-green: #1bb74c;
  --logo-teal: #009b61;
  --logo-navy: #233f93;
  --logo-blue: #0040c4;
  --spectrum: linear-gradient(90deg, var(--logo-magenta), var(--logo-red), var(--logo-orange), var(--logo-yellow), var(--logo-green), var(--logo-teal), var(--logo-navy));

  --accent: var(--logo-blue);
  --accent-dark: #00319a;
  --accent-light: #6f95ff;
  --accent-tint: #e9effc;
  --ink: #1d232a;
  --muted: #5f6b77;
  --line: #dde2e8;
  --soft: #f4f6f9;
  --dark: #12161b;
  --error: #b42318;
  --font-body: open-sans, 'Segoe UI', system-ui, sans-serif;
  --font-display: saira-ec, 'Arial Narrow', sans-serif;
  --radius: 4px;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 var(--font-body); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: white with the logo, a thin band in the logo's colours underneath */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--spectrum); }
.site-header .inner { max-width: 1040px; margin: 0 auto; padding: 12px 24px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; }
.lang { display: flex; gap: 4px; }
.lang button { font: 600 14px/1 var(--font-body); padding: 7px 10px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); }
.lang button:hover { border-color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* One logo colour per step (1 to 4), the same on the introduction and in the tool */
.c1 { --step: var(--logo-magenta); }
.c2 { --step: var(--logo-orange); }
.c3 { --step: var(--logo-green); }
.c4 { --step: var(--logo-blue); }

@media (max-width: 480px) { .brand img { height: 40px; } }

.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--soft); }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 20px 24px 32px; }
.site-footer a { color: inherit; }

@page { size: A4; margin: 12mm; }
@media print {
  .noprint, .site-header .lang { display: none !important; }
  .site-header .inner { padding: 0 0 10px; }
  .brand img { height: 40px; }
  .site-header::after, .c1, .c2, .c3, .c4 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-footer { background: none; }
  .wrap { padding: 16px 0 0; max-width: none; }
  .site-footer .inner { padding: 12px 0 0; }
  p { orphans: 3; widows: 3; }
}
