/* Hallmark · macrostructure: Index-First · genre: editorial · tone: honest-classifieds
 * nav: N6 masthead · footer: Ft6 letter-close · enrichment: none (typography only)
 * theme: Plum (brand-locked tokens, shared with pulsebridgesolution.com) —
 * display face switches to the brand's own outlier (Chakra Petch), which is
 * what separates this property visually from the corporate site.
 * pre-emit critique: P4 H4 E4 S4 R5 V4
 */

@import url("tokens.css?v=20260806");

/* The careers property speaks in the brand's squared voice: Chakra Petch for
 * display, Geist for body. tokens.css itself is shared and stays untouched. */
:root {
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
}

/* ---------------------------------------------------------------- reset */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--color-accent-soft); color: var(--color-ink); }

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

/* ---------------------------------------------------------- primitives */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.muted { color: var(--color-muted); }
.tnum { font-variant-numeric: tabular-nums; }

.lede {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 58ch;
}

.section {
  padding-block: clamp(3.5rem, 8vw, var(--space-3xl));
  border-top: var(--rule-hair) solid var(--color-rule);
}

.section--tight { padding-block: clamp(2.75rem, 6vw, var(--space-2xl)); }
.section--open { padding-block: clamp(4rem, 10vw, var(--space-4xl)); }
.section--plain { border-top: 0; }

.section__head { max-width: 62ch; margin-bottom: var(--space-xl); }

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section__note { color: var(--color-muted); max-width: 56ch; }

.rule-accent {
  width: 2.25rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-btn);
  margin-bottom: var(--space-lg);
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.004em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.btn--fill {
  background: var(--color-accent);
  color: var(--color-on-ink);
}

.btn--fill:hover { background: var(--color-accent-strong); }

.btn--line {
  border-color: var(--color-rule-strong);
  color: var(--color-ink);
}

.btn--line:hover { border-color: var(--color-ink); background: var(--color-paper-2); }

.btn--onink {
  background: var(--color-paper);
  color: var(--color-ink);
}

.btn--onink:hover { background: var(--color-paper-3); }

.btn--text {
  padding-inline: var(--space-sm);
  color: var(--color-muted);
}

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

.btn:active { transform: translateY(1px); }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn[data-state="loading"] { cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.link-arrow:hover { border-bottom-color: var(--color-accent); }

/* ------------------------------------------------- N6 · masthead nav */

/* A hiring board, mast-headed like a paper: issue line, big squared
   wordmark, one row of links, double rule. Not sticky — the board below
   is the point, the masthead is the front page's name. */
.mast {
  padding: var(--space-md) var(--page-gutter) 0;
  text-align: center;
}

.mast__line {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: var(--space-sm);
}

.mast__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.mast__brand .brand__mark { width: auto; height: clamp(28px, 4vw, 40px); flex: none; }

.mast__word {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-ink);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
}

.mast__word-accent { color: var(--color-accent-ink); }

.mast__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--space-lg);
  row-gap: var(--space-2xs);
  margin-top: var(--space-sm);
}

.mast__nav a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--space-2xs);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.mast__nav a:hover { color: var(--color-ink); border-bottom-color: var(--color-rule-strong); }

.mast__nav a[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}

.mast__rule {
  margin-top: var(--space-sm);
  height: 5px;
  border-top: 2px solid var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-ink);
}

/* ----------------------------------------------------------- ink band */

.band-ink {
  background: var(--color-ink-surface);
  color: var(--color-on-ink);
  padding-block: clamp(3.5rem, 8vw, var(--space-3xl));
}

.band-ink h2 { color: var(--color-on-ink); }

.band-ink .muted,
.band-ink p { color: var(--color-on-ink-muted); }

.band-ink__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .band-ink__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
}

.stance { display: grid; gap: var(--space-lg); }

.stance li {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-ink-surface-2);
}

.stance li:first-child { border-top: 0; padding-top: 0; }

