/* style.css — 2412 SIZE_CHART (SIZE ATLAS)
   출발점: DesignKit kit-luxury (세리프 디스플레이 · 헤어라인 프레임 · 모서리 최소 · 큰 여백)
   → 평면·절제 변형: 다크+골드 → 라이트 아이보리 페이퍼 기본, 배경 그라디언트·비네트·글로우 제거,
     액센트는 에스프레소 브라운 1색(다크: 카멜 1색), 그림자 0, 1px 헤어라인만.
   무드: 패션 매장의 사이즈 가이드 카드 — 대문자 자간 라벨 · 번호 매긴 블록 · 괘선 표 */
:root {
  --bg: #f7f5f0; --surface: #fffefb; --sunk: #efece5;
  --text: #1f1b17; --text-2: #5b544c; --text-3: #8d857b;
  --line: #e2ddd3; --line-2: #cfc8bb;
  --acc: #6b4a33; --acc-ink: #fffefb; --acc-soft: #efe6dc;
  --serif: 'Cormorant Garamond', 'Noto Serif KR', 'Noto Serif JP', Georgia, 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #151412; --surface: #1c1a17; --sunk: #24211d;
  --text: #ece6dc; --text-2: #bdb4a7; --text-3: #8a8175;
  --line: #2f2b26; --line-2: #413b34;
  --acc: #c8a584; --acc-ink: #151412; --acc-soft: #2c241c;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 2px; }
.caps { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }

/* ── header: 가운데 워드마크 + 아래 얇은 내비 ── */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; row-gap: 10px; }
.brand { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand .mark { color: var(--acc); }
.brand-t { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .22em; white-space: nowrap; }
.top-tools { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: 6px; align-items: center; }
.nav { grid-column: 1 / -1; display: flex; justify-content: center; gap: 4px; border-top: 1px solid var(--line); padding: 4px 0; }
.nav a { color: var(--text-2); text-decoration: none; padding: 7px 14px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--acc); }
.lang { height: 32px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface); padding: 0 6px; font-size: .84rem; max-width: 118px; }
.theme-btn { width: 32px; height: 32px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 0; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.theme-btn:hover, .lang:hover { border-color: var(--text-3); }
@media (max-width: 700px) {
  .top-in { grid-template-columns: auto 1fr; padding-top: 10px; }
  .brand { grid-column: 1; }
  .brand-t { font-size: 1.15rem; letter-spacing: .16em; }
  .top-tools { grid-column: 2; }
  .nav { justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 2px 8px; }
  .nav a { white-space: nowrap; padding: 7px 10px; }
}

/* ── tool ── */
.app { width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 16px 36px; flex: 1; }
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs { display: flex; gap: 0; overflow-x: auto; }
.tab { background: none; border: 0; padding: 12px 18px 11px; cursor: pointer; color: var(--text-2); font-family: var(--serif); font-size: 1.28rem; font-weight: 500; white-space: nowrap; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
:lang(ko) .tab, :lang(ja) .tab, :lang(zh) .tab, :lang(ar) .tab, :lang(ru) .tab { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--acc); }
.bar-unit { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.bar-l { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--text-3); }
.subbar { margin: -6px 0 18px; overflow-x: auto; }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg-b { background: var(--surface); border: 0; border-inline-end: 1px solid var(--line-2); padding: 7px 14px; cursor: pointer; font-size: .9rem; color: var(--text-2); white-space: nowrap; }
.seg-b:last-child { border-inline-end: 0; }
.seg-b[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.panel > .subbar, .panel > .tbl-blk { grid-column: 1 / -1; }
.blk { border-top: 1px solid var(--text); padding: 16px 0 22px; min-width: 0; }
.blk-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; }
:lang(ko) .blk-h, :lang(ja) .blk-h, :lang(zh) .blk-h, :lang(ar) .blk-h, :lang(ru) .blk-h { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; }
.blk-n { font-family: var(--serif); font-size: .95rem; color: var(--acc); font-weight: 500; letter-spacing: .06em; }
.pick, .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f-l { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--text-3); }
:lang(ko) .f-l, :lang(ja) .f-l, :lang(zh) .f-l { letter-spacing: .02em; font-size: .8rem; text-transform: none; }
.sel, .f-in input { width: 100%; height: 42px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 10px; border-radius: 0; font-size: 1rem; }
.f-in { display: flex; align-items: stretch; }
.f-in input { font-variant-numeric: tabular-nums; }
.f-u { display: grid; place-items: center; min-width: 46px; border: 1px solid var(--line-2); border-inline-start: 0; background: var(--sunk); color: var(--text-2); font-size: .85rem; }
.sel:focus, .f-in input:focus { border-color: var(--acc); outline: none; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.rc { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 12px 9px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); min-width: 0; }
.rc.src { background: var(--acc-soft); }
.rc-n { font-size: .74rem; color: var(--text-3); letter-spacing: .02em; }
.rc-v { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.rc.out .rc-v { color: var(--text-3); }
.rc-x { font-size: .72rem; color: var(--text-3); }
.copy { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--acc); font-size: .74rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.res-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hubline { font-size: .86rem; color: var(--text-2); }
.ghost { background: none; border: 1px solid var(--line-2); padding: 6px 12px; cursor: pointer; font-size: .85rem; color: var(--text); }
.ghost:hover { border-color: var(--text); }

.rec-out:empty { display: none; }
.rec-out { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; margin-bottom: 10px; }
.rec-main { margin: 0 0 6px; font-weight: 650; }
.rec-sub { margin: 4px 0 0; font-size: .9rem; color: var(--text-2); }
.warn { margin: 6px 0 0; font-size: .9rem; color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip { border: 1px solid var(--line-2); padding: 3px 9px; font-size: .88rem; }
.chip b { font-weight: 500; color: var(--text-3); font-size: .78rem; margin-inline-end: 4px; }
.hint { font-size: .86rem; color: var(--text-3); margin: 6px 0 0; }

.tbl-blk summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: baseline; gap: 12px; }
.tbl-blk summary::-webkit-details-marker { display: none; }
.tbl-blk summary::after { content: '+'; margin-inline-start: auto; color: var(--acc); font-size: 1.2rem; line-height: 1; }
.tbl-blk[open] summary::after { content: '−'; }
.tbl-blk .tbl { margin-top: 14px; max-height: 70vh; overflow: auto; }

/* 실물 크기 원 · 보정 */
.actual { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 12px 0 4px; }
.f .seg { align-self: flex-start; height: 42px; }
.f .seg .seg-b { padding: 0 16px; }
.actual-fig { border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px; padding: 8px; overflow: hidden; }
.ring-in { fill: none; stroke: var(--acc); stroke-width: 1.2; }
.ring-d { stroke: var(--text-3); stroke-width: .8; stroke-dasharray: 3 3; }
.actual-cap { margin: 4px 0 0; font-size: .82rem; color: var(--text-2); text-align: center; }
.calib h3 { margin: 0 0 4px; font-size: .95rem; }
.card-frame { overflow-x: auto; padding: 8px 0; }
.ccard { flex: none; border: 1px dashed var(--acc); display: grid; place-items: center; color: var(--text-3); font-size: .78rem; }
.calib input[type=range] { width: 100%; accent-color: var(--acc); }
.calib-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-2); }
@media (max-width: 860px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
}
.disclaimer { font-size: .84rem; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 12px; margin: 10px 0 0; }

