/* ================================
   잡프리즘 (JobPrism) — Prism / Spectrum Theme
   하나의 직업도 보는 각도에 따라 다른 빛깔의 이야기가 나온다는 컨셉.
   ================================ */

:root {
  --bg: #0b0a14;
  --bg-elevated: #131226;
  --bg-card: #17162c;
  --border: #2a2846;
  --border-soft: #201f3a;
  --text: #f2f1fb;
  --text-dim: #a8a6c8;
  --text-faint: #706e93;
  --primary: #9b86ff;
  --primary-strong: #b6a5ff;
  --primary-soft: rgba(155, 134, 255, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --nav-height: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font);
  --font-mono: var(--font);
  /* 스펙트럼 7색 — 프리즘이 빛을 가르듯, 20개 직업군에 순서대로 매핑됩니다 */
  --s1: #ff5c7a;
  --s2: #ff9f43;
  --s3: #ffd23f;
  --s4: #6bcf7a;
  --s5: #3ecfcf;
  --s6: #4d96ff;
  --s7: #b06bff;
  --spectrum: linear-gradient(
    90deg,
    var(--s1),
    var(--s2),
    var(--s3),
    var(--s4),
    var(--s5),
    var(--s6),
    var(--s7)
  );
  color-scheme: dark;
}

