/*
 * NT-EDV design system: tokens, reset, typography and shared components.
 *
 * Served bundled in front of site.css (website) and app.css (portal, CRM),
 * so every layout loads exactly one stylesheet. site.css and app.css only
 * add their own classes and never override rules from this file.
 *
 * Look: white surfaces, navy for text and dark areas, red only for accents
 * and primary actions; calm spacing, hairline borders, radius 6 px, no
 * gradients, no shadows. Colours are used only through the tokens below; a
 * test checks the WCAG 2.2 AA contrast of every text/background pair.
 * The class reference is docs/UI.md.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */

:root {
  /* brand */
  --nt-red: #DA1C16;
  --nt-red-dark: #B5150F;
  --nt-navy: #03163B;
  --nt-navy-700: #1B2A4A;

  /* text and surfaces */
  --nt-ink: #03163B;
  --nt-muted: #5B6475;
  --nt-bg: #FFFFFF;
  --nt-bg-soft: #F4F6F9;
  --nt-border: #E3E7EE;
  --nt-border-strong: #7A8496; /* form controls: at least 3:1 against white and soft (WCAG 1.4.11) */

  /* status */
  --nt-success: #1B7F4B;
  --nt-warning: #8A5A00;
  --nt-danger: #B5150F;
  --nt-info: #1F4E9C;
  --nt-success-soft: #EFF8F3;
  --nt-warning-soft: #FDF4E1;
  --nt-danger-soft: #FCEBEA;
  --nt-info-soft: #EAF0FA;

  /* focus ring and text on navy */
  --nt-focus: #1F4E9C;
  --nt-on-dark: #FFFFFF;
  --nt-on-dark-muted: #C3CBDA;
  --nt-on-dark-line: #2B3B5C;

  /* semantic aliases: dark areas (.section--navy, footer, CTA band) redefine them */
  --text: var(--nt-ink);
  --text-muted: var(--nt-muted);
  --line: var(--nt-border);
  --focus: var(--nt-focus);
  --link-hover: var(--nt-red-dark);
  /* the brand dash of the logo (red and navy parallelograms), decorative */
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 164'%3E%3Cpath fill='%23DA1C16' d='M0 0h242l-74 164H0z'/%3E%3Cpath fill='%2303163B' d='M470 164H228l74-164h168z'/%3E%3C/svg%3E");

  /* spacing, 4 to 64 px */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* type scale */
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: clamp(2.25rem, 5vw, 3.5rem);

  /* fonts: system stacks only, nothing is downloaded */
  --font-head: "Barlow", "DIN Alternate", "Bahnschrift", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --lh-tight: 1.2;
  --lh-body: 1.6;

  /* shape and layout */
  --radius: 6px;
  --radius-sm: 4px;
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --target: 2.75rem; /* 44 px for primary actions */
}

/* -------------------------------------------------------------------------
 * Reset and base elements
 * ---------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--sp-5);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--nt-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img, video { height: auto; }
img { border-style: none; }

/* Flow: blocks carry space below them, the last child in a box none.
   :where() keeps the specificity at zero, so every component class wins. */
:where(p, ul, ol, dl, blockquote, figure, pre, table, address, fieldset, details, form, hr) {
  margin: 0 0 var(--sp-4);
}
:where(h1, h2, h3, h4, h5, h6) { margin: 0 0 var(--sp-3); }
:where(p, ul, ol, dl, blockquote, figure, pre, table, address, details) + :where(h2, h3, h4) {
  margin-top: var(--sp-6);
}
:where(p, ul, ol, dl, blockquote, figure, pre, table, address, fieldset, details, form, hr,
  h1, h2, h3, h4, h5, h6):last-child { margin-bottom: 0; }
:where(ul, ol) { padding-left: 1.25rem; }
:where(li + li) { margin-top: var(--sp-1); }
:where(dd) { margin-left: 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -.005em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Long German compounds would overflow narrow screens; on wide screens
   automatic hyphenation only splits words that fit ("Ol-denburger"). */
@media (max-width: 40em) {
  h1, h2, h3, h4, h5, h6 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}
h1 { font-size: clamp(1.875rem, 1.35rem + 2.2vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5, h6 { font-size: var(--fs-base); }

p, li { text-wrap: pretty; }

a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--nt-red);
  text-decoration-thickness: max(1px, .0625em);
  text-underline-offset: .2em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

strong, b { font-weight: 700; }
small { font-size: var(--fs-sm); }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .9375em; }
pre {
  overflow-x: auto;
  padding: var(--sp-4);
  background: var(--nt-bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

fieldset { border: 0; padding: 0; min-width: 0; }
legend {
  padding: 0;
  margin-bottom: var(--sp-3);
  color: var(--text);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

summary { cursor: pointer; }

table { border-collapse: collapse; }

/* -------------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--nt-navy);
  color: var(--nt-on-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--nt-red); }
.skip-link:hover { color: var(--nt-on-dark); }

.notice-region:empty { display: none; }

/* -------------------------------------------------------------------------
 * Layout
 * ---------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.stack { --stack: var(--sp-4); }
.stack--sm { --stack: var(--sp-2); }
.stack--lg { --stack: var(--sp-6); }
.stack > * { margin-block: 0; }
.stack > * + * { margin-block-start: var(--stack); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.cluster > * { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
}
.grid > * { margin: 0; min-width: 0; }
/* Four-up items are key figures: as many columns of at least 14rem as the
   space allows, at most four, never a count by viewport width (the app
   shell's side navigation takes 15.5rem from 60em, which made tiles too
   narrow for an amount there). */
.grid--4 {
  --grid4-gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(14rem, (100% - 3 * var(--grid4-gap)) / 4)), 1fr));
  gap: var(--grid4-gap);
}
@media (min-width: 40em) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { --grid4-gap: var(--sp-5); }
}
@media (min-width: 60em) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* A last card that would stand alone in its row takes the whole row, so a
   count like seven leaves no hole beside it. */