.stance strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-on-ink);
}

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; border-top: var(--rule-hair) solid var(--color-rule); max-width: 68ch; }

.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-micro) var(--ease-out);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-accent-ink); }

.faq summary::after {
  content: "\2193"; /* ↓ — the answer is below, not "more content exists" */
  font-family: var(--font-outlier);
  font-weight: 500;
  color: var(--color-neutral);
  flex: none;
  transition: transform var(--dur-micro) var(--ease-out);
}

.faq details[open] summary::after { content: "\2191"; color: var(--color-accent-ink); }

.faq p {
  padding-bottom: var(--space-lg);
  color: var(--color-muted);
  max-width: 60ch;
}

/* ---------------------------------------------------- closing strip */

/* One column, one typographic ask. The letter-close footer follows it,
   so a filled button floating in whitespace has nothing to add here. */
.close-strip {
  padding-block: clamp(2.5rem, 6vw, var(--space-2xl));
  border-left: 3px solid var(--color-accent);
  padding-left: clamp(var(--space-md), 3vw, var(--space-xl));
  max-width: 62ch;
}

.close-strip__title { font-size: var(--text-xl); max-width: 24ch; margin-bottom: var(--space-sm); }

.close-strip__body { color: var(--color-muted); }
.close-strip__body .link-arrow { color: var(--color-accent-ink); white-space: nowrap; }

/* --------------------------------------------------------------- forms */

.form { display: grid; gap: var(--space-lg); max-width: 40rem; }

.field { display: grid; gap: var(--space-2xs); }

.field label { font-size: var(--text-sm); font-weight: 500; }

/* Reserved so an appearing hint or error never pushes the form down. */
.field__hint { font-size: var(--text-xs); color: var(--color-neutral); min-height: 1lh; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-micro) var(--ease-out);
}

.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--color-neutral); }

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--color-focus); }

.field input:disabled,
.field textarea:disabled { background: var(--color-paper-3); cursor: not-allowed; }

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

.field__error { font-size: var(--text-sm); color: var(--color-accent-ink); }

.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
}

.notice--ok { border-color: var(--color-accent); background: var(--color-accent-soft); }

/* ------------------------------------------------ Ft6 · letter close */

/* The page signs off like a letter, because a person really does read
   every application — the footer says so in its own voice. */
.foot {
  border-top: 2px solid var(--color-ink);
  padding-block: var(--space-2xl) var(--space-xl);
}

.foot__close {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-ink);
  max-width: 52ch;
}

.foot__sign {
  display: inline-block;
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--color-accent-ink);
}

.foot__ps {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-md);
  max-width: 52ch;
}

.foot__ps a { color: var(--color-accent-ink); }

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-neutral);
}

.foot__meta a {
  color: var(--color-neutral);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.foot__meta a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent); }

/* -------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .reveal { animation: reveal-reduced 150ms linear forwards; }

  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
}

@media (pointer: coarse) {
  .btn { min-height: 48px; }
}

/* ------------------------------------------------------------ utility */

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ================================================================
 * PulseBridge Careers — page components
 * Shares tokens, nav, buttons and footer with pulsebridgesolution.com;
 * the page macrostructure below (statement hero → job ledger →
 * conditions → process → FAQ) is specific to the careers site.
 * ================================================================ */

/* -------------------------------------------------------- board head */

/* Index-First: the board below is the page. This head introduces it in
   two columns — the pitch on the left, the terms as a spec sheet on the
   right. No buttons; the jobs are one scroll away. */
.board-head {
  padding-block: clamp(2.5rem, 6vw, var(--space-2xl));
}

.board-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 60rem) {
  .board-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-3xl); }
}

.board-head__title {
  font-size: var(--text-display-s);
  max-width: 20ch;
  margin-bottom: var(--space-lg);
}

.board-head__lede { font-size: var(--text-md); color: var(--color-muted); max-width: 52ch; }

