:root{--bg:#f5f6f8;--paper:#fff;--ink:#18212c;--muted:#69737f;--line:#e2e6eb;--blue:#245bce}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI","Noto Sans KR",sans-serif}
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topin{max-width:1180px;height:68px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:850}
.version{font-size:13px;color:var(--muted);font-weight:700;letter-spacing:.03em}
main{max-width:1180px;margin:auto;padding:48px 24px 80px}
.hero{padding:24px 0 34px}
.eyebrow{font-size:11px;font-weight:850;letter-spacing:.11em;color:#61748b}
.hero h1{font-size:50px;line-height:1.15;letter-spacing:-.05em;margin:10px 0 14px}
.hero p{max-width:730px;color:var(--muted);font-size:16px;line-height:1.7}
.study-notice{margin-top:16px;max-width:820px;background:#eef4ff;border:1px solid #d8e4fb;padding:13px 15px;border-radius:14px;font-size:13px;color:#40536b;display:flex;gap:10px;align-items:flex-start;line-height:1.55}
.study-notice strong{color:#1e3a5f;white-space:nowrap}
.study-notice b{color:#1f4fa3}
button{font:inherit;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 13px;font-weight:750;cursor:pointer}
.primary{background:#18212c;color:#fff;border-color:#18212c}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.overview{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:8px 0 44px}
.overview article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}
.num{font-size:11px;color:#99a3ad;font-weight:800}
.overview h2{font-size:24px;margin:7px 0}
.overview p{color:var(--muted);font-size:13px}
.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.chips span{font-size:11px;background:#f2f5f8;border-radius:999px;padding:6px 8px}
.toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:15px}
.toolbar h2{margin:5px 0 0;font-size:28px}
.filters{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.filter.on{background:#18212c;color:#fff}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:11px;min-height:280px}
.ctop{display:flex;justify-content:space-between;gap:10px}
.label{display:inline-block;font-size:11px;font-weight:850;background:#edf2f7;border-radius:999px;padding:5px 8px}
.cid{font-size:11px;color:#99a3ad}
.sub{font-size:13px;font-weight:800;color:#3e536b}
.illus{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fafafa}
.illus img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.case{font-size:16px;line-height:1.7;font-weight:650}
.ans{display:none;background:#f8fafc;border:1px solid var(--line);padding:14px;border-radius:14px}
.ans.open{display:block}
.small{font-size:12px;color:var(--muted);margin-bottom:6px}
.ans strong{display:block;font-size:15px;margin-bottom:8px}
.ans p{margin:0;line-height:1.7;color:#334155}
.reveal-btn{margin-top:auto}
.modal{
  position:fixed;inset:0;background:rgba(10,15,22,.62);
  display:grid;place-items:center;padding:clamp(8px,2vh,18px);z-index:50
}
.hidden{display:none!important}
.modal-card{
  width:min(920px,calc(100vw - 24px));
  height:min(94vh,900px);
  max-height:calc(100dvh - 16px);
  overflow:hidden;
  background:#fff;border-radius:22px;
  padding:clamp(15px,2.4vh,25px);
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  display:flex;flex-direction:column
}
.modal-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;flex:0 0 auto}
.modal-head button{border:0;font-size:24px;padding:2px 8px}
.modal-card>.label,.modal-card>.sub{flex:0 0 auto}
.modal-image-wrap{
  margin:clamp(8px,1.4vh,14px) 0 clamp(8px,1.3vh,14px);
  border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fafafa;
  flex:0 1 auto;
  min-height:0
}
.modal-image{
  display:block;width:100%;
  height:min(39vh,377px);
  max-height:377px;
  object-fit:contain;background:#fafafa
}
.mcase{
  font-size:clamp(17px,2.2vw,26px);
  line-height:1.48;font-weight:800;letter-spacing:-.03em;
  margin:0;
  flex:0 0 auto
}
.wide{width:100%;margin-top:clamp(8px,1.2vh,14px);padding:10px 12px;flex:0 0 auto}
.answerbox{
  margin-top:clamp(8px,1.2vh,12px);
  background:#f8fafc;border:1px solid var(--line);
  padding:clamp(10px,1.5vh,15px);border-radius:15px;
  min-height:138px;
  flex:0 0 auto;
  transition:opacity .18s ease
}
.answerbox strong{display:block;margin-bottom:6px;font-size:clamp(14px,1.6vw,17px)}
.answerbox p{margin:0;line-height:1.58;font-size:clamp(12px,1.35vw,14px)}
.answer-reserved-hidden{visibility:hidden;opacity:0;pointer-events:none}
.nav{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:clamp(8px,1.2vh,14px);flex:0 0 auto}

@media(max-width:820px){
  .overview,.cards{grid-template-columns:1fr}
  .hero h1{font-size:38px}
  .toolbar{align-items:flex-start;flex-direction:column}
  .filters{justify-content:flex-start}
  .modal-card{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:16px}
  .modal-image{height:min(35.1vh,325px);max-height:325px}
  .mcase{font-size:clamp(16px,4.5vw,21px)}
  .answerbox{min-height:130px}
}
@media(max-height:760px){
  .modal{padding:4px}
  .modal-card{height:calc(100dvh - 8px);padding:12px 16px;border-radius:14px}
  .modal-image-wrap{margin:6px 0}
  .modal-image{height:28.6vh;max-height:247px}
  .mcase{font-size:clamp(15px,2.6vh,20px);line-height:1.42}
  .wide{margin-top:7px;padding:8px 10px}
  .answerbox{margin-top:7px;min-height:112px;padding:9px 11px}
  .answerbox strong{font-size:14px;margin-bottom:4px}
  .answerbox p{font-size:12px;line-height:1.45}
  .nav{padding-top:6px}
}
  .hero h1{font-size:38px}
  .toolbar{align-items:flex-start;flex-direction:column}
  .filters{justify-content:flex-start}
  .mcase{font-size:22px}
}

.answer-section{padding-bottom:14px;border-bottom:1px dashed var(--line)}
.judge-guide{margin-top:14px}
.guide-title{font-size:13px;font-weight:900;color:#173d72;margin-bottom:7px}
.criterion{margin:0 0 11px!important;padding:10px 11px;border-radius:10px;background:#eef4ff;color:#24456f!important;font-weight:750}
.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.guide-grid>div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px}
.guide-grid>div span,.mini-guide span{font-size:11px;font-weight:900;color:#516170}
.guide-grid>div p{font-size:13px;line-height:1.55;margin:4px 0 0!important;color:#334155}
.guide-grid .deduction{grid-column:1/-1;background:#fff8f5;border-color:#f0ded5}
.guide-grid .deduction span{color:#9b4c2f}
.answer-tabs{display:flex;gap:6px;margin-bottom:8px}
.answer-tab{padding:6px 9px;border-radius:8px;font-size:11px}
.answer-tab.on{background:#18212c;color:#fff;border-color:#18212c}
.modal-answer-pane strong{display:block;margin-bottom:7px}
.modal-answer-pane p{margin:0;line-height:1.48}
.mini-guide{display:grid;grid-template-columns:82px 1fr;gap:8px;align-items:start;padding:5px 0;border-bottom:1px dashed var(--line)}
.mini-guide:last-child{border-bottom:0}
.mini-guide p{font-size:12px!important;line-height:1.38!important}
.mini-guide.warn span{color:#9b4c2f}
@media(max-width:650px){
  .guide-grid{grid-template-columns:1fr}
  .guide-grid .deduction{grid-column:auto}
  .study-notice{display:block}
  .study-notice strong{display:block;margin-bottom:4px}
}
