/* radnici-iz-azije.com — 기능형 디자인 (2026-10-23, v9). 영단기·해커스 같은 정보형 결:
   남색 공지 띠 → 흰 고정 머리말(글자 메뉴 + 사각 버튼 2개) → 한 섹션에 정보 하나(표·사진 카드 줄) + 버튼 하나.
   모서리 4–6px, 1px 선, 단색 배지, 진한 머리줄 표. 장식(그라데이션·알약 버튼·떠다니는 칩·유리 효과) 없음.
   글꼴: Bricolage Grotesque 800(제목·숫자) + DM Sans(본문), 둘 다 č ć š ž đ 포함. 색: 거의 무채색 + 파랑 하나, 노랑은 아주 조금. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f4f5f7;
  --navy: #0c1424;
  --head: #1d2433;
  --ink: #141821;
  --text: #3a4150;
  --muted: #646b78;
  --line: #dcdfe5;
  --line-2: #e9ebef;
  --blue: #1b56e0;
  --blue-d: #1444b8;
  --blue-bg: #edf2fe;
  --yellow: #ffd84d;
  --green: #12804a;
  /* 예전 이름 (안내 글 등에서 씀) */
  --indigo: var(--blue); --indigo-d: var(--blue-d); --indigo-bg: var(--blue-bg);
  --mint: var(--blue); --mint-d: var(--blue-d); --mint-bg: var(--blue-bg);
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--display);
  --r: 6px;
  --r-s: 4px;
  --wide: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } body { font-size: 16.5px; } }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { margin: 0; }
.mono { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { display: inline-block; margin: 0; font-size: 14.5px; font-weight: 800; color: var(--blue); letter-spacing: 0; }
.eyebrow .ne { display: none; }
.lede { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 62ch; }

/* ── 버튼: 사각 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r-s); border: 1px solid transparent;
  font: 800 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); color: #fff; }
.btn-yellow { background: var(--yellow); color: #111; }
.btn-yellow:hover { background: #ffe27a; color: #111; }
.btn-ghost, .btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-line:hover { border-color: var(--ink); color: var(--ink); }

/* ── 공지 띠 + 머리말 ── */
.notice { background: var(--navy); color: #fff; font-size: 14px; }
.notice .wrap { min-height: 40px; display: flex; align-items: center; gap: 10px; }
.notice .nb { flex: none; padding: 2px 7px; border-radius: 3px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; }
.notice a { color: #fff; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice a:hover { text-decoration: underline; }
.notice .nr { margin-left: auto; flex: none; color: var(--yellow); font-weight: 700; }
@media (max-width: 640px) { .notice .nr { display: none; } .notice { font-size: 13px; } }

.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--ink); }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand .mark svg { display: block; width: 100%; height: 100%; }
.brand b { display: block; font: 800 20px/1.05 var(--display); letter-spacing: -.025em; }
.brand > span > span { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; }
.nav a { padding: 24px 0 21px; border-bottom: 3px solid transparent; color: #222; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #000; border-bottom-color: var(--ink); }
.top-r { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.top-r .btn { min-height: 42px; padding: 0 15px; font-size: 14.5px; }
@media (max-width: 1080px) { .nav { gap: 16px; } .nav a { font-size: 15px; } }
@media (max-width: 960px) {
  .top .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .nav { order: 3; flex: 1 1 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; margin-top: 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 0 9px; font-size: 14.5px; }
}
@media (max-width: 520px) { .brand > span > span { display: none; } .top-r .btn-line { display: none; } }

/* ── 섹션 ── */
section.s { padding-block: clamp(56px, 8vw, 96px); }
.s-white { background: var(--paper-2); }
.s-head { display: grid; gap: 10px; margin-bottom: clamp(22px, 3vw, 32px); max-width: 780px; }
.s-head .lede { margin-top: 2px; }
.s-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; min-width: 0; color: var(--text); }
.card .ic { width: 40px; height: 40px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); margin-bottom: 4px; }
.card .ic .ico { width: 22px; height: 22px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 899px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.guides .card { text-decoration: none; transition: border-color .15s; }
.guides .card:hover { border-color: var(--ink); }
.guides .card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.guides .card::after { content: "Pročitajte"; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 800; color: var(--blue); }
.src { font-size: 13px; color: var(--muted); }

/* 단계 (안내 글에서도 씀) */
.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; max-width: 900px; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 0 0 24px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: var(--r-s); display: grid; place-items: center;
  background: var(--navy); color: #fff; font: 800 15px/1 var(--display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { font-size: 15.5px; line-height: 1.65; color: var(--text); }
.steps .t { align-self: start; padding: 4px 9px; border-radius: 3px; background: var(--blue-bg); color: var(--blue-d); font: 700 13.5px/1.4 var(--sans); white-space: nowrap; }
@media (max-width: 640px) { .steps li { grid-template-columns: 1fr; padding-left: 48px; } .steps .t { justify-self: start; } }
.total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; max-width: 900px; margin: 0; padding: 16px 20px;
  border-radius: 0 0 var(--r) var(--r); background: var(--navy); color: #fff; font-weight: 700; }
.total .mono { color: var(--yellow); }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); }
.checklist li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.checklist .ico { width: 24px; height: 24px; padding: 4px; border-radius: var(--r-s); background: var(--green); color: #fff; stroke-width: 3; margin-top: 1px; }
.checklist b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.checklist span { font-size: 15.5px; line-height: 1.6; }
@media (max-width: 699px) { .checklist { grid-template-columns: minmax(0, 1fr); } .checklist li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* 표: 진한 머리줄 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 600px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; font-weight: 700; color: #fff; background: var(--head); border-bottom: 0; }
tbody th { background: var(--paper-2); color: var(--ink); font-weight: 700; }
td.num { white-space: nowrap; font-family: var(--display); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.fine { margin-top: 12px; font-size: 14px; color: var(--muted); }

.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 899px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.panel { display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; min-width: 0; }
.panel .logo { height: 46px; width: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; margin: 0; font-size: 15.5px; border-top: 2px solid var(--ink); }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { padding-right: 18px; color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; color: var(--ink); }
.lic { display: block; overflow: hidden; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper-2); }
.lic img { opacity: .55; filter: grayscale(.25) contrast(.92); }
.reply { display: flex; gap: 8px; align-items: center; color: var(--green); font-size: 15px; font-weight: 700; }

/* 자주 묻는 질문 */
.faq { display: grid; max-width: 900px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; order: -1; margin-right: -4px; font: 800 17px/1.4 var(--display); color: var(--blue); }
.faq summary::after { content: "+"; flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: var(--r-s); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--navy); border-color: var(--navy); color: #fff; }
.faq details p { margin-top: 10px; max-width: 70ch; font-size: 16px; padding-left: 26px; }

/* 문의 폼 */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r); border: 1px solid var(--line); border-top: 3px solid var(--navy); background: #fff; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink); min-width: 0; }
.form input, .form textarea, .form select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink); font: 500 16px var(--sans); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 86, 224, .16); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.form button.btn { min-width: 220px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } .form button.btn { width: 100%; } }

