/* Reset, typography and element defaults. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; }
ul, ol { padding-left: 1.25em; }
strong, b { font-weight: 600; }
small { font-size: 12.5px; }
img, svg { display: block; max-width: 100%; }
svg.icon { display: inline-block; }

a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, pre, .mono { font-family: var(--font-mono); font-feature-settings: normal; }
code { font-size: 0.95em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

/* default form controls (components.css refines them) */
input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-line);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 14px;
}
/* iOS Safari zooms into a focused field whose text is under 16px */
@media (max-width: 639.98px) {
  input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea { font-size: 16px; }
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
label { color: var(--text-2); font-size: 13.5px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; }

hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* focus: visible only for keyboard users. The transparent outline is invisible normally but
   drawn in the system colour in forced-colors mode (Windows High Contrast), where box-shadow
   is removed. */
:focus { outline: none; }
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); }
a:focus-visible { border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); }

/* icons from the local sprite: size follows the font size by default */
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  vertical-align: -0.25em; stroke-width: 2;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--on-accent); font-weight: 500;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
