/* 서버 렌더 웹 보강. 9dan.css·9dan-app.css 는 클라이언트 원본 그대로 두고 여기에만 덧붙인다. */

/* 헤더 언어 메뉴 (JS 없이 <details> 로 동작) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; gap: 6px; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-12); box-shadow: var(--shadow-float);
}
.lang-menu__list a {
  display: block; padding: 8px 12px; border-radius: var(--r-8);
  color: var(--ink-2); font-size: 14px;
}
.lang-menu__list a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu__list a[aria-current] { color: var(--blue-strong); font-weight: 700; }

/* 가운데 한 단 — 앱 시안만 있는 화면(기업·게시글 등)을 넓은 화면에 놓을 때 */
.col-narrow { max-width: calc(720px + var(--page-pad) * 2); }

/* 필터 패널 (jobs.html 의 인라인 스타일을 옮김) */
.filter-panel { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
.sticky-side { position: sticky; top: 88px; }
@media (max-width: 1000px) {
  .filter-panel, .sticky-side { position: static; }
  /* /teams/{id} 로 들어오면 좁은 화면에서는 상세를 먼저 */
  .split--teams.has-selected .team-detail { order: -1; }
}

/* 체크박스 칩 — 원본은 JS 로 aria-pressed 를 토글했지만 서버 렌더에서는 GET 폼 체크박스로 받는다 */
.chip--check input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip--check:has(input:checked) {
  color: var(--blue-strong); font-weight: 700;
  background: var(--blue-soft); border-color: var(--blue-soft-line);
}
.chip--check:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 이전/다음 */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; }

/* 스낵바 — 처리 결과 안내 (PRG flash). 9dan-app.css .app-toast 를 화면 고정으로 */
.snackbar {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  background: #16202E; color: #fff; border-radius: 12px; padding: 13px 16px;
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(15, 23, 36, .3);
  transition: opacity .3s;
}
.snackbar--error { background: var(--danger-2); }
.snackbar.is-out { opacity: 0; }

/* 헤더 — 좁은 화면에서는 로그아웃을 마이/설정으로 미룬다 */
.topbar__logout { display: contents; }
@media (max-width: 760px) {
  .topbar__logout button { display: none; }
  .topbar__right .lang-menu > summary { padding-inline: 12px; }
}

/* 로그인·가입 한 단 (login.html · signup.html 인라인 스타일을 옮김) */
.auth-col { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: calc(420px + var(--page-pad) * 2); padding-block: 40px; }
.auth-col--wide { max-width: calc(560px + var(--page-pad) * 2); }
.auth-card { border-radius: var(--r-18); padding: 28px; gap: 16px; width: 100%; }
.check--boxed { flex: 1; border: 1px solid var(--line); border-radius: var(--r-12); padding: 12px 14px; }

/* 회원 화면 — 앱 시안의 앱바를 넓은 화면 한 단 머리로 */
.member { display: flex; flex-direction: column; gap: 14px; --pad: 0px; }
.member-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.member-head__back { color: var(--ink); display: grid; place-items: center; width: 28px; height: 32px; }
.member-head__title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; flex: 1; }
.member .profile { border: 1px solid var(--line); border-radius: var(--r-14); }
.member .app-cta { padding: 0; border: 0; background: none; }
.inline-form { display: inline; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips a:hover { text-decoration: none; }
.logo__word { white-space: nowrap; }
@media (max-width: 760px) {
  .topbar__right { gap: 10px; }
  .topbar__right .lang-menu__name { display: none; }
}

/* 이력서 언어 탭 — 원본은 버튼(JS)이고 서버 렌더는 링크 (9dan-app.css .utabs button 과 같은 모양) */
.utabs a {
  flex: none; font-size: 14px; font-weight: 600; color: var(--ink-3);
  padding: 9px 14px; border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.utabs { overflow-x: auto; }
.utabs a:hover { text-decoration: none; color: var(--ink); }
.utabs a[aria-selected="true"] { color: var(--blue-strong); font-weight: 700; border-bottom-color: var(--blue); }
.member .utabs { background: none; padding: 0; border-bottom: 1px solid var(--line); }

/* 팀 가입 신청 — 버튼을 누르면 인사말 칸이 열린다 (JS 없이 <details>) */
.join-box { position: relative; }
.join-box > summary { list-style: none; cursor: pointer; }
.join-box > summary::-webkit-details-marker { display: none; }
.join-box__form { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, 80vw); z-index: 30; box-shadow: var(--shadow-float); }
.btn-danger-outline { background: none !important; border: 1px solid var(--danger-line) !important; color: var(--danger-2) !important; }

/* 더보기 메뉴 (원본 App.contentMenu 시트) — <details> 로 JS 없이 */
.more-menu { position: relative; display: inline-block; }
.more-menu > summary { list-style: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu__list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); box-shadow: var(--shadow-float);
  display: flex; flex-direction: column;
}
.more-menu__list a, .more-menu__list button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-8);
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer;
}
.more-menu__list a:hover, .more-menu__list button:hover { background: var(--surface-2); text-decoration: none; }
.more-menu__list .is-danger { color: var(--danger-2); }
.comment__acts a { color: inherit; }
.comment__acts form button { font-weight: 700; }
a.reaction:hover { text-decoration: none; }
.reply-banner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--blue-tint); font-size: 12.5px; color: var(--blue-strong); font-weight: 600; }
.reply-banner span { flex: 1; }
@media (max-width: 760px) {
  .join-box__form { left: 0; right: auto; }
}