/* ── 안내 글 ── */
.article { padding-block: clamp(28px, 5vw, 52px) clamp(64px, 8vw, 104px); }
.article .wrap { max-width: 800px; }
.article h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.035em; margin: 14px 0 16px; }
.article h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 48px 0 14px; padding-top: 18px; border-top: 2px solid var(--ink); }
.article h3 { margin: 28px 0 8px; }
.article p + p { margin-top: 14px; }
.article ul, .article ol { padding-left: 1.2em; display: grid; gap: 6px; }
.article table { margin: 18px 0; border: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { display: inline-block; padding: 3px 8px; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 700; }
.note { margin: 24px 0; padding: 16px 18px; border-left: 4px solid var(--blue); background: var(--blue-bg); color: var(--ink); font-size: 16px; line-height: 1.65; }
.sources { font-size: 14px; color: var(--muted); }
.cta-box { display: grid; gap: 12px; margin-top: 48px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r); background: var(--navy); color: rgba(255, 255, 255, .86); }
.cta-box h2, .cta-box h3, .cta-box b { color: #fff; border: 0; padding: 0; margin: 0; }
.cta-box a:not(.btn) { color: #fff; }
.cta-box .btn { justify-self: start; background: var(--yellow); color: #111; }
.cta-box .btn:hover { background: #ffe27a; color: #111; }

.foot { padding-block: 32px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--text); }
.foot .credits { flex-basis: 100%; font-size: 12.5px; }

/* 스크롤 시 살짝 올라오기 (한 번만) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-rv] { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
  html.js [data-rv].in { opacity: 1; transform: none; }
}
