/*
  Design tokens, taken from profile.nl/afspraak (profile-corporate-website, src/scss/config).
  Every colour, font, size and breakpoint the site uses comes from here; components use the custom
  properties, never a literal value. Plain CSS: no Bootstrap, no component library (FND-7).

  Breakpoints (media queries cannot read custom properties, so they are written out where used):
    sm 375px, md 576px, lg 768px, xl 992px, xxl 1200px
*/
:root {
  /* Brand */
  --color-primary: #dd261e;        /* Profile red: buttons, active step, links on hover */
  --color-primary-hover: #e43a32;  /* primary lightened 5% */
  --color-secondary: #f7c93c;      /* yellow: Dutch licence plate, next-step buttons */
  --color-secondary-hover: #f8d054; /* secondary lightened 5% */
  --color-success: #4bb55e;
  --color-dark: #262625;           /* body text */
  --color-light: #f6f6f6;          /* stepper and card backgrounds */
  --color-white: #fff;
  --color-overlay: rgb(0 0 0 / 40%); /* behind a dialog */

  /* Greys */
  --color-gray-100: #ebeced;
  --color-gray-200: #e1e1e1;       /* lines, borders */
  --color-gray-300: #dadada;       /* stepper line and open step */
  --color-gray-400: #afafaf;       /* footer links */
  --color-gray-600: #737373;       /* secondary text */
  --color-gray-700: #464644;       /* completed step */

  /*
    Spacing scale, from the values profile.nl/afspraak uses (4px to 72px). Components use these for
    margin, padding and gap; a test rejects literal lengths there (FND-8).
  */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.375rem;  /* 6px */
  --space-3: 0.5rem;    /* 8px */
  --space-4: 0.625rem;  /* 10px */
  --space-5: 0.75rem;   /* 12px */
  --space-6: 0.875rem;  /* 14px */
  --space-7: 1rem;      /* 16px */
  --space-8: 1.25rem;   /* 20px */
  --space-9: 1.5rem;    /* 24px */
  --space-10: 1.75rem;  /* 28px */
  --space-11: 3rem;     /* 48px */
  --space-12: 4rem;     /* 64px */
  --space-13: 4.5rem;   /* 72px */

  /* Space relative to the text it follows. */
  --space-after-heading: 0.75em;
  --space-after-paragraph: 1em;

  /* Type */
  --font-body: roboto, -apple-system, blinkmacsystemfont, "Segoe UI", "Helvetica Neue", arial, sans-serif;
  --font-heading: museo-slab, constantia, "Lucida Bright", lucidabright, "DejaVu Serif", georgia, serif;
  --font-plate: kenteken, var(--font-body);
  --font-size-2xs: 0.625rem;       /* 10px: stepper on small screens */
  --font-size-small: 0.8125rem;    /* 13px */
  --font-size-step: 0.9375rem;     /* 15px: stepper */
  --font-size-md: 1rem;            /* 16px: vehicle card details */
  --font-size-base: 1.0625rem;     /* 17px */
  --font-size-h3: 1.125rem;        /* 18px */
  --font-size-xl: 1.5rem;          /* 24px: vehicle card title */
  --font-size-lg: 1.25rem;         /* 20px */
  --font-size-h2: 1.375rem;        /* 22px; 26px from md */
  --font-size-h1: 1.75rem;         /* 28px; 36px from md */
  --font-size-plate: 2rem;         /* 32px: licence-plate input */
  --font-size-plate-small: 1rem;   /* 16px: plate in the summary */
  --line-height-base: 1.5;

  /* Layout */
  --container-max-width: 76.875rem; /* 1230px */
  --container-gutter: 1.875rem;     /* 30px */
  --logo-height: 1.9375rem;         /* 31px at every size, as profile.nl/afspraak */
  --header-height: 4.25rem;         /* 68px; 80px from md */
  --sidebar-width-lg: 18.75rem;     /* 300px */
  --sidebar-width-xl: 26.875rem;    /* 430px */
  --stepper-max-width: 50.625rem;   /* 810px */

  /* Shape */
  --radius: 0.3125rem;             /* 5px: buttons, inputs */
  --radius-card: 0.5rem;           /* 8px: summary cards, step 1 tiles and inputs */
  --border-width: 1px;
  --focus-ring: 0 0 0 0.2rem rgb(221 38 30 / 35%);

  /* Licence plate: a blue band with the country symbol, then the plate (profile.nl .license-plate). */
  --color-plate-band: #3b6da7;        /* the blue EU band */
  --color-plate-focus: #f6c224;       /* Dutch yellow while typing */
  --color-plate-be-border: #ec7a75;   /* Belgian plate: light red edge inside the frame */
  --plate-height: 4rem;               /* 64px */
  --plate-height-small: 3rem;         /* 48px: in the summary */
  --plate-band-width: 2.5rem;         /* 40px */
  --plate-band-width-small: 2.1875rem; /* 35px */
  --plate-band-padding: 0.4375rem;    /* 7px */
  --plate-input-width: 15rem;         /* 240px: the plate part, without the band */
  --plate-input-width-be: 17.5rem;    /* 280px: Belgian plates are longer */
  --plate-border-width: 0.125rem;     /* 2px */
  --radius-plate: 0.75rem;            /* 12px */
  --radius-plate-inner: 0.625rem;     /* 10px: band and input inside the frame */
  --plate-field-gap: 2rem;            /* 32px: between the plate and "Kenteken wijzigen" */

  /* A control that cannot be used yet (profile.nl .edit-button[disabled]) */
  --opacity-disabled: 0.4;

  /* Vehicle card in step 1 (profile.nl .vehicle-info-accordion, .description-list) */
  --vehicle-card-padding: 1.5rem 2rem 0.5rem; /* 24px 32px 8px */
  --vehicle-card-margin-top: 2.5rem;          /* 40px below the plate */
  --vehicle-card-loading-height: 9.625rem; /* 154px: the placeholder while the plate is looked up */

  /* Step heading and intro (profile.nl .appointment-title, the intro's .mb-5) */
  --font-size-step-title: calc(1.05rem + 0.6vw); /* 24px from xxl */
  --font-weight-step-title: 500;
  --step-intro-margin-bottom: 2.5rem;            /* 40px */

  /* Buttons */
  --button-padding: 1.1875rem 1.75rem; /* 19px 28px */
  --button-font-size: 1rem;

  /* Step 1 fields (profile.nl vehicle-info: .radio-chip, %input, __mileage, .ownership__input) */
  --tile-padding: 0.9375rem 1.25rem;  /* 15px 20px: the Bezit tiles */
  --input-padding: 0.9375rem;         /* 15px: the lease-company search */
  --input-padding-lg: 1.25rem;        /* 20px: mileage and the typed lease company */
  --input-mileage-max-width: 21.25rem; /* 340px */
  --input-clear-width: 4.375rem;      /* 70px: the cross in the lease-company field */
  --label-font-weight: 600;           /* .appointment-label */

  /* The lease-company results (profile.nl _auto-complete.scss) */
  --results-max-height: 14.125rem;     /* 226px */
  --results-border: rgb(38 38 37 / 7%); /* dark at 7% */
  --results-shadow: 0 3px 6px rgb(149 157 165 / 15%);
  --results-item-gap: 0.3rem;
  --results-item-padding: 0.3rem 0.5rem;
  --results-item-radius: 0.35rem;
  --results-item-color: #212121;
  --results-item-hover: rgb(38 38 37 / 10%); /* dark at 10% */
}

@media (min-width: 576px) {
  :root {
    --header-height: 5rem;
    --font-size-h2: 1.625rem;
    --font-size-h1: 2.25rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --font-size-step-title: 1.5rem;
  }
}