/* 개발 서버 띠 (WEB_ENV_LABEL) — 운영과 헷갈리지 않게 */
.env-banner { background: #B45309; color: #fff; font-size: 12px; font-weight: 800; text-align: center; padding: 4px 8px; letter-spacing: .04em; }

/* 기업 서비스 (biz-*.html) */
.biz-nav .spacer { flex: 1; }
.biz-lock { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: rgba(255,255,255,.14); border-radius: 6px; padding: 2px 5px; }
.biz-gate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--blue-soft-line); border-radius: var(--r-12); background: var(--blue-tint); }
.biz-gate p { flex: 1; min-width: 200px; font-size: 13.5px; color: var(--ink-2); }
.biz-unlock { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.biz-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.biz-tabs a:hover { text-decoration: none; }
.cols--applicants { grid-template-columns: 2fr 2fr .8fr .7fr .8fr; }
.biz-plan { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.biz-plan > div { padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.biz-plan .is-head { font-weight: 800; background: var(--surface-2); }
.biz-plan .yes { color: var(--ok); font-weight: 800; text-align: center; }
.biz-plan .no { color: var(--ink-4); text-align: center; }
.biz-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.biz-thumbs label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.biz-thumbs img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 1000px) {
  .biz-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; position: static; height: auto; }
  .biz-nav__brand { width: 100%; padding-bottom: 8px; }
  .biz-main { padding: 20px 16px 48px; }
  .biz-nav .spacer, .biz-nav__me { display: none; }
  .cols--applicants { grid-template-columns: 1fr; }
  .biz-plan { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* 서비스 소개 (/about): 이용 순서 · 기업 배너 */
.how { padding-block: 8px 48px; display: flex; flex-direction: column; gap: 22px; }
.how__head { display: flex; flex-direction: column; gap: 6px; }
.how__kicker { font-size: 13px; font-weight: 700; color: var(--blue-strong); letter-spacing: .08em; }
.how__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.how__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how__item { background: var(--bg); border-radius: var(--r-16); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.how__num { font-size: 13px; font-weight: 800; color: var(--blue); }
.how__item h3 { font-size: 16px; font-weight: 800; }
.how__item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.bizband-wrap { padding-bottom: 48px; }
.bizband { background: var(--ink); border-radius: 20px; padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.bizband__text { display: flex; flex-direction: column; gap: 10px; }
.bizband__kicker { font-size: 13px; font-weight: 700; color: var(--biz-nav-ink); letter-spacing: .08em; }
.bizband h2 { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.3; }
.bizband p { font-size: 14.5px; color: var(--biz-nav-ink); line-height: 1.6; }
.bizband__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.bizband__ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.bizband__ghost:hover { text-decoration: none; background: rgba(255, 255, 255, .08); }
@media (max-width: 1000px) {
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .bizband { grid-template-columns: 1fr; padding: 28px 24px; }
}
@media (max-width: 560px) {
  .how__grid { grid-template-columns: 1fr; }
}
