/* ============================================================
   TalentHub Pro – 2027 Design System
   Clean, confident, mobile-first. Scoped under .thp-root
   ============================================================ */

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

.thp-root {
  margin: 0;
  padding: 0;
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--thp-text) !important;
  background: var(--thp-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

.thp-root a { color: inherit; }
.thp-root img { max-width: 100%; height: auto; }
.thp-root button, .thp-root input, .thp-root select, .thp-root textarea {
  font-family: inherit;
}

.thp-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Tokens ---------- */
:root, .thp-root {
  --thp-primary: #0a84ff;
  --thp-primary-hover: #0071e3;
  --thp-primary-soft: rgba(10, 132, 255, 0.1);
  --thp-primary-ink: #ffffff;

  --thp-bg: #f5f5f7;
  --thp-surface: #ffffff;
  --thp-surface-2: #fafafa;
  --thp-elevated: #ffffff;

  --thp-text: #1d1d1f;
  --thp-text-2: #6e6e73;
  --thp-text-3: #86868b;
  --thp-muted: #aeaeb2;

  --thp-border: rgba(0, 0, 0, 0.08);
  --thp-border-strong: rgba(0, 0, 0, 0.12);

  --thp-success: #30d158;
  --thp-success-soft: rgba(48, 209, 88, 0.12);
  --thp-warning: #ff9f0a;
  --thp-warning-soft: rgba(255, 159, 10, 0.12);
  --thp-danger: #ff453a;
  --thp-danger-soft: rgba(255, 69, 58, 0.12);

  --thp-radius-xs: 6px;
  --thp-radius-sm: 10px;
  --thp-radius: 14px;
  --thp-radius-lg: 20px;
  --thp-radius-xl: 28px;
  --thp-radius-full: 9999px;

  --thp-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --thp-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --thp-shadow: 0 4px 16px rgba(0,0,0,0.08);
  --thp-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --thp-shadow-glow: 0 0 0 4px var(--thp-primary-soft);

  --thp-s-1: 4px;
  --thp-s-2: 8px;
  --thp-s-3: 12px;
  --thp-s-4: 16px;
  --thp-s-5: 20px;
  --thp-s-6: 24px;
  --thp-s-8: 32px;
  --thp-s-10: 40px;
  --thp-s-12: 48px;
  --thp-s-16: 64px;
  --thp-s-20: 80px;

  --thp-fs-xs: 12px;
  --thp-fs-sm: 13px;
  --thp-fs: 15px;
  --thp-fs-md: 16px;
  --thp-fs-lg: 18px;
  --thp-fs-xl: 22px;
  --thp-fs-2xl: 28px;
  --thp-fs-3xl: 36px;
  --thp-fs-hero: 44px;

  --thp-container: 1120px;
  --thp-gutter: 20px;
  --thp-header-h: 56px;

  --thp-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --thp-dur: 200ms;
  --thp-dur-fast: 120ms;
}

@media (prefers-color-scheme: dark) {
  .thp-root {
    --thp-bg: #000000;
    --thp-surface: #1c1c1e;
    --thp-surface-2: #2c2c2e;
    --thp-elevated: #2c2c2e;
    --thp-text: #f5f5f7;
    --thp-text-2: #a1a1a6;
    --thp-text-3: #8e8e93;
    --thp-muted: #636366;
    --thp-border: rgba(255, 255, 255, 0.08);
    --thp-border-strong: rgba(255, 255, 255, 0.14);
    --thp-shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --thp-shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --thp-shadow: 0 4px 16px rgba(0,0,0,0.4);
    --thp-shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}

/* ---------- Layout ---------- */
.thp-container {
  width: 100%;
  max-width: var(--thp-container);
  margin-inline: auto;
  padding-inline: var(--thp-gutter);
}

.thp-main {
  flex: 1;
  width: 100%;
}

/* ---------- Header ---------- */
.thp-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--thp-header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--thp-border);
}

@media (prefers-color-scheme: dark) {
  .thp-header {
    background: rgba(0, 0, 0, 0.72);
  }
}

.thp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--thp-header-h);
  gap: var(--thp-s-4);
}