@media (min-width: 40em) and (max-width: 59.99em) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 60em) {
  .grid--3 > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

.section { padding-block: var(--sp-7); }
@media (min-width: 48em) {
  .section { padding-block: var(--sp-8); }
}
.section--soft { background: var(--nt-bg-soft); }
.section--navy {
  --text: var(--nt-on-dark);
  --text-muted: var(--nt-on-dark-muted);
  --line: var(--nt-on-dark-line);
  --focus: var(--nt-on-dark);
  --link-hover: var(--nt-on-dark);
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 164'%3E%3Cpath fill='%23DA1C16' d='M0 0h242l-74 164H0z'/%3E%3Cpath fill='%23FFFFFF' d='M470 164H228l74-164h168z'/%3E%3C/svg%3E");
  background: var(--nt-navy);
  color: var(--text);
}
.section__head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section__head > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
 * Text
 * ---------------------------------------------------------------------- */

/* Small uppercase label above a heading, led by the brand dash. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  color: var(--text);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: .625rem;
  background: var(--dash) no-repeat center / contain;
}
.eyebrow + :where(h1, h2, h3) { margin-top: 0; }

.lead {
  max-width: 42rem;
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 1.55;
}
@media (min-width: 48em) {
  .lead { font-size: var(--fs-xl); }
}

.prose { max-width: 70ch; }
.prose :where(h2) { margin-top: var(--sp-7); }
.prose :where(h3) { margin-top: var(--sp-6); }
.prose :where(h2, h3):first-child { margin-top: 0; }
.prose :where(li + li) { margin-top: var(--sp-2); }
.prose :where(ul) { list-style: square; }
.prose :where(ul li)::marker { color: var(--nt-red); }

.muted { color: var(--text-muted); }

/* A short red rule above a heading (class on the heading itself). */
.accent-line::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: var(--sp-4);
  background: var(--nt-red);
}

.mono { font-family: var(--font-mono); font-size: .9375em; letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }

/* Lists with a leading icon (contact facts, features). */
.icon-list {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}
.icon-list > li { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; }
.icon-list > li > .icon { margin-top: .15em; color: var(--nt-red); }

/* Benefit lists with a red check mark drawn in CSS. */
.check-list { padding: 0; list-style: none; }
.check-list > li { position: relative; padding-left: 1.75rem; }
.check-list > li + li { margin-top: var(--sp-2); }
.check-list > li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: .3rem;
  width: .45rem;
  height: .8rem;
  border: solid var(--nt-red);
  border-width: 0 .16rem .16rem 0;
  transform: rotate(45deg);
}

/* Plain link lists (error pages, sidebars). */
.link-list { display: grid; gap: var(--sp-2); padding: 0; list-style: none; }
.link-list > li { margin: 0; }

/* -------------------------------------------------------------------------
 * Icons
 * ---------------------------------------------------------------------- */

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -.25em;
}

/* -------------------------------------------------------------------------
 * Buttons and links
 * ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--target);
  padding: .5rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--nt-red); border-color: var(--nt-red); color: var(--nt-on-dark); }
.btn--primary:hover { background: var(--nt-red-dark); border-color: var(--nt-red-dark); color: var(--nt-on-dark); }
.btn--secondary { border-color: var(--text); color: var(--text); }
.btn--secondary:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn--danger { border-color: var(--nt-danger); background: var(--nt-bg); color: var(--nt-danger); }
.btn--danger:hover { background: var(--nt-danger); color: var(--nt-on-dark); }
.btn--sm {
  gap: var(--sp-1);
  min-height: 2rem;
  padding: .25rem .75rem;
  border-width: 1.5px;
  font-size: var(--fs-sm);
}
.btn--block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 1.2em; height: 1.2em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 1.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { color: var(--nt-red); transition: transform .15s ease; }
.link-arrow:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--nt-red); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(3px); }

/* -------------------------------------------------------------------------
 * Forms
 * ---------------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--sp-5);
  max-width: 40rem;
}
.form > * { margin: 0; }
.form--wide { max-width: none; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 40em) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form__note { color: var(--text-muted); font-size: var(--fs-sm); }

.field { display: grid; gap: var(--sp-2); align-content: start; }
.field > * { margin: 0; }
.field__label { color: var(--text); font-weight: 600; line-height: 1.4; }
.field__required { margin-left: .125rem; color: var(--nt-red); }
.field__optional { color: var(--text-muted); font-weight: 400; }
.field__hint { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
  color: var(--nt-danger);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
}
.field__error .icon { width: 1.125rem; height: 1.125rem; margin-top: .1rem; }

.field__input {
  display: block;
  width: 100%;
  min-height: var(--target);
  padding: .5625rem .75rem;
  border: 1px solid var(--nt-border-strong);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--nt-ink);
  font-size: 1rem; /* 16 px: iOS does not zoom into the field */
  line-height: 1.5;
}
.field__input:hover { border-color: var(--nt-navy-700); }
/* The ring covers the border (no gap): Safari also shows it after a mouse click into a select or text field, and
   a ring with a gap there reads as a double border. */
