/* Employer setup — layers on styles.css.
   Editorial geometry: hairline rules, near-square corners, flat fills.
   Scoped under body.employer so the candidate page keeps its softer chat feel. */

.employer {
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --ink-on-accent: #231512;
}

/* ---------- Shared-component overrides: flat and sharp ---------- */

.employer .pill-button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: none;
  color: var(--ink-on-accent);
  font-weight: 600;
  transition:
    background 180ms ease,
    transform 120ms ease;
}

.employer .pill-button:hover {
  transform: none;
  background: var(--accent-strong);
  box-shadow: none;
  color: var(--ink-on-accent);
}

.employer .pill-button:active {
  transform: translateY(1px);
}

.employer .ghost-button {
  border-radius: 0;
  color: var(--muted);
  text-underline-offset: 5px;
}

.employer .ghost-button:hover {
  color: var(--text);
  text-decoration: underline;
}

.employer .fact-input {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  transition: border-color 200ms ease;
}

.employer .fact-input:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.employer .company-logo {
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 87, 0.28);
}

.employer .progress-fill {
  box-shadow: none;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

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

.workspace {
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(36px, 6vw, 84px);
  width: min(1080px, 100%);
  padding-block: 48px;
}

.employer-app .conversation {
  align-self: start;
  justify-self: stretch;
  width: 100%;
  padding-block: 0;
}

/* ---------- Role form ---------- */

.role-form {
  display: grid;
  gap: 14px;
  width: min(380px, 100%);
  opacity: 0;
  transform: translateY(16px);
}

.role-form.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 780ms ease,
    transform 780ms var(--ease-out);
}

.role-form label {
  display: grid;
  gap: 6px;
}

.role-form label span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.role-form .fact-input {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 1rem;
}

.role-form .action-row {
  margin-top: 4px;
}

.logo-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.logo-upload:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.logo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.logo-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-upload-text {
  color: var(--quiet);
  font-size: 0.86rem;
}

.pv-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Always-collected list ---------- */

.base-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
}

.base-list li {
  animation: note-in 500ms ease both;
}

.base-list li:nth-child(1) { animation-delay: 80ms; }
.base-list li:nth-child(2) { animation-delay: 160ms; }
.base-list li:nth-child(3) { animation-delay: 240ms; }
.base-list li:nth-child(4) { animation-delay: 320ms; }
.base-list li:nth-child(5) { animation-delay: 400ms; }
.base-list li:nth-child(6) { animation-delay: 480ms; }
.base-list li:nth-child(7) { animation-delay: 560ms; }

.base-list li::before {
  content: "✓ ";
  color: var(--accent);
}

/* ---------- Requirement toggles ---------- */

.req-grid {
  gap: 10px;
}

.req-pill {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-weight: 550;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.req-pill::before {
  content: "+";
  margin-right: 8px;
  color: var(--quiet);
  font-weight: 600;
  transition: color 180ms ease;
}

.req-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.req-pill.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--peach);
  animation: req-settle 240ms var(--ease-out);
}

.req-pill.is-selected::before {
  content: "✓";
  color: var(--accent);
}

@keyframes req-settle {
  from { transform: scale(0.97); }
  to { transform: scale(1); }
}

/* ---------- Custom question composer ---------- */

.composer {
  display: grid;
  gap: 13px;
}

.composer-input {
  min-height: 46px;
  padding: 8px 14px;
  font-size: 1rem;
}

.composer-input.is-error {
  animation: shake 360ms ease;
  border-color: var(--accent);
}

@keyframes shake {
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}

.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-pill {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.type-pill:hover {
  color: var(--muted);
}

.type-pill.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--peach);
}

.custom-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: baseline;
  animation: note-in 450ms ease both;
}

.custom-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.custom-text {
  font-weight: 550;
}

.custom-badge,
.pv-badge {
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--quiet);
}

.custom-remove {
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--quiet);
  font-size: 1.05rem;
  line-height: 1;
  transition: color 160ms ease;
}

.custom-remove:hover {
  color: var(--accent-strong);
}

/* ---------- Live preview panel ---------- */

.preview-panel {
  position: sticky;
  top: 44px;
  align-self: start;
  display: grid;
  gap: 13px;
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--muted);
}

.preview-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px 20px 18px;
  background: rgba(255, 255, 255, 0.02);
}

.pv-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.pv-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.pv-company {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.pv-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.pv-lines {
  display: grid;
  gap: 12px;
}

.pv-line {
  display: grid;
  gap: 6px;
}

.pv-line > span:first-child {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.pv-chip {
  width: 100%;
  padding: 11px 10px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--quiet);
}

.pv-enter {
  animation: pv-in 480ms var(--ease-out) both;
}

@keyframes pv-in {
  from {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.pv-exit {
  animation: pv-out 300ms ease forwards;
}

@keyframes pv-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(3px);
  }
}

.pv-time {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--quiet);
}

.pv-time strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--peach);
}

.pv-time.is-ticking strong {
  animation: time-tick 500ms var(--ease-spring);
}

@keyframes time-tick {
  0% { transform: scale(0.85); color: var(--accent-strong); }
  100% { transform: scale(1); }
}

.preview-footnote {
  margin: 0;
  color: var(--quiet);
  font-size: 0.8rem;
}

/* ---------- Published link card ---------- */

.link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 119, 87, 0.45);
  border-radius: 2px;
  background: transparent;
}

.link-url {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: color 160ms ease;
}

.ghost-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

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

@media (max-width: 960px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 36px;
  }

  .preview-panel {
    position: static;
    width: min(420px, 100%);
    justify-self: center;
  }
}
