/* ==========================================================================
   CONFIDON Typography v1.2  (CONFIDON-TYPO-001)
   Shared by website and portal. Do not override locally.
   ========================================================================== */

/* ---------- Font faces ---------- */
@font-face {
  font-family: "InterVariable";
  src: url("/fonts/inter-4.1/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVariable";
  src: url("/fonts/inter-4.1/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20A4, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVariable";
  src: url("/fonts/inter-4.1/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-4.1/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-4.1/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20A4, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-4.1/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Primitive tokens ---------- */
:root {
  --cf-font-sans: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Sizes (1rem = 16px) */
  --cf-size-12: 0.75rem;
  --cf-size-14: 0.875rem;
  --cf-size-16: 1rem;
  --cf-size-18: 1.125rem;
  --cf-size-20: 1.25rem;
  --cf-size-24: 1.5rem;
  --cf-size-28: 1.75rem;
  --cf-size-32: 2rem;
  --cf-size-36: 2.25rem;
  --cf-size-48: 3rem;

  /* Weights */
  --cf-weight-regular: 400;
  --cf-weight-medium: 500;
  --cf-weight-semibold: 600;

  /* Line heights */
  --cf-leading-display: 1.1;
  --cf-leading-display-lg: 1.15;
  --cf-leading-h1: 1.25;
  --cf-leading-h2: 1.3;
  --cf-leading-compact: 1.4;
  --cf-leading-body: 1.5;
  --cf-leading-relaxed: 1.6;
  --cf-leading-none: 1;

  /* Letter spacing */
  --cf-tracking-display: -0.02em;
  --cf-tracking-heading: -0.01em;
  --cf-tracking-normal: 0;
  --cf-tracking-small: 0.01em;
}

/* ---------- Semantic tokens: mobile-first ---------- */
:root {
  --cf-display-xl-size: var(--cf-size-36);
  --cf-display-lg-size: var(--cf-size-28);
  --cf-h1-size: var(--cf-size-24);
  --cf-h2-size: var(--cf-size-18);
  --cf-h3-size: var(--cf-size-16);
  --cf-kpi-size: var(--cf-size-24);

  /* Body defaults to the portal; the website overrides below */
  --cf-body-size: var(--cf-size-14);
  --cf-body-leading: var(--cf-leading-body);

  /* Form fields: 1rem = 16px at the default root size (prevents iOS focus zoom).
     Scales with the user's text-size setting. Do not force the root size. */
  --cf-input-size: var(--cf-size-16);
}

/* Desktop layout */
@media (min-width: 1024px) {
  :root {
    --cf-display-xl-size: var(--cf-size-48);
    --cf-display-lg-size: var(--cf-size-36);
    --cf-h1-size: var(--cf-size-28);
    --cf-h2-size: var(--cf-size-20);
    --cf-kpi-size: var(--cf-size-32);
  }
}

/* Website surface: set data-surface="website" on <html> */
[data-surface="website"] {
  --cf-body-size: var(--cf-size-16);
  --cf-body-leading: var(--cf-leading-relaxed);
}

/* ---------- Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--cf-font-sans);
  font-size: var(--cf-body-size);
  font-weight: var(--cf-weight-regular);
  line-height: var(--cf-body-leading);
  font-optical-sizing: auto;   /* Inter switches to its display design at large sizes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Form controls do not inherit fonts by default in most browsers */
input, select, textarea, button {
  font-family: inherit;
}

/* Browser defaults use weight 700 for these elements. Map them onto the
   approved weights; keep the semantic elements, don't strip their meaning. */
strong, b {
  font-weight: var(--cf-weight-semibold);
}
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--cf-weight-semibold);
}
th {
  font-weight: var(--cf-weight-medium);
}

/* ---------- Type classes ---------- */
.cf-display-xl {
  font-size: var(--cf-display-xl-size);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-display);
  letter-spacing: var(--cf-tracking-display);
}
.cf-display-lg {
  font-size: var(--cf-display-lg-size);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-display-lg);
  letter-spacing: var(--cf-tracking-display);
}
.cf-h1 {
  font-size: var(--cf-h1-size);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-h1);
  letter-spacing: var(--cf-tracking-heading);
}
.cf-h2 {
  font-size: var(--cf-h2-size);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-h2);
  letter-spacing: var(--cf-tracking-heading);
}
.cf-h3 {
  font-size: var(--cf-h3-size);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-body-lg {
  font-size: var(--cf-size-16);
  font-weight: var(--cf-weight-regular);
  line-height: var(--cf-leading-relaxed);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-body {
  font-size: var(--cf-size-14);
  font-weight: var(--cf-weight-regular);
  line-height: var(--cf-leading-body);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="image"]):not([type="range"]),
select,
textarea {
  font-size: var(--cf-input-size);
  font-weight: var(--cf-weight-regular);
  line-height: var(--cf-leading-body);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-label {
  font-size: var(--cf-size-14);
  font-weight: var(--cf-weight-medium);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-table-head {
  font-size: var(--cf-size-12);
  font-weight: var(--cf-weight-medium);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-small);
}
.cf-table-value {
  font-size: var(--cf-size-14);
  font-weight: var(--cf-weight-regular);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-table-total {
  font-size: var(--cf-size-14);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-button {
  font-size: var(--cf-size-14);
  font-weight: var(--cf-weight-medium);
  line-height: var(--cf-leading-none);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-caption {
  font-size: var(--cf-size-12);
  font-weight: var(--cf-weight-regular);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-small);
}
.cf-error {
  font-size: var(--cf-size-14);
  font-weight: var(--cf-weight-medium);
  line-height: var(--cf-leading-compact);
  letter-spacing: var(--cf-tracking-normal);
}
.cf-kpi {
  font-size: var(--cf-kpi-size);
  font-weight: var(--cf-weight-semibold);
  line-height: var(--cf-leading-display);
  letter-spacing: var(--cf-tracking-display);
}

/* ---------- Numbers (see section 6) ---------- */

/* VAT amounts and every numeric value: digits align vertically across rows */
.cf-amount,
.cf-num,
.cf-table-value,
.cf-table-total,
.cf-kpi,
input.cf-amount-input {
  font-variant-numeric: tabular-nums;
}

/* Amounts never break across lines */
.cf-amount {
  white-space: nowrap;
}

/* "Not available" / "Invalid amount" shown in place of an amount */
.cf-amount-status {
  white-space: nowrap;
}

/* Numeric table columns: right-aligned, header included */
.cf-col-num {
  text-align: right;
}

/* Identifiers (VRN, form bundle number, references): tabular + slashed zero */
.cf-ref {
  font-variant-numeric: tabular-nums slashed-zero;
}
