/* ==========================================================================
   인재채용 > 채용공고 (Figma 1:2244)
   Hero head: sp-common.css (.sp-hero). The design has no image stage, so the
   pill tabs sit on white under the hero text (.open-tabs).
   This file: tabs -> 입사지원서 안내 -> 공고 board (openings_api.php) -> Explore
   ========================================================================== */
.openings-page {
  --open-line: #ddd;
  --open-border: #ebedf1;
}

/* Hero description: 829px block, 2 lines at 1920 (1:2297) */
.openings-page .sp-hero-desc {
  max-width: 829px;
  font-size: clamp(15px, 0.938vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.04em;
  color: #666;
}

/* ---------- Pill tabs on white (1:2298) ---------- */
.open-tabs {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 4.167vw, 80px) 16px clamp(0px, 2.188vw, 42px);
}
.openings-page .open-tabs .sp-pill-tabs {
  position: static;
  transform: none;
  max-width: 100%;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.openings-page .open-tabs .sp-pill-tab { color: #333; }
.openings-page .open-tabs .sp-pill-tab:hover { background: rgba(0, 33, 101, 0.06); color: var(--sp-navy); }
.openings-page .open-tabs .sp-pill-tab.is-active { color: #fff; }

/* Cancel style.css `section:not(.hero)… > *` 1440 shell: board runs 1600 wide,
   Explore background runs full-bleed */
.openings-page section.open-section > .sp-container {
  width: min(1600px, 100% - 2 * clamp(16px, 8.333vw, 160px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.openings-page section.open-explore > .open-explore-bg {
  max-width: none;
  margin: 0;
  padding: 0;
}
.openings-page section.open-explore > .open-explore-inner {
  max-width: none;
  padding-inline: 0;
}

/* ---------- Board section (1:2303) ---------- */
.open-section {
  padding-block: clamp(64px, 6.25vw, 120px);
}
.open-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 3.125vw, 60px);
}

/* 입사지원서 안내 card (1:2304) */
.open-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 1.667vw, 32px);
  border: 1px solid var(--open-border);
  border-radius: 20px;
  background: #fff;
}
.open-apply-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.open-apply-title {
  font-weight: 600;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111;
}
.open-apply-desc {
  font-size: clamp(15px, 0.938vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #666;
  word-break: keep-all;
}
.open-apply-desc a { color: inherit; font-weight: inherit; text-decoration: none; }
.open-apply-desc a:hover { text-decoration: underline; }
.open-download-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 30px;
  border-radius: 8px;
  background: var(--sp-navy);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.open-download-btn:hover { background: #00184a; color: #fff; }
.open-download-btn img { width: 24px; height: 24px; }

/* Board */
.open-board {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.open-board-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.open-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.open-filters {
  display: flex;
  gap: 20px;
  min-width: 0;
  flex: 0 1 660px;
}
.open-select,
.open-search {
  height: 56px;
  border: 1px solid var(--open-line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.open-select {
  flex: 0 0 240px;
  min-width: 0;
  padding: 0 56px 0 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #111;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url('../../img/career/openings/ico-chevron-down.svg') right 16px center / 24px 24px no-repeat;
  cursor: pointer;
}
.open-search {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.open-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #111;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.open-search input::placeholder { color: #999; opacity: 1; }
.open-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.open-search button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.open-search button img { width: 24px; height: 24px; }
.open-select:focus,
.open-search:focus-within {
  outline: none;
  border-color: var(--sp-navy);
  box-shadow: 0 0 0 3px rgba(0, 33, 101, 0.1);
}
.open-count {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #666;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.open-count strong { font-weight: 600; color: var(--sp-navy); }

/* List (1:2329) */
.open-list {
  list-style: none;
  border: 1px solid var(--open-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.open-row + .open-row { border-top: 1px solid var(--open-border); }
.open-row-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 114px;
  padding: 24px 32px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s;
}
.open-row-link:hover { background: rgba(0, 33, 101, 0.03); }
.open-row-link:hover .open-row-title { color: var(--sp-navy); }
.open-row-dept {
  flex: 0 0 80px;
  min-width: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #333;
  overflow-wrap: anywhere;
}
.open-row-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: clamp(16px, 3.177vw, 61px);
  border-left: 1px solid var(--open-border);
}
.open-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.open-row-title {
  min-width: 0;
  font-weight: 600;
  font-size: clamp(18px, 1.042vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.open-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 4px 14px;
  border-radius: 14px;
  background: rgba(0, 33, 101, 0.06);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--sp-navy);
}
.open-row-meta {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #999;
  word-break: keep-all;
}
.open-row-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border: 1px solid var(--open-line);
  border-radius: 8px;
  background: #f5f5f5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111;
  transition: background-color 0.2s, color 0.2s;
}
.open-row-link:hover .open-row-btn { border-color: var(--sp-navy); background: var(--sp-navy); color: #fff; }
.open-empty {
  padding: 80px 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #999;
  text-align: center;
  word-break: keep-all;
}
.open-empty span { display: block; margin-top: 6px; font-size: 14px; color: #aaa; }

/* Pagination (1:2442) */
.open-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.open-pagination:empty,
.open-pagination[hidden] { display: none; }
.open-page-arrows,
.open-page-nums {
  display: flex;
  align-items: center;
  gap: 6px;
}
.open-page-arrow,
.open-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.open-page-arrow img { width: 18px; height: 18px; }
.open-page-arrow.is-prev img { transform: scaleX(-1); }
.open-page-arrow:disabled { opacity: 0.4; cursor: default; }
.open-page-num {
  min-width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: #999;
}
.open-page-num:hover { color: var(--sp-navy); }
.open-page-num.is-active { font-weight: 600; color: var(--sp-navy); cursor: default; }

/* ---------- Explore (1:2459) ---------- */
.open-explore {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 36.302vw, 697px);
  padding: clamp(64px, 6.25vw, 120px) clamp(16px, 8.333vw, 160px) clamp(56px, 4.167vw, 80px);
  background: #0b1020;
  color: #fff;
}
.open-explore-bg {
  position: absolute;
  inset: 0;
}
.open-explore-bg img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.open-explore-inner {
  position: relative;
  width: min(1600px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 9.427vw, 181px);
}
.open-explore-head { display: flex; flex-direction: column; }
.open-explore-title {
  margin-top: 12px !important;
  font-weight: 600;
  font-size: clamp(28px, 2.917vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #fff;
  word-break: keep-all;
}
.open-explore-desc {
  margin-top: 16px !important;
  font-weight: 500;
  font-size: clamp(15px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #fff;
  word-break: keep-all;
}
.open-explore-links {
  align-self: flex-end;
  display: grid;
  grid-template-columns: repeat(2, clamp(200px, 13.542vw, 260px));
  gap: 20px;
  list-style: none;
}
.open-explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: clamp(132px, 8.333vw, 160px);
  padding: 26px 20px;
  border-radius: 10px;
  background: #ebedf1;
  font-weight: 600;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--sp-navy);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.open-explore-card img {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}
.open-explore-card:hover { background: #dde1e8; color: var(--sp-navy); transform: translateY(-4px); }
.open-explore-card.is-primary { background: var(--sp-navy); color: #fff; }
.open-explore-card.is-primary:hover { background: #00184b; color: #fff; }
.open-explore-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .open-row-link { padding-inline: 24px; }
}
@media (max-width: 1024px) {
  .open-toolbar { flex-direction: column; align-items: stretch; }
  .open-filters { flex-basis: auto; }
  .open-count { text-align: right; }
  .open-explore-links { align-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .open-apply { flex-direction: column; align-items: stretch; }
  .open-download-btn { padding: 16px 24px; }
  .open-row-link {
    flex-wrap: wrap;
    gap: 10px 16px;
    min-height: 0;
    padding: 20px;
  }
  .open-row-dept { flex: 1 1 100%; }
  .open-row-body { flex: 1 1 100%; padding-left: 0; border-left: 0; gap: 8px; }
  .open-row-btn { width: 100%; height: 44px; }
}
@media (max-width: 600px) {
  .open-filters { flex-direction: column; gap: 12px; }
  .open-select,
  .open-search { flex: 0 0 auto; width: 100%; height: 52px; }
  .open-count { text-align: left; }
  .open-row-meta { font-size: 14px; }
  .open-explore-links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .open-explore-card { flex-direction: row; justify-content: flex-start; height: auto; padding: 18px 20px; }
  .open-explore-card img { width: 40px; height: 40px; }
}