.thp-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--thp-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thp-logo span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.thp-nav {
  display: none;
  gap: var(--thp-s-6);
}

@media (min-width: 768px) {
  .thp-nav { display: flex; }
}

.thp-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--thp-text-2);
  text-decoration: none;
  transition: color var(--thp-dur-fast) var(--thp-ease);
}

.thp-nav a:hover { color: var(--thp-text); }

.thp-header__actions {
  display: flex;
  align-items: center;
  gap: var(--thp-s-2);
}

/* ---------- Buttons ---------- */
.thp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--thp-radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--thp-dur-fast) var(--thp-ease);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.thp-btn:active { transform: scale(0.97); }

.thp-btn--primary {
  background: var(--thp-primary);
  color: var(--thp-primary-ink);
  box-shadow: 0 1px 3px rgba(10, 132, 255, 0.3);
}
.thp-btn--primary:hover {
  background: var(--thp-primary-hover);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.35);
}

.thp-btn--secondary {
  background: var(--thp-surface-2);
  color: var(--thp-text);
  border: 1px solid var(--thp-border);
}
.thp-btn--secondary:hover {
  background: var(--thp-border);
}

.thp-btn--ghost {
  background: transparent;
  color: var(--thp-primary);
}
.thp-btn--ghost:hover {
  background: var(--thp-primary-soft);
}

.thp-btn--danger {
  background: var(--thp-danger);
  color: #fff;
}

.thp-btn--lg {
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

.thp-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.thp-btn--block {
  width: 100%;
}

.thp-btn:focus-visible {
  outline: none;
  box-shadow: var(--thp-shadow-glow);
}

.thp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Forms ---------- */
.thp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--thp-text-2);
  margin-bottom: 6px;
}

.thp-input,
.thp-select,
.thp-textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--thp-text);
  background: var(--thp-surface);
  border: 1px solid var(--thp-border-strong);
  border-radius: var(--thp-radius-sm);
  transition: border-color var(--thp-dur-fast), box-shadow var(--thp-dur-fast);
  appearance: none;
}

.thp-textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.thp-input:focus,
.thp-select:focus,
.thp-textarea:focus {
  outline: none;
  border-color: var(--thp-primary);
  box-shadow: var(--thp-shadow-glow);
}

.thp-input::placeholder,
.thp-textarea::placeholder {
  color: var(--thp-muted);
}

.thp-field {
  margin-bottom: var(--thp-s-4);
}

.thp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--thp-s-4);
}

@media (max-width: 600px) {
  .thp-field-row { grid-template-columns: 1fr; }
}

.thp-hint {
  font-size: 12px;
  color: var(--thp-text-3);
  margin-top: 4px;
}

.thp-error {
  font-size: 13px;
  color: var(--thp-danger);
  margin-top: 4px;
}

/* ---------- Cards ---------- */
.thp-card {
  background: var(--thp-surface);
  border-radius: var(--thp-radius);
  border: 1px solid var(--thp-border);
  box-shadow: var(--thp-shadow-xs);
  padding: var(--thp-s-5);
  transition: box-shadow var(--thp-dur) var(--thp-ease), transform var(--thp-dur) var(--thp-ease);
}

.thp-card--hover:hover {
  box-shadow: var(--thp-shadow);
  transform: translateY(-2px);
}

.thp-card--clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---------- Job card ---------- */
.thp-job-card {
  display: flex;
  gap: var(--thp-s-4);
  padding: var(--thp-s-5);
  background: var(--thp-surface);
  border-radius: var(--thp-radius);
  border: 1px solid var(--thp-border);
  transition: all var(--thp-dur) var(--thp-ease);
  text-decoration: none;
  color: inherit;
}

.thp-job-card:hover {
  box-shadow: var(--thp-shadow);
  border-color: var(--thp-border-strong);
  transform: translateY(-1px);
}

.thp-job-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.thp-job-card__body {
  flex: 1;
  min-width: 0;
}

.thp-job-card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--thp-text);
  margin-bottom: 2px;
}

.thp-job-card__company {
  font-size: 14px;
  color: var(--thp-text-2);
  margin-bottom: 8px;
}

.thp-job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--thp-text-3);
}

.thp-job-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thp-job-card__salary {
  font-weight: 600;
  color: var(--thp-success);
}

