/* Reclutamiento Ganador — one palette, one type system, one set of components for the landing,
   the funnel and the admin panel.

   The palette is the logo's own (static/img/logo.jpeg): navy #1b294e and gold #c59b37. The ground
   stays white so the logo's white background disappears into the landing header. No web fonts,
   no external assets: the system stack carries the whole site.

   Contrast, measured against the surface each colour is used on:
   ink on white 15.9:1 · ink-soft on white 7.1:1 · muted on white 5.9:1 · gold-deep on white 4.9:1
   navy label on a gold button 5.4:1 · on-navy on navy 12.7:1 · gold on navy 5.4:1
*/

:root {
  --ink: #1b2a52;
  --ink-soft: #4c5776;
  --muted: #5b6478;
  --gold: #c59b37;
  --gold-hover: #d3ab47;
  --gold-deep: #8c6b1f;
  --ground: #fff;
  --surface: #efefec;
  --line: #e3ded2;
  --on-navy: #fff;
  --on-navy-soft: #c3cbde;
  --danger: #8c1d18;
  --danger-bg: #fdf2f2;
  --ok-bg: #eef4f0;

  /* Five type steps. Nothing else is a type size on this site, except the footer wordmark, which is
     a lockup rather than text. */
  --t-xs: 0.8125rem;
  --t-sm: 1rem;
  --t-md: clamp(1.375rem, 1.7vw, 1.5rem);
  --t-lg: clamp(2.25rem, 3.9vw, 3.5rem);
  --t-xl: clamp(3.5rem, 9.5vw, 9.375rem);

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.375rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 5;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
}

.skip:focus {
  left: 0;
}

/* ---------- Shared components ---------- */

.btn {
  display: block;
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover {
  background: var(--gold-hover);
}

.btn:active {
  transform: scale(0.98);
}

/* taste-skill-ignore outlined-box: a button on the product surfaces (funnel, result, admin), where
   the outlined variant is the UI's own second-level action. */
.btn-outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--on-navy);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-danger:hover {
  background: #a5241e;
}

.banner {
  border-left: 0.35rem solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-bg);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.banner ul {
  margin: 0;
  padding-left: 1.1rem;
}

.banner-ok {
  border-color: var(--ink);
  background: var(--ok-bg);
}

.note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead {
  font-weight: 600;
}

/* ---------- Funnel form ---------- */

fieldset {
  border: 0;
  border-top: 1px solid var(--line); /* taste-skill-ignore hairline: a real form fieldset */
  margin: 0 0 1.25rem;
  padding: 1rem 0 0;
}

legend {
  font-weight: 600;
  padding: 0;
}

.q {
  margin-bottom: 1rem;
}

.q-text {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.opt {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  cursor: pointer;
}

.opt input {
  margin: 0.25rem 0 0;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ink);
}

.field {
  display: block;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea,
.cand-note textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem;
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
}

/* taste-skill-ignore outlined-box: the route picker is a form control group inside the funnel. */
.routes {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.route-list {
  max-height: 18rem;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.route span {
  font-size: 0.95rem;
}

.consent {
  margin-top: 0.5rem;
  font-weight: 400;
}

.instructions {
  white-space: pre-line;
  border-left: 0.25rem solid var(--gold);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.result .btn {
  margin-bottom: 1rem;
}

.is-hidden {
  display: none;
}

.cards {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

/* taste-skill-ignore outlined-box: profile summary cards inside the funnel form. */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ---------- Admin panel: a flat product UI, one column, thumb-sized targets ---------- */

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-nav form {
  margin: 0;
}

.login {
  max-width: 24rem;
  margin: 0 auto;
  padding-top: 3rem;
}

.login-logo {
  width: 5rem;
  margin-bottom: 1.5rem;
}

/* taste-skill-ignore hairline: the board's stage blocks are a product surface; the admin_test suite
   counts the `.board-section` elements. */
.board-section {
  border-top: 1px solid var(--line); /* taste-skill-ignore hairline: project surface, not landing */
  padding-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.board-section h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.board-section.today {
  border-top: 0.35rem solid var(--ink);
}

.count {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.1rem 0.6rem;
}

/* taste-skill-ignore outlined-box: one candidate record on the admin board, a product surface. */
.cand {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.cand-name {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.cand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.cand-actions form {
  margin: 0;
}

.cand-note {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.btn-sm {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.fields,
.answers {
  margin: 0 0 1.25rem;
}

.fields dt,
.answers dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

.fields dd,
.answers dd {
  margin: 0;
}

.timeline {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline li {
  margin-bottom: 0.5rem;
}

.subhead {
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
