/* Responsibility: Shared page foundations. The rule order mirrors the original cascade. */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 22px 22px;
  min-height: calc(100vh - 138px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

h1 {
  margin: 22px 0 20px;
  font-size: clamp(48px, 7.1vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px 58px;
}

.section::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 36%;
  height: 260px;
  pointer-events: none;
  background:
    linear-gradient(146deg, rgba(18, 204, 116, 0.12), rgba(18, 204, 116, 0) 68%);
  filter: blur(36px);
  opacity: 0.9;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-note {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.direction {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
}

.direction-title {
  position: sticky;
  top: 96px;
  align-self: start;
}

.direction-title h3 {
  margin: 0;
  font-size: 24px;
}

.direction-title p {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.job-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.job-card {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 17px 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  transition: color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.job-card:hover {
  background: rgba(255, 255, 255, 0.44);
  color: var(--accent-dark);
  padding-left: 12px;
  padding-right: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tag.hot {
  border-color: rgba(255, 158, 64, 0.48);
  background: linear-gradient(105deg, rgba(255, 207, 57, 0.34), rgba(255, 116, 96, 0.28));
  color: #9a4f00;
}

.job-card h4 {
  margin: 0;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.job-main {
  min-width: 0;
}

.job-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hot-text {
  color: var(--accent-dark);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.salary {
  font-weight: 900;
  color: var(--accent-dark);
}

.arrow {
  font-weight: 950;
  color: var(--ink);
}

.apply-band {
  background: var(--ink);
  color: #fff;
  margin-top: 28px;
}

.apply-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.apply-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
}

.apply-band p {
  margin: 12px 0 0;
  color: #c9c9c0;
  line-height: 1.8;
}

.detail-main,
.form-main,
.success-main {
  max-width: 930px;
  margin: 0 auto;
  padding: 58px 22px 88px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 28px;
}

.job-detail-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.job-detail-hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  margin-bottom: 22px;
}

.detail-lead {
  color: #30302d;
  font-size: 22px;
  line-height: 1.75;
  margin: 22px 0 0;
}

.jd-section {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.jd-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.jd-section ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 13px;
  color: #30302d;
  line-height: 1.8;
}
