/* 교원 AI 역량체계 (assets/js/competency.js) — jbtraining assets/css/guide.css·report.css의 A~G 화면 모양을 그대로 옮김(2026-11-08) */

/* 머리: 지역 그림 위 흰 글(다른 메뉴 머리 .page-head.ph-scene와 같음) */
.ag-head h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; letter-spacing: -0.02em; word-break: keep-all; }
.ag-head h1 .sm { display: block; font-size: .62em; color: rgba(255, 255, 255, .9); font-weight: 800; }
.ag-head h1 em { font-style: normal; color: #a8e6bf; }
.ag-head h1 .ag-by { font-size: .7em; font-weight: 800; white-space: nowrap; letter-spacing: 0; }
.page-head.ph-scene.ag-head p { font-size: 16px; }
.page-head.ph-scene.ag-head .wrap { padding-bottom: 0; }
.ag-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; }
.ag-foot .ag-actions { flex: 1 1 300px; padding-bottom: 24px; }
.ag-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.ag-actions .btn { white-space: nowrap; }
.ag-src { flex-basis: 100%; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); word-break: keep-all; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ag-bar { flex-basis: 100%; max-width: 360px; }
.dl-size { font-weight: 500; opacity: .72; }
/* 파스텔 주황(PDF 내려받기)·민트(발표자료) 단추 — jbtraining과 같은 색 */
.btn-peach { background: #ffe1bf; border-color: #f6c48a; color: #8a4300; }
.btn-peach:hover:not(:disabled) { background: #ffd4a3; border-color: #efb06a; color: #713600; }
.btn-mint { background: #d9f4e6; border-color: #93d7b4; color: #0f5a3a; text-decoration: none; }
.btn-mint:hover { background: #c6eedb; border-color: #74c79e; color: #0b4a2f; }
.btn .nw { display: inline-flex; margin-left: 2px; opacity: .7; }
.btn .nw svg { width: 14px; height: 14px; }

/* 응원하는 선생님 친구들(오른쪽 아래) */
.ag-cheer-box { position: relative; flex: none; margin-left: auto; padding-right: 34px; }
.ag-cheer { display: flex; align-items: flex-end; }
.ag-cheer .agc { display: block; width: 92px; }
.ag-cheer .msc { display: block; width: 100% !important; }
.agc-toggle { position: absolute; right: 0; bottom: 10px; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 31, 71, .35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.agc-toggle:hover, .agc-toggle:focus-visible { background: rgba(10, 31, 71, .6); }
.agc-toggle svg { width: 12px; height: 12px; }

/* 본문: 기본·교육 실천·성장 */
.ag-page { padding-top: 22px; display: grid; gap: 14px; max-width: 980px; }
.page .ag-page { padding-top: 0; }
.ag-group { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0; border-radius: 18px; padding: 10px; background: var(--g-bg); }
.ag-basic { --g-bg: #eaf2ff; --g-ink: #1d4fb3; }
.ag-practice { --g-bg: #e7f6ee; --g-ink: #17784b; }
.ag-growth { --g-bg: #fff3e0; --g-ink: #a85d00; }
.ag-glabel { display: flex; align-items: center; justify-content: center; }
.ag-glabel span { font-weight: 800; color: var(--g-ink); font-size: 17px; text-align: center; word-break: keep-all; line-height: 1.3; max-width: 3.2em; }
.ag-list { display: grid; gap: 8px; }
.ag-item { display: grid; grid-template-columns: 74px minmax(0, 1.1fr) minmax(0, 1.3fr); align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 10px 16px 10px 10px; box-shadow: 0 1px 2px rgba(15, 42, 95, .06); }
.ag-letter { width: 64px; height: 64px; border-radius: 12px 4px 12px 12px; background: var(--ac); color: #fff; font-size: 34px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12); }
.ag-a { --ac: #1d4fb3; } .ag-b { --ac: #0f8f99; } .ag-c { --ac: #127fa0; } .ag-d { --ac: #d8513a; } .ag-e { --ac: #23885a; } .ag-f { --ac: #2563c9; } .ag-g { --ac: #c77a0a; }
.ag-name h2 { margin: 0; font-size: 19px; color: var(--navy); letter-spacing: -0.01em; word-break: keep-all; }
.ag-official { display: inline-block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.ag-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); border-left: 1px solid var(--line); padding-left: 16px; word-break: keep-all; }
.ag-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; background: #e9f0fb; border-radius: 14px; padding: 14px 16px; font-size: 16px; color: var(--navy); }
.ag-flow b { margin-right: 4px; }
.ag-flow .st { background: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.ag-flow .ar { color: var(--ink-3); font-weight: 800; }

@media (max-width: 760px) {
  .ag-group { grid-template-columns: minmax(0, 1fr); }
  .ag-glabel { justify-content: flex-start; padding: 2px 6px 8px; }
  .ag-glabel span { max-width: none; }
  .ag-item { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; }
  .ag-letter { width: 50px; height: 50px; font-size: 27px; }
  .ag-text { grid-column: 1 / -1; border-left: 0; padding-left: 0; font-size: 14.5px; }
  .ag-cheer .agc { width: 68px; }
  /* 좁은 화면: 단추·출처는 한 줄 전체, 응원 친구들은 그 아래 오른쪽 */
  .ag-foot { flex-wrap: wrap; }
  .ag-foot .ag-actions { flex-basis: 100%; padding-bottom: 0; }
}
@media print { .ag-actions, .ag-cheer-box { display: none !important; } }
