*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nca-header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--nca-font);
  background: var(--nca-bg);
  color: var(--nca-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nca-green); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--nca-green-light); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px); overflow: hidden;
  height: 1px; width: 1px; word-wrap: normal;
}
.visually-hidden.focusable:active, .visually-hidden.focusable:focus { position: static !important; clip: auto; overflow: visible; height: auto; width: auto; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000;
  background: var(--nca-navy); color: #fff; padding: 10px 16px; border-radius: var(--nca-radius-sm);
}
.skip-link:focus { top: 10px; color: #fff; }

/* Rich text inside body fields */
.text-content p + p { margin-top: 15px; }
.text-content ul, .text-content ol { padding-inline-start: 22px; margin: 10px 0; }
.text-content li { margin-bottom: 6px; }
.text-content h2, .text-content h3, .text-content h4 { color: var(--nca-navy); margin: 25px 0 12px; line-height: 1.4; }
.text-content h2:first-child, .text-content h3:first-child { margin-top: 0; }
.text-content a { color: var(--nca-green); text-decoration: underline; }
.text-content table { width: 100%; border-collapse: collapse; margin: 15px 0; display: block; overflow-x: auto; }
.text-content th, .text-content td { border: 1px solid var(--nca-border); padding: 10px; text-align: start; }

/* Drupal status messages */
.messages-list { max-width: var(--nca-container); margin: 20px auto 0; padding: 0 var(--nca-gutter); }
.messages {
  padding: 14px 18px; border-radius: var(--nca-radius-sm); margin-bottom: 10px;
  background: var(--nca-green-tint); color: var(--nca-green); border-inline-start: 4px solid var(--nca-green);
}
.messages--error { background: #fee2e2; color: #991b1b; border-color: var(--nca-red); }
.messages--warning { background: #fef3c7; color: #92400e; border-color: #d97706; }
.messages ul { padding-inline-start: 20px; }