.thp-job-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.thp-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--thp-radius-full);
  letter-spacing: 0.01em;
}

.thp-badge--verified {
  background: var(--thp-success-soft);
  color: #1a7f37;
}

.thp-badge--new {
  background: var(--thp-primary-soft);
  color: var(--thp-primary);
}

.thp-badge--remote {
  background: rgba(94, 92, 230, 0.12);
  color: #5e5ce6;
}

/* ---------- Hero / Search ---------- */
.thp-hero {
  background: linear-gradient(180deg, var(--thp-surface) 0%, var(--thp-bg) 100%);
  padding: var(--thp-s-16) 0 var(--thp-s-12);
  text-align: center;
}

.thp-hero h1 {
  font-size: clamp(28px, 5vw, var(--thp-fs-hero));
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--thp-text);
  max-width: 14ch;
  margin: 0 auto var(--thp-s-4);
}

.thp-hero__sub {
  font-size: var(--thp-fs-lg);
  color: var(--thp-text-2);
  margin-bottom: var(--thp-s-8);
  max-width: 36ch;
  margin-inline: auto;
}

.thp-search-bar {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px;
  background: var(--thp-surface);
  border-radius: var(--thp-radius-lg);
  box-shadow: var(--thp-shadow);
  border: 1px solid var(--thp-border);
  flex-wrap: wrap;
}

.thp-search-bar .thp-input {
  flex: 1;
  min-width: 140px;
  height: 44px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}

.thp-search-bar .thp-input:focus {
  box-shadow: none;
}

.thp-search-bar .thp-btn {
  height: 44px;
  padding: 0 24px;
  flex-shrink: 0;
}

.thp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--thp-s-5);
}

.thp-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--thp-text-2);
  background: var(--thp-surface);
  border: 1px solid var(--thp-border);
  border-radius: var(--thp-radius-full);
  text-decoration: none;
  transition: all var(--thp-dur-fast);
  cursor: pointer;
}

.thp-chip:hover,
.thp-chip--active {
  background: var(--thp-primary-soft);
  color: var(--thp-primary);
  border-color: transparent;
}

/* ---------- Grid / lists ---------- */
.thp-job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thp-section {
  padding: var(--thp-s-10) 0;
}

.thp-section__title {
  font-size: var(--thp-fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--thp-s-5);
}

.thp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--thp-s-8);
}

@media (max-width: 700px) {
  .thp-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Auth pages ---------- */
.thp-auth {
  min-height: calc(100vh - var(--thp-header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--thp-s-8) var(--thp-gutter);
}

.thp-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--thp-surface);
  border-radius: var(--thp-radius-lg);
  border: 1px solid var(--thp-border);
  box-shadow: var(--thp-shadow);
  padding: var(--thp-s-8);
}

.thp-auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-align: center;
}

.thp-auth-card__sub {
  text-align: center;
  color: var(--thp-text-2);
  font-size: 14px;
  margin-bottom: var(--thp-s-6);
}

.thp-auth-tabs {
  display: flex;
  background: var(--thp-bg);
  border-radius: var(--thp-radius-sm);
  padding: 3px;
  margin-bottom: var(--thp-s-6);
}

.thp-auth-tabs a,
.thp-auth-tabs button {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--thp-text-2);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--thp-dur-fast);
}

.thp-auth-tabs .is-active {
  background: var(--thp-surface);
  color: var(--thp-text);
  box-shadow: var(--thp-shadow-xs);
}

.thp-auth-footer {
  text-align: center;
  margin-top: var(--thp-s-5);
  font-size: 14px;
  color: var(--thp-text-2);
}

.thp-auth-footer a {
  color: var(--thp-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Dashboard layout ---------- */
.thp-dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--thp-header-h));
}

@media (max-width: 900px) {
  .thp-dash { grid-template-columns: 1fr; }
}

.thp-dash__sidebar {
  background: var(--thp-surface);
  border-right: 1px solid var(--thp-border);
  padding: var(--thp-s-5);
}

@media (max-width: 900px) {
  .thp-dash__sidebar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--thp-border);
    padding: var(--thp-s-3) var(--thp-gutter);
  }
}

