:root {
  --paper: #FFFCF6; --ink: #17231C; --sub: #56655C; --faint: #87948C; --line: #E2EAE4; --cell: #F6F2E9;
  --leaf: #1E9E52; --leaf-ink: #11753A; --leaf-soft: #DDF3E4; --gold: #F4B63B;
  --logo: 'Black Han Sans', 'Apple SD Gothic Neo', sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.8; letter-spacing: -0.05em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--leaf-ink); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 860px; margin: 0 auto; padding-inline: 20px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(255,252,246,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--logo); font-size: 22px; color: var(--leaf-ink); text-decoration: none; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.tabs { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.tabs a { padding: 6px 10px; border-radius: 10px; color: var(--sub); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current=page] { background: var(--leaf-soft); color: var(--leaf-ink); }

main { padding-block: 44px 88px; }
h1 { font-size: 32px; font-weight: 800; line-height: 1.25; letter-spacing: -0.05em; }
.meta { margin-top: 10px; color: var(--faint); font-size: 13.5px; }
.lead { margin-top: 18px; color: var(--sub); font-size: 16px; }
h2 { margin-top: 48px; font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.05em; }
h3 { margin-top: 24px; font-size: 16.5px; font-weight: 700; }
p, ul, ol, .tbl, .box { margin-top: 12px; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: 6px; }
li > ul, li > ol { margin-top: 6px; }
.sub { color: var(--sub); }
.small { font-size: 13.5px; color: var(--faint); }

.box { padding: 18px 20px; border-radius: 16px; background: var(--leaf-soft); color: #14432A; }
.box ul { margin-top: 6px; }
.box b { color: var(--leaf-ink); }
.box.plain { background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); }

.toc { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; font-size: 14.5px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--ink); }

.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--cell); color: var(--sub); font-weight: 700; white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wide table { min-width: 640px; }

/* 확률 */
.seed-sum td.n b { color: var(--leaf-ink); }
.seed { margin-top: 36px; }
.seed h3 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 19px; font-weight: 800; }
.seed h3 small { font-size: 14px; font-weight: 600; color: var(--faint); }
.seed .ev { margin-top: 6px; font-size: 14.5px; color: var(--sub); }
.seed .ev b { color: var(--leaf-ink); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 8px; min-width: 80px; border-radius: 99px; background: #EEF2EE; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--leaf); }
.gem .bar i { background: var(--gold); }
td.bar-c { width: 34%; vertical-align: middle; }
.seed td.small { white-space: nowrap; }

.site-foot { background: #0A1F15; color: #7F9687; font-size: 13px; line-height: 1.75; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-foot a { color: inherit; }
.site-foot .f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: #C3D3C8; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-foot .f-links a { text-decoration: none; }
.site-foot .f-links a:hover { color: #FFFFFF; }
.site-foot .f-links b { color: #FFFFFF; font-weight: 800; }
.site-foot .f-biz { font-style: normal; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.site-foot .f-biz b { color: #C3D3C8; font-weight: 700; }
.site-foot .f-biz a { text-decoration: underline; text-underline-offset: 3px; }
.site-foot .f-biz a.chk { margin-left: 8px; padding: 0 8px; border: 1px solid #2F4A3B; border-radius: 6px; font-size: 12px; text-decoration: none; }
.site-foot .f-copy { margin-top: 16px; font-size: 12.5px; color: #587262; }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .toc ol { columns: 1; }
  .brand span { display: none; }
  .tabs a { padding: 6px 8px; }
  .bar-c { display: none; }
}
/* 확률 공개 — 변경 공지 박스 · 접힌 이전 확률표(지시서 19 C-1) */
.box.notice { margin-top: 18px; background: #FFF6DE; color: var(--ink); border: 1px solid #F1D591; }
.box.notice b { color: #7A4B00; }
.box.notice p { margin: 0; }
details.old { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; padding: 4px 16px 16px; }
details.old > summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--sub); }
details.old[open] > summary { color: var(--ink); }
