*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

html, body {
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.govuk-body, .govuk-body-l, .govuk-body-s,
.govuk-heading-xl, .govuk-heading-l, .govuk-heading-m, .govuk-heading-s,
.govuk-warning-text, .govuk-warning-text__text,
.govuk-footer, .govuk-footer__meta,
.govuk-main-wrapper {
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 400;
}

.govuk-width-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.govuk-main-wrapper {
  padding-top: 0;
}

.ncc-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d8d8d8;
  font-family: Figtree, system-ui, sans-serif;
}

.ncc-rule {
  height: 4px;
  background-color: #001c47;
}

.ncc-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ncc-header__logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ncc-header__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.ncc-hero {
  background-color: #001c47;
  padding: 0;
}

.ncc-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.ncc-hero__heading {
  font-family: Figtree, system-ui, sans-serif;
  font-style: normal;

  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: clamp(3rem, 4vw, 4.5rem);
  color: #ffffff;
  display: block;
  margin: 0 0 1.75rem 0;
  word-wrap: break-word;
}

.ncc-hero__description {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.govuk-breadcrumbs { display: none; }

.ncc-breadcrumbs {
  /* .govuk-width-container is now a self-contained max-width:1100px / margin:auto / padding:30px
     box — identical to .ncc-hero__inner and to the info sheets' own .main-wrap/.ncc-breadcrumbs.
     The breadcrumb nav just needs vertical spacing; horizontal alignment comes free from the
     parent container, so it matches the hero heading and body text at every breakpoint. */
  padding: 24px 0;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.1875rem;
}

.ncc-breadcrumbs ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.ncc-breadcrumbs ol li {
  position: relative;
  margin-left: 0.625em;
  padding-left: 1em;
  padding-right: 5px;
  display: flex;
  align-items: center;
  min-height: 44px; /* WCAG 2.5.8 — 24px minimum; 44px for comfortable mobile target */
}

.ncc-breadcrumbs ol li:first-child {
  margin-left: 0;
  padding-left: 0;
}

.ncc-breadcrumbs ol li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.35em;
  width: 0.4375em;
  height: 0.4375em;
  transform: translateY(-50%) rotate(45deg);
  border-style: solid;
  border-width: 2px 2px 0 0;
  border-color: #004d87;
  margin-left: -8px;
}

.ncc-breadcrumbs ol li:first-child::before {
  content: none;
  display: none;
}

.ncc-breadcrumbs ol li a:link,
.ncc-breadcrumbs ol li a:visited {
  color: #005596;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* WCAG 2.5.8 — expands tap target without visual bulk */
  padding: 0 4px;
}

.ncc-breadcrumbs ol li:last-child a:link,
.ncc-breadcrumbs ol li:last-child a:visited {
  color: #004478 !important;
  font-weight: 600;
}

.ncc-breadcrumbs ol li a:focus {
  outline: 3px solid transparent;
  color: #0b0c0c;
  background-color: #ffdd00;
  box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
  text-decoration: none;
}

/* Matches the 820px breakpoint used in the info sheets' .main-wrap / .ncc-hero__inner */
@media (max-width: 820px) {
  .ncc-hero__inner { padding: 34px 20px; }
  .govuk-width-container { padding: 0 20px; }
  .ncc-breadcrumbs { padding: 20px 0; }
}

.ncc-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 36px;
  align-items: start;
}

@media (max-width: 640px) {
  .ncc-service-grid {
    grid-template-columns: 1fr;
  }
}

.ncc-service-card--coming-soon {
  cursor: default;
  opacity: 0.65;
}

.ncc-service-card--coming-soon:hover {
  background-color: #ffffff;
}

.ncc-service-card {
  display: block;
  background-color: #ffffff;
  border: none;
  outline: 2px solid #52608f;
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  text-decoration: none !important;
  color: #000000;
  box-sizing: border-box;
  transition: background-color 50ms ease-in-out;
  position: relative;
}

.ncc-service-card:hover {
  background-color: #edf0f7;
  color: #000000;
}

.ncc-service-card:focus-within {
  outline: 4px solid #000000;
  outline-offset: 2px;
}

.ncc-service-card__link {
  text-decoration: underline;
  color: #005596;
}

.ncc-service-card__link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}


.ncc-service-card__title {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  color: #005596;
  text-decoration: underline;
  margin: 0 0 8px;
}

.ncc-service-card:hover .ncc-service-card__title,
.ncc-service-card:focus-visible .ncc-service-card__title {
  color: #005596;
}

.ncc-service-card__body {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: #000000;
  margin: 8px 0 0;
}

.govuk-footer {
  border-top: 4px solid #001c47;
  font-family: Figtree, system-ui, sans-serif;
}

@media print {
  .ncc-hero {
    background-color: #001c47 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.govuk-warning-text {
  align-items: flex-start;
}

.govuk-warning-text__icon {
  margin-top: 3px;
}


.label-with-tip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
}
.label-with-tip label {
  margin-bottom: 0 !important;
  min-width: 0;
}
.label-with-tip .tip-icon {
  margin-left: 2px !important;
  flex-shrink: 0;
}


.ncc-hero__content  { flex: 1; min-width: 0; }
.a11y-print:focus-visible { outline: 3px solid #ffdd00; outline-offset: 2px; }
.a11y-print         { background: transparent; border: 1px solid rgba(255,255,255,0.45); color: #fff; font-family: Figtree, system-ui, sans-serif; font-size: 1.125rem; cursor: pointer; padding: 6px 14px; border-radius: 2px; display: flex; align-items: center; gap: 6px; transition: background 0.15s; min-height: 44px; }
.a11y-print:hover   { background: rgba(255,255,255,0.15); border-color: #fff; }
.sr-only            { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media print {
  .ncc-breadcrumbs { display: none !important; }
}