.thp-dash__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--thp-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--thp-text-2);
  text-decoration: none;
  transition: all var(--thp-dur-fast);
  margin-bottom: 2px;
  white-space: nowrap;
}

.thp-dash__nav a:hover,
.thp-dash__nav a.is-active {
  background: var(--thp-primary-soft);
  color: var(--thp-primary);
}

.thp-dash__content {
  padding: var(--thp-s-6) var(--thp-gutter);
  max-width: 960px;
}

.thp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--thp-s-4);
  margin-bottom: var(--thp-s-6);
}

.thp-stat {
  background: var(--thp-surface);
  border: 1px solid var(--thp-border);
  border-radius: var(--thp-radius);
  padding: var(--thp-s-5);
}

.thp-stat__label {
  font-size: 13px;
  color: var(--thp-text-3);
  margin-bottom: 4px;
}

.thp-stat__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--thp-text);
}

.thp-stat__sub {
  font-size: 12px;
  color: var(--thp-text-2);
  margin-top: 4px;
}

/* ---------- Table ---------- */
.thp-table-wrap {
  background: var(--thp-surface);
  border: 1px solid var(--thp-border);
  border-radius: var(--thp-radius);
  overflow: hidden;
}

.thp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.thp-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--thp-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--thp-surface-2);
  border-bottom: 1px solid var(--thp-border);
}

.thp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--thp-border);
  color: var(--thp-text);
  vertical-align: middle;
}

.thp-table tr:last-child td {
  border-bottom: none;
}

.thp-table tr:hover td {
  background: var(--thp-surface-2);
}

/* ---------- Status pills ---------- */
.thp-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--thp-radius-full);
}

.thp-status--live { background: var(--thp-success-soft); color: #1a7f37; }
.thp-status--draft { background: var(--thp-bg); color: var(--thp-text-3); }
.thp-status--paused { background: var(--thp-warning-soft); color: #9a6700; }
.thp-status--closed { background: var(--thp-danger-soft); color: #cf222e; }

/* ---------- Empty state ---------- */
.thp-empty {
  text-align: center;
  padding: var(--thp-s-16) var(--thp-s-6);
}

.thp-empty__icon {
  font-size: 48px;
  margin-bottom: var(--thp-s-4);
  line-height: 1;
}

.thp-empty h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.thp-empty p {
  color: var(--thp-text-2);
  margin-bottom: var(--thp-s-5);
  max-width: 36ch;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.thp-footer {
  padding: var(--thp-s-8) 0;
  border-top: 1px solid var(--thp-border);
  text-align: center;
  font-size: 12px;
  color: var(--thp-text-3);
}

.thp-footer a {
  color: inherit;
  text-decoration: none;
}

.thp-footer a:hover {
  color: var(--thp-text);
}

/* ---------- Alert / notice ---------- */
.thp-alert {
  padding: 12px 16px;
  border-radius: var(--thp-radius-sm);
  font-size: 14px;
  margin-bottom: var(--thp-s-4);
}

.thp-alert--error {
  background: var(--thp-danger-soft);
  color: #cf222e;
}

.thp-alert--success {
  background: var(--thp-success-soft);
  color: #1a7f37;
}

.thp-alert--info {
  background: var(--thp-primary-soft);
  color: var(--thp-primary);
}

/* ---------- Job detail ---------- */
.thp-job-detail__header {
  background: var(--thp-surface);
  border-bottom: 1px solid var(--thp-border);
  padding: var(--thp-s-8) 0;
}

.thp-job-detail__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.thp-job-detail__company {
  font-size: 16px;
  color: var(--thp-text-2);
  margin-bottom: var(--thp-s-4);
}

.thp-job-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--thp-text-2);
}

.thp-job-detail__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--thp-s-8);
  padding: var(--thp-s-8) 0;
}

@media (max-width: 800px) {
  .thp-job-detail__body { grid-template-columns: 1fr; }
}

.thp-job-detail__content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: var(--thp-s-6) 0 var(--thp-s-3);
}

.thp-job-detail__content h2:first-child {
  margin-top: 0;
}

.thp-job-detail__content p,
.thp-job-detail__content li {
  color: var(--thp-text-2);
  line-height: 1.65;
  margin-bottom: 8px;
}

