:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #f1f5fa;
  --text: #0f1a2f;
  --text-muted: #4a5a78;
  --border: #d8e0ec;
  --primary: #183a6f;
  --primary-strong: #112c54;
  --secondary: #2d4f84;
  --success: #1b7a4f;
  --warning: #b54708;
  --danger: #b42318;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 24px rgba(12, 28, 58, 0.08);
  --container: 1280px;
  --hero-login-card-height: 160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 320px) no-repeat;
  line-height: 1.5;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.auth-required-pending {
  overflow: hidden;
}

body.auth-required-pending #site-header-root,
body.auth-required-pending main {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section-space {
  padding: 56px 0;
}

.section-space-tight {
  padding: 24px 0 40px;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.section-head-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.text-link {
  color: #2f4a77;
  font-size: 0.92rem;
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.text-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  height: 42px;
  padding: 0 16px;
  font-size: 0.93rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-strong);
}

.btn-primary:active {
  background: #0f2649;
}

.btn-secondary {
  background: #fff;
  color: #1a355f;
  border-color: #b9c9de;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f0f5fd;
}

.btn-secondary:active {
  background: #e5edf9;
}

.btn-danger {
  background: #b42318;
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #922012;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card-footer {
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-action {
  color: #214275;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-action:hover,
.card-action:focus-visible {
  text-decoration: underline;
}

.icon-chip {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: #edf3fc;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.region {
  color: #133c6a;
  background: #e7f0fd;
}

.badge.career {
  color: #23485a;
  background: #e8f8f2;
}

.badge.worktype {
  color: #4a385f;
  background: #f1eafa;
}

.badge.deadline {
  color: #8c3e00;
  background: #fff2e6;
}

.badge.closed {
  color: #fff;
  background: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .section-head-with-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-space {
    padding: 44px 0;
  }

  .section-space-tight {
    padding: 18px 0 28px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
