/* Candidate-facing (public) page overrides. Loaded in numeric order; later files may override earlier ones. */

/* ===== Footshop candidate-facing overrides ===== */

@font-face {
  font-family: "foot";
  src: url("/public/foot-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Body & base --- */

/* Candidate pages use the black-and-white Footshop palette; 07-dark-mode.css swaps these tokens for the dark theme. */
.guest-body {
  --guest-ink: #141414;
  --guest-paper: #ffffff;
  --guest-surface: #ffffff;
  --guest-muted: #5a5a5a;
  --guest-placeholder: #999999;
  --guest-line: #c8c8c8;
  --guest-control-line: #c8c8c8;
  --guest-chip-line: #e6e6e6;
  --guest-dashed: #aaaaaa;
  --guest-soft: #f8f8f8;
  --guest-soft-strong: #f0f0f0;
  --guest-danger: #c62828;

  background: var(--guest-paper);
  color: var(--guest-ink);
}

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

.guest-body .guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* --- Brand logo --- */

.guest-body .guest-brand {
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
}

.guest-body .guest-brand__logo {
  width: 130px;
  height: auto;
}

/* --- Language selector --- */

.guest-body .guest-language {
  position: static;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.guest-body .guest-language__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.guest-body .guest-language__select {
  border-radius: 0;
  border: 1px solid var(--guest-control-line);
  min-height: 34px;
  font-size: 13px;
  color: var(--guest-ink);
  background: var(--guest-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  padding: 0 38px 0 14px;
  cursor: pointer;
}

/* --- Public shell & hero --- */

.guest-body .public-shell {
  padding: 20px 24px 48px;
}

.guest-body .public-hero {
  margin-bottom: 20px;
}

.guest-body .public-hero h1 {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 32px;
  color: var(--guest-ink);
}

.guest-body .subtitle {
  color: var(--guest-muted);
  margin: 8px 0 4px;
  max-width: none;
}

.guest-body .public-shell h2 {
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--guest-ink);
  margin: 28px 0 4px;
}

.guest-body .card.stack {
  gap: 0;
}

.guest-body .card.stack p,
.guest-body .card.stack ul {
  margin: 4px 0 0;
}

.guest-body .card.stack .inline {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--guest-line);
}

.guest-body .public-shell h2:first-child {
  margin-top: 0;
}

/* --- Cards --- */

.guest-body .card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--guest-line);
  padding: 28px;
  background: var(--guest-surface);
}

.guest-body .card__header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--guest-line);
  margin-bottom: 0;
}

.guest-body .card__header h2 {
  margin: 0;
}

.guest-body .public-apply-layout {
  gap: 20px;
}

/* --- List items (position listings) --- */

.guest-body .list-item {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--guest-line);
  background: var(--guest-surface);
  padding: 20px 24px;
}

.guest-body .list-item--stacked {
  gap: 14px;
}

.guest-body .list-item--stacked .inline.public-actions {
  align-self: flex-end;
}

.guest-body .public-title {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--guest-ink);
}

.guest-body .public-meta {
  color: var(--guest-muted);
  font-size: 13px;
}

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

/* --- Buttons --- */