.board-head__count {
  margin-top: var(--space-lg);
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

/* The terms, as a spec sheet — rows and rules, not three floating columns. */
.terms {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--color-ink);
}

.terms th {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  text-align: left;
  vertical-align: top;
  padding: var(--space-md) var(--space-lg) var(--space-md) 0;
  white-space: nowrap;
}

.terms td {
  font-size: var(--text-sm);
  color: var(--color-muted);
  vertical-align: top;
  padding: var(--space-md) 0;
}

.terms tr + tr th,
.terms tr + tr td { border-top: var(--rule-hair) solid var(--color-rule); }

@media (max-width: 30rem) {
  .terms th { white-space: normal; padding-right: var(--space-md); }
}

/* --------------------------------------------------------- job ledger */

/* Filters as a typographic row — the board's own vocabulary, not chips. */
.filters {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-lg);
  row-gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.filters a:hover { color: var(--color-ink); border-bottom-color: var(--color-rule-strong); }

.filters a[aria-current="true"] {
  color: var(--color-accent-ink);
  border-bottom-color: var(--color-accent);
}

.group { margin-bottom: var(--space-2xl); }

.group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
  margin-bottom: var(--space-2xs);
}

.group__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral);
}

.group__count { font-size: var(--text-xs); color: var(--color-neutral); font-variant-numeric: tabular-nums; }

/* A classifieds row: running number, squared title, one-line pitch, go. */
.job {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-md);
  align-items: start;
  padding-block: var(--space-lg);
  padding-inline: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

@media (min-width: 52rem) {
  .job {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    column-gap: var(--space-lg);
    align-items: baseline;
  }
}

.job:hover {
  background: var(--color-paper-2);
  border-left-color: var(--color-accent);
}
.job:hover .job__title { color: var(--color-accent-ink); }
.job:hover .job__go { transform: translateX(4px); }

.job__num {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-neutral);
  letter-spacing: 0.04em;
  padding-top: 0.3em;
}

.job__body { display: block; min-width: 0; }

.job__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-2xs);
  transition: color var(--dur-micro) var(--ease-out);
}

.job__blurb { display: block; color: var(--color-muted); max-width: 62ch; font-size: var(--text-sm); }

/* Where the desk is worked. Quiet — it is a fact about the row, not a label
   competing with the role title. */
.job__mode {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.job__go {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-ink);
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out);
}

@media (min-width: 52rem) {
  .job__go { display: inline-flex; }
}

.empty {
  padding: var(--space-2xl) 0;
  color: var(--color-muted);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* ------------------------------------------------------- job detail */

.jobhead { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: var(--space-lg);
}

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

.jobhead__title { font-size: var(--text-display-s); max-width: 20ch; margin-bottom: var(--space-md); }

/* Role meta as a typographic line — the board's vocabulary, not pills. */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-sm);
  row-gap: var(--space-3xs);
  margin-bottom: var(--space-lg);
}

.chip {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral);
  white-space: nowrap;
}

.chip + .chip::before {
  content: "\00B7";
  margin-right: var(--space-sm);
  color: var(--color-rule-strong);
}

.chip--accent { color: var(--color-accent-ink); }

.split {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: start; }
}

.prose h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--color-muted); max-width: 62ch; margin-bottom: var(--space-md); }

.ticks { display: grid; gap: var(--space-sm); }

.ticks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  color: var(--color-muted);
}

.ticks li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  background: var(--color-accent);
}

/* The apply panel speaks spec-sheet, same as the terms table: an ink rule
   on top, paper background, no card cosmetics. */
.aside {
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-ink);
  position: sticky;
  top: var(--space-lg);
}

.aside h3 { font-size: var(--text-md); margin-bottom: var(--space-sm); }
.aside p { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-lg); }

/* --------------------------------------------------------- process */

.steps {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  counter-reset: step;
}

@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
}

