:root {
  --petrichor-ink: #243444;
  --petrichor-muted: #6c7a86;
  --petrichor-line: #dbe3ea;
  --petrichor-soft: #f5f7fa;
  --petrichor-card: #ffffff;
  --petrichor-accent: #9bb7c9;
  --petrichor-accent-dark: #6f90a7;
  --petrichor-success: #1f7a56;
  --petrichor-error: #b74242;
  --petrichor-radius: 18px;
  --petrichor-shadow: 0 16px 40px rgba(27, 45, 62, 0.08);
}

.petrichor-recruitment-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem 0;
  color: var(--petrichor-ink);
}

.petrichor-section-heading {
  margin-bottom: 2rem;
}

.petrichor-section-heading h2,
.petrichor-card h2,
.petrichor-card h3,
.petrichor-card h4,
.petrichor-admin-panel h2,
.petrichor-admin-wrap h1 {
  color: var(--petrichor-ink);
  line-height: 1.2;
}

.petrichor-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--petrichor-accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.petrichor-card,
.petrichor-admin-panel,
.petrichor-stat-card,
.petrichor-inner-card {
  background: var(--petrichor-card);
  border: 1px solid var(--petrichor-line);
  border-radius: var(--petrichor-radius);
  box-shadow: var(--petrichor-shadow);
}

.petrichor-card,
.petrichor-admin-panel,
.petrichor-inner-card {
  padding: 1.5rem;
}

.petrichor-card p,
.petrichor-admin-panel p,
.petrichor-section-heading p,
.petrichor-card-subtitle {
  color: var(--petrichor-muted);
}

.petrichor-jobs-grid,
.petrichor-stats-grid,
.petrichor-admin-grid,
.petrichor-form-grid {
  display: grid;
  gap: 1rem;
}

.petrichor-jobs-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.petrichor-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.5rem 0;
}

.petrichor-admin-grid,
.petrichor-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.petrichor-span-2 {
  grid-column: span 2;
}

.petrichor-stat-card {
  padding: 1.25rem;
}

.petrichor-stat-card span {
  display: block;
  color: var(--petrichor-muted);
  margin-bottom: 0.5rem;
}

.petrichor-stat-card strong {
  font-size: 1.8rem;
  color: var(--petrichor-ink);
}

.petrichor-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.petrichor-job-meta span,
.petrichor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--petrichor-soft);
  color: var(--petrichor-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.petrichor-job-card h3,
.petrichor-job-detail h2 {
  margin: 0 0 0.5rem;
}

.petrichor-job-footer,
.petrichor-panel-header,
.petrichor-step-actions,
.petrichor-repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.petrichor-button,
.petrichor-button:visited,
.petrichor-button:hover,
.petrichor-button:focus,
.petrichor-button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--petrichor-accent-dark);
  border-radius: 999px;
  background: var(--petrichor-accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.petrichor-button:hover,
.petrichor-button:focus {
  opacity: 0.92;
  transform: translateY(-1px);
}

.petrichor-button-secondary,
.petrichor-button-secondary:visited,
.petrichor-button-secondary:hover,
.petrichor-button-secondary:focus,
.petrichor-button-secondary:active {
  background: #fff;
  color: var(--petrichor-accent-dark);
}

.petrichor-link-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--petrichor-accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.petrichor-rich-text {
  margin: 1.5rem 0;
}

.petrichor-rich-text p:last-child {
  margin-bottom: 0;
}

.petrichor-list-block {
  margin: 1.5rem 0;
}

.petrichor-list-block ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.petrichor-step-indicator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.petrichor-step-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--petrichor-line);
  background: #fff;
  color: var(--petrichor-muted);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.petrichor-step-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--petrichor-soft);
  color: var(--petrichor-ink);
}

.petrichor-step-pill.is-active {
  border-color: var(--petrichor-accent-dark);
  color: var(--petrichor-ink);
  box-shadow: inset 0 0 0 1px var(--petrichor-accent-dark);
}

.petrichor-form-step {
  margin-bottom: 1rem;
}

.petrichor-form-grid p,
.petrichor-admin-grid p,
.petrichor-card p {
  margin: 0;
}

.petrichor-recruitment-shell label,
.petrichor-admin-wrap label {
  display: block;
  font-weight: 600;
  color: var(--petrichor-ink);
}

.petrichor-recruitment-shell input[type="text"],
.petrichor-recruitment-shell input[type="email"],
.petrichor-recruitment-shell input[type="date"],
.petrichor-recruitment-shell input[type="tel"],
.petrichor-recruitment-shell input[type="url"],
.petrichor-recruitment-shell input[type="file"],
.petrichor-recruitment-shell select,
.petrichor-recruitment-shell textarea,
.petrichor-admin-wrap input[type="text"],
.petrichor-admin-wrap input[type="email"],
.petrichor-admin-wrap input[type="date"],
.petrichor-admin-wrap input[type="url"],
.petrichor-admin-wrap select,
.petrichor-admin-wrap textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--petrichor-line);
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}

.petrichor-recruitment-shell textarea,
.petrichor-admin-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

.petrichor-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.petrichor-checkbox-row input {
  width: auto !important;
  margin-top: 0.25rem;
}

.petrichor-table-wrap {
  overflow-x: auto;
}

.petrichor-table {
  width: 100%;
  border-collapse: collapse;
}

.petrichor-table th,
.petrichor-table td {
  padding: 0.8rem;
  border: 1px solid var(--petrichor-line);
  background: #fff;
  vertical-align: top;
}

.petrichor-table th {
  background: var(--petrichor-soft);
  color: var(--petrichor-ink);
}

.petrichor-repeater {
  margin-top: 1rem;
}

.petrichor-repeater-items {
  display: grid;
  gap: 1rem;
}

.petrichor-json-view {
  padding: 1rem;
  border-radius: 14px;
  background: #0f1720;
  color: #d7e3f0;
  overflow-x: auto;
}

.petrichor-form-response {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.petrichor-form-response.is-success {
  background: rgba(31, 122, 86, 0.12);
  color: var(--petrichor-success);
}

.petrichor-form-response.is-error {
  background: rgba(183, 66, 66, 0.12);
  color: var(--petrichor-error);
}

.petrichor-admin-wrap .description {
  color: var(--petrichor-muted);
}

.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 782px) {
  .petrichor-admin-grid,
  .petrichor-form-grid {
    grid-template-columns: 1fr;
  }

  .petrichor-span-2 {
    grid-column: auto;
  }

  .petrichor-step-indicator {
    grid-template-columns: 1fr;
  }
}
