@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* 모든 시안 공통: 무채색 + 카카오 노랑 하나 */
:root {
  --y: #FEE500;          /* 카카오 노랑: 면, 형광펜, 강조 바탕으로만. 흰 바탕 위 글자색으로는 쓰지 않는다 */
  --y-soft: #FFF6A8;
  --y-ink: #191919;      /* 노랑 위 글자 */
  --ink: #191919;
  --ink-2: #3c3c3f;
  --ink-3: #6b6b70;
  --line: #e6e6e8;
  --g-1: #f6f6f7;
  --g-2: #ececee;
  --white: #ffffff;
  --black: #111112;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; color: var(--ink); background: var(--white); line-height: 1.55; word-break: keep-all; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
li, h1, h2, h3, .note, small { text-wrap: balance; }
p { text-wrap: pretty; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

/* 키워드 강조: 노란 형광펜 + 굵게 */
mark { background: linear-gradient(transparent 55%, var(--y) 55%); color: inherit; font-weight: 600; padding: 0 1px; }
strong { font-weight: 700; }

/* 장표 미리보기 */
dialog.preview { width: min(1100px, 94vw); height: min(760px, 88vh); padding: 0; border: 0; border-radius: 16px; overflow: hidden; display: none; flex-direction: column; }
dialog.preview[open] { display: flex; }
dialog.preview::backdrop { background: rgba(0, 0, 0, .55); }
.pv-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--black); color: #fff; }
.pv-head b { flex: 1; }
.pv-head a { color: var(--y); font-size: 14px; }
.pv-head button { background: var(--y); color: var(--y-ink); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 600; }
dialog.preview iframe { flex: 1; width: 100%; border: 0; background: #2b2b2b; }

/* 시안 번호 표시 (비교용) */
.draft-tag { position: fixed; right: 12px; bottom: 12px; z-index: 50; background: var(--black); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.draft-tag a { color: var(--y); margin-left: 8px; text-decoration: none; }

/* 다이아몬드 엠블럼은 원본 이미지 여백이 커서 확대해 보여 준다 */
img[src*="emblem-diamond"] { transform: scale(1.9); transform-origin: center; }
.tier { width: 18px !important; height: 18px; }
