/*
 * Asiligane site styles. Mobile first; system fonts only, so pages are light
 * on data and render instantly on low-end phones. No inline styles anywhere:
 * the content security policy forbids them, so every icon below is a data: URI
 * (allowed by img-src), mostly drawn in currentColor through a CSS mask.
 */

:root {
  /* Brand: the logo's green and the letterhead's navy. Navy carries text, links and buttons
     (white on navy is 8:1). The logo green is too light for white text (2.4:1), so it is a fill
     under dark text (7:1); --green-ink is the green for icons and text on white (5:1). */
  --brand-50: #eef5fb;
  --brand-100: #d5e6f3;
  --brand-200: #a7c9e3;
  --brand: #01548a;
  --brand-strong: #013f69;
  --brand-deep: #012b48;
  --brand-soft: var(--brand-50);
  --green: #62bb47;
  --green-strong: #52a838;
  --green-light: #9bd77f;
  --green-ink: #3b7d2b;
  --green-50: #f0f8eb;
  --green-100: #dcefd0;
  --green-200: #b6dea0;
  --accent: var(--green);
  --accent-strong: var(--green-strong);

  /* Neutrals, slightly green so greys sit with the brand. */
  --ink: #0f1f1a;
  --ink-soft: #24352f;
  --muted: #4d5d57;
  --line: #dde5e1;
  --line-strong: #7a8a84;
  --surface: #ffffff;
  --surface-raised: #fbfcfb;
  --page: #f4f7f5;

  /* Feedback colours; each text/background pair passes WCAG AA. */
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-line: #f3b8b1;
  --success: #0e7338;
  --success-soft: #e7f5ec;
  --success-line: #b3dfc3;
  --warning: #8a5300;
  --warning-soft: #fff3d9;
  --warning-line: #f0d18d;
  --info: #1b5bb3;
  --info-soft: #eaf1fc;
  --info-line: #bcd2f2;
  --violet: #553596;
  --violet-soft: #f2edfb;
  --violet-line: #d6c9ef;
  --neutral-soft: #eceff0;

  /* Focus: navy on light surfaces; dark surfaces swap in light green. */
  --focus: var(--brand);
  --focus-ring: rgb(1 84 138 / 22%);

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgb(15 31 26 / 6%);
  --shadow: 0 1px 2px rgb(15 31 26 / 5%), 0 6px 18px -6px rgb(15 31 26 / 10%);
  --shadow-lg: 0 2px 6px rgb(15 31 26 / 6%), 0 24px 48px -16px rgb(1 43 72 / 28%);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Icons, used as masks so they take the colour of the element they sit on. */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
  --i-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l9.5 16.5h-19z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
  /* Coloured icons, for backgrounds that can't use a mask. */
  --i-check-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7d2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-check-success: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7338' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-search-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5d57' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230f1f1a' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep focused fields clear of the sticky header (WCAG 2.4.11). */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
  text-decoration-thickness: 2px;
}

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

img,
svg {
  max-width: 100%;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.375rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4rem);
  font-weight: 750;
  margin: 1.75rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

code {
  font-family: var(--font-mono);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}

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

.small {
  font-size: 0.875rem;
}

.nowrap {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 90%);
  border-bottom: 1px solid rgb(15 31 26 / 8%);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.site-header__inner,
.site-footer__inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-weight: 650;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.site-nav a:hover {
  background: var(--brand-50);
}

/* Brand and "Check your application" share one line even on a 360px phone. */
@media (max-width: 29.99rem) {
  .site-header__inner {
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.0625rem;
  }

  .brand__mark {
    width: 1.85rem;
    height: 1.85rem;
  }

  .site-nav {
    font-size: 0.9375rem;
  }

  .site-nav a {
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
  }
}

/* Only on wide screens: on a phone the hero's own button is right there. */
.site-nav .site-nav__cta {
  display: none;
}

@media (min-width: 48rem) {
  .site-nav .site-nav__cta {
    display: inline-flex;
    min-height: 2.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
  }
}

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

/* A navy band with a green rule, like the letterhead's footer. */
.site-footer {
  --focus: var(--green-light);
  flex-shrink: 0;
  margin-top: 3rem;
  background: var(--brand);
  border-top: 4px solid var(--green);
  color: #d3e3f0;
  font-size: 0.875rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--green-light);
}

