/* Jobs Bali generated-page additions (Phase 2B).
 * Extends the approved design system for new routes; does not alter
 * the approved homepage styling.
 */

/* company logos inside cards (image variant of .company-logo) */
.company-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--cream);
  padding: 6px;
  border: 1px solid var(--line);
}

/* featured badge on cards */
.featured-badge {
  margin-left: 8px;
  color: var(--green-2);
  font-size: 13px;
}

/* subpage shared shell */
.taxonomy-head {
  padding: 60px 0 8px;
}
.taxonomy-head h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: 12px;
}
.taxonomy-head .breadcrumb {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}
.taxonomy-head .breadcrumb a:hover {
  color: var(--green-2);
}
.taxonomy-section {
  padding-top: 34px;
}

/* filtered empty state (client-side) */
.filtered-empty {
  animation: jb-fade-in .18s ease;
}
@keyframes jb-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- job detail page ---------- */
.job-detail-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.job-detail-head h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 8px;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.job-detail-head .company {
  margin-bottom: 12px;
  font-size: 15px;
}
.detail-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.detail-logo.company-logo-img {
  padding: 8px;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 26px;
  align-items: start;
  margin: 26px 0 86px;
}
.job-detail-section {
  margin-bottom: 26px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.job-detail-section h2 {
  margin-bottom: 14px;
  font-size: 21px;
  letter-spacing: -.02em;
}
.detail-list {
  margin: 0;
  padding-left: 20px;
  color: #3c4b46;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.editorial {
  color: #3c4b46;
  font-size: 15px;
  line-height: 1.75;
}
.editorial p {
  margin: 0 0 14px;
}
.editorial img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.editorial h1, .editorial h2, .editorial h3 {
  font-size: 19px;
  margin: 22px 0 10px;
}
.editorial a {
  color: var(--green-2);
  text-decoration: underline;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.fact:last-child {
  border-bottom: 0;
}
.fact span {
  color: var(--muted);
  font-weight: 700;
}
.fact strong {
  text-align: right;
}

.apply-box .button {
  width: 100%;
  margin-bottom: 12px;
}
.apply-box .text-link {
  font-size: 13px;
}
.featured-note {
  margin: 0 0 14px;
  color: var(--green-2);
  font-weight: 850;
  font-size: 13px;
}

/* ---------- employer job submission page (Phase 3A) ---------- */
.post-job-hero {
  padding: 64px 0 54px;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.post-job-hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(223, 243, 107, .22);
  border-radius: 50%;
  right: -140px;
  top: -180px;
  box-shadow: 0 0 0 70px rgba(223, 243, 107, .03), 0 0 0 140px rgba(223, 243, 107, .025);
}
.post-job-hero .container {
  position: relative;
  z-index: 1;
}
.post-job-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 720px;
}
.post-job-lead {
  margin: 0 0 24px;
  max-width: 640px;
  color: #d6e1dd;
  font-size: 18px;
  line-height: 1.65;
}
.post-job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.post-job-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}
.post-job-badge-free {
  background: var(--lime);
  border-color: var(--lime);
  color: #183228;
  font-weight: 850;
}
.post-job-note {
  margin: 0 0 8px;
  color: #cddbd6;
  font-size: 14px;
}
.post-job-trust {
  margin: 0;
  color: #a9c0b9;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}

.post-job-section {
  padding-top: 48px;
}
.post-job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

.post-job-form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-job-form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}
.post-job-form legend {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.fieldset-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d1cc;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .15s ease;
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #a9b6b0;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 2px;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #b3261e;
}
.form-optional {
  color: var(--muted);
  font-weight: 600;
}
.req {
  color: #b3261e;
  font-weight: 900;
}
.required-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.field-error {
  margin: 7px 0 0;
  color: #b3261e;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}
.char-count {
  margin: 7px 0 0;
  color: #84918c;
  font-size: 11px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.consent-fieldset .consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}
.consent-label input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--green);
  cursor: pointer;
}

/* honeypot — never visible, never focusable */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-banner {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.form-banner-error {
  border: 1px solid #e6b8b4;
  background: #fdf3f2;
  color: #8c1d18;
}

.submit-area {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.submit-copy {
  margin: 0;
  color: #485852;
  font-size: 13px;
  line-height: 1.65;
}
.submit-copy p {
  margin: 0 0 4px;
}
.submit-copy p:last-child {
  margin-bottom: 0;
}
.submit-free {
  color: var(--green);
  font-weight: 850;
}
.post-job-submit {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
.post-job-submit:disabled {
  opacity: .65;
  cursor: progress;
  transform: none;
}

.post-job-aside {
  display: grid;
  gap: 18px;
}
.post-job-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.post-job-card h2 {
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: -.02em;
}
.post-job-card p {
  margin: 0 0 10px;
  color: #485852;
  font-size: 13px;
  line-height: 1.65;
}
.post-job-card p:last-child {
  margin-bottom: 0;
}
.post-job-card-soft {
  background: var(--cream);
  border-color: #e4e6dd;
}
.post-job-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #485852;
  font-size: 13px;
  line-height: 1.6;
}

.post-job-success {
  max-width: 680px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}
.post-job-success h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.post-job-success p {
  margin: 0 0 12px;
  color: #3c4b46;
  line-height: 1.7;
}
.post-job-reference {
  padding: 12px 16px;
  border: 1px dashed #b9c2bd;
  border-radius: 10px;
  background: var(--cream);
}
.post-job-success .button {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .post-job-layout {
    grid-template-columns: 1fr;
  }
  .post-job-aside {
    order: 2;
  }
}
@media (max-width: 640px) {
  .post-job-hero {
    padding: 48px 0 42px;
  }
  .post-job-lead {
    font-size: 16px;
  }
  .post-job-section {
    padding-top: 34px;
  }
  .post-job-form {
    padding: 20px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field textarea {
    min-height: 100px;
  }
  .post-job-success {
    padding: 26px 20px;
  }
}

/* 404 */
.taxonomy-head .button {
  margin-right: 10px;
}

@media (max-width: 900px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .job-detail-head {
    grid-template-columns: 56px 1fr;
    padding: 20px;
    gap: 14px;
  }
  .detail-logo {
    width: 56px;
    height: 56px;
  }
  .job-detail-section {
    padding: 20px;
  }
  .fact {
    flex-direction: column;
    gap: 3px;
  }
  .fact strong {
    text-align: left;
  }
}
