/**
 * Element defaults (no classes).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--ncmg-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ncmg-color-text);
  background: var(--ncmg-color-white);
}

a {
  color: var(--ncmg-color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--ncmg-color-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--ncmg-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 30px;
  font-family: var(--ncmg-font-heading);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ncmg-color-heading);
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; font-weight: 700; }
h6 { font-size: 12px; font-weight: 700; }

/* As in the original (Canvas style.css). */
h5,
h6 {
  margin-bottom: 20px;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table {
  margin: 0 0 30px;
}

p {
  line-height: 1.8;
}

ul,
ol {
  padding-left: 2em;
}

hr {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--ncmg-color-border);
}

blockquote {
  padding: 10px 20px;
  border-left: 5px solid var(--ncmg-color-border);
  font-size: 1.15em;
}

iframe {
  max-width: 100%;
  border: 0;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

[hidden],
.hidden {
  display: none !important;
}

.js-hide,
.js .js-show {
  display: none;
}