.field__input:focus-visible { border-color: var(--nt-focus); outline-offset: -1px; }
.field__input::placeholder { color: var(--nt-muted); opacity: 1; }
.field__input:disabled, .field__input[readonly] { background: var(--nt-bg-soft); color: var(--nt-muted); }
.field--invalid .field__input { border: 2px solid var(--nt-danger); padding: .5rem .6875rem; }
.field__input--textarea { min-height: 8rem; resize: vertical; }
.field__input--select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303163B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
}
.field--invalid .field__input--select { padding-right: 2.4375rem; }
.field__input--file { padding: .375rem; }
.field__input--file::file-selector-button {
  margin-right: var(--sp-3);
  padding: .375rem .875rem;
  border: 1.5px solid var(--nt-navy);
  border-radius: var(--radius-sm);
  background: var(--nt-bg);
  color: var(--nt-navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field__input--file:hover::file-selector-button { background: var(--nt-bg-soft); }
.field__input--short { max-width: 10rem; }
.field__input--medium { max-width: 22rem; }

.checkbox { display: flex; align-items: flex-start; gap: var(--sp-3); }
.checkbox__input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: .1875rem 0 0;
  accent-color: var(--nt-navy);
  cursor: pointer;
}
.checkbox__label { color: var(--text); cursor: pointer; line-height: 1.5; }
.field--checkbox > .field__hint { padding-left: calc(1.25rem + var(--sp-3)); }
.field--invalid .checkbox__input { outline: 2px solid var(--nt-danger); outline-offset: 2px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}
@media (max-width: 39.99em) {
  .form-actions > .btn--primary { width: 100%; }
}

/* Honeypot: off-screen and clipped, never display:none (some bots skip
   fields that are display:none). aria-hidden and tabindex=-1 keep it away
   from screen readers and keyboard users. */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

/* -------------------------------------------------------------------------
 * Feedback
 * ---------------------------------------------------------------------- */

.alert {
  --text: var(--nt-ink);
  --text-muted: var(--nt-muted);
  --focus: var(--nt-focus);
  --link-hover: var(--nt-red-dark);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--alert-color, var(--nt-info));
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--alert-bg, var(--nt-info-soft));
  color: var(--text);
}
.alert > .icon { width: 1.5rem; height: 1.5rem; color: var(--alert-color, var(--nt-info)); }
.alert__body { flex: 1; min-width: 0; }
.alert__body > * { margin: 0; }
.alert__body > * + * { margin-top: var(--sp-2); }
.alert__title { font-weight: 700; }
.alert__list { padding-left: 1.25rem; }
.alert--info { --alert-color: var(--nt-info); --alert-bg: var(--nt-info-soft); }
.alert--success { --alert-color: var(--nt-success); --alert-bg: var(--nt-success-soft); }
.alert--warning { --alert-color: var(--nt-warning); --alert-bg: var(--nt-warning-soft); }
.alert--error { --alert-color: var(--nt-danger); --alert-bg: var(--nt-danger-soft); }
.notice-region > .alert:last-child { margin-bottom: var(--sp-5); }
/* The error summary links jump to the inputs: keep label, hint and message
   in view above them. A hint sits between label and input and may run to
   several lines on a phone: more room then, but at most half the viewport,
   so a short (landscape) screen still shows the input itself. */
.field__input, .checkbox__input { scroll-margin-top: 8rem; }
.field__hint ~ .field__input { scroll-margin-top: min(16rem, 50vh); }
.form-errors { scroll-margin-top: var(--sp-5); }
.form-errors:focus { outline: none; }
.form-errors:focus-visible { outline: 3px solid var(--nt-focus); outline-offset: 2px; }

/* Portrait of a person (testimonials): round, fixed size, never stretched. */
.portrait { display: block; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--nt-bg-soft); }

/* Progress of a project or step. The percentage always stands beside it as text. */
progress {
  appearance: none;
  -webkit-appearance: none;
  inline-size: 6rem;
  max-inline-size: 100%;
  block-size: .5rem;
  vertical-align: middle;
  border: 1px solid var(--nt-border-strong);
  border-radius: var(--radius-sm);
  background: var(--nt-bg-soft);
  color: var(--nt-navy);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--nt-bg-soft); }
