/*
  채용 마감 페이지(/jobs-app/). 회원 달력 v2 와 같은 토큰(member-ui-spec)을 쓴다.
  강조색은 하나(--accent), 모서리는 단추 999px · 카드 14px · 칸 8px, 숫자는 tabular-nums.
*/
:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #e5e7eb;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #dbeafe;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --chip: #eef1f5;
  --hover: #f5f8ff;
  --code: #f1f3f6;
  --warn-soft: #fef3c7;
  --warn-ink: #78350f;
  --font: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --ink: #e5e7eb;
    --muted: #9aa3b2;
    --line: #2a2f3a;
    --accent: #7aa2ff;
    --accent-ink: #0f1115;
    --accent-soft: #1c2740;
    --danger: #fca5a5;
    --danger-soft: #3b1d20;
    --chip: #232834;
    --hover: #1d2230;
    --code: #11141a;
    --warn-soft: #3a2f12;
    --warn-ink: #fde68a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px calc(40px + env(safe-area-inset-bottom));
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 2; background: var(--surface); padding: 10px 14px; border-radius: 8px; }

/* 머리 */
.top { margin-bottom: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
h1 { margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

/* 이번 주 마감 목록 */
.list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.list li + li { border-top: 1px solid var(--line); }
.list a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  min-height: 60px; padding: 10px 14px; color: var(--ink); text-decoration: none;
  transition-property: background-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.list a:hover { background: var(--hover); }
.list a:focus-visible { outline-offset: -3px; border-radius: 0; }
.dd {
  display: block; padding: 4px 0; border-radius: 999px; background: var(--chip);
  font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}
.dd.hot { background: var(--danger-soft); color: var(--danger); }
.what { display: grid; min-width: 0; }
.co, .ti { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co { font-size: 15px; font-weight: 700; }
.ti { font-size: 13px; color: var(--muted); }
.date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.after { margin: 14px 0 12px; font-size: 15px; }
.empty {
  margin: 0; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-size: 15px;
}
.empty + .btn { margin-top: 12px; }
.stamp { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 알림 상자 (앱 안 브라우저, 수집 지연) */
.note {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--accent-soft); color: var(--ink); font-size: 15px;
}
.note p { margin: 0; }
.note .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.note .hint { margin-top: 10px; }
.note.warn { background: var(--warn-soft); color: var(--warn-ink); margin-bottom: 12px; }

/* 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition-property: transform, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; flex: none; }
.btn.block { display: flex; width: 100%; }
.btn.quiet { background: transparent; color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .btn, .list a { transition: none; }
  .btn:active { transform: none; }
}

/* 내 폰에 두기 */
.keep { margin-top: 36px; }
.keep > h2 { margin: 0; font-size: 21px; line-height: 1.35; }
.lead { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.detected { margin: 14px 0 0; font-size: 15px; font-weight: 700; }
/* 맞는 기기 하나만 보일 때는 제목이 위 한 줄과 겹친다. 화면에서만 감추고 읽기 프로그램에는 남긴다 */
#mine .dev > h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#others { margin-top: 4px; }
.dev > h3 { margin: 24px 0 0; font-size: 18px; }
.card {
  margin: 12px 0 0; padding: 18px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.card h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; }
.card p { margin: 8px 0 0; font-size: 15px; text-wrap: pretty; }
.card .btn { margin-top: 12px; }
.card .hint, .hint { font-size: 13px; color: var(--muted); }
.card .done { color: var(--accent); font-weight: 700; }
.steps { margin: 8px 0 0; padding-left: 22px; font-size: 15px; }
.steps li { margin: 6px 0; padding-left: 2px; }
.steps li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
/* 순서 안의 단추는 글 아래 한 줄을 따로 쓴다 */
.steps li .btn { display: flex; width: fit-content; margin: 8px 0 4px; }

/* 잠금화면 위젯 미리보기. 실제 위젯처럼 단색이라 색 대신 글자로만 구분한다 */
.lockdemo { margin: 14px 0 4px; }
.lockdemo ul {
  list-style: none; margin: 0; padding: 12px 16px; max-width: 280px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-size: 15px; line-height: 1.5;
}
.lockdemo li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lockdemo b { display: inline-block; min-width: 42px; font-variant-numeric: tabular-nums; }
.lockdemo figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* 잠금화면 알림 카드 켜기·끄기 */
.push { margin-top: 12px; }
.push .row { display: flex; flex-wrap: wrap; gap: 8px; }
.push .row .btn { margin-top: 10px; }
.card .push-state { margin-top: 0; font-size: 15px; font-weight: 700; }
.push[aria-busy="true"] .push-state { color: var(--muted); }
.btn:disabled { opacity: 0.6; cursor: progress; }

details.more { margin-top: 14px; border-top: 1px solid var(--line); }
details.more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; cursor: pointer; list-style: none; font-weight: 700; color: var(--accent);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 20px; line-height: 1; }
details.more[open] > summary::after { content: "\2212"; }

.copyrow { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
.copyrow code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  padding: 11px 12px; border-radius: 8px; background: var(--code); font: 13px/1.4 var(--mono);
}
.copyrow .btn { margin-top: 0; }
.code { margin-top: 12px; }
.code pre {
  margin: 10px 0 0; max-height: 320px; overflow: auto; padding: 12px; border-radius: 8px;
  background: var(--code); border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre; tab-size: 2;
}

.foot { margin-top: 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 6px 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 3;
  max-width: calc(100% - 32px); margin: 0; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700;
  transform: translateX(-50%); opacity: 0; pointer-events: none;
  transition-property: opacity; transition-duration: 150ms; transition-timing-function: ease-out;
}
.toast.on { opacity: 1; }

/* 넓은 화면: 목록은 왼쪽, 안내는 오른쪽 */
@media (min-width: 960px) {
  .wrap { max-width: 1040px; padding-top: 28px; }
  .main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
  .keep { margin-top: 0; }
}
