/* BioWatch Pro — design tokens v3 (media-newsroom tone: deep navy band, mint/green accents, Spoqa Han Sans Neo) */
@font-face { font-family: 'Spoqa Han Sans Neo'; font-weight: 400; font-display: swap; src: url('/fonts/SpoqaHanSansNeo-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Spoqa Han Sans Neo'; font-weight: 500; font-display: swap; src: url('/fonts/SpoqaHanSansNeo-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Spoqa Han Sans Neo'; font-weight: 700; font-display: swap; src: url('/fonts/SpoqaHanSansNeo-Bold.woff2') format('woff2'); }

:root {
  /* surfaces */
  --bg: #fafafa;
  --surface: #ffffff;
  --paper: #fafafa;
  --paper-2: #f1f2f5;
  --line: #e6e7eb;
  --rule: #e6e7eb;
  --rule-2: #d7d9df;

  /* text */
  --ink: #141414;
  --ink-2: #3a3d44;
  --muted: #6f737b;
  --faint: #999999;

  /* brand */
  --navy-950: #070a3d;
  --navy-900: #0a0d4f;      /* band background */
  --navy-800: #151a6b;      /* card on band */
  --navy-700: #1e2478;
  --navy-line: #2b3290;
  --brand: #070d92;         /* primary buttons */
  --brand-2: #0e25ba;
  --link: #3370e6;
  --mint: #45e0ad;          /* highlight on dark */
  --green: #0a986f;         /* CTA */
  --green-ink: #078259;
  --green-tag: #27b524;
  --cyan: #b5f7ff;
  --signal: #ff4d4f;

  --accent: var(--brand);
  --accent-ink: #050a6e;
  --accent-soft: #eceefe;

  /* category palette (outlined chips) */
  --c-blue: #2f55d4;   --c-blue-bg: #eef2ff;
  --c-sage: #1f9d3a;   --c-sage-bg: #ecf9ee;
  --c-ochre: #b66a00;  --c-ochre-bg: #fff5e6;
  --c-brick: #d23a2b;  --c-brick-bg: #fdeeec;
  --c-plum: #7a43c9;   --c-plum-bg: #f4eeff;
  --c-teal: #0a8f86;   --c-teal-bg: #e7f8f6;
  --c-slate: #5a5f69;  --c-slate-bg: #f1f2f4;

  --sans: 'Spoqa Han Sans Neo', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR', 'Malgun Gothic', sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 4px;
  --r: 10px;
  --r-lg: 16px;
  --pill: 999px;
  --shadow: 0 6px 24px rgba(10, 13, 79, .08);

  font-family: var(--sans);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.brand .mark svg { width: 18px; height: 18px; }
.brand .wm { font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.brand .wm i { font-style: normal; color: var(--green); }
.brand small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--pill); padding: 0 18px; height: 40px; font-weight: 700; font-size: 15px; white-space: nowrap; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.green, .btn.accent { background: var(--green); color: #fff; }
.btn.green:hover, .btn.accent:hover { background: var(--green-ink); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-2); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.ghost { color: var(--ink-2); padding: 0 10px; font-weight: 500; }
.btn.ghost:hover { color: var(--brand); }
.btn.on-dark { background: transparent; color: #fff; border-color: #ffffff59; }
.btn.on-dark:hover { border-color: #fff; }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.large { height: 48px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link-arrow { font-weight: 500; font-size: 14px; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.link-arrow::after { content: '›'; font-size: 18px; line-height: 1; color: var(--green); }
.link-arrow:hover { color: var(--ink); }

/* labels */
.kicker { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 7px; border-radius: var(--r-sm); border: 1px solid currentColor; background: var(--c-blue-bg); color: var(--c-blue); white-space: nowrap; }
.chip.gray { background: var(--c-slate-bg); color: var(--c-slate); border-color: #c9ccd2; }
.chip.green { background: var(--c-sage-bg); color: var(--c-sage); }
.chip.amber { background: var(--c-ochre-bg); color: var(--c-ochre); }
.chip.red { background: var(--c-brick-bg); color: var(--c-brick); }
.chip.purple { background: var(--c-plum-bg); color: var(--c-plum); }
.chip.mint { background: var(--c-teal-bg); color: var(--c-teal); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mint); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea, .input { width: 100%; border: 1px solid var(--rule-2); border-radius: var(--r); padding: 10px 13px; background: var(--surface); font-size: 15px; font-weight: 400; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px #070d921a; }

/* thumbnails */
.thumb { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--r); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; letter-spacing: -0.5px; overflow: hidden; }
.thumb .ph .ini { white-space: nowrap; line-height: 1; }
.thumb .ph small { position: absolute; left: 10px; bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; opacity: .85; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: var(--pill); font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
