/* 자격증 탭(t26) 쪽 공용 모양 (2026-11-29, _tools/cert_build.py 가 만든 쪽)
   본문 폭 1080px · 사이트 남색(#1a237e) · 계열 색은 쪽마다 --ct-accent / --ct-accent-light */
.ct-wrap { max-width: 1080px; margin: 0 auto; padding: 6px 16px 56px; color: #33405a;
  --ct-navy: #1a237e; --ct-ink: #16203a; --ct-line: #e3e7ee; --ct-soft: #f6f8fc; }

/* 표지 */
.ct-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px 22px;
  background: linear-gradient(135deg, var(--ct-navy) 0%, #283593 60%, var(--ct-accent, #1e88e5) 140%); color: #fff; }
.ct-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.07); }
.ct-hero-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; position: relative; z-index: 1; }
.ct-chip { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; }
.ct-chip.hot { background: #ffd54f; color: #3b2a00; }
.ct-hero h2 { margin: 0; font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; position: relative; z-index: 1; color: #fff; }
.ct-hero .ct-en { font-size: .9rem; opacity: .85; margin: 2px 0 10px; position: relative; z-index: 1; }
.ct-hero p.ct-lead { margin: 0; font-size: .95rem; line-height: 1.75; max-width: 760px; position: relative; z-index: 1; color: #eef1ff; }
.ct-hero-meta { margin-top: 14px; font-size: .8rem; color: #dfe4ff; position: relative; z-index: 1; }

/* 핵심 숫자 */
.ct-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 0; }
.ct-stat { background: #fff; border: 1px solid var(--ct-line); border-radius: 14px; padding: 14px 14px 12px; }
.ct-stat small { display: block; font-size: .74rem; font-weight: 700; color: #5d6780; margin-bottom: 4px; }
.ct-stat b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ct-ink); line-height: 1.3; }
.ct-stat span { display: block; font-size: .76rem; color: #5d6780; margin-top: 3px; line-height: 1.45; }
@media (max-width: 860px) { .ct-stats { grid-template-columns: repeat(2, 1fr); } }

/* 목차 */
.ct-toc { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 18px -16px 0; padding: 10px 16px; background: rgba(245,247,250,.94); backdrop-filter: blur(6px); }
.ct-toc::-webkit-scrollbar { display: none; }
.ct-toc a { flex: none; font-size: .8rem; font-weight: 700; color: var(--ct-navy); background: #eef1fb; border-radius: 999px;
  padding: 6px 13px; text-decoration: none; white-space: nowrap; }
.ct-toc a:hover, .ct-toc a.on { background: var(--ct-navy); color: #fff; }

/* 섹션 */
.ct-sec { margin-top: 30px; scroll-margin-top: 64px; }
.ct-sec > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: var(--ct-navy);
  margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--ct-line); }
.ct-sec > h2 .n { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ct-navy); color: #fff;
  font-size: .82rem; display: inline-flex; align-items: center; justify-content: center; }
.ct-sec > h2 small { margin-left: auto; font-size: .76rem; font-weight: 700; color: #5d6780; }
.ct-sec h3 { font-size: 1rem; font-weight: 800; color: var(--ct-ink); margin: 20px 0 10px; }
.ct-sec p, .ct-sec li { font-size: .93rem; line-height: 1.85; }
.ct-sec p { margin: 0 0 12px; }
.ct-sec ul { margin: 0 0 12px; padding-left: 20px; }
.ct-sec strong { color: var(--ct-ink); }
.ct-sec a { color: #1565c0; font-weight: 700; text-decoration: none; }
.ct-sec a:hover { text-decoration: underline; }

/* 알림 상자 */
.ct-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 16px; }
.ct-alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.ct-alert i { margin-top: 3px; font-size: 1.05rem; }
.ct-alert b { display: block; font-size: .92rem; color: var(--ct-ink); margin-bottom: 2px; }
.ct-alert span { font-size: .86rem; line-height: 1.65; color: #46505f; }
.ct-alert.new { background: #fff8e1; border-color: #f3dc9b; } .ct-alert.new i { color: #b26a00; }
.ct-alert.info { background: #eef4ff; border-color: #d5e0f5; } .ct-alert.info i { color: var(--ct-navy); }

/* 두 칸 카드 */
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 12px; }
.ct-card { background: #fff; border: 1px solid var(--ct-line); border-radius: 14px; padding: 16px 18px; }
.ct-card h4 { margin: 0 0 6px; font-size: .92rem; font-weight: 800; color: var(--ct-navy); display: flex; gap: 8px; align-items: center; }
.ct-card p, .ct-card li { font-size: .88rem; line-height: 1.75; margin: 0; }
.ct-card ul { margin: 0; padding-left: 18px; }

/* 취득 절차 */
.ct-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 4px 0 16px; counter-reset: fl; }
.ct-flow li { list-style: none; position: relative; background: #fff; border: 1px solid var(--ct-line); border-radius: 14px;
  padding: 14px 12px 12px; counter-increment: fl; }
.ct-flow li::before { content: counter(fl); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ct-accent, #1e88e5);
  color: #fff; font-size: .74rem; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 6px; }
.ct-flow li:not(:last-child)::after { content: '›'; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; font-weight: 800; color: #8a94ab; z-index: 1; }
.ct-flow b { display: block; font-size: .9rem; color: var(--ct-ink); }
.ct-flow span { display: block; font-size: .79rem; line-height: 1.55; color: #5d6780; margin-top: 3px; }
@media (max-width: 760px) {
  .ct-flow { grid-template-columns: 1fr; }
  .ct-flow li { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
  .ct-flow li::before { grid-row: span 2; margin: 0; }
  .ct-flow li:not(:last-child)::after { content: none; }
}
.ct-sec ol.ct-flow { padding: 0; }

/* 표 */
.ct-table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--ct-line); border-radius: 14px; background: #fff; }
table.ct-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ct-tbl th { background: var(--ct-navy); color: #fff; font-weight: 700; padding: 10px 12px; text-align: left; white-space: nowrap; font-size: .84rem; }
.ct-tbl td { padding: 9px 12px; border-top: 1px solid #edf0f5; vertical-align: top; line-height: 1.6; color: #33405a; }
.ct-tbl td.k { font-weight: 800; color: var(--ct-ink); white-space: nowrap; background: var(--ct-soft); width: 1%; }
.ct-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-tbl tr.sum td { font-weight: 800; background: var(--ct-soft); }
.ct-tbl .ch { display: inline-block; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: #fff3cd; color: #7a4f00; margin-left: 4px; }

/* 출제기준 표 (주요 · 세부 · 세세) */
table.ct-std { width: 100%; border-collapse: collapse; font-size: .87rem; }
.ct-std th { background: var(--ct-navy); color: #fff; font-weight: 700; padding: 10px 12px; text-align: left; font-size: .84rem; white-space: nowrap; }
.ct-std td { padding: 8px 12px; border-top: 1px solid #edf0f5; vertical-align: top; line-height: 1.6; }
.ct-std td.major { background: var(--ct-accent-light, #e8f1fd); font-weight: 800; color: var(--ct-ink); width: 22%; border-right: 1px solid #e3e9f3; }
.ct-std td.major .no { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: var(--ct-accent, #1e88e5); color: #fff;
  font-size: .74rem; align-items: center; justify-content: center; margin-right: 6px; }
.ct-std td.sub { font-weight: 700; color: #26324d; width: 24%; border-right: 1px solid #eef1f6; background: #fbfcfe; }
.ct-std td.det ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.ct-std td.det li { font-size: .82rem; line-height: 1.45; background: #f1f4f9; border-radius: 7px; padding: 3px 9px; color: #33405a; }
.ct-std td.det ol { margin: 0; padding-left: 18px; }
.ct-std td.det ol li { font-size: .85rem; line-height: 1.65; margin-bottom: 4px; }
.ct-std tr.first td { border-top: 2px solid #d5dcea; }
@media (max-width: 700px) {
  table.ct-std, .ct-std tbody, .ct-std tr, .ct-std td { display: block; width: auto !important; }
  .ct-std thead { display: none; }
  .ct-std td { border-right: 0 !important; }
  .ct-std td.major { border-top: 2px solid #d5dcea; }
  .ct-std td.sub { border-top: 0; padding-bottom: 2px; }
  .ct-std td.det { border-top: 0; padding-top: 4px; }
}

/* 시험 정보 띠 (검정방법 · 문항 · 시간) */
.ct-band { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ct-band span { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: var(--ct-soft); border: 1px solid var(--ct-line); color: #26324d; }
.ct-band span b { color: var(--ct-navy); }

/* 출제 범위 한눈에 */
.ct-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; }
.ct-map a { display: block; text-decoration: none !important; background: #fff; border: 1px solid var(--ct-line); border-left: 4px solid var(--ct-accent, #1e88e5);
  border-radius: 10px; padding: 10px 12px; }
.ct-map a b { display: block; font-size: .86rem; color: var(--ct-ink); line-height: 1.4; }
.ct-map a span { display: block; font-size: .75rem; color: #5d6780; font-weight: 600; margin-top: 2px; }

/* 수행준거 */
.ct-criteria { margin: 0 0 14px; padding: 14px 18px; border-radius: 14px; background: var(--ct-soft); border: 1px solid var(--ct-line); }
.ct-criteria b { display: block; font-size: .88rem; color: var(--ct-navy); margin-bottom: 6px; }
.ct-criteria ol { margin: 0; padding-left: 20px; }
.ct-criteria li { font-size: .87rem; line-height: 1.7; }

/* 막대 그래프 (합격률) */
.ct-bars { display: grid; gap: 7px; margin: 0 0 8px; }
.ct-bar { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 10px; align-items: center; font-size: .8rem; }
.ct-bar > b { font-variant-numeric: tabular-nums; color: var(--ct-ink); }
.ct-bar .tr { position: relative; height: 18px; border-radius: 6px; background: #eef1f6; overflow: hidden; }
.ct-bar .fi { display: block; height: 100%; border-radius: 6px; }
.ct-bar .fi.w { background: #5c6bc0; } .ct-bar .fi.p { background: var(--ct-accent, #1e88e5); }
.ct-bar .tr em { position: absolute; right: 6px; top: 0; line-height: 18px; font-style: normal; font-weight: 800; font-size: .74rem; color: #16203a; }
.ct-legend { display: flex; gap: 14px; font-size: .78rem; color: #5d6780; margin: 0 0 10px 58px; }
.ct-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 우대 */
.ct-perk { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0 0 12px; }
.ct-perk div { background: #fff; border: 1px solid var(--ct-line); border-radius: 14px; padding: 14px 16px; }
.ct-perk b { display: block; font-size: .9rem; color: var(--ct-navy); margin-bottom: 6px; }
.ct-perk span { display: inline-block; font-size: .78rem; background: #f1f4f9; border-radius: 6px; padding: 2px 8px; margin: 0 4px 5px 0; color: #33405a; }

.ct-note { font-size: .8rem !important; color: #5d6780; line-height: 1.7 !important; }
.ct-src { margin: 0; padding-left: 18px; }
.ct-src li { font-size: .85rem; }
.ct-back { display: inline-block; margin-top: 26px; font-size: .86rem; font-weight: 700; color: var(--ct-navy); text-decoration: none; }
.ct-back:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .ct-hero { padding: 20px 18px 18px; border-radius: 14px; }
  .ct-hero h2 { font-size: 1.45rem; }
  .ct-bar { grid-template-columns: 40px 1fr 1fr; gap: 6px; }
  .ct-legend { margin-left: 46px; }
}
.ct-std td.major { scroll-margin-top: 64px; }
@media (max-width: 860px) { .ct-stat:last-child:nth-child(odd) { grid-column: span 2; } }
.ct-bar.one { grid-template-columns: 48px 1fr; }
@media (max-width: 600px) { .ct-bar.one { grid-template-columns: 40px 1fr; } }

/* 작업형 실기 안전 정보 */
.ct-safety { display: grid; grid-template-columns: 150px repeat(3, 1fr); gap: 8px; margin: 0 0 8px; }
.ct-safety > div { background: #fff; border: 1px solid var(--ct-line); border-radius: 12px; padding: 12px 14px; }
.ct-safety small { display: block; font-size: .74rem; font-weight: 700; color: #5d6780; margin-bottom: 4px; }
.ct-safety b { display: block; font-size: .88rem; color: var(--ct-ink); line-height: 1.5; }
.ct-safety .lv b { font-size: 1.15rem; }
.ct-safety .dots { display: flex; gap: 4px; margin-top: 6px; }
.ct-safety .dots i { width: 16px; height: 8px; border-radius: 3px; background: #e3e7ee; }
.ct-safety .dots i.on { background: #e65100; }
@media (max-width: 760px) { .ct-safety { grid-template-columns: 1fr 1fr; } }

/* 아주 긴 실기 출제기준 접기 */
.ct-more { margin: 0 0 14px; }
.ct-more > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: 12px; background: #fff; border: 1px solid var(--ct-line); font-weight: 800; font-size: .9rem; color: var(--ct-navy); }
.ct-more > summary::-webkit-details-marker { display: none; }
.ct-more > summary::before { content: '▸'; transition: transform .15s; }
.ct-more[open] > summary::before { transform: rotate(90deg); }
.ct-more > summary span { font-weight: 600; font-size: .8rem; color: #5d6780; }
.ct-more[open] > summary { margin-bottom: 10px; }
.ct-std.two td.major { width: 26%; }
.ct-std td.det p.one { margin: 0; font-size: .86rem; line-height: 1.65; }