progress::-webkit-progress-value { background: var(--nt-navy); }
progress::-moz-progress-bar { background: var(--nt-navy); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .125rem .5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.badge .icon { width: 1em; height: 1em; }
.badge--neutral { border-color: var(--nt-border); background: var(--nt-bg-soft); color: var(--nt-navy-700); }
.badge--info { background: var(--nt-info-soft); color: var(--nt-info); }
.badge--success { background: var(--nt-success-soft); color: var(--nt-success); }
.badge--warning { background: var(--nt-warning-soft); color: var(--nt-warning); }
.badge--danger { background: var(--nt-danger-soft); color: var(--nt-danger); }

.empty-state {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-7) var(--sp-5);
  border: 1px dashed var(--nt-border-strong);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--nt-muted);
  text-align: center;
}
.empty-state > .icon { display: block; width: 2.5rem; height: 2.5rem; margin: 0 auto var(--sp-3); color: var(--nt-muted); }
.empty-state__title {
  margin: 0 0 var(--sp-2);
  color: var(--nt-ink);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.empty-state__text { max-width: 32rem; margin: 0 auto; }
.empty-state__action { margin: var(--sp-5) 0 0; }

/* -------------------------------------------------------------------------
 * Breadcrumb (website bar and app pages)
 * ---------------------------------------------------------------------- */

.breadcrumb { color: var(--text-muted); font-size: var(--fs-sm); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-top: 1.5px solid var(--nt-border-strong);
  border-right: 1.5px solid var(--nt-border-strong);
  transform: rotate(45deg);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--text-muted);
  text-decoration-color: var(--nt-border-strong);
}
.breadcrumb a:hover { color: var(--text); text-decoration-color: var(--nt-red); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------------------
 * Data
 * ---------------------------------------------------------------------- */

.table-wrap {
  position: relative; /* contains visually hidden cell text, so the scroll clips it */
  width: 100%;
  margin: 0 0 var(--sp-5);
  overflow-x: auto;
  border: 1px solid var(--nt-border);
  border-radius: var(--radius);
  background: var(--nt-bg);
}
.table-wrap > .table { margin: 0; }

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--nt-ink);
  font-size: .9375rem;
}
.table caption {
  padding: var(--sp-3) var(--sp-4);
  caption-side: top;
  font-weight: 700;
  text-align: left;
}
.table th, .table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--nt-border);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: var(--nt-bg-soft);
  color: var(--nt-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--nt-bg-soft) 60%, var(--nt-bg)); }
.table a { color: var(--nt-ink); font-weight: 600; }
.table .num { text-align: right; }
.table .mono { white-space: nowrap; } /* T-000123 never breaks at its hyphen */
.table--compact th, .table--compact td { padding: var(--sp-2) var(--sp-3); }

/* Rows become stacked cards on small screens; cells need data-label. */
@media (max-width: 39.99em) {
  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack tbody th { display: block; width: 100%; }
  .table--stack tr { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--nt-border); container: stack-row / inline-size; }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  /* Each cell is a block: its label floats in the left padding, the value
     wraps at spaces like normal text, and only an overlong token (an e-mail
     address, a document number) is split. A narrow row (a table in a card)
     puts the label above the value, see the container query below. */
  .table--stack { --stack-label: clamp(6rem, 34vw, 9rem); }
  .table--stack td, .table--stack tbody th {
    padding: var(--sp-1) 0 var(--sp-1) calc(var(--stack-label) + var(--sp-3));
    border: 0;
    overflow-wrap: anywhere;
  }
  .table--stack td:not([data-label]), .table--stack tbody th:not([data-label]) { padding-left: 0; }
  .table--stack td::after, .table--stack tbody th::after { content: ""; display: block; clear: both; }
  .table--stack td[data-label]::before, .table--stack tbody th[data-label]::before {
    content: attr(data-label);
    float: left;
    width: var(--stack-label);
    margin-left: calc(-1 * (var(--stack-label) + var(--sp-3)));
    color: var(--nt-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5rem;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .table--stack .badge, .table--stack .mono, .table--stack .nowrap { white-space: normal; }
  .table--stack .num { text-align: left; }
  /* In a row of 19rem or less a value beside its label has too little room
     (83 px in a card at 320 px, 160 px on a 360 px phone) and words, buttons
     and badges would be cut mid-word: the label goes above its value, which
     gets the full row. */
  @container stack-row (max-width: 19rem) {
    .table--stack td[data-label]::before, .table--stack tbody th[data-label]::before { float: none; display: block; width: auto; margin-left: 0; }
    .table--stack td, .table--stack tbody th { padding-left: 0; }
  }
}

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 var(--sp-5);
}
.dl dt { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.dl dd { margin: 0 0 var(--sp-3); color: var(--text); }
@media (min-width: 40em) {
  .dl { grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); column-gap: var(--sp-5); }
  .dl dt, .dl dd { margin: 0; padding-block: var(--sp-2); border-bottom: 1px solid var(--line); }
  .dl dt { padding-top: calc(var(--sp-2) + .125rem); }
  .dl > :nth-last-child(-n+2) { border-bottom: 0; }
}