.steps li {
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-rule-strong);
  counter-increment: step;
}

.steps li:first-child { border-top-color: var(--color-accent); }

.steps li::before {
  content: counter(step) ".0";
  display: block;
  font-family: var(--font-outlier);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent-ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-xs);
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xs);
}

.steps p { color: var(--color-muted); font-size: var(--text-sm); }

/* ------------------------------------------------------ application */

.applyhead { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }

.form--apply { max-width: 44rem; }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-2xl);
}

.fieldset__legend {
  display: block;
  width: 100%;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.grid2 {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.q { margin-bottom: var(--space-xl); }

.q__label {
  display: block;
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.q__num {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-ink);
  margin-right: var(--space-xs);
}

.opts { display: grid; gap: var(--space-2xs); }

.opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--color-paper);
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.opt:hover { border-color: var(--color-rule-strong); background: var(--color-paper-2); }

.opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0.28em 0 0;
  border: 1.5px solid var(--color-rule-strong);
  border-radius: 50%;
  flex: none;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}

.opt input:checked {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-accent);
}

.opt:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.opt span { line-height: 1.5; }

.filedrop {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-lg);
  border: 1.5px dashed var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  text-align: center;
  cursor: pointer;
}

.filedrop:hover { border-color: var(--color-accent); }
.filedrop strong { font-size: var(--text-sm); font-weight: 500; }
.filedrop span { font-size: var(--text-xs); color: var(--color-neutral); }
.filedrop input { position: absolute; left: -9999px; }

.submitbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.submitbar p { font-size: var(--text-xs); color: var(--color-neutral); max-width: 44ch; }

.errors {
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border: var(--rule-hair) solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
}

.errors strong { display: block; font-size: var(--text-sm); margin-bottom: var(--space-2xs); color: var(--color-accent-ink); }
.errors li { font-size: var(--text-sm); color: var(--color-accent-ink); }

/* ------------------------------------------------------ status pages */

.status {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-3xl);
  max-width: 60ch;
}

/* Outcome pages open like a stamped notice — squared, not a soft badge. */
.status__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  margin-bottom: var(--space-lg);
}

/* Buttons row on the outcome pages (shared with any page that stacks CTAs). */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.status__mark svg { width: 22px; height: 22px; }
.status__mark--quiet { border-color: var(--color-rule-strong); background: var(--color-paper-3); color: var(--color-neutral); }

.status h1 { font-size: var(--text-display-s); margin-bottom: var(--space-md); }
.status > p { color: var(--color-muted); font-size: var(--text-md); margin-bottom: var(--space-md); }

.next {
  display: grid;
  gap: var(--space-md);
  margin-block: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.next li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md);
  color: var(--color-muted);
}

.next li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  background: var(--color-accent);
}

.next strong { color: var(--color-ink); font-weight: 500; }

/* ------------------------------------------------------- CV uploader */

.cv-uploader { display: grid; gap: var(--space-sm); }

.cv-status {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  border: var(--rule-hair) solid var(--color-rule-strong);
  background: var(--color-paper-2);
  color: var(--color-muted);
}

.cv-status-ok      { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-accent-ink); }
.cv-status-error   { border-color: var(--color-accent); background: var(--color-paper-2); color: var(--color-accent-ink); }
.cv-status-working { color: var(--color-neutral); }

.cv-progress {
  height: 4px;
  border-radius: var(--radius-btn);
  background: var(--color-paper-3);
  overflow: hidden;
}

.cv-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width var(--dur-short) var(--ease-out);
}

.cv-extracted-banner {
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-accent-ink);
}

.autofill-badge { color: var(--color-accent-ink); }
input.autofilled { border-color: var(--color-accent); background: var(--color-accent-soft); }

/* The screening question groups are <fieldset>s — strip the UA chrome. */
.q { border: 0; padding: 0; margin-inline: 0; }
.q__label { padding: 0; }