.site-footer__inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer__brand .brand__mark {
  width: 1.6rem;
  height: 1.6rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer .ncr {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-links__title {
  margin: 0 0 0.15rem;
  color: #fff;
  font-weight: 750;
}

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

.container {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.container--wide {
  max-width: 78rem;
}

.container--home {
  max-width: 74rem;
  padding-top: 2.5rem;
}

@media (min-width: 40rem) {
  .container {
    padding-top: 2.25rem;
  }

  .container--home {
    padding-top: 3.5rem;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.1rem;
  margin: 0 0 1rem;
}

.card > :last-child {
  margin-bottom: 0;
}

.card > h2:first-child,
.card > h3:first-child,
.card > legend + * {
  margin-top: 0;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card__head h2,
.card__head h3 {
  margin: 0;
}

.card__head > a {
  font-weight: 650;
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .card {
    padding: 1.6rem 1.75rem;
  }
}

.stack > * + * {
  margin-top: 1rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.page-head h1 {
  margin: 0;
}

.page-head .eyebrow {
  margin-bottom: 0.2rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #0563a0 0%, var(--brand) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 1px 2px rgb(1 43 72 / 30%), 0 6px 14px -6px rgb(1 84 138 / 50%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}

.button:hover {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 2px 4px rgb(1 43 72 / 30%), 0 10px 20px -8px rgb(1 84 138 / 55%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--secondary {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
}

.button--secondary:hover {
  background: var(--brand-50);
  border-color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
  color: var(--brand-strong);
}

.button--accent {
  background: linear-gradient(180deg, #74c95a 0%, var(--green) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 1px 2px rgb(40 90 25 / 30%), 0 8px 18px -8px rgb(98 187 71 / 60%);
  color: var(--ink);
}

.button--accent:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--ink);
}

.button--small {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
}

.button--block {
  width: 100%;
}

/* A trailing arrow on buttons that move the applicant forward. */
.button--arrow::after {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat;
  mask: var(--i-arrow) center / contain no-repeat;
  transition: transform 0.15s var(--ease);
}

.button--arrow:hover::after {
  transform: translateX(3px);
}

.button[disabled],
.button[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.link-button {
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--brand-strong);
  text-decoration-thickness: 2px;
}

.link-button--danger {
  color: var(--danger);
}

.link-button--danger:hover {
  color: #8f1b12;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .actions {
    flex-direction: row;
    align-items: center;
  }
}

.inline-form {
  display: inline;
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

fieldset.card > legend {
  float: left;
  width: 100%;
  margin-bottom: 1.1rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

fieldset.card > legend + * {
  clear: left;
}

.field {
  margin-bottom: 1.35rem;
}

.field:last-child {
  margin-bottom: 0;
}

.label,
.field > fieldset > legend {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 700;
}

.hint {
  display: block;
  margin: -0.1rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.error-message {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  color: var(--danger);
  font-weight: 700;
}

.error-message::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  background-color: currentColor;
  -webkit-mask: var(--i-alert) center / contain no-repeat;
  mask: var(--i-alert) center / contain no-repeat;
}

.field--error {
  padding-left: 0.9rem;
  border-left: 3px solid var(--danger);
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: #66766f;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-soft);
}

.textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--i-chevron);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

/* The transparent outline shows up as a real one in Windows high-contrast mode. */
.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.field--error .input,
.field--error .select,
.field--error .textarea,
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field--error .input:focus,
.field--error .select:focus,
.field--error .textarea:focus,
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(180 35 24 / 18%);
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.input-prefix__symbol {
  display: flex;
  align-items: center;
  padding: 0 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-strong);
  font-weight: 800;
}

.input-prefix .input {
  min-width: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

.input-prefix:focus-within .input-prefix__symbol {
  border-color: var(--brand);
}

.field--error .input-prefix__symbol {
  border-color: var(--danger);
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.inline-fields .label {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Radio groups: Django renders <div class="choice"><div><label><input> text</label></div>…</div> */
div.choice {
  display: grid;
  gap: 0.55rem;
}

div.choice > div {
  margin: 0;
}

div.choice label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

div.choice label:hover {
  border-color: var(--line-strong);
}

div.choice label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand);
}

div.choice--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

div.choice--inline label {
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.9375rem;
}

input.choice,
input.choice--inline,
input.checkbox {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.checkbox-field label:hover {
  border-color: var(--line-strong);
}

.checkbox-field label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.checkbox-field input {
  margin-top: 0.1rem;
}

.checkbox-field .hint {
  margin: 0.5rem 0 0;
}

/* File inputs look like a drop zone; the native control stays, so it works everywhere. */
.file-input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.85rem;
  border: 2px dashed var(--brand-200);
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.file-input:hover {
  border-color: var(--brand);
  background: var(--brand-100);
}

.file-input::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: var(--radius-xs);
  background: var(--brand);
  box-shadow: 0 1px 2px rgb(1 43 72 / 30%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.file-input::file-selector-button:hover {
  background: var(--brand-strong);
}

.field--error .file-input {
  border-color: var(--danger);
  background: var(--danger-soft);
}

/* ---------- Messages, errors and notices ---------- */

.error-summary {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem 1.1rem 3.4rem;
  border: 1.5px solid var(--danger-line);
  border-top: 4px solid var(--danger);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.error-summary::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--danger);
  -webkit-mask: var(--i-alert) center / contain no-repeat;
  mask: var(--i-alert) center / contain no-repeat;
}

.error-summary:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.error-summary h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.error-summary a,
.error-summary li {
  color: var(--danger);
  font-weight: 700;
}

.notice {
  --notice-color: var(--info);
  --notice-icon: var(--i-info);
  position: relative;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem 0.95rem 3.1rem;
  border: 1px solid var(--info-line);
  border-radius: var(--radius-sm);
  background: var(--info-soft);
  color: var(--ink);
}

.notice::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  background-color: var(--notice-color);
  -webkit-mask: var(--notice-icon) center / contain no-repeat;
  mask: var(--notice-icon) center / contain no-repeat;
}

.notice > :last-child {
  margin-bottom: 0;
}

.notice ul {
  margin: 0.5rem 0 0;
}

.notice--success {
  --notice-color: var(--success);
  --notice-icon: var(--i-check);
  border-color: var(--success-line);
  background: var(--success-soft);
}

.notice--warning {
  --notice-color: var(--warning);
  --notice-icon: var(--i-alert);
  border-color: var(--warning-line);
  background: var(--warning-soft);
}

.notice--error {
  --notice-color: var(--danger);
  --notice-icon: var(--i-alert);
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.notice--shield {
  --notice-color: var(--brand);
  --notice-icon: var(--i-shield);
  border-color: var(--brand-200);
  background: var(--brand-50);
}

.messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

/* ---------- Application progress ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 1rem -0.35rem;
  padding: 0.3rem 0.6rem 0.3rem 0.25rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}

.back-link::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  -webkit-mask: var(--i-back) center / contain no-repeat;
  mask: var(--i-back) center / contain no-repeat;
}

.back-link:hover {
  background: var(--brand-50);
}

.step-label {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Four numbered markers joined by a line; finished steps get a tick. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  text-align: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(1rem - 1px);
  left: calc(50% + 1.35rem);
  width: calc(100% - 2.7rem);
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps li.is-done::after {
  background: var(--green-ink);
}

.steps__marker {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.steps li.is-current .steps__marker {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-100);
  color: #fff;
}

.steps li.is-done .steps__marker {
  border-color: var(--green-ink);
  background: var(--green-50);
  font-size: 0;
}

.steps li.is-done .steps__marker::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: var(--green-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

/* On a phone the names don't fit under the markers, so they are hidden visually but still
   read out; the page heading names the current step anyway. */
.steps__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.steps li.is-current .steps__label {
  color: var(--ink);
  font-weight: 750;
}

@media (min-width: 30rem) {
  .steps__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

/* ---------- Summaries and badges ---------- */

.summary {
  margin: 0;
}

.summary > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.summary > div:first-child {
  padding-top: 0.2rem;
}

.summary > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary dt {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 650;
}

.summary dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 30rem) {
  .summary > div {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--neutral-soft);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.badge::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.badge--submitted,
.badge--pending {
  border-color: var(--info-line);
  background: var(--info-soft);
  color: var(--info);
}

.badge--captured {
  border-color: var(--violet-line);
  background: var(--violet-soft);
  color: var(--violet);
}

.badge--more_info,
.badge--needed {
  border-color: var(--warning-line);
  background: var(--warning-soft);
  color: var(--warning);
}

.badge--approved,
.badge--contract_signed,
.badge--paid_out,
.badge--passed,
.badge--sent,
.badge--uploaded {
  border-color: var(--success-line);
  background: var(--success-soft);
  color: var(--success);
}

.badge--failed,
.badge--missing {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- Home page ---------- */

.hero {
  --focus: var(--green-light);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(48rem 26rem at 108% -12%, rgb(98 187 71 / 14%), transparent 62%),
    radial-gradient(40rem 28rem at -12% 115%, rgb(98 187 71 / 30%), transparent 62%),
    linear-gradient(155deg, #0466a6 0%, var(--brand) 45%, var(--brand-deep) 100%);
}

/* A faint dot grid for texture; it is a gradient, so it costs no download. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero__inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.25rem 1rem 2.75rem;
}

.hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero__inner {
    padding-top: 4rem;
    padding-bottom: 4.75rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
}

/* Scoped under .hero so it outranks the general ".hero p" rule below. */
.hero .hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
}

@media (min-width: 30rem) {
  .hero .hero__badge {
    font-size: 0.8125rem;
  }
}

.hero__badge::before {
  content: "";
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.125rem, 1.5rem + 3.2vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero p {
  max-width: 34rem;
  color: #e3eef7;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  text-wrap: pretty;
}

.hero__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

@media (min-width: 30rem) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
  }

  .hero__actions .button--block {
    width: auto;
  }
}

.hero .button {
  min-height: 3.5rem;
  padding-inline: 1.75rem;
  font-size: 1.0625rem;
}

.hero__link {
  justify-self: center;
  padding: 0.6rem 0.5rem;
  color: #fff;
  font-weight: 650;
}

.hero__link:hover {
  color: #fff;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin: 1.9rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  list-style: none;
  color: #e3eef7;
  font-size: 0.9375rem;
  font-weight: 600;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.trust-list li::before {
  content: "";
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  background-color: var(--accent);
  -webkit-mask: var(--trust-icon, var(--i-check)) center / contain no-repeat;
  mask: var(--trust-icon, var(--i-check)) center / contain no-repeat;
}

.trust-list__ncr {
  --trust-icon: var(--i-shield);
}

.trust-list__encrypted {
  --trust-icon: var(--i-lock);
}

.trust-list__phone {
  --trust-icon: var(--i-phone);
}

/* Decorative preview of an application (aria-hidden). It shows the range offered, never a quote. */
/* The loan picker: a working form, so it shows at every width. */
.hero__picker {
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
}

.hero__more .hero__actions {
  margin-top: 0;
}

.hero__grid {
  gap: 1.75rem;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-areas:
      "copy picker"
      "more picker";
    gap: 1.5rem 3.5rem;
  }

  .hero__copy {
    grid-area: copy;
    align-self: end;
  }

  .hero__picker {
    grid-area: picker;
  }

  .hero__more {
    grid-area: more;
    align-self: start;
  }
}

.loan-card.loan-picker {
  --focus: var(--brand);
  display: grid;
  transform: none;
}

.loan-picker .loan-card__amount {
  display: block;
  margin-bottom: 0.25rem;
}

/* Without JavaScript the figure can't follow the slider, so it stays out of the way. */
html:not(.js) .loan-picker .loan-card__amount {
  display: none;
}

.loan-picker .select {
  margin: 0.4rem 0 1.25rem;
}

.loan-picker__note.loan-picker__note--cost {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.loan-picker__note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.range {
  --fill: 0%;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0, var(--green-ink) var(--fill), var(--line-strong) var(--fill));
}

.range::-moz-range-track {
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0, var(--green-ink) var(--fill), var(--line-strong) var(--fill));
}

.range::-webkit-slider-thumb {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.625rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 4px rgb(15 31 26 / 35%);
  -webkit-appearance: none;
  appearance: none;
}

.range::-moz-range-thumb {
  width: 1.375rem;
  height: 1.375rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1px 4px rgb(15 31 26 / 35%);
}

.range-ends {
  display: flex;
  justify-content: space-between;
  margin: -0.25rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.field .range {
  margin-top: 0.35rem;
}

.field .range-ends {
  margin-bottom: 0;
}

.loan-card {
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgb(255 255 255 / 6%);
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.loan-card__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-weight: 750;
}

.loan-card__top .brand__mark {
  width: 1.75rem;
  height: 1.75rem;
}

.loan-card__chip {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero .loan-card__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .loan-card__amount {
  max-width: none;
  margin: 0.15rem 0 1rem;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Sections below the hero. */
.home-section {
  margin: 0 0 2.75rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.home-grid {
  display: grid;
  gap: 1rem;
}

.home-grid > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .home-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.cta-card {
  background:
    radial-gradient(22rem 14rem at 100% 0%, rgb(98 187 71 / 16%), transparent 70%),
    var(--surface);
}

.checklist {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--green-50) var(--i-check-brand) center / 0.95rem no-repeat;
  box-shadow: inset 0 0 0 1px var(--green-100);
}

.checklist li:first-child {
  padding-top: 0.25rem;
}

.checklist li:first-child::before {
  top: 0.3rem;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist strong {
  display: block;
}

.how-steps {
  counter-reset: how;
  list-style: none;
  padding: 0;
}

.how-steps li {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 3rem;
  counter-increment: how;
}

.how-steps li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: -0.15rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #0563a0, var(--brand));
  box-shadow: 0 4px 10px -4px rgb(1 84 138 / 55%);
  color: #fff;
  font-weight: 800;
}

/* On the home page the four steps become tiles. */
.how-steps--tiles {
  display: grid;
  gap: 1rem;
  margin: 0;
}

@media (min-width: 36rem) {
  .how-steps--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .how-steps--tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.how-steps--tiles li {
  margin: 0;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.how-steps--tiles li::before {
  position: static;
  margin-bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
}

.how-steps--tiles strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 1.0625rem;
}

/* ---------- Documents step ---------- */

.file-list {
  list-style: none;
  margin: 0.6rem 0 0.85rem;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.file-list__name {
  position: relative;
  min-width: 0;
  padding-left: 1.65rem;
  overflow-wrap: anywhere;
}

.file-list__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--brand);
  -webkit-mask: var(--i-file) center / contain no-repeat;
  mask: var(--i-file) center / contain no-repeat;
}

.upload-form {
  display: grid;
  gap: 0.6rem;
}

.upload-form .field {
  margin-bottom: 0;
}

.upload-status {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 650;
}

.upload-status:empty {
  display: none;
}

/* With JavaScript, choosing a file uploads it straight away; copy buttons only work with it. */
.js .js-hide {
  display: none;
}

.js-only {
  display: none !important;
}

.js .js-only {
  display: inline-flex !important;
}

/* ---------- Confirmation and status ---------- */

.reference {
  display: inline-block;
  margin: 0.25rem 0 1rem;
  padding: 0.7rem 1.15rem;
  border: 2px dashed var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* The applicant's headline: a tinted card with an icon for the kind of news it is. */
.status-hero {
  --tone: var(--info);
  --tone-soft: var(--info-soft);
  --tone-icon: var(--i-clock);
  position: relative;
  margin-bottom: 1rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--info-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--tone-soft) 100%);
  box-shadow: var(--shadow);
}

.status-hero::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--tone-soft);
  box-shadow: inset 0 0 0 1.5px var(--tone);
}

.status-hero::after {
  content: "";
  position: absolute;
  left: calc(1.25rem + 0.6rem);
  top: calc(1.35rem + 0.6rem);
  width: 1.55rem;
  height: 1.55rem;
  background-color: var(--tone);
  -webkit-mask: var(--tone-icon) center / contain no-repeat;
  mask: var(--tone-icon) center / contain no-repeat;
}

@media (min-width: 36rem) {
  .status-hero {
    padding: 1.6rem 1.75rem 1.6rem 5.25rem;
  }

  .status-hero::before {
    position: absolute;
    left: 1.6rem;
    top: 1.6rem;
    margin: 0;
  }

  .status-hero::after {
    left: calc(1.6rem + 0.6rem);
    top: calc(1.6rem + 0.6rem);
  }
}

.status-hero--success {
  --tone: var(--success);
  --tone-soft: var(--success-soft);
  --tone-icon: var(--i-check);
  border-color: var(--success-line);
}

.status-hero--warning {
  --tone: var(--warning);
  --tone-soft: var(--warning-soft);
  --tone-icon: var(--i-alert);
  border-color: var(--warning-line);
}

.status-hero--neutral {
  --tone: #5b6a65;
  --tone-soft: var(--neutral-soft);
  --tone-icon: var(--i-minus);
  border-color: var(--line);
}

.status-hero .eyebrow {
  color: var(--muted);
}

.status-hero h1 {
  margin-bottom: 0.45rem;
}

.status-hero p:last-child {
  margin-bottom: 0;
}

.tracker {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracker li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 600;
}

.tracker li:last-child {
  padding-bottom: 0;
}

.tracker li::before {
  content: "";
  position: relative;
  z-index: 1;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.tracker li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.75rem - 1px);
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tracker li.is-done,
.tracker li.is-current {
  color: var(--ink);
}

.tracker li.is-done::before {
  border-color: var(--green-ink);
  background: var(--green-ink) var(--i-check-white) center / 0.8rem no-repeat;
}

.tracker li.is-done::after {
  background: var(--green-ink);
}

.tracker li.is-current {
  font-weight: 750;
}

.tracker li.is-current::before {
  border-width: 5px;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.tracker li.is-stopped {
  color: var(--ink);
}

.tracker li.is-stopped::before {
  border-color: var(--line-strong);
  background: var(--line-strong);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline time {
  color: var(--muted);
  font-size: 0.9375rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Status lookup ---------- */

.container--split {
  max-width: 68rem;
}

/* The form, with help beside it on a wide screen and below it on a phone. */
.split {
  display: grid;
  gap: 1rem;
}

.split > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: start;
  }
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-note::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  background-color: var(--brand);
  -webkit-mask: var(--i-lock) center / contain no-repeat;
  mask: var(--i-lock) center / contain no-repeat;
}

/* Reference numbers are codes; the server upper-cases whatever is typed, so showing it that way is safe. */
.input--code {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* On a wide screen the help stays in view while a long form scrolls past (below the sticky header). */
@media (min-width: 56rem) {
  .split__aside--sticky {
    position: sticky;
    top: 5.25rem;
  }
}

/* Help cards: a heading with a tinted icon tile. The tile is ::before and the icon, drawn as a
   mask in the brand colour, sits on it as ::after. */
.help-card {
  --help-icon: var(--i-info);
}

.help-card h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.0625rem;
}

.help-card h2::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-xs);
  background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green-100);
}

.help-card h2::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: -0.55rem;
  background-color: var(--green-ink);
  -webkit-mask: var(--help-icon) center / contain no-repeat;
  mask: var(--help-icon) center / contain no-repeat;
}

.help-card--check {
  --help-icon: var(--i-check);
}

.help-card--shield {
  --help-icon: var(--i-shield);
}

.help-card--file {
  --help-icon: var(--i-file);
}

.help-card--clock {
  --help-icon: var(--i-clock);
}

.help-card--phone {
  --help-icon: var(--i-phone);
}

.help-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.help-list li {
  position: relative;
  margin: 0 0 0.5rem;
  padding-left: 1.6rem;
}

.help-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--green-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

/* A picture of the SMS the reference arrives in (aria-hidden; the text above says the same). */
.sms-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page);
}

.sms-preview__from {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.sms-preview__from .brand__mark {
  width: 1.4rem;
  height: 1.4rem;
}

.sms-preview__bubble {
  max-width: 22rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sms-preview__bubble mark {
  padding: 0.05rem 0.15rem;
  border-radius: 4px;
  background: var(--green-100);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Privacy notice ---------- */

article.card h2 {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

article.card li + li {
  margin-top: 0.4rem;
}

/* ---------- Staff portal ---------- */

.staff {
  --page: #f2f5f4;
}

.staff-header {
  --focus: var(--green-light);
  position: static;
  background: linear-gradient(180deg, #014a7a 0%, var(--brand-deep) 100%);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
}

.staff-header .site-header__inner,
.staff .site-footer__inner {
  max-width: 78rem;
}

.staff-header .brand,
.staff-header .brand:hover {
  color: #fff;
}

.staff-header .site-nav a,
.staff-header .link-button {
  color: #e4ece9;
}

.staff-header .site-nav a:hover,
.staff-header .link-button:hover {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.staff-header .link-button {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}

.staff-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.9375rem;
}

.staff-user__me {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 650;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #74c95a, var(--green-strong));
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  list-style: none;
  scrollbar-width: thin;
}

.tabs li {
  margin: 0;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.tabs a:hover {
  background: var(--page);
  color: var(--ink);
}

.tabs a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px -2px rgb(15 31 26 / 45%);
}

.tabs .count {
  min-width: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--neutral-soft);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tabs a[aria-current="page"] .count {
  background: rgb(255 255 255 / 20%);
  color: #fff;
}

.search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search .input {
  flex: 1;
  min-width: 0;
  padding-left: 2.85rem;
  background-image: var(--i-search-muted);
  background-repeat: no-repeat;
  background-position: 0.95rem center;
  background-size: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr {
  transition: background-color 0.12s var(--ease);
}

tbody tr:hover {
  background: var(--surface-raised);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

td > a {
  font-weight: 700;
}

td .badge--needed {
  margin-top: 0.35rem;
}

td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

th.num {
  text-align: right;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pagination a {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--brand);
}

.case-grid {
  display: grid;
  gap: 1rem;
}

.case-grid > * {
  min-width: 0;
}

@media (min-width: 62rem) {
  .case-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
}

.check-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
  border-bottom: 0;
}

.audit-table td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

details summary {
  color: var(--brand);
  font-weight: 650;
  cursor: pointer;
}

details[open] summary {
  margin-bottom: 0.75rem;
}

/* ---------- Live Webfin capture ---------- */

.capture-panel {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.capture-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.6rem;
}

.capture-panel__head h2 {
  margin: 0;
}

.capture-panel__count {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.capture-panel__people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin: 0.6rem 0 0;
}

.live-note {
  align-items: center;
  gap: 0.45rem;
}

/* <progress> works without script and is announced by screen readers; this just styles it. */
.capture-bar {
  display: block;
  width: 100%;
  height: 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-50);
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

.capture-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--brand-50);
}

.capture-bar::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--green));
}

.capture-bar::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--green));
}

.live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgb(98 187 71 / 60%);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(98 187 71 / 60%);
  }

  70% {
    box-shadow: 0 0 0 0.45rem rgb(98 187 71 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(98 187 71 / 0%);
  }
}

/* A value that has gone to Webfin: a green tick, and who copied it when. */
.copy-row.is-done .copy-row__label::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.35rem;
  vertical-align: -0.1em;
  background-color: var(--green-ink);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

.copy-row__status {
  grid-column: 1 / -1;
  color: var(--green-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.copy-row__status:empty {
  display: none;
}

@media (min-width: 40rem) {
  .copy-row__status {
    grid-column: 2 / -1;
  }
}

.live-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-item {
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.live-item:first-child {
  padding-top: 0.2rem;
}

.live-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.live-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}

.live-item__head a {
  font-weight: 700;
}

.live-item__meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Webfin steps on the case page: who did each one, and when. */
.step-log {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.step-log li {
  position: relative;
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.6rem 0 0.6rem 2rem;
  border-bottom: 1px solid var(--line);
}

.step-log li:last-child {
  border-bottom: 0;
}

.step-log li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.step-log li.is-done::before {
  border-color: var(--green-ink);
  background: var(--green-ink) var(--i-check-white) center / 0.7rem no-repeat;
}

.step-log__title {
  font-weight: 650;
}

.step-log__meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.step-log__detail {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ---------- Two-factor setup ---------- */

.qr-code {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-code svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.setup-key {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

/* ---------- Handoff screen ---------- */

.handoff-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.handoff-section__number {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, #0563a0, var(--brand));
  color: #fff;
  font-size: 0.9375rem;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.copy-row:last-child {
  border-bottom: 0;
}

.copy-row__label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.copy-row__value {
  font-size: 1.0625rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.copy-row__value--empty {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}

@media (min-width: 40rem) {
  .copy-row {
    grid-template-columns: 15rem minmax(0, 1fr) auto;
  }

  .copy-row__label {
    grid-column: auto;
    font-size: 0.9375rem;
  }
}

.copy-button.is-copied {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

/* The reference form follows staff down the handoff screen on a desktop; on a phone it
   would cover too much of the screen, so it simply comes last. */
.sticky-panel {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 40rem) {
  .sticky-panel {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    background: rgb(255 255 255 / 94%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 6px rgb(15 31 26 / 4%), 0 12px 32px -8px rgb(15 31 26 / 22%);
  }
}

.reference-form {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 40rem) {
  .reference-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .reference-form .field {
    margin: 0;
  }
}

/* ---------- Motion, contrast and print ---------- */

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

  .button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button {
    border-color: ButtonText;
  }

  .steps__marker,
  .tracker li::before,
  .badge::before {
    forced-color-adjust: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .footer-links,
  .button,
  .link-button,
  .hero__picker {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    background: none;
    color: var(--ink);
  }

  .hero h1,
  .hero p {
    color: var(--ink);
  }

  .card,
  .status-hero {
    box-shadow: none;
    break-inside: avoid;
  }
}