.kpi {
  --text: var(--nt-ink);
  --text-muted: var(--nt-muted);
  --focus: var(--nt-focus);
  display: block;
  padding: var(--sp-5);
  border: 1px solid var(--nt-border);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--text);
  text-decoration: none;
  container-type: inline-size; /* the value scales with the tile (cqi) */
}
a.kpi { transition: border-color .15s ease; }
a.kpi:hover { border-color: var(--nt-navy-700); color: var(--text); }
a.kpi:hover .kpi__label { text-decoration: underline; text-decoration-color: var(--nt-red); }
.kpi--accent { border-top: 3px solid var(--nt-red); }
/* An amount never breaks: the value wraps at spaces only (a date and time),
   and its size follows the tile, so "1.234.567,89 €" fits on one line in
   the narrowest tile. The clamp() lines carry no var(): a browser without
   container units keeps the fixed size above them. */
.kpi__value {
  display: block;
  color: var(--nt-ink);
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-size: clamp(1.25rem, 15cqi, 2.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: normal;
}
.kpi__label { display: block; margin-top: var(--sp-1); color: var(--nt-muted); font-size: var(--fs-sm); font-weight: 600;
  -webkit-hyphens: auto; hyphens: auto; }
/* Phones: one tile per row. */
@media (max-width: 29.99em) {
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}
.kpi__hint { display: block; margin-top: var(--sp-2); color: var(--nt-muted); font-size: var(--fs-sm); }
@media (max-width: 39.99em) {
  .kpi { padding: var(--sp-4); }
  .kpi__value { font-size: var(--fs-2xl); font-size: clamp(1.25rem, 15cqi, 1.75rem); }
}

.pagination { margin: var(--sp-5) 0; }
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination__item { margin: 0; }
.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: var(--target);
  min-height: var(--target);
  padding: 0 .75rem;
  border: 1px solid var(--nt-border);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--nt-ink);
  font-weight: 600;
  text-decoration: none;
}
a.pagination__link:hover { border-color: var(--nt-navy-700); color: var(--nt-ink); }
.pagination__link[aria-current="page"] { border-color: var(--nt-navy); background: var(--nt-navy); color: var(--nt-on-dark); }
.pagination__link.is-disabled { color: var(--nt-muted); background: var(--nt-bg-soft); cursor: default; }
.pagination__gap { display: inline-block; min-width: 1.5rem; color: var(--nt-muted); text-align: center; }
.pagination__summary { margin: var(--sp-2) 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 39.99em) {
  .pagination__item:not(.pagination__item--prev, .pagination__item--next, .pagination__item--current) { display: none; }
}

.tabs {
  display: flex;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-5);
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  list-style: none;
  scrollbar-width: thin;
}
.tabs > li { margin: 0; }
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: var(--target);
  padding: 0 var(--sp-4);
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs__tab:hover { border-bottom-color: var(--nt-border-strong); color: var(--text); }
.tabs__tab.is-active, .tabs__tab[aria-current="page"] { border-bottom-color: var(--nt-red); color: var(--text); }

/* -------------------------------------------------------------------------
 * Cards
 * ---------------------------------------------------------------------- */

.card {
  --text: var(--nt-ink);
  --text-muted: var(--nt-muted);
  --line: var(--nt-border);
  --focus: var(--nt-focus);
  --link-hover: var(--nt-red-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--nt-border);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--text);
}
.grid > .card, .card:last-child { margin-bottom: 0; }
.card > * { margin: 0; }
.card > :is(.badge, .btn, .link-arrow) { align-self: flex-start; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--nt-bg-soft);
  color: var(--nt-red);
}
.card__icon .icon { width: 1.5rem; height: 1.5rem; }
.card__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-tight);
}
.card__title a { color: inherit; text-decoration: none; }
.card__meta { color: var(--text-muted); font-size: var(--fs-sm); }
.card__body > * { margin-top: 0; }
.card__body > :last-child { margin-bottom: 0; }
.card__footer { margin-top: auto; padding-top: var(--sp-2); }
.card--link { transition: border-color .15s ease; }
.card--link:hover { border-color: var(--nt-navy-700); }
.card--link:hover .card__title a { text-decoration: underline; text-decoration-color: var(--nt-red); }
/* The title link stretches over the whole card. */
.card--link .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link .card__title a:focus-visible { outline: none; }
.card--link:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* -------------------------------------------------------------------------
 * Conversation (tickets)
 * ---------------------------------------------------------------------- */

