/* 요약집 정리판(2026-10-29 사용자 결정 · 시안 mmTeam/wsh/theory_b) — pages/contents.php가 로그인 학생에게 #theory.mm-theory-v2 로 켠다.
   머리줄 = 경로 · 돋보기(검색) · 신고 · 클로비 한 줄 / 이론 태그 = 본문 끝 「이 단원 더 찾아보기」 회색 태그 /
   아래 줄 = 왼쪽 목차 · 펜 필기 + 오른쪽 「‹ n / N ›」(문제은행 · 모의고사 아래 줄과 같은 문법 · 같은 값, 2026-10-28 「아래 줄 공통 문법」).
   메모(#notes-btn) · 필기 초기화(#reset-btn) · 아래 줄 검색(#search-btn)은 줄에서 뺀다(버튼 · 함수는 그대로, 검색은 머리줄 돋보기가 연다).
   ajax_contents_view.php 안의 !important 규칙을 덮어야 해서 여기도 !important를 쓴다. 폭 맞춤은 contents_v2.js. */

/* 아래 줄 */
/* 하단바 두께 72 = 위 12(선 1 포함) · 버튼 줄 48 · 아래 12 — 문제은행 · 모의고사 · 요약집 같은 값, 폰 · 태블릿 · PC 같음(2026-11-03 사용자 결정, 77과 64의 절충). 홈 표시줄 여백은 아이폰에서만 */
#theory.mm-theory-v2 .fixed_nav_theory { padding: 12px 16px 12px !important; border-top: 0 !important; box-shadow: 0 -1px 0 #E2E8F0 !important; box-sizing: border-box; }
@supports (-webkit-touch-callout: none) { #theory.mm-theory-v2 .fixed_nav_theory { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important; } } /* 홈 표시줄 여백은 아이폰에서만 — 갤럭시 태블릿은 아래 태스크바 높이를 안전 영역으로 알려 막대 아래가 크게 비었다(2026-11-03 사용자 제보). 문제은행 · 모의고사 아래 줄과 같은 규칙 */
#theory.mm-theory-v2 .fixed_nav_theory.nav-hidden { transform: none !important; } /* 스크롤해도 숨기지 않는다(풀이 화면 아래 줄과 같게) */
#theory.mm-theory-v2 .fixed_nav_theory .progress-container { display: none !important; } /* 읽은 위치 선 → 「n / N」이 대신한다 */
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap { justify-content: flex-start !important; align-items: center !important; gap: 2px !important; min-height: 48px !important; max-width: none !important; width: var(--mmv2-th-nw, 100%) !important; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #search-btn, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #notes-btn, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #reset-btn { display: none !important; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #toc-btn, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #merci-pen-launch:not([hidden]) { flex: none !important; width: 52px !important; min-width: 0; min-height: 48px; gap: 4px; color: #475569; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #toc-btn > p, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #merci-pen-launch { font-size: 13px !important; } /* 최소 글자 13(시안 12에서 올림) */

/* 「‹ n / N ›」: 이전 · 다음 = 44 동그라미(다음만 파랑 채움), 끝 장에서는 흐리게 */
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #toc-btn { order: 1; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #merci-pen-launch { order: 2; } /* 펜은 boot.js가 #reset-btn 앞에 꽂아 목차보다 앞에 온다 → 시안 순서(목차 · 펜) */
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn { order: 10; margin-left: auto !important; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > .mmv2-th-count { order: 11; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn { order: 12; margin-left: 6px !important; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn { flex: none !important; width: 44px !important; min-width: 0; height: 44px !important; min-height: 0; border-radius: 999px; box-sizing: border-box; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn { border: 1px solid #E2E8F0 !important; background: #fff !important; color: #334155; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn { background: #006CD4 !important; color: #fff; } /* --fill-action */
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn:not(.on), #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn:not(.on) { opacity: .35; color: inherit; cursor: default; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn:not(.on) { color: #334155; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn:not(.on) { color: #fff; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn > svg, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn > svg { width: 20px; height: 20px; stroke-width: 2.2; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #prev-btn > p, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #next-btn > p { display: none !important; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > .mmv2-th-count { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; flex: none !important; width: auto !important; min-width: 64px; min-height: 44px; margin-left: 6px !important; padding: 0 4px !important; gap: 0; cursor: default; text-align: center; font-size: 15px; color: #94A3B8; font-variant-numeric: tabular-nums; white-space: nowrap; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > .mmv2-th-count b { color: #0F172A; font-weight: 600; }
@media (min-width: 1024px) {
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #toc-btn, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #merci-pen-launch:not([hidden]) { width: auto !important; flex-direction: row !important; gap: 6px; padding: 0 12px !important; min-height: 44px; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #toc-btn > p, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #merci-pen-launch { font-size: 14px !important; }
#theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #toc-btn > svg, #theory.mm-theory-v2 .fixed_nav_theory .icon_wrap > #merci-pen-launch svg { width: 20px; height: 20px; }
}

/* 머리줄: 경로 · 돋보기 · 신고 · 클로비 한 줄 */
#theory.mm-theory-v2 .theory_top_head { flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 8px; }
#theory.mm-theory-v2 .theory_top_head > p { flex: 1; min-width: 0; width: auto !important; }
#theory.mm-theory-v2 .theory_top_head > .theory-head-row2 { flex: none; width: auto; }
#theory.mm-theory-v2 .mmv2-th-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #475569; cursor: pointer; }
#theory.mm-theory-v2 .mmv2-th-search svg { width: 24px; height: 24px; stroke-width: 2; }

/* 본문 끝 태그 */
#theory.mm-theory-v2 .mmv2-th-tags { margin: 40px 0 24px; padding-top: 20px; border-top: 1px solid #E2E8F0; }
#theory.mm-theory-v2 .mmv2-th-tags p { margin: 0 0 10px; font-size: 13px; color: #64748B; }
#theory.mm-theory-v2 .mmv2-th-tags a { display: inline-flex; align-items: center; min-height: 36px; margin: 0 6px 6px 0; padding: 0 12px; border-radius: 999px; background: #F1F5F9; color: #334155; font-size: 14px; text-decoration: none; }