.guest-body .primary-button {
  border-radius: 0;
  background: var(--guest-ink);
  color: var(--guest-paper);
  min-height: 44px;
  padding: 10px 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.guest-body .primary-button:hover {
  background: var(--guest-paper);
  color: var(--guest-ink);
  box-shadow: inset 0 0 0 2px var(--guest-ink);
}

.guest-body .primary-button:active {
  transform: none;
}

.guest-body .secondary-button {
  border-radius: 0;
  background: var(--guest-surface);
  color: var(--guest-ink);
  border: 1px solid var(--guest-ink);
  min-height: 44px;
  padding: 10px 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.guest-body .secondary-button:hover {
  background: var(--guest-ink);
  color: var(--guest-paper);
}

.guest-body .secondary-button:active {
  transform: none;
}

/* --- Form inputs --- */

.guest-body .table-input,
.guest-body .table-select {
  border-radius: 0;
  border: 1px solid var(--guest-control-line);
  font-size: 14px;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--guest-ink);
  background: var(--guest-surface);
  transition: border-color 0.2s ease;
  width: 100%;
}

.guest-body .table-input::placeholder {
  color: var(--guest-placeholder);
}

.guest-body .table-input:focus,
.guest-body .table-select:focus {
  border-color: var(--guest-ink);
  box-shadow: none;
  outline: none;
}

.guest-body textarea.table-input {
  min-height: 140px;
}

/* --- Dropzone --- */

.guest-body .dropzone {
  border: 2px dashed var(--guest-dashed);
  border-radius: 0;
  padding: 24px;
  background: var(--guest-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.guest-body .dropzone--active {
  border-color: var(--guest-ink);
  background: var(--guest-soft-strong);
}

.guest-body .dropzone--selected {
  border-color: var(--guest-ink);
  border-style: solid;
  background: var(--guest-soft);
  box-shadow: none;
}

.guest-body .dropzone__label {
  color: var(--guest-ink);
}

.guest-body .dropzone__title {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.guest-body .dropzone__subtitle {
  color: var(--guest-muted);
}

.guest-body .dropzone__badge {
  border-radius: 0;
  background: var(--guest-soft);
  color: var(--guest-ink);
  border: 1px solid var(--guest-ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guest-body .dropzone__filename--selected {
  border-radius: 0;
  background: var(--guest-soft);
  color: var(--guest-ink);
  border: 1px solid var(--guest-chip-line);
  font-weight: 500;
}

@keyframes dropzone-confirm-pulse-fs {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--guest-ink) 15%, transparent);
  }
  100% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.guest-body .dropzone--confirmed {
  animation: dropzone-confirm-pulse-fs 0.45s ease-out;
}

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

.guest-body .text-link {
  color: var(--guest-ink);
  font-weight: 500;
  text-decoration: underline;
}

/* --- Public alert --- */

.guest-body .public-alert {
  border-radius: 0;
  font-weight: 500;
}

.guest-body .public-alert--success {
  border-color: var(--guest-ink);
  background: var(--guest-soft);
  color: var(--guest-ink);
}

.guest-body .public-alert--error {
  border-color: var(--guest-danger);
  border-left-width: 4px;
  background: var(--guest-soft);
  color: var(--guest-ink);
}

.guest-body .field-label--required::after {
  color: var(--guest-danger);
}

/* --- Footer --- */

.guest-body .public-footer__link {
  color: var(--guest-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guest-body .public-footer__link:hover,
.guest-body .public-footer__link:focus-visible {
  color: var(--guest-ink);
}

/* --- Focus ring --- */

.guest-body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--guest-ink);
  outline-offset: 2px;
}

/* --- NPS slider --- */

.guest-body .nps-score-hints span {
  color: var(--guest-muted);
}

.guest-body .nps-score-value {
  font-weight: 500;
  color: var(--guest-ink);
}

.guest-body .nps-score-slider {
  accent-color: var(--guest-ink);
}

/* --- Links inside public shell --- */

.guest-body .public-shell a:not(.primary-button):not(.secondary-button):not(.public-footer__link) {
  color: var(--guest-ink);
  font-weight: 500;
}

/* --- Form layout --- */

.guest-body .form {
  margin-top: 12px;
}

.guest-body .form.stack {
  gap: 0;
}

.guest-body fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.guest-body fieldset.stack {
  gap: 0;
  padding: 0;
  margin-top: 28px;
  border: none;
}

.guest-body fieldset.stack:first-child {
  margin-top: 0;
}

.guest-body legend.muted {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--guest-ink);
  margin: 0 0 2px;
  padding: 0;
  width: 100%;
}

/* --- Form labels --- */

.guest-body .form label.muted,
.guest-body .public-shell label.muted {
  color: var(--guest-ink);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin: 8px 0 3px;
  display: block;
}

.guest-body fieldset.stack label.muted:first-of-type {
  margin-top: 4px;
}

.guest-body .form .muted:not(label):not(legend) {
  margin: 4px 0 0;
  font-size: 13px;
}

.guest-body .form .inline {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--guest-line);
  flex-direction: row-reverse;
  justify-content: space-between;
}

/* --- Checkbox / consent --- */

.guest-body .checkbox-row {
  color: var(--guest-muted);
}

.guest-body input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--guest-ink);
  vertical-align: middle;
  margin-right: 6px;
}

/* --- Responsive overrides --- */

@media (max-width: 768px) {
  .guest-body .guest-header {
    padding: 12px 16px;
  }

  .guest-body .guest-brand__logo {
    width: 100px;
  }

  .guest-body .guest-language {
    padding: 0;
    gap: 0;
  }

  .guest-body .guest-language__select {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .guest-body .public-hero h1 {
    font-size: 24px;
  }

  .guest-body .list-item--stacked .inline.public-actions {
    align-self: stretch;
    flex-direction: column-reverse;
  }

  .guest-body .primary-button,
  .guest-body .secondary-button {
    min-height: 50px;
    width: 100%;
    justify-content: center;
  }

  .guest-body .inline {
    flex-direction: column;
    width: 100%;
  }

  .guest-body .form .inline {
    flex-direction: column-reverse;
  }

  .guest-body .public-actions {
    flex-direction: column;
    width: 100%;
  }
}