.thread {
  display: grid;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
}
.thread > li { margin: 0; }
.message {
  --text: var(--nt-ink);
  --text-muted: var(--nt-muted);
  --focus: var(--nt-focus);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--nt-border);
  border-left: 4px solid var(--nt-border-strong);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--text);
}
.message__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  margin: 0 0 var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.message__author { color: var(--text); font-weight: 700; }
.message__body { overflow-wrap: anywhere; }
.message__body > :last-child { margin-bottom: 0; }
.message__files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-3) 0 0;
  padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--nt-border);
  list-style: none;
  font-size: var(--fs-sm);
}
.message__files > li { display: inline-flex; align-items: center; gap: var(--sp-1); max-width: 100%; min-width: 0; margin: 0; }
.message__files a { min-width: 0; overflow-wrap: anywhere; }
.message--customer { border-left-color: var(--nt-navy-700); }
.message--staff { border-left-color: var(--nt-red); }
.message--internal { border-style: dashed; border-left: 4px solid var(--nt-warning); background: var(--nt-warning-soft); }
.message--system {
  padding: var(--sp-2) 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}
.message--system .message__meta { justify-content: center; margin-bottom: var(--sp-1); }

/* -------------------------------------------------------------------------
 * Bare layout (error pages, styleguide)
 * ---------------------------------------------------------------------- */

.bare { display: flex; flex-direction: column; min-height: 100vh; }
.bare-header { padding-block: var(--sp-5); border-bottom: 1px solid var(--nt-border); }
.bare-header__brand { display: inline-block; }
.bare-header__brand img { display: block; width: auto; height: 32px; }
.bare-main { flex: 1; padding-block: var(--sp-7) var(--sp-8); }
.bare-footer { padding-block: var(--sp-5); border-top: 1px solid var(--nt-border); color: var(--nt-muted); font-size: var(--fs-sm); }
.bare-footer__inner { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.bare-footer a { color: var(--nt-muted); }

.error-page > * { margin-top: 0; }
.error-page__actions { margin-block: var(--sp-6) var(--sp-5); }
.error-page__ref {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--nt-bg-soft);
  color: var(--nt-ink);
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------------------
 * Preferences and print
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .btn, .badge, .alert, .pagination__link, .kpi, .card, .message { border-color: CanvasText; }
  .field__input--select { appearance: auto; background-image: none; padding-right: .75rem; }
  .eyebrow::before { background: CanvasText; }
}

@media print {
  .skip-link, .notice-region:empty { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .btn { border: 1px solid #000; }
}

/*
 * Website layout: header, navigation, hero, sections, service cards, quote,
 * CTA band, breadcrumb, news and contact. Bundled after base.css; adds its
 * own classes only and never overrides base rules. Reference: docs/UI.md.
 *
 * Without JavaScript: the small-screen menu is a <details> element; the
 * desktop navigation is a separate list. CSS shows exactly one of them.
 * Breakpoint for the full header: 60em (960 px).
 */

/* Dark areas redefine the semantic tokens (see .section--navy in base.css). */
.site-footer, .cta-band {
  --text: var(--nt-on-dark);
  --text-muted: var(--nt-on-dark-muted);
  --line: var(--nt-on-dark-line);
  --focus: var(--nt-on-dark);
  --link-hover: var(--nt-on-dark);
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 164'%3E%3Cpath fill='%23DA1C16' d='M0 0h242l-74 164H0z'/%3E%3Cpath fill='%23FFFFFF' d='M470 164H228l74-164h168z'/%3E%3C/svg%3E");
  background: var(--nt-navy);
  color: var(--text);
}

.site-main { display: block; }
.site-main > .notice-region { padding-top: var(--sp-5); }
.site-main > .notice-region > .alert { margin-bottom: 0; }
.form-failed-region { padding-top: var(--sp-5); }
.form-failed-region > .alert { margin-bottom: 0; }

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--nt-bg);
  border-bottom: 1px solid var(--nt-border);
}

.site-topbar {
  display: none;
  background: var(--nt-bg-soft);
  border-bottom: 1px solid var(--nt-border);
  font-size: var(--fs-sm);
}
@media (min-width: 60em) {
  .site-topbar { display: block; }
}
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 2.5rem;
}
.site-topbar__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-topbar__item { display: flex; align-items: center; gap: .375rem; margin: 0; color: var(--nt-ink); }
.site-topbar__item .icon { width: 1rem; height: 1rem; color: var(--nt-red); }
.site-topbar__item a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 1.5rem;
  color: var(--nt-ink);
  text-decoration: none;
}
.site-topbar__item a:hover { color: var(--nt-ink); text-decoration: underline; text-decoration-color: var(--nt-red); }
.site-topbar__item a[aria-current="page"] { font-weight: 700; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 4rem;
}
@media (min-width: 60em) {
  .site-header__inner { gap: var(--sp-5); min-height: 5rem; }
}
.site-header__brand { display: inline-flex; align-items: center; margin-right: auto; padding-block: var(--sp-2); }
.site-header__brand img { display: block; width: auto; height: 28px; }
@media (min-width: 60em) {
  .site-header__brand img { height: 40px; }
}
/* Below 360 px the row is too short for the 28 px logo, the phone button
   and the menu toggle: a 24 px logo and smaller gaps make room, so the phone
   button keeps its 44 px (it never shrinks, see flex: none below). */
