@font-face { font-family: 'Pretendard'; src: url('/assets/fonts/PretendardVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --purple: #5042D6; --pressed: #3A2EB0; --ink: #0B0B0C; --text: #333D4B; --muted: #6B7684; --line: #E5E8EB; --surface: #F2F4F6; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: #FFFFFF; font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 16px; line-height: 1.75; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; font-synthesis: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
img, svg { display: block; }
a:focus-visible, summary:focus-visible { outline: 3px solid #A79BFF; outline-offset: 4px; }
.top { position: sticky; top: 0; z-index: 10; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.top-in { width: calc(100% - 96px); max-width: 1200px; min-height: 64px; margin: 0 auto; display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.logo img { width: 118px; height: 32px; object-fit: contain; }
.tabs { display: flex; gap: 28px; margin-left: auto; align-self: stretch; }
.tabs a { display: flex; align-items: center; position: relative; font-size: 14px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.tabs a[aria-current=page] { color: var(--purple); font-weight: 650; }
.tabs a[aria-current=page]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--purple); }
.tabs a:hover, .doc-home:hover { color: var(--purple); }
.doc-home { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.doc-home svg { width: 16px; height: 16px; }
.doc-main { width: calc(100% - 96px); max-width: 1200px; margin: 0 auto; padding: 76px 0 112px; }
.doc-heading { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 84px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.doc-kicker { color: var(--purple); font-size: 15px; font-weight: 650; padding-top: 12px; }
h1 { font-size: 52px; font-weight: 750; color: var(--ink); letter-spacing: -.055em; line-height: 1.2; }
.meta { font-size: 14px; color: var(--muted); margin-top: 20px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 84px; padding-top: 40px; align-items: start; }
.doc-toc { position: sticky; top: 92px; max-height: calc(100svh - 120px); overflow-y: auto; padding: 0 10px 5px 0; }
.toc-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.toc-links { display: flex; flex-direction: column; gap: 2px; }
.toc-links a { display: block; font-size: 13px; line-height: 1.55; padding: 8px 0; color: #4E5968; }
.toc-links a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.doc-toc-mobile { display: none; }
.doc-article { min-width: 0; max-width: 800px; }
.note { font-size: 16px; line-height: 1.9; color: #4E5968; border-bottom: 1px solid var(--line); padding-bottom: 32px; margin: 0 0 40px; }
.doc-article h2 { font-size: 23px; font-weight: 700; color: #191F28; letter-spacing: -.04em; line-height: 1.45; margin: 48px 0 16px; scroll-margin-top: 96px; }
.doc-article .note + h2 { margin-top: 0; }
.doc-article h2:target { color: var(--purple); }
.doc-article h3 { font-size: 18px; color: #191F28; margin: 28px 0 12px; }
.doc-article p, .doc-article li { font-size: 16px; line-height: 1.9; }
.doc-article p + p { margin-top: 14px; }
.doc-article ul, .doc-article ol { padding-left: 22px; margin: 12px 0 0; }
.doc-article li { padding-left: 4px; margin: 8px 0; }
.doc-article li::marker { color: var(--muted); font-weight: 550; }
.doc-article li ul { margin-top: 8px; }
.doc-article table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; font-size: 15px; line-height: 1.8; }
.doc-article th, .doc-article td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.doc-article th { width: 26%; background: var(--surface); font-weight: 600; color: #191F28; }
.doc-article tr:last-child th, .doc-article tr:last-child td { border-bottom: 0; }
.wrap-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.doc-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.doc-end a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.doc-end a:first-child { color: var(--purple); }
.doc-end a:hover { text-decoration: underline; text-underline-offset: 4px; }
.doc-end svg { width: 18px; height: 18px; }
.ft-logo img { width: 148px; height: 40px; object-fit: contain; }
.ft-plain { display: block; width: fit-content; margin-top: 10px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.error-page { min-height: 100svh; display: flex; flex-direction: column; }
.error-page .top-in { justify-content: space-between; }
.error-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(100% - 40px); max-width: 800px; margin: 0 auto; padding: 68px 0 92px; text-align: center; }
.error-code { color: var(--purple); font-size: clamp(120px,14vw,192px); font-weight: 750; line-height: 1; letter-spacing: -.07em; margin: 0 0 34px; }
.error-main h1 { font-size: 36px; line-height: 1.3; }
.error-description { color: var(--muted); font-size: 17px; margin-top: 18px; }
.error-action { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 54px; padding: 0 24px; margin-top: 34px; border-radius: 12px; background: var(--purple); color: #FFFFFF; font-size: 16px; font-weight: 650; }
.error-action:hover { background: var(--pressed); }
.error-action svg { width: 20px; height: 20px; }
.error-foot { width: calc(100% - 96px); max-width: 1200px; margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.error-foot nav { display: flex; gap: 24px; }
.error-foot a:hover { color: var(--purple); }
@media (max-width: 1023px) {
  .top-in, .doc-main, .error-foot { width: calc(100% - 40px); }
  .doc-heading, .doc-layout { grid-template-columns: 180px minmax(0,1fr); gap: 40px; }
  h1 { font-size: 42px; }
  .ft-plain { font-size: 12px; }
}
@media (max-width: 767px) {
  .top-in { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; }
  .logo { height: 56px; }
  .logo img { width: 108px; height: 29px; }
  .doc-home { grid-column: 2; grid-row: 1; min-height: 34px; padding: 0 10px; font-size: 12px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; gap: 28px; margin: 0; min-height: 46px; }
  .tabs a { font-size: 14px; }
  .doc-main { padding-top: 40px; padding-bottom: 64px; }
  .doc-heading { display: block; padding-bottom: 26px; }
  .doc-kicker { padding: 0; font-size: 13px; margin-bottom: 14px; }
  h1 { font-size: 34px; }
  .meta { font-size: 12px; margin-top: 16px; }
  .doc-layout { display: block; padding-top: 26px; }
  .doc-toc { display: none; }
  .doc-toc-mobile { display: block; border-bottom: 1px solid var(--line); margin-top: 0; }
  .doc-toc-mobile summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 60px; cursor: pointer; color: #191F28; font-size: 14px; font-weight: 600; }
  .doc-toc-mobile summary::-webkit-details-marker { display: none; }
  .doc-toc-mobile summary span { color: var(--muted); font-size: 12px; font-weight: 400; }
  .doc-toc-mobile summary::after { content: ''; margin-left: auto; margin-right: 4px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
  .doc-toc-mobile[open] summary::after { transform: rotate(225deg); }
  .doc-toc-mobile .toc-links { padding-bottom: 18px; }
  .doc-toc-mobile .toc-links a { padding: 10px 0; font-size: 14px; }
  .note { padding-bottom: 26px; margin-bottom: 32px; }
  .doc-article p, .doc-article li { font-size: 15px; line-height: 1.9; }
  .doc-article h2 { font-size: 21px; margin-top: 36px; scroll-margin-top: 126px; }
  .doc-article th, .doc-article td { padding: 14px 12px; font-size: 14px; }
  .doc-article th { width: 29%; }
  .doc-article ul, .doc-article ol { padding-left: 19px; }
  .doc-end { margin-top: 40px; font-size: 13px; }
  .error-page .top-in { display: flex; }
  .error-main { padding: 64px 0; }
  .error-code { margin-bottom: 30px; font-size: 128px; }
  .error-main h1 { font-size: 27px; letter-spacing: -.055em; }
  .error-description { font-size: 15px; max-width: 260px; margin-top: 16px; }
  .error-action { font-size: 15px; min-height: 52px; margin-top: 28px; }
  .error-foot { flex-direction: column; gap: 12px; padding: 20px 0 24px; }
}
@media print {
  .top, .doc-toc, .doc-toc-mobile, .doc-end, .ft { display: none; }
  .doc-main { width: 100%; padding: 0; }
  .doc-heading, .doc-layout { display: block; }
  .doc-article { max-width: none; }
  .doc-kicker { margin-bottom: 12px; }
  h1 { font-size: 28px; }
  .doc-article h2 { break-after: avoid; }
  .doc-article p, .doc-article li, .doc-article th, .doc-article td { font-size: 11pt; }
}

/* ---------- 바닥글 · Codex design pass 2 ---------- */
.ft { background: #F2F4F6; border-top: 1px solid #E5E8EB; color: #4E5968; letter-spacing: -.02em; }
.ft-inner { width: calc(100% - 96px); max-width: 1200px; margin: 0 auto; padding: 60px 0 30px; }
.ft-top { display: grid; grid-template-columns: 1fr 180px 260px; gap: 64px; padding-bottom: 44px; }
.ft-logo { display: inline-flex; align-items: center; min-height: 44px; }
.ft-slogan { margin-top: 18px; font-size: 22px; font-weight: 650; line-height: 1.45; letter-spacing: -.045em; color: #191F28; }
.ft-label { margin: 5px 0 17px; font-size: 13px; font-weight: 600; color: #6B7684; }
.ft-nav a { display: block; width: fit-content; padding: 7px 0; font-size: 15px; font-weight: 550; line-height: 1.5; }
.ft-contact .ft-label { margin-bottom: 21px; }
.ft-phone { display: inline-block; font-size: 25px; line-height: 1.3; font-weight: 650; color: #191F28; letter-spacing: -.04em; }
.ft a:hover { color: #5042D6; text-decoration: underline; text-underline-offset: 4px; }
.ft-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px 40px; border-top: 1px solid #E5E8EB; padding-top: 28px; }
.ft-info { font-size: 12px; line-height: 1.9; color: #6B7684; overflow-wrap: anywhere; }
.ft-info p { margin: 0 0 3px; }
.ft-info .ft-company { color: #4E5968; font-weight: 650; font-size: 13px; margin-bottom: 9px; }
.ft-info p span { display: inline-block; margin-right: 16px; }
.ft-policy { display: flex; flex-wrap: wrap; align-content: start; align-items: baseline; gap: 8px 20px; padding-top: 2px; font-size: 13px; }
.ft-policy a { padding: 4px 0; }
.ft-policy b { font-weight: 650; color: #333D4B; }
.ft-copy { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.7; color: #6B7684; }
@media (max-width: 1023px) {
  .ft-inner { width: calc(100% - 40px); padding: 40px 0 26px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding-bottom: 28px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-slogan { font-size: 20px; margin-top: 12px; }
  .ft-nav a { font-size: 14px; padding: 8px 0; }
  .ft-contact .ft-label, .ft-label { margin: 0 0 12px; }
  .ft-phone { font-size: 20px; white-space: nowrap; }
  .ft-bottom { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .ft-policy { grid-row: 1; gap: 24px; padding: 0; }
  .ft-info p span { display: block; margin: 0; }
  .ft-info { font-size: 12px; line-height: 1.85; }
}
@media (max-width: 359px) {
  .ft-top { grid-template-columns: 1fr; gap: 24px; }
}