/* ── tables ── */
.tbl { overflow-x: auto; margin: 14px 0 18px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: start; white-space: nowrap; }
thead th { border-bottom: 1px solid var(--text); font-weight: 600; font-size: .78rem; color: var(--text-2); position: sticky; top: 0; background: var(--bg); }
tbody th { font-weight: 600; }
tr.hit td, tr.hit th { background: var(--acc-soft); }
table.narrow { width: auto; min-width: 280px; }
.size-t td { color: var(--text); }

/* ── pages ── */
.page { width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 16px 48px; flex: 1; }
.page.wide { max-width: 1060px; }
.crumb { font-size: .8rem; color: var(--text-3); margin-bottom: 18px; letter-spacing: .02em; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb .sep { margin: 0 8px; color: var(--line-2); }
.page-h, .prose h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.005em; }
:lang(ko) .prose h1, :lang(ko) .page-h, :lang(ja) .prose h1, :lang(ja) .page-h, :lang(zh) .prose h1, :lang(zh) .page-h, :lang(ar) .prose h1, :lang(ar) .page-h { font-family: var(--sans); font-weight: 700; font-size: clamp(1.55rem, 4vw, 2.05rem); letter-spacing: -.02em; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.25rem; margin: 2.1em 0 .6em; padding-top: .9em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: .3em 0; }
.prose code { font-size: .9em; background: var(--sunk); padding: 1px 5px; }
.lead { font-size: 1.08rem; color: var(--text-2); margin: 0 0 18px; }
.note-box { border-inline-start: 2px solid var(--acc); background: var(--surface); padding: 10px 14px; margin: 14px 0; }
.btn { display: inline-block; border: 1px solid var(--text); color: var(--text); text-decoration: none; padding: 9px 18px; font-size: .9rem; letter-spacing: .04em; }
.btn:hover { background: var(--text); color: var(--bg); }
.cta { margin: 26px 0 8px; }
.stamp { font-size: .8rem; color: var(--text-3); }
.fn { font-size: .84rem; color: var(--text-3); }
.sources { margin-top: 30px; border: 1px solid var(--line); padding: 4px 18px 10px; background: var(--surface); }
.sources h2 { border: 0; margin-top: .8em; padding-top: 0; font-size: 1rem; }
.sources li { font-size: .88rem; }
.related { margin-top: 34px; }
.related h2 { font-size: 1rem; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--text-2); }
.mail span { color: var(--text-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); margin: 22px 0; }
.cards .card { color: var(--text); display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.cards .card:hover { background: var(--acc-soft); }
.card-n { font-family: var(--serif); color: var(--acc); font-size: 1rem; }
.card-t { font-weight: 650; line-height: 1.35; }
.card-d { font-size: .88rem; color: var(--text-2); }
.nf { text-align: center; }
.nf-code { font-family: var(--serif); font-size: 4rem; margin: 10px 0 0; color: var(--acc); }
.nf-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: .88rem; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 26px 16px 34px; display: grid; grid-template-columns: 1.1fr 1fr 1fr .8fr; gap: 22px; }
.foot-brand { margin: 0; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .2em; font-weight: 600; }
.foot-brand span { display: block; font-family: var(--sans); letter-spacing: 0; font-size: .84rem; font-weight: 400; color: var(--text-3); margin-top: 4px; }
.foot-col { display: flex; flex-direction: column; gap: 5px; }
.foot-col h2 { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--text-3); font-weight: 600; }
.foot-col a { color: var(--text-2); text-decoration: none; font-size: .88rem; }
.foot-col a:hover { color: var(--text); }
.copyright { grid-column: 1 / -1; font-size: .78rem; color: var(--text-3); margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 8px 16px; font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ads (§4-1: 래퍼에 radius·overflow 금지) ── */
.ad-wrap { margin: 26px 0; }
.ad-grid { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 672px; margin-left: auto; margin-right: auto; }
.ad-grid[data-ad-layout="mixed"] { max-width: 760px; }
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.ad-cell { min-height: 50px; }
@media (min-width: 720px) { .ad-row.ad-mo { display: none; } }
@media (max-width: 719.98px) { .ad-row.ad-pc { display: none; } }

@media print { .top, .foot, .ad-wrap, .bar-unit, .toast { display: none !important; } }