.thp-job-detail__content ul {
  padding-left: 20px;
  margin-bottom: var(--thp-s-4);
}

.thp-apply-box {
  background: var(--thp-surface);
  border: 1px solid var(--thp-border);
  border-radius: var(--thp-radius);
  padding: var(--thp-s-5);
  position: sticky;
  top: calc(var(--thp-header-h) + 16px);
}

.thp-apply-box__salary {
  font-size: 22px;
  font-weight: 700;
  color: var(--thp-text);
  margin-bottom: 4px;
}

.thp-apply-box__note {
  font-size: 13px;
  color: var(--thp-text-3);
  margin-bottom: var(--thp-s-4);
}

/* ---------- Stepper ---------- */
.thp-stepper {
  display: flex;
  gap: 4px;
  margin-bottom: var(--thp-s-6);
  overflow-x: auto;
}

.thp-stepper__step {
  flex: 1;
  min-width: 80px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--thp-muted);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--thp-border);
}

.thp-stepper__step.is-active {
  color: var(--thp-primary);
  border-bottom-color: var(--thp-primary);
}

.thp-stepper__step.is-done {
  color: var(--thp-success);
  border-bottom-color: var(--thp-success);
}

/* ---------- Utilities ---------- */
.thp-text-2 { color: var(--thp-text-2); }
.thp-text-3 { color: var(--thp-text-3); }
.thp-muted { color: var(--thp-muted); }
.thp-fw-600 { font-weight: 600; }
.thp-fw-700 { font-weight: 700; }
.thp-mb-2 { margin-bottom: var(--thp-s-2); }
.thp-mb-4 { margin-bottom: var(--thp-s-4); }
.thp-mb-6 { margin-bottom: var(--thp-s-6); }
.thp-mt-4 { margin-top: var(--thp-s-4); }
.thp-mt-6 { margin-top: var(--thp-s-6); }
.thp-flex { display: flex; }
.thp-flex-col { flex-direction: column; }
.thp-items-center { align-items: center; }
.thp-justify-between { justify-content: space-between; }
.thp-gap-2 { gap: var(--thp-s-2); }
.thp-gap-3 { gap: var(--thp-s-3); }
.thp-gap-4 { gap: var(--thp-s-4); }

@media (prefers-reduced-motion: reduce) {
  .thp-root *, .thp-root *::before, .thp-root *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Job description formatting ---------- */
.thp-job-detail__content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--thp-text-2);
}

.thp-job-detail__content .thp-jd-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--thp-text);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--thp-border);
}

.thp-job-detail__content .thp-jd-heading:first-child {
  margin-top: 0;
}

.thp-job-detail__content p {
  margin: 0 0 12px;
  color: var(--thp-text-2);
}

.thp-job-detail__content .thp-jd-highlight {
  font-size: 17px;
  font-weight: 700;
  color: var(--thp-text);
  background: var(--thp-success-soft);
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--thp-radius-sm);
  margin: 4px 0 16px;
}

.thp-job-detail__content ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.thp-job-detail__content ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--thp-text-2);
  line-height: 1.55;
  border-bottom: 1px solid transparent;
}

.thp-job-detail__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--thp-primary);
  opacity: 0.85;
}

.thp-job-detail__content ul li:last-child {
  margin-bottom: 0;
}


.thp-job-card__excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: var(--thp-text-3, #86868b);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .thp-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Job detail facts (public, no login) ---------- */
.thp-job-facts {
  background: var(--thp-surface);
  border: 1px solid var(--thp-border);
  border-radius: var(--thp-radius);
  padding: var(--thp-s-5);
  margin-bottom: 8px;
}
.thp-job-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 16px;
}
.thp-job-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.thp-job-fact__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--thp-text-3);
}
.thp-job-fact__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--thp-text);
}
.thp-job-fact__value--salary {
  color: #1a7f37;
  font-size: 15px;
}
.thp-apply-box__facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--thp-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--thp-text-2);
}
.thp-job-detail__aside {
  align-self: start;
}
.thp-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--thp-primary-soft);
  color: var(--thp-primary);
  font-size: 11px;
  font-weight: 600;
}
