:root {
  --bg: #f7f8fa; --card: #fff; --text: #1c1f26; --muted: #5d6573; --line: #e3e6ec;
  --brand: #3b5bdb; --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
a { color: var(--brand); }
header.site { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
header.site .logo { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
header.site nav a { margin-left: 14px; color: var(--muted); text-decoration: none; font-size: .92rem; }
footer.site { text-align: center; padding: 28px 16px 40px; color: var(--muted); font-size: .85rem; }
main { max-width: 640px; margin: 0 auto; padding: 24px 16px; }
main.wide { max-width: 980px; }
h1 { font-size: 1.7rem; line-height: 1.3; margin: .2em 0 .5em; }
h2 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.muted { color: var(--muted); } .center { text-align: center; }
.fine { font-size: .82rem; color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); }

.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: 1.9rem; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 14px 26px; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.small { padding: 9px 16px; font-size: .92rem; margin-top: 14px; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .95rem; padding: 0; font-family: inherit; }

.progressbar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progressbar div { height: 100%; background: var(--brand); transition: width .25s; width: 0; }
.qmeta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.option { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 1rem; cursor: pointer; font-family: inherit; color: var(--text); min-height: 52px; }
.option:hover, .option.on { border-color: var(--brand); background: #f1f4ff; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.card.result { border-top: 5px solid var(--accent, var(--brand)); }
.card.top { padding: 22px 18px; }
.eyebrow { margin: 0; color: var(--muted); font-weight: 700; font-size: .88rem; }
.eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent, var(--brand)); margin-right: 6px; }
.card h2 { margin: .2em 0 .3em; }
.card h2 small { font-weight: 500; color: var(--muted); font-size: .85em; }
.score { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.score .num { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; border-bottom: 5px solid var(--accent); }
.score .unit { font-weight: 700; line-height: 1.2; } .score small { color: var(--muted); font-weight: 400; }
.tagline { margin: 4px 0 0; color: var(--muted); }
ul.reasons, ul.plain { list-style: none; padding: 0; margin: 0; }
ul.reasons li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
ul.reasons li:first-child { border-top: 0; }
ul.reasons li span { color: var(--muted); font-size: .95rem; }
ul.reasons .lead { font-weight: 700; font-size: .9rem; margin-left: 6px; }
ul.plain li { padding: 5px 0; }
.altwhen { margin: 12px 0 4px; }
.chip { display: inline-block; background: #eef0f4; border-radius: 999px; padding: 2px 10px; }

details.card summary { cursor: pointer; font-weight: 700; }
.legend { display: flex; gap: 14px; margin: 10px 0; font-size: .88rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.barrow { margin: 10px 0; }
.barlabel { font-size: .88rem; margin-bottom: 3px; }
.bars { display: grid; gap: 3px; }
.bar { position: relative; height: 14px; background: #eef0f4; border-radius: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 7px; }
.bar em { position: absolute; right: 6px; top: -2px; font-size: .72rem; font-style: normal; color: #333; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }

.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .92rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th small { display: block; font-weight: 400; color: var(--muted); }
tbody th { background: #fafbfc; width: 22%; }
.big { font-size: 1.15rem; }
.meta { font-size: .72rem; }
.tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: #eef0f4; color: #444; }
.tag.fact { background: #e3f4e8; color: #1c6b3a; } .tag.derived { background: #e4ecff; color: #2a3f9a; } .tag.opinion { background: #fff0d9; color: #7a4f00; }
.tag.todo { background: #fde7e7; color: #a33; } .tag.ok { background: #e3f4e8; color: #1c6b3a; }
.src { font-size: .72rem; }
.prose h2 { margin-top: 1.6em; } .prose li { margin: .4em 0; }

@media (max-width: 480px) {
  h1, .hero h1 { font-size: 1.55rem; }
  header.site nav a { margin-left: 10px; }
}

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
ul.reasons .lead { color: var(--text); }
.sub { margin-bottom: 8px; }
tbody th small { display: block; font-weight: 400; }
:focus-visible { outline: 3px solid #1a3fd0; outline-offset: 2px; }
h2:focus, h1:focus { outline: none; }

.fit { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; vertical-align: middle; }
.fit-top { background: #1c6b3a; color: #fff; } .fit-good { background: #e4ecff; color: #2a3f9a; }
.fit-conditional { background: #fff0d9; color: #7a4f00; } .fit-blocked { background: #fde7e7; color: #8a1f1f; }
.src-tag { display: inline-block; font-size: .72rem; padding: 0 6px; border-radius: 6px; margin-top: 2px; width: fit-content; }
.src-tag.off { background: #e3f4e8; color: #1c6b3a; } .src-tag.opn { background: #fff0d9; color: #7a4f00; }
ul.issues { list-style: none; padding: 0; margin: 8px 0; } ul.issues li { padding: 6px 10px; border-radius: 8px; margin: 4px 0; font-size: .92rem; }
ul.issues li.bad { background: #fde7e7; color: #8a1f1f; } ul.issues li.warn { background: #fff7e0; color: #6b4a00; }
.tablewrap.small table { min-width: 0; font-size: .85rem; } .tablewrap.small th, .tablewrap.small td { padding: 7px 9px; }
td.lv-yes { color: #1c6b3a; font-weight: 700; } td.lv-no { color: #8a1f1f; font-weight: 700; } td.lv-limited { color: #7a4f00; font-weight: 700; } td.lv-unknown { color: var(--muted); }
tr.total th, tr.total td { background: #f1f3f7; font-weight: 700; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: .8em; }

.tag.conf-high { background: #e3f4e8; color: #1c6b3a; } .tag.conf-medium { background: #eef0f4; color: #444; } .tag.conf-low { background: #fde7e7; color: #8a1f1f; }
span.lv-yes { color: #1c6b3a; font-weight: 700; } span.lv-no { color: #8a1f1f; font-weight: 700; } span.lv-limited { color: #7a4f00; font-weight: 700; } span.lv-unknown { color: var(--muted); font-weight: 700; }

.beta { display: inline-block; background: #fff0d9; color: #7a4f00; border: 1px solid #e8c98f; border-radius: 6px; padding: 0 6px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; vertical-align: middle; }
.notice { background: #fffaf0; border-bottom: 1px solid #f0dfba; color: #5a4300; font-size: .82rem; padding: 8px 16px; text-align: center; line-height: 1.5; }

.fit-check { background: #fde7e7; color: #8a1f1f; }
.uncertain { background: #fff4d6; border: 2px solid #e0a800; border-radius: 10px; padding: 10px 14px; margin: 10px 0; color: #5a3d00; }
.uncertain p { margin: 4px 0; font-weight: 700; } .uncertain p.fine { font-weight: 400; color: #6b5200; }
.card.verified { border-left: 5px solid #1c6b3a; }
.card h2 small { font-weight: 500; }
