/* Design tokens: yellow and black, taken from the first (v2) company-site design. */
:root {
  --ink: #12161b;
  --steel: #1b2128;
  --steel-2: #29313b;
  --paper: #f6f5f2;
  --white: #ffffff;
  --line: #e2dfd6;        /* hairlines and card borders on light surfaces */
  --field: #7c8591;       /* input borders (3:1 on white) */
  --muted: #5d6672;       /* secondary text on light surfaces */
  --soft: #c3cad3;        /* secondary text on ink and steel */
  --accent: #f5b700;      /* a fill, or text on ink/steel; never text on white or paper */
  --accent-ink: #1a1400;  /* text on the yellow fill */
  --error: #a32a00;
  --hero-shade: 10 12 15; /* RGB of the dark overlay that goes over photos */
  --hero-shade-min: .72;  /* lowest overlay opacity under text on a photo: tools/contrast.mjs proves 4.5:1 over a pure-white pixel */

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;         /* cards */
  --radius-sm: 6px;       /* buttons and controls */
  --gutter: 16px;
  --max: 1140px;
  --tap: 44px;
}

/* Base: fonts, reset, type, controls. Shared by the website and the portal. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlowcondensed-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlowcondensed-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.6 var(--font-body); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }
h3, h4 { text-transform: none; letter-spacing: 0; }  /* only H1 and H2 are set in capitals */
p { margin: 0 0 14px; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
mark { background: color-mix(in srgb, var(--accent) 45%, transparent); color: inherit; padding: 0 1px; border-radius: 2px; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .util :focus-visible { outline-color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons: neutral = outline in ink; .on-ink flips to white; primary = yellow fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  font: 700 .95rem/1.25 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer; text-align: center;
  background: transparent; color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--white); }
.on-ink .btn { border-color: var(--white); color: var(--white); }
.on-ink .btn:hover { background: var(--white); color: var(--ink); }
.btn-primary, .on-ink .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .on-ink .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); filter: brightness(.93); }
.btn-small { min-height: var(--tap); padding: 0 14px; font-size: .85rem; }
.btn[aria-disabled="true"] { border-color: var(--line); background: var(--line); color: var(--muted); pointer-events: none; }

/* Form controls */
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--field); border-radius: 4px;
}
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--ink); flex: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Portal: same family as the website (yellow and black), cards for apps. */
body { background: var(--paper); }
.portal-header { background: var(--ink); color: var(--white); border-bottom: 4px solid var(--accent); }
.portal-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--tap); }
.logo-svg { display: block; flex: none; height: 30px; width: auto; aspect-ratio: 2172 / 548; color: var(--accent); }
.logo-tag { padding-left: 12px; border-left: 1px solid #3a4450; font: 500 .85rem/1.25 var(--font-body); color: var(--soft); }
@media (max-width: 479px) { .logo-tag { display: none; } }
.top-link { display: inline-flex; min-height: var(--tap); align-items: center; font-size: .9rem; font-weight: 600; color: var(--soft); text-decoration: none; }
.top-link:hover { color: var(--white); text-decoration: underline; }
.portal-header :focus-visible, .portal-foot :focus-visible { outline-color: var(--accent); }
.portal-intro { padding: 40px 0 8px; }
.portal-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; max-width: 18ch; }
.portal-intro p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; padding-block: 24px 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(18,22,27,.06), 0 8px 24px rgba(18,22,27,.06); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: var(--accent); font: 700 1.5rem/1 var(--font-display); letter-spacing: .02em; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; background: var(--accent); color: var(--accent-ink); }
.card h2 { font-size: 1.6rem; margin: 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card .btn { flex: 1 1 auto; }
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 20px; margin-bottom: 48px; border: 1px dashed var(--field); border-radius: var(--radius); color: var(--muted); }
.portal-foot { background: var(--ink); color: var(--soft); padding: 22px 0; font-size: .85rem; }
.portal-foot .container { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
@media (max-width: 519px) { .actions .btn { flex: 1; } }
