:root {
  --ink: #153047;
  --muted: #526879;
  --blue: #145eca;
  --blue-dark: #084896;
  --light: #edf4fa;
  --line: #d3dfe8;
  --white: #fff;
  --danger: #ab2638;
  --good: #176449;
  --radius: 10px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #f8fbfd;
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.65rem 1.1rem;
  background: var(--blue);
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
}
button:hover,
.button:hover {
  background: var(--blue-dark);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--light);
}
.danger {
  background: var(--danger);
}
:focus-visible {
  outline: 3px solid #f0af24;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
p {
  max-width: 74ch;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  padding: 1.2rem 2rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand small {
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: 0.6rem;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.9rem;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 3rem 2rem 5rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 53ch;
}
.role-details {
  border-left: 4px solid var(--blue);
  padding: 1.2rem 1.5rem;
  background: var(--light);
  margin-top: 0.5rem;
}
.role-details p:last-child {
  margin-bottom: 0;
}
.salary {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.muted,
.help {
  color: var(--muted);
}
.help {
  font-size: 0.88rem;
  margin: 0.3rem 0 0.8rem;
  line-height: 1.5;
}
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  border-block: 1px solid var(--line);
  padding: 1.5rem 0;
  margin: 2rem 0 3rem;
}
.process p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}
.process h3 {
  margin-bottom: 0.4rem;
}
.application-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}
.sticky-note {
  position: sticky;
  top: 2rem;
  height: max-content;
}
.paper {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}
.form-section + .form-section {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.form-section legend {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 1rem;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field {
  margin-bottom: 1.2rem;
}
.fields .field {
  margin-bottom: 0;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #9cafbf;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0;
  font-weight: 400;
}
.check input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--blue);
}
.error {
  color: var(--danger);
  font-size: 0.9rem;
}
.notice {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: var(--light);
  margin: 1rem 0;
  white-space: pre-wrap;
}
.notice.error {
  background: #fff0f2;
}
.notice.success {
  background: #eaf7f0;
  color: var(--good);
}
[hidden] {
  display: none !important;
}
.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.status {
  color: var(--muted);
  margin-top: 0.8rem;
}
.receipt {
  max-width: 720px;
  margin: 2rem auto;
}
.receipt h1 {
  font-size: 2.5rem;
}
.document {
  max-width: 820px;
  margin: auto;
}
.document h1 {
  max-width: 24ch;
  font-size: 2.5rem;
}
.document h2 {
  margin-top: 2.3rem;
}
.document li {
  margin: 0.55rem 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.toolbar h1 {
  font-size: 2.1rem;
  margin-bottom: 0;
  max-width: none;
}
.counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.count {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.count strong {
  font-size: 1.6rem;
  display: block;
  line-height: 1.2;
}
.count span {
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 1.5fr);
  gap: 1.5rem;
  align-items: start;
}
.candidate-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.candidate-row {
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
}
.candidate-row:last-child {
  border: 0;
}
.candidate-open {
  display: block;
  text-align: left;
  background: transparent;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  width: 100%;
  font-weight: 400;
}
.candidate-open:hover {
  background: transparent;
  color: var(--blue);
}
.candidate-open strong {
  display: block;
  font-size: 1rem;
}
.candidate-row.selected {
  background: var(--light);
}
.candidate-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  background: var(--light);
  font-size: 0.8rem;
  color: var(--ink);
}
.profile h2 {
  margin-bottom: 0.3rem;
}
.profile-section {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  margin-top: 1.3rem;
}
.profile p {
  overflow-wrap: anywhere;
}
.sample-text {
  white-space: pre-wrap;
  background: #f5f8fb;
  border-left: 3px solid var(--line);
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
  max-height: 300px;
  overflow: auto;
}
.action-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.action-row button {
  font-size: 0.86rem;
}
.evidence-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 0.6rem;
  margin: 1.1rem 0;
}
.evidence-row label {
  margin: 0;
}
.evidence-row textarea {
  grid-column: 1/-1;
  min-height: 75px;
  font-size: 0.9rem;
}
.score-summary {
  padding: 0.8rem 1rem;
  background: var(--light);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.transcript {
  max-height: 350px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.login {
  max-width: 480px;
  margin: 3rem auto;
}
.interview {
  max-width: 720px;
  margin: 1rem auto;
}
.interview h1 {
  font-size: 2.7rem;
  max-width: none;
}
.call-status {
  font-size: 1.2rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  border-radius: 7px;
  margin: 1.5rem 0;
}
.compare-result {
  margin-top: 1.5rem;
}
.copy-panel {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.copy-panel input {
  font-size: 0.85rem;
}
details {
  margin-top: 0.6rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .application-layout {
    grid-template-columns: 1fr;
  }
  .sticky-note {
    position: static;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 1.5rem;
  }
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .paper {
    padding: 1.5rem;
  }
}
@media (max-width: 600px) {
  main {
    padding: 2rem 1rem 3rem;
  }
  .header-inner {
    padding: 1rem;
  }
  .brand small {
    display: none;
  }
  nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .role-details {
    padding: 1rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .counts {
    grid-template-columns: 1fr 1fr;
  }
  .paper {
    padding: 1.1rem;
  }
  .process {
    gap: 1rem;
  }
  .evidence-row {
    grid-template-columns: 1fr 120px;
  }
  .score-summary {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .document h1 {
    font-size: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }
  main {
    padding: 0;
  }
  .document {
    max-width: none;
  }
}
