/* src/styles/fonts.css */
/* One file per variable font. Instatic installs the same variable file once per weight
   (schibsted-grotesk 500/600/700/800 and ibm-plex-sans 400/500/600 are byte-identical),
   so the browser would download it 3-4 times. These faces load each file once, and the
   html:root rule points the font tokens at them, so Instatic's per-weight faces stay unused. */
@font-face { font-family: "Schibsted Grotesk VF"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/media/fonts/schibsted-grotesk-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans VF"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/media/fonts/ibm-plex-sans-var.woff2") format("woff2"); }
html:root {
  --font-display: "Schibsted Grotesk VF", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans VF", ui-sans-serif, system-ui, sans-serif;
}


/* src/styles/consent.css */
/* Privacy notice and settings dialog built by src/scripts/consent.js.
   Source of truth: vantage-site/consent/consent.css (published as the code asset src/styles/consent.css).
   Both choices get the same button style on purpose: a refusal must be as easy to see and press as an accept.
   Colours come from the site tokens, so light and dark themes both work. */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner h2,
.cookie-dialog h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 44px 10px 0;
  font-weight: 700;
  color: var(--text);
}
.cookie-banner p,
.cookie-dialog p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}
.cookie-banner a,
.cookie-dialog a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 44px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cookie-close:hover {
  background: var(--surface-2);
}
.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cookie-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: normal;
  cursor: pointer;
}
.cookie-actions button:hover {
  background: var(--surface-2);
}
.cookie-banner-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.875rem;
}
.cookie-banner-bottom .cookie-settings-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 32px;
  cursor: pointer;
}
.cookie-dialog {
  /* The reset sets margin: 0 on everything, which removes the browser's centering of a modal dialog. */
  margin: auto;
  box-sizing: border-box;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  box-shadow: var(--shadow-lg);
}
.cookie-dialog::backdrop {
  background: oklch(0.15 0.03 205 / 0.55);
  backdrop-filter: blur(3px);
}
.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-category-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.cookie-category h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.cookie-category-header > span:not(:first-child) {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 40px;
  padding: 4px 10px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.cookie-category input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.cookie-dialog .cookie-note {
  font-size: 0.875rem;
  margin-top: 14px;
}
.cookie-dialog .cookie-saved {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--text);
}
.cookie-dialog .cookie-save {
  display: block;
  width: 100%;
  min-height: 44px;
  background: var(--primary);
  color: var(--on-primary);
  border: 0;
  border-radius: 10px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-dialog .cookie-save:hover {
  filter: brightness(1.08);
}
.cookie-banner :focus-visible,
.cookie-dialog :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .cookie-banner {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    padding: 20px;
  }
  .cookie-banner h2 {
    font-size: 1.125rem;
  }
  .cookie-dialog {
    padding: 24px 20px;
  }
  .cookie-actions {
    gap: 8px;
  }
  .cookie-dialog .cookie-actions {
    flex-wrap: wrap;
  }
}
@media print {
  .cookie-banner,
  .cookie-dialog {
    display: none !important;
  }
}
