/**
 * Base element styles and a small reset.
 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kc-header-h) + 3.5rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--kc-font-sans);
  font-size: var(--kc-fs-base);
  line-height: var(--kc-lh-base);
  color: var(--kc-body);
  background: var(--kc-canvas);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--kc-s3);
  font-family: var(--kc-font-display);
  font-weight: 750;
  line-height: var(--kc-lh-snug);
  color: var(--kc-ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--kc-fs-3xl); line-height: var(--kc-lh-tight); }
h2 { font-size: var(--kc-fs-2xl); }
h3 { font-size: var(--kc-fs-xl); }
h4 { font-size: var(--kc-fs-lg); }
h5 { font-size: var(--kc-fs-md); }
h6 { font-size: var(--kc-fs-base); }

p, ul, ol, dl, blockquote, figure, pre, table { margin: 0 0 var(--kc-s4); }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.25em; }

a {
  color: var(--kc-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s var(--kc-ease);
}
a:hover { color: var(--kc-link-hover); text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--kc-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg, video { max-width: 100%; height: auto; }
img { border-style: none; }
hr { border: 0; border-top: 1px solid var(--kc-line); margin: var(--kc-s8) 0; }
strong, b { font-weight: 650; color: inherit; }
small { font-size: var(--kc-fs-sm); }
code, kbd, pre { font-family: var(--kc-font-mono); font-size: 0.9em; }
pre { overflow: auto; padding: var(--kc-s4); background: var(--kc-canvas); border-radius: var(--kc-radius-sm); }
abbr[title] { text-decoration: underline dotted; cursor: help; }
::selection { background: var(--kc-gold-300); color: var(--kc-ink); }

.kc-icon {
  display: inline-block;
  width: 1.125em;
  height: 1.125em;
  flex: none;
  vertical-align: -0.2em;
  stroke-width: 2;
}

/* Drupal helper classes (system/base is kept, these refine it). */
.visually-hidden.focusable:is(:active, :focus) { position: static !important; clip: auto; height: auto; width: auto; overflow: visible; }
[hidden] { display: none !important; }

.kc-skip-link {
  position: absolute;
  left: var(--kc-s4);
  top: -100px;
  z-index: 1000;
  padding: var(--kc-s3) var(--kc-s5);
  background: var(--kc-gold-400);
  color: var(--kc-ink);
  font-weight: 700;
  border-radius: 0 0 var(--kc-radius-sm) var(--kc-radius-sm);
  text-decoration: none;
}
.kc-skip-link:focus { top: 0; color: var(--kc-ink); }

.kc-hide-sm { }
@media (max-width: 39.99rem) { .kc-hide-sm { display: none !important; } }
@media (max-width: 63.99rem) { .kc-hide-md { display: none !important; } }