@media (max-width: 22.49em) {
  .site-header__inner { gap: var(--sp-2); }
  .site-header__brand img { height: 24px; }
}

.site-header__call {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid var(--nt-border-strong);
  border-radius: var(--radius);
  color: var(--nt-ink);
}
.site-header__call:hover { background: var(--nt-bg-soft); color: var(--nt-ink); }
@media (min-width: 60em) {
  .site-header__call { display: none; }
}

/* Desktop navigation */
.site-nav { display: none; }
@media (min-width: 60em) {
  .site-nav { display: block; }
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { margin: 0; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 var(--sp-3);
  border-radius: var(--radius);
  color: var(--nt-ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  right: var(--sp-3);
  bottom: .375rem;
  left: var(--sp-3);
  height: 2px;
  background: var(--nt-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s ease;
}
.site-nav__link:hover { color: var(--nt-ink); text-decoration: none; }
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link--cta {
  margin-left: var(--sp-3);
  padding: 0 1.25rem;
  border: 2px solid var(--nt-red);
  background: var(--nt-red);
  color: var(--nt-on-dark);
}
.site-nav__link--cta::after { display: none; }
.site-nav__link--cta:hover { background: var(--nt-red-dark); border-color: var(--nt-red-dark); color: var(--nt-on-dark); }
.site-nav__link--cta[aria-current="page"] { background: var(--nt-red-dark); border-color: var(--nt-red-dark); }

/* Small-screen menu: a <details> below the header row, in the page flow.
   Its toggle is placed into the row; the open panel pushes the page down
   instead of covering it, so the keyboard focus is never hidden behind it
   (WCAG 2.4.11) and no JavaScript is needed to close it. */
.site-header__bar { --menu-toggle-w: 6.75rem; position: relative; }
.site-menu { margin: 0; }
@media (min-width: 60em) {
  .site-menu { display: none; }
}
@media (max-width: 59.99em) {
  /* room for the toggle at the end of the row */
  .site-header__inner::after { content: ""; flex: none; width: var(--menu-toggle-w); }
}
.site-menu__toggle {
  position: absolute;
  top: calc((4rem - var(--target)) / 2);
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: var(--menu-toggle-w);
  min-height: var(--target);
  padding: 0 var(--sp-3);
  border: 1px solid var(--nt-border-strong);
  border-radius: var(--radius);
  color: var(--nt-ink);
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.site-menu__toggle::-webkit-details-marker { display: none; }
.site-menu__toggle:hover { background: var(--nt-bg-soft); }
.site-menu[open] .site-menu__toggle { background: var(--nt-bg-soft); border-color: var(--nt-navy); }
.site-menu__icon { display: inline-flex; }
.site-menu__icon--close, .site-menu[open] .site-menu__icon--open { display: none; }
.site-menu[open] .site-menu__icon--close { display: inline-flex; }
.site-menu__panel {
  padding: var(--sp-2) var(--gutter) var(--sp-5);
  border-top: 1px solid var(--nt-border);
  background: var(--nt-bg);
}
.site-menu__list { margin: 0 0 var(--sp-5); padding: 0; list-style: none; }
.site-menu__list > li { margin: 0; border-bottom: 1px solid var(--nt-border); }
.site-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 3.25rem;
  padding-left: var(--sp-3);
  border-left: 3px solid transparent;
  color: var(--nt-ink);
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-decoration: none;
}
.site-menu__link .icon { color: var(--nt-muted); }
.site-menu__link:hover { color: var(--nt-ink); background: var(--nt-bg-soft); }
.site-menu__link[aria-current="page"] { border-left-color: var(--nt-red); }
.site-menu__meta { margin-bottom: var(--sp-5); }

/* -------------------------------------------------------------------------
 * Breadcrumb
 * ---------------------------------------------------------------------- */

/* The breadcrumb itself is shared (base.css); the bar is website-only. */
.breadcrumb-bar { padding-block: var(--sp-3); border-bottom: 1px solid var(--nt-border); background: var(--nt-bg); }

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

.hero {
  padding-block: var(--sp-7) var(--sp-8);
  border-bottom: 1px solid var(--nt-border);
  background: var(--nt-bg);
}
@media (min-width: 60em) {
  .hero { padding-block: 5.5rem 6rem; }
}
.hero--soft { background: var(--nt-bg-soft); }
.hero__inner { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 60em) {
  .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); }
}
.hero__inner > * { margin: 0; min-width: 0; }
.hero__title {
  max-width: 24ch;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-4xl);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.hero__actions { margin-top: var(--sp-6); }
.hero__aside > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
 * Service cards
 * ---------------------------------------------------------------------- */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-5);
  border: 1px solid var(--nt-border);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--nt-ink);
  transition: border-color .15s ease;
}
.service-card > * { margin: 0; }
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--nt-bg-soft);
  color: var(--nt-red);
}
.service-card__icon .icon { width: 1.75rem; height: 1.75rem; }
.service-card__title { color: var(--nt-ink); font-size: var(--fs-xl); }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card__title a:focus-visible { outline: none; }
.service-card__text { color: var(--nt-muted); }
.service-card__more { margin-top: auto; color: var(--nt-ink); }
.service-card--link:hover { border-color: var(--nt-navy-700); }
.service-card--link:hover .service-card__more .icon { transform: translateX(3px); }
.service-card--link:has(a:focus-visible) { outline: 3px solid var(--nt-focus); outline-offset: 2px; }

