.position-page {
  width: calc(100% - 40px);
  max-width: 1140px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.position-list {
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e7ebf0;
  box-shadow: 0 4px 16px rgba(20, 41, 71, 0.06);
}

.position-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e7ebf0;
}

.position-search-control {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.position-search-control > i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #708197;
  pointer-events: none;
  transform: translateY(-50%);
}

.position-search-field {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  color: #25354a;
}

.position-search-field:focus {
  border-color: #1677d2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 119, 210, 0.12);
}

.position-action-button {
  height: 42px;
  padding: 0 16px;
  border: 1px solid #1677d2;
  border-radius: 4px;
  background: #1677d2;
  color: #fff;
  cursor: pointer;
}

.position-action-button:hover,
.position-action-button:focus {
  background: #105fa9;
  border-color: #105fa9;
  outline: 0;
}

.position-action-button.is-secondary {
  border-color: #d5dde7;
  background: #fff;
  color: #41536a;
}

.position-action-button.is-secondary:hover,
.position-action-button.is-secondary:focus {
  border-color: #1677d2;
  background: #f2f8fe;
  color: #105fa9;
}

.position-job-card {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 24px 20px;
  border-bottom: 1px solid #e7ebf0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.position-job-card:last-child {
  border-bottom: 0;
}

.position-job-card:hover,
.position-job-card:focus {
  background: #f7fbff;
  outline: 0;
}

.position-job-main {
  flex: 1;
  min-width: 0;
}

.position-job-title-row,
.position-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.position-job-title-row {
  margin-bottom: 10px;
}

.position-job-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
}

.position-job-title a {
  color: #1b2a3a;
  text-decoration: none;
}

.position-job-title a:hover {
  color: #1677d2;
}

.position-status-tag,
.position-detail-status,
.position-detail-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.position-status-tag.is-hot,
.position-detail-status.is-hot {
  border-color: #efb54b;
  color: #b96a00;
  background: #fffaf0;
}

.position-status-tag.is-urgent,
.position-detail-status.is-urgent {
  border-color: #e26c6c;
  color: #c43c3c;
  background: #fff5f5;
}

.position-job-meta {
  margin-bottom: 12px;
  color: #687789;
  font-size: 15px;
  line-height: 1.5;
}

.position-job-description {
  margin: 0;
  color: #4f5d6c;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.position-share-button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #62758a;
  cursor: pointer;
}

.position-share-button:hover,
.position-share-button:focus {
  background: #eaf4fd;
  color: #1677d2;
  outline: 0;
}

.position-empty {
  display: none;
  padding: 48px 20px;
  color: #687789;
  text-align: center;
}

.position-detail-page {
  width: calc(100% - 40px);
  max-width: 1160px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.position-detail {
  border-top: 2px solid #1677d2;
}

.position-detail-title {
  margin: 0;
  color: #1b2a3a;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.position-detail-hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 0 28px;
  border-bottom: 1px solid #dce4ec;
}

.position-detail-tags {
  margin: 14px 0 0;
  color: #687789;
  font-size: 16px;
  line-height: 1.5;
}

.position-salary {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 154px;
  gap: 7px;
  margin: 0;
  padding: 11px 14px 12px;
  border: 1px solid #d5e3f0;
  border-right: 3px solid #1677d2;
  background: #f7fbff;
  text-align: left;
  line-height: 1.2;
}

.position-salary span {
  color: #7a8896;
  font-size: 13px;
  font-weight: 400;
}

.position-salary span i {
  margin-right: 5px;
  color: #1677d2;
}

.position-salary strong {
  color: #1677d2;
  font-size: 25px;
  font-weight: 600;
  white-space: nowrap;
}

.position-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  align-items: start;
  padding-top: 22px;
}

.position-detail-content {
  min-width: 0;
  color: #394a5b;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.position-detail-content h2,
.position-detail-content h3,
.position-detail-content h4 {
  margin: 0;
  color: #1b2a3a;
  font-weight: 600;
}

.position-detail-content h2 {
  margin-top: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce4ec;
  font-size: 22px;
}

.position-detail-content h3 {
  margin-top: 38px;
  font-size: 20px;
  line-height: 1.45;
}

.position-detail-content h2:first-child,
.position-detail-content h3:first-child,
.position-detail-content h4:first-child {
  margin-top: 0;
}

.position-detail-content h4 {
  margin-top: 28px;
  font-size: 17px;
}

.position-detail-content p {
  margin: 12px 0 0;
}

.position-detail-content h2 + p,
.position-detail-content h3 + p,
.position-detail-content h4 + p {
  margin-top: 16px;
}

.position-detail-content img {
  max-width: 100%;
  height: auto;
}

.position-detail-content ul,
.position-detail-content ol {
  margin: 14px 0 0;
  padding-left: 1.5rem;
}

.position-detail-content ul li {
  list-style: disc;
}

.position-detail-sidebar {
  position: sticky;
  top: 88px;
}

.position-detail-apply-panel {
  padding: 22px;
  border: 1px solid #dce4ec;
  border-top: 3px solid #1677d2;
  background: #f8fafc;
}

.position-detail-apply-title {
  margin: 0;
  color: #1b2a3a;
  font-size: 18px;
  font-weight: 600;
}

.position-detail-apply-copy {
  margin: 8px 0 22px;
  color: #687789;
  font-size: 14px;
  line-height: 1.6;
}

.position-detail-action {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #1677d2;
  border-radius: 4px;
  background: #1677d2;
  color: #fff;
  cursor: pointer;
}

.position-detail-action:hover,
.position-detail-action:focus {
  border-color: #105fa9;
  background: #105fa9;
  outline: 0;
}

.position-detail-action.is-secondary {
  margin-top: 10px;
  border-color: #d5dde7;
  background: #fff;
  color: #41536a;
}

.position-detail-action.is-secondary:hover,
.position-detail-action.is-secondary:focus {
  border-color: #1677d2;
  background: #f2f8fe;
  color: #105fa9;
}

.position-share-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  image-rendering: pixelated;
}

.position-share-qr svg,
.position-share-qr canvas,
.position-share-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 767.98px) {
  .position-page,
  .position-detail-page {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .position-detail-page {
    width: calc(100% - 32px);
  }

  .position-page {
    width: calc(100% - 32px);
  }

  .position-list {
    border-right: 0;
    border-left: 0;
  }

  .position-toolbar {
    flex-wrap: wrap;
    padding: 14px;
  }

  .position-search-control {
    flex: 0 0 100%;
  }

  .position-toolbar > .position-action-button {
    display: none;
  }

  .position-job-card {
    gap: 10px;
    padding: 20px 14px;
  }

  .position-share-button,
  .position-detail-action.is-secondary {
    display: none;
  }

  .position-job-title {
    font-size: 19px;
  }

  .position-job-meta,
  .position-job-description {
    font-size: 14px;
  }

  .position-detail-hero {
    display: block;
    padding: 24px 0 22px;
  }

  .position-detail-title {
    font-size: 23px;
  }

  .position-detail-tags {
    font-size: 14px;
  }

  .position-salary {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    margin-top: 20px;
    padding: 10px 12px;
    text-align: left;
  }

  .position-salary strong {
    font-size: 21px;
  }

  .position-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 28px;
  }

  .position-detail-sidebar {
    position: static;
    width: 100%;
  }

  .position-detail-apply-panel {
    padding: 18px;
  }

  .position-detail-content {
    font-size: 15px;
  }

  .position-detail-content h2 {
    margin-top: 32px;
    font-size: 20px;
  }

  .position-detail-content h3 {
    margin-top: 28px;
    font-size: 18px;
  }
}