html.theme-light {
  --bg: #f9f8fc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --border: #e7e4f4;
  --border-soft: #f0eefa;
  --text: #201f36;
  --text-dim: #605e80;
  --text-faint: #9390b3;
  --primary: #5b3df0;
  --primary-strong: #4a2fe0;
  --primary-soft: rgba(91, 61, 240, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--primary-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 640px) {
  .container, .nav-wrap, .footer-wrap { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 360px) {
  .container, .nav-wrap, .footer-wrap { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.nav-controls { display: flex; align-items: center; gap: 6px; }
.ctrl-btn {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.ctrl-btn:hover { border-color: var(--primary); }
.ctrl-btn:active { transform: scale(0.96); }
.btn-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cta:hover { filter: brightness(1.08); }
.hamburger-btn { display: none; }

.notif-wrap { position: relative; }
.notif-wrap .ctrl-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger, #ff5c7a);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 200;
  padding: 6px;
}
.notif-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: inherit;
}
.notif-item:hover { background: var(--bg-elevated); }
.notif-item.unread { background: var(--primary-soft); }
.notif-item .notif-msg { font-size: 0.86rem; line-height: 1.4; }
.notif-item .notif-time { font-size: 0.72rem; color: var(--text-faint); margin-top: 4px; font-family: var(--font-mono); }
.notif-empty { padding: 20px 12px; text-align: center; color: var(--text-faint); font-size: 0.84rem; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger-btn { display: inline-flex; }
}

.mobile-nav-panel {
  display: none;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  padding: 10px 20px 16px;
}
.mobile-nav-panel.open { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-panel a {
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.mobile-nav-panel a:hover { background: var(--primary-soft); color: var(--primary-strong); }

/* ---------- Buttons (general) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 14px; font-size: 0.85rem; }
.btn.icon { padding: 7px 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
  --mx: 60%;
  --my: 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(560px circle at var(--mx) var(--my), var(--primary-soft), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--spectrum); animation: pulse-dot 1.8s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: line-in 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .line:nth-child(2) { animation-delay: 0.1s; }
.hero h1 .grad {
  background: var(--spectrum);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-move 6s linear infinite;
}
.hero-desc {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  opacity: 0;
  animation: line-in 0.7s 0.2s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; opacity: 0; animation: line-in 0.7s 0.3s cubic-bezier(.2,.8,.2,1) forwards; }
.btn.magnetic { transition: transform 0.15s ease; will-change: transform; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
  opacity: 0;
  animation: line-in 0.7s 0.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-stat b {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  display: block;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-stat span { font-size: 0.82rem; color: var(--text-faint); }

@keyframes line-in { to { opacity: 1; transform: translateY(0); } }
@keyframes grad-move { to { background-position: 200% center; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }

/* Prism visual: 떠다니는 프리즘 도형 + 회전하는 코어 */
.prism-visual {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prism-shape {
  position: absolute;
  border-radius: 30%;
  animation: float-shape 7s ease-in-out infinite;
}
.prism-shape.s1 { width: 120px; height: 120px; background: linear-gradient(135deg, var(--s1), var(--s2)); top: 6%; left: 6%; opacity: 0.85; animation-duration: 8s; }
.prism-shape.s2 { width: 90px; height: 90px; background: linear-gradient(135deg, var(--s5), var(--s6)); bottom: 10%; right: 4%; opacity: 0.8; animation-duration: 6.5s; animation-delay: -2s; }
.prism-shape.s3 { width: 62px; height: 62px; background: linear-gradient(135deg, var(--s3), var(--s4)); top: 46%; right: 20%; opacity: 0.7; animation-duration: 9s; animation-delay: -4s; }
.prism-core {
  width: 140px;
  height: 140px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 0 60px var(--primary-soft);
  position: relative;
  z-index: 2;
  animation: core-spin 20s linear infinite;
}
@keyframes float-shape { 0%, 100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(10px,-14px) rotate(12deg); } }
@keyframes core-spin { to { filter: hue-rotate(360deg); } }

/* ---------- 스크롤 리빌 / 진행률 바 / 맨 위로 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--spectrum); z-index: 200; transition: width 0.1s linear;
}
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.25s ease; z-index: 80;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line, .hero-desc, .hero-actions, .hero-stats,
  .hero h1 .grad, .eyebrow .dot, .prism-shape, .prism-core,
  .reveal, .to-top { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Section ---------- */
.section { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.5rem; }
.section-head .more { font-size: 0.86rem; color: var(--text-dim); }
.section-head .more:hover { color: var(--primary); }

/* ---------- Spectrum band (job groups) ---------- */
.spectrum-band {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.group-chip {
  --rx: 0deg; --ry: 0deg;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.group-chip::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--hue, var(--primary));
}
.group-chip .emoji { font-size: 1.5rem; }
.group-chip .name { font-weight: 600; font-size: 0.94rem; }
.group-chip .count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}
.group-chip:hover { border-color: var(--hue, var(--primary)); }
@media (prefers-reduced-motion: reduce) {
  .group-chip { transition: none !important; transform: none !important; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.job-card:hover { border-color: var(--primary); }
.job-card.open { border-color: var(--primary); }
.job-card .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.job-card .title { font-size: 1.05rem; font-weight: 700; padding-right: 20px; }
.job-card .meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.job-card-chevron {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 0.7rem;
  color: var(--text-faint);
}
.job-detail-panel {
  grid-column: 1 / -1;
  background: var(--bg-elevated);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: jpDetailOpen 0.18s ease;
}
@keyframes jpDetailOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.job-detail-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }
.job-detail-desc.muted { color: var(--text-faint); font-style: italic; }
.job-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .job-detail-panel { animation: none; }
}
.rating-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rating-pill {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-family: var(--font-mono);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.review-card .top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.review-card .title { font-size: 1.05rem; font-weight: 700; }
.review-card .job-tag {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.review-card .body { color: var(--text-dim); font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.review-extra {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.84rem;
}
.review-extra-row { display: flex; gap: 8px; }
.review-extra-row .k { color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.review-extra-row .v { color: var(--text-dim); white-space: pre-wrap; word-break: break-word; }

.review-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.review-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  display: block;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.comment-item.reply { margin-top: 10px; margin-left: 20px; background: var(--bg-elevated); }
.comment-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.comment-nick { font-weight: 700; font-size: 0.88rem; }
.comment-time { font-size: 0.72rem; color: var(--text-faint); font-family: var(--font-mono); }
.comment-body { margin-top: 6px; font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; word-break: break-word; }
.comment-actions { display: flex; gap: 12px; margin-top: 10px; }
.comment-actions button {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}
.comment-actions button:hover { color: var(--primary); }
.comment-like-btn.liked { color: var(--primary-strong); }
.comment-reply-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.comment-reply-form textarea { width: 100%; min-height: 60px; }
.comment-replies { display: flex; flex-direction: column; }
.comment-edit-form { margin-top: 8px; }
.comment-edit-form textarea { width: 100%; min-height: 60px; }
.comment-delete-btn:hover { color: #ff5c7a !important; }
.review-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}
.tag-recommend {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag-recommend.yes { background: rgba(107, 207, 122, 0.16); color: #6bcf7a; }
.tag-recommend.no { background: rgba(255, 92, 122, 0.16); color: #ff5c7a; }
.tag-recommend.neutral { background: rgba(255, 210, 63, 0.16); color: #ffd23f; }

/* ---------- 소식(공지사항) ---------- */
.notice-item { padding: 0; overflow: hidden; display: block; text-decoration: none; }
.notice-item:hover .notice-toggle { color: var(--primary-strong); }
.notice-item.pinned { border-color: var(--primary); }
.notice-pin {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}
.notice-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
}
.notice-toggle .notice-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-faint);
  flex: none;
}
.notice-toggle.open { color: var(--primary-strong); }
.notice-body {
  padding: 0 18px 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- 지금 올라온 후기 티커 ---------- */
.ticker-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: ticker-scroll linear infinite;
  animation-duration: var(--ticker-duration, 34s);
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-card {
  flex: 0 0 auto;
  width: 260px;
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  border: 1px solid var(--border-soft, var(--border));
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ticker-card .job-tag { font-size: 0.74rem; color: var(--text-dim); font-family: var(--font-mono); }
.ticker-card .title { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-card .body { font-size: 0.82rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.ticker-live-dot i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6bcf7a;
  box-shadow: 0 0 0 0 rgba(107,207,122,0.6);
  animation: ticker-pulse 1.8s ease-out infinite;
}
@keyframes ticker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(107,207,122,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(107,207,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,207,122,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-wrap { overflow-x: auto; }
}

/* ---------- 요즘 핫한 직업 종류 ---------- */
.hot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hot-card .rank {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-faint);
  width: 30px;
  flex: none;
  text-align: center;
}
.hot-card:nth-child(1) .rank { color: var(--s1, var(--primary)); }
.hot-card:nth-child(2) .rank { color: var(--s3, var(--primary)); }
.hot-card:nth-child(3) .rank { color: var(--s5, var(--primary)); }
.hot-card .info { flex: 1; min-width: 0; }
.hot-card .name { font-weight: 700; font-size: 0.98rem; }
.hot-card .sub { font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }
.hot-card .engagement {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  flex: none;
}

/* ---------- 미래 유망 직업 (순환 티커) ---------- */
.promising-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  max-height: 260px;
}
.promising-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: promising-scroll linear infinite;
  animation-duration: var(--promising-duration, 18s);
}
.promising-track-wrap:hover .promising-track { animation-play-state: paused; }
@keyframes promising-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.promising-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: inherit;
}
.promising-card:hover { border-color: var(--primary); }
.promising-emoji { font-size: 1.4rem; flex: none; }
.promising-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promising-info .name { font-weight: 700; font-size: 0.96rem; }
.promising-info .desc { font-size: 0.78rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .promising-track { animation: none; }
  .promising-track-wrap { overflow-y: auto; }
}

/* ---------- 홈화면 배너 캐러셀 ---------- */
.promo-carousel-wrap { position: relative; }
.promo-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-slide {
  flex: 0 0 calc(50% - 6px);
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.promo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .promo-carousel { justify-content: center; }
  .promo-slide { flex-basis: 56%; border-radius: 0; scroll-snap-align: center; }
}
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-nav.prev { left: -14px; }
.promo-nav.next { right: -14px; }
@media (max-width: 640px) {
  .promo-nav {
    width: 0;
    height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    font-size: 0;
    color: transparent;
  }
  .promo-nav.prev {
    left: 4px;
    border-right: 14px solid var(--primary);
    border-left: none;
  }
  .promo-nav.next {
    right: 4px;
    border-left: 14px solid var(--primary);
    border-right: none;
  }
}

/* ---------- 상단 고정 공지 → 홈화면 띠배너 ---------- */
.pinned-ribbon {
  display: none;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary), #ffd23f, #4d96ff);
  background-size: 200% 100%;
  animation: pinned-ribbon-shimmer 6s ease infinite;
}
@keyframes pinned-ribbon-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pinned-ribbon a {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  width: 100%;
  padding: 9px 20px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}
.pinned-ribbon-badge {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.74rem;
  flex: none;
}
.pinned-ribbon-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinned-ribbon-arrow { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .pinned-ribbon { animation: none; }
}

/* ---------- 나한테 어떤 일이 잘 맞을까? (직업 궁합 분석) ---------- */
.job-fit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.jf-questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 760px) {
  .jf-questions { grid-template-columns: 1fr; }
}
.jf-question {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jf-q-text { font-size: 0.9rem; line-height: 1.5; }
.jf-q-btns { display: flex; gap: 8px; }
.jf-q-btns .btn { flex: 1; }
.jf-slider-row { margin-bottom: 22px; }
.jf-slider-row:last-of-type { margin-bottom: 0; }
.jf-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.jf-slider-head .jf-label { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.jf-slider-head .jf-value { font-family: var(--font-mono); color: var(--primary-strong); font-size: 0.84rem; }
.jf-slider-row input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--spectrum);
  outline: none;
}
.jf-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.jf-slider-row input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.jf-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 4px;
}
.jf-chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jf-chip {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}
.jf-chip:hover { border-color: var(--primary); }
.jf-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.jf-submit-row { margin-top: 26px; display: flex; justify-content: center; }
.jf-results { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.jf-result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.jf-result-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-faint);
  flex: none;
  width: 28px;
  text-align: center;
}
.jf-result-info { flex: 1; min-width: 0; }
.jf-result-info .name { font-weight: 700; font-size: 1rem; }
.jf-result-info .group { font-size: 0.76rem; color: var(--text-faint); font-family: var(--font-mono); margin-top: 2px; }
.jf-result-stats { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.jf-match {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
}
.jf-match-pct { font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; color: var(--primary-strong); }
.jf-match-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct, 0) * 1%), var(--border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jf-match-ring::after {
  content: "";
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
}
@media (max-width: 760px) {
  .job-fit-card { padding: 20px 16px; }
  .hot-card { flex-wrap: wrap; }
  .jf-result-card { flex-wrap: wrap; }
  .jf-match { width: 100%; flex-direction: row; justify-content: flex-start; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.field .hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
textarea, select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }

.rating-widget { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating-widget .stars { display: flex; gap: 4px; font-size: 1.3rem; cursor: pointer; }
.rating-widget .stars span { opacity: 0.3; transition: opacity 0.1s; }
.rating-widget .stars span.filled { opacity: 1; }
.rating-widget .label { font-size: 0.86rem; color: var(--text-dim); min-width: 64px; }

.form-card { max-width: 620px; margin: 0 auto; }
.auth-card { max-width: 400px; margin: 60px auto; text-align: center; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 26px; }
.auth-card .switch { margin-top: 18px; font-size: 0.86rem; color: var(--text-dim); }
.auth-card .switch a { color: var(--primary); font-weight: 600; }

/* ---------- Badges / status ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
}
.badge.pending { background: rgba(255, 210, 63, 0.16); color: #ffd23f; }
.badge.approved { background: rgba(107, 207, 122, 0.16); color: #6bcf7a; }
.badge.rejected { background: rgba(255, 92, 122, 0.16); color: #ff5c7a; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 60px;
  padding: 30px 0 40px;
}
.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.86rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.78rem; color: var(--text-faint); }
.footer-mode-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.footer-mode-btn:hover { border-color: var(--primary); color: var(--text); }

/* ---------- PC/모바일 강제보기 ---------- */
html.force-desktop body { min-width: 1080px; overflow-x: auto; }
html.force-desktop .nav-links { display: flex !important; }
html.force-desktop .hamburger-btn { display: none !important; }
html.force-desktop .hero-inner { grid-template-columns: 1.1fr 0.9fr !important; }
html.force-desktop .grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
html.force-desktop .grid-2 { grid-template-columns: repeat(2, 1fr) !important; }

html.force-mobile .container,
html.force-mobile .nav-wrap,
html.force-mobile .footer-wrap { max-width: 420px; padding-left: 24px; padding-right: 24px; }
html.force-mobile body { min-width: 0; }
html.force-mobile .nav-links { display: none !important; }
html.force-mobile .hamburger-btn { display: inline-flex !important; }
html.force-mobile .hero-inner { grid-template-columns: 1fr !important; }
html.force-mobile .grid-3, html.force-mobile .grid-2 { grid-template-columns: 1fr !important; }

/* ---------- Utility ---------- */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-faint);
}
.empty-state .big { font-size: 2rem; margin-bottom: 10px; }
.spectrum-rule {
  height: 3px;
  border-radius: 3px;
  background: var(--spectrum);
  border: none;
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--border-soft) 37%, var(--bg-card) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
