/*
 * &engineering — base styles.
 *
 * Page markup keeps the design's inline styles. Interactive states that inline
 * styles can't express (hover, focus, active toggles) live here as small
 * utility classes; hover/focus rules use !important so they win over inline styles.
 *
 * Public pages load only this file; the admin layout adds admin.css.
 */

/* Self-hosted fonts (latin subset of Google Fonts; files in app/assets/fonts) */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/ibm-plex-mono-400-latin-d13bb5b4.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/ibm-plex-mono-500-latin-deab9c2b.woff2") format("woff2"); 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: "Playfair Display"; font-style: italic; font-weight: 500 600; font-display: swap; src: url("/assets/playfair-display-italic-latin-bb807916.woff2") format("woff2"); 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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/schibsted-grotesk-latin-1061523f.woff2") format("woff2"); 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; }

:root {
  --ink: #0b2e6b;
  --ink-2: #46586f;
  --ink-3: #6b7d99;
  --ink-4: #8296b3;
  --blue: #1553c0;
  --blue-dark: #0d3d92;
  --blue-bright: #2f7ff2;
  --blue-tint: #e8f1fd;
  --wash: #f4f8fe;
  --line: #dfe7f2;
  --line-2: #e8eef7;
  --navy: #0a1f4d;
  --sky: #7db8ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; font-family: "Schibsted Grotesk", sans-serif; color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
[hidden] { display: none !important; }

/* ---- Hover / focus utilities (one per style-hover variant in the design) ---- */
.hov-primary:hover      { background: #0d3d92 !important; color: #ffffff !important; }
.hov-light:hover        { background: #a5ccff !important; color: #0a1f4d !important; }
.hov-ghost-dark:hover   { background: #0d2c6e !important; color: #ffffff !important; }
.hov-tint:hover         { background: #f4f8fe !important; }
.hov-border:hover       { border-color: #2f7ff2 !important; }
.hov-pill:hover         { border-color: #2f7ff2 !important; color: #1553c0 !important; }
.hov-text:hover         { color: #1553c0 !important; }
.foc-input:focus        { border-color: #2f7ff2 !important; background: #ffffff !important; }

/* ---- Segmented filter / tab pills ----
 * <button class="seg" aria-pressed="true|false">  (toggled by filter / tabs controllers) */
.seg {
  border: 1px solid #dfe7f2; background: #ffffff; color: #46586f;
  border-radius: 999px; padding: 9px 16px; font: 600 14px "Schibsted Grotesk", sans-serif; cursor: pointer;
}
.seg[aria-pressed="true"] { border-color: #0b2e6b; background: #0b2e6b; color: #ffffff; }

/* Multi-select chips in the evaluation form */
.chip {
  border: 1px solid #dfe7f2; background: #ffffff; color: #46586f;
  border-radius: 999px; padding: 7px 14px; font: 500 13.5px "Schibsted Grotesk", sans-serif; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: #1553c0; background: #1553c0; color: #ffffff; }

.field-input.is-invalid { border-color: #e0877d !important; }

/* ---- Accordion marks: "+" when closed, "−" when open ---- */
.acc-mark::before { content: "+"; }
[aria-expanded="true"] .acc-mark::before { content: "−"; }

/* ---- Site header ---- */
.site-nav, .site-nav-cta { display: flex; }
.site-burger { display: none; }
@media (max-width: 1059px) {
  .site-nav, .site-nav-cta { display: none; }
  .site-burger { display: flex; }
}
@media (min-width: 1060px) {
  .site-drawer { display: none !important; }
}
.nav-trigger[aria-expanded="true"] .nav-caret::before { content: "▲"; }
.nav-caret::before { content: "▼"; }
.burger-close { display: none; }
.site-burger[aria-expanded="true"] .burger-open { display: none; }
.site-burger[aria-expanded="true"] .burger-close { display: block; }

