/* 규격 사전 페이지 공용 스타일 (/qnet /gosi /toeic /kpc …).
   랜딩(index.html)의 토큰과 같은 값을 쓴다. 랜딩은 스타일이 인라인이라 중복이지만,
   랜딩은 단일 페이지고 이쪽은 여러 페이지라 파일로 뺐다(캐시 1회로 끝난다). */

:root {
  --yellow: #ffd12e;
  --yellow-bright: #ffda4d;
  --yellow-deep: #f2be00;
  --yellow-pale: #fff6d6;
  --ink: #17161c;
  --muted: #615f6b;
  --line: #ece9e1;
  --bg: #f8f6ef;
  --surface: #ffffff;
  --green: #15a66e;
  --green-pale: #e8f7f0;
  --coral: #e8533a;
  --coral-pale: #fdeeeb;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 22, 28, .05), 0 1px 3px rgba(23, 22, 28, .04);
  --shadow-md: 0 2px 6px rgba(23, 22, 28, .06), 0 8px 20px rgba(23, 22, 28, .07);
  --maxw: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: #8a6a00; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 상단 바 */
.top {
  background: var(--ink);
  padding: 12px 0;
}
.top .wrap { display: flex; align-items: center; gap: 10px; }
.top a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.top img { width: 24px; height: 24px; border-radius: 6px; }

/* 헤더 */
header.page {
  background: linear-gradient(180deg, var(--yellow-bright) 0%, var(--yellow) 100%);
  padding: 34px 0 30px;
}
.kicker {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 5px 13px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 700; margin-bottom: 14px;
}
h1 {
  font-size: clamp(25px, 5.2vw, 36px); line-height: 1.28;
  letter-spacing: -.03em; margin: 0 0 10px; font-weight: 800;
}
.lede { margin: 0; font-size: 16.5px; font-weight: 600; color: #4a4632; }

/* 본문 */
main { padding: 8px 0 10px; }
section { padding: 30px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(20px, 3.6vw, 25px); letter-spacing: -.025em;
  margin: 0 0 8px; font-weight: 800;
}
.sub { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; }
p { margin: 0 0 14px; }

/* 정답 표 — 맨 위, 스크롤 없이 보여야 한다 */
.answer {
  background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--r-lg); padding: 6px 22px; margin: -18px 0 0;
  box-shadow: var(--shadow-md);
}
.answer dl { margin: 0; }
.answer div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 13px 0; border-top: 1px solid var(--line);
}
.answer div:first-child { border-top: 0; }
.answer dt { color: var(--muted); font-size: 15px; font-weight: 650; flex: none; }
.answer dd { margin: 0; font-weight: 750; text-align: right; font-size: 16.5px; }
.answer dd small { display: block; font-weight: 600; font-size: 13.5px; color: var(--muted); }

.stamp {
  margin: 14px 0 0; font-size: 13.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.stamp b { color: var(--ink); font-weight: 700; }

/* 오해 바로잡기 박스 — 이 페이지들의 존재 이유 */
.myth {
  background: var(--coral-pale); border: 1px solid #f4cdc4;
  border-radius: var(--r-md); padding: 18px 20px;
}
.myth h3 { margin: 0 0 8px; font-size: 17px; font-weight: 780; letter-spacing: -.02em; }
.myth p:last-child { margin-bottom: 0; }
.myth .wrong { text-decoration: line-through; color: #b4442f; font-weight: 700; }
.myth .right { color: var(--green); font-weight: 800; }

/* 목록 */
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li {
  padding: 11px 0 11px 30px; border-top: 1px solid var(--line);
  position: relative; font-size: 16px;
}
ul.plain li:first-child { border-top: 0; }
ul.plain li::before {
  content: '✓'; position: absolute; left: 4px; top: 11px;
  color: var(--green); font-weight: 800;
}
ul.plain.warn li::before { content: '!'; color: var(--coral); }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: s; position: relative; padding: 0 0 16px 44px; font-size: 16px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
ol.steps li b { font-weight: 750; }

/* CTA */
.cta-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16.5px;
  box-shadow: 0 6px 18px rgba(23, 22, 28, .22);
}
.cta svg { width: 19px; height: 21px; flex: none; }
.cta-note { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); font-weight: 600; }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0 18px; margin-bottom: 9px;
}
summary {
  cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 16px;
  letter-spacing: -.02em; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '＋'; float: right; color: var(--muted); font-weight: 600; }
details[open] summary::after { content: '－'; }
details p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }

/* 다른 규격 */
.others { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.others a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: var(--ink);
}
.others a:hover { border-color: var(--yellow-deep); }
.others b { display: block; font-weight: 750; font-size: 15.5px; }
.others span { font-size: 13.5px; color: var(--muted); }

/* 고지 · 푸터 */
.note {
  background: #fffdf5; border: 1px solid #f0e7c9; border-radius: var(--r-md);
  padding: 16px 18px; font-size: 14.5px; color: #6b6450;
}
footer {
  border-top: 1px solid var(--line); padding: 28px 0 44px;
  font-size: 14.5px; color: var(--muted);
}
footer a { color: var(--ink); font-weight: 650; }
.flinks { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 24px 0; }
  .answer div { flex-direction: column; gap: 2px; }
  .answer dd { text-align: left; }
}
