/**
 * Modern CSS Reset & Normalize
 * Based on modern-normalize with additions
 * Path: /themes/custom/default/css/base/normalize.css
 */

/* ===================================
   Document
   =================================== */

/**
 * Use a better box model (opinionated)
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/**
 * 1. Correct the line height in all browsers
 * 2. Prevent adjustments of font size after orientation changes in iOS
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4;
  tab-size: 4;
}

/**
 * Remove default margin and padding
 */
body {
  margin: 0;
  padding: 0;
}

/* ===================================
   Sections
   =================================== */

/**
 * Remove default margins
 */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/**
 * Improve consistency of default fonts
 */
body {
  font-family: var(--font-base, system-ui, -apple-system, sans-serif);
  font-size: var(--font-size-base, 1rem);
  line-height: var(--line-height-normal, 1.5);
  color: var(--color-text, #212529);
  background-color: var(--color-bg, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Grouping content
   =================================== */

/**
 * 1. Add the correct height in Firefox
 * 2. Correct the inheritance of border color in Firefox
 */
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px;
}

/**
 * Remove default list styles
 */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/**
 * Add correct display in Chrome and Safari
 */
abbr[title] {
  text-decoration: underline dotted;
}

/**
 * Prevent `sub` and `sup` affecting `line-height`
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/**
 * Add correct font weight in Chrome, Edge, and Safari
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Improve consistency of default fonts
 * 2. Correct the odd `em` font sizing
 */
code,
kbd,
samp,
pre {
  font-family: var(--font-mono, monospace); /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Prevent overflow
 */
pre {
  overflow: auto;
}

/**
 * Add correct font size
 */
small {
  font-size: 80%;
}

/* ===================================
   Embedded content
   =================================== */

/**
 * 1. Make images responsive by default
 * 2. Remove border on images inside links in IE 10
 */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  max-width: 100%; /* 1 */
  height: auto; /* 1 */
}

img {
  border-style: none; /* 2 */
}

/**
 * Maintain aspect ratio
 */
svg {
  overflow: hidden;
  vertical-align: middle;
}

/* ===================================
   Forms
   =================================== */

/**
 * 1. Change font properties to `inherit`
 * 2. Remove margin in Firefox and Safari
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0;
}

/**
 * Remove the inheritance of text transform in Edge and Firefox
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari
 */
button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  appearance: button;
}

/**
 * Remove inner border and padding in Firefox
 */
::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore focus styles unset by previous rule
 */
:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Remove additional padding in Chrome, Edge, and Safari
 */
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari
 * 2. Correct the outline style in Safari
 */
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove inner padding in Chrome and Safari on macOS
 */
::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style upload buttons in iOS and Safari
 * 2. Change font properties to `inherit` in Safari
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/**
 * Correct cursor for disabled elements
 */
[disabled] {
  cursor: not-allowed;
}

/**
 * Add correct vertical alignment
 */
progress {
  vertical-align: baseline;
}

/**
 * Correct height in Chrome and Firefox
 */
textarea {
  resize: vertical;
}

/**
 * Remove default fieldset styles
 */
fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

/**
 * 1. Correct text wrapping in Edge and IE
 * 2. Correct color inheritance from fieldset
 */
legend {
  max-width: 100%; /* 1 */
  color: inherit; /* 2 */
  white-space: normal; /* 1 */
}

/* ===================================
   Interactive
   =================================== */

/**
 * Add correct display in Chrome and Safari
 */
summary {
  display: list-item;
  cursor: pointer;
}

/**
 * Remove outline for mouse users
 * Keep it for keyboard users
 */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary, #007bff);
  outline-offset: 2px;
}

/* ===================================
   Tables
   =================================== */

/**
 * 1. Remove spacing between cells
 * 2. Ensure table fills container
 */
table {
  border-collapse: collapse; /* 1 */
  border-spacing: 0; /* 1 */
  width: 100%; /* 2 */
}

/* ===================================
   Accessibility
   =================================== */

/**
 * Visually hidden but accessible to screen readers
 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/**
 * Skip to content link
 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 100;
  padding: 8px;
  background: var(--color-primary, #007bff);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ===================================
   Print
   =================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}