/* -------------------------------------------------------------------------
 * Quote (testimonials)
 * ---------------------------------------------------------------------- */

.quote {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
  border: 1px solid var(--nt-border);
  border-left: 4px solid var(--nt-red);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--nt-ink);
}
.quote__text { margin: 0 0 var(--sp-4); }
.quote__text p { margin: 0; color: var(--nt-ink); font-size: var(--fs-lg); line-height: 1.55; }
.quote__caption { display: flex; flex-direction: column; gap: .125rem; }
.quote__author { color: var(--nt-ink); font-weight: 700; }
.quote__meta { color: var(--nt-muted); font-size: var(--fs-sm); }
/* With a portrait: photo left, name and meta beside it. */
.quote__caption--photo { display: grid; grid-template-columns: 4rem 1fr; column-gap: var(--sp-3); align-items: center; }
.quote__caption--photo .portrait { grid-row: 1 / span 2; }

/* -------------------------------------------------------------------------
 * CTA band
 * ---------------------------------------------------------------------- */

.cta-band { padding-block: var(--sp-7); }
@media (min-width: 48em) {
  .cta-band { padding-block: var(--sp-8); }
}
.cta-band__inner { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 60em) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-7); }
}
.cta-band__copy > * { margin: 0; }
.cta-band__copy > * + * { margin-top: var(--sp-2); }
.cta-band__title { font-size: var(--fs-2xl); }
.cta-band__text { color: var(--text-muted); font-size: var(--fs-lg); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* -------------------------------------------------------------------------
 * News
 * ---------------------------------------------------------------------- */

.news-list { display: grid; gap: var(--sp-5); margin: 0 0 var(--sp-5); padding: 0; list-style: none; }
.news-list > li { margin: 0; }
.news-item {
  position: relative;
  padding: var(--sp-5);
  border: 1px solid var(--nt-border);
  border-radius: var(--radius);
  background: var(--nt-bg);
  color: var(--nt-ink);
  transition: border-color .15s ease;
}
.news-item > * { margin: 0; }
.news-item > * + * { margin-top: var(--sp-2); }
.news-item:hover { border-color: var(--nt-navy-700); }
.news-item:has(a:focus-visible) { outline: 3px solid var(--nt-focus); outline-offset: 2px; }
.news-item__date { color: var(--nt-muted); font-size: var(--fs-sm); }
.news-item__title { color: var(--nt-ink); font-size: var(--fs-xl); }
.news-item__title a { color: inherit; text-decoration: none; }
.news-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-item__title a:focus-visible { outline: none; }
.news-item__excerpt { color: var(--nt-ink); }
.news-item > .news-item__more { margin-top: var(--sp-3); }
.news-item:hover .news-item__more .icon { transform: translateX(3px); }

.article-meta { color: var(--text-muted); font-size: var(--fs-sm); }

/* -------------------------------------------------------------------------
 * Contact
 * ---------------------------------------------------------------------- */

.contact { display: grid; gap: var(--sp-7); }
@media (min-width: 60em) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--sp-8); align-items: start; }
}
.contact > * { margin: 0; min-width: 0; }
.contact__aside > * + * { margin-top: var(--sp-5); }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

/* The top rule separates the footer from a CTA band right above it. */
.site-footer { padding-block: var(--sp-7) var(--sp-5); border-top: 1px solid var(--nt-on-dark-line); font-size: .9375rem; }
@media (min-width: 48em) {
  .site-footer { padding-top: var(--sp-8); }
}
.site-footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60em) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
}
.site-footer__grid > * { margin: 0; min-width: 0; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: auto; height: 32px; }
.site-footer__slogan { margin-top: var(--sp-3); color: var(--text-muted); }
.site-footer__title {
  margin: 0 0 var(--sp-3);
  color: var(--text);
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer__address { margin-bottom: var(--sp-3); font-style: normal; }
.site-footer__list { gap: var(--sp-2); margin: 0; }
.site-footer__links, .site-footer__legal { margin: 0; padding: 0; list-style: none; }
.site-footer__links > li { margin: 0; }
.site-footer__links > li + li { margin-top: var(--sp-1); }
.site-footer a {
  display: inline-block;
  padding-block: .125rem;
  color: var(--text);
  text-decoration-color: var(--nt-on-dark-muted);
}
.site-footer a:hover { color: var(--text); text-decoration-color: var(--nt-red); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.site-footer__bottom > * { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer__legal > li { margin: 0; }

@media print {
  .site-header, .site-footer, .site-menu, .breadcrumb-bar { display: none !important; }
}

