/* 마감한다 공용 마무리 스타일. 모든 페이지가 불러요.
   글자 줄바꿈, 글자 선택 색, 키보드 초점 표시처럼 페이지마다 따로 두면 어긋나는 것만 모았어요. */

/* 한글이 낱말 중간에서 끊기지 않게 (예: "기출문 / 제지" → "기출문제지"가 통째로 다음 줄로) */
body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* 글자를 끌어 선택했을 때 색 (브라우저 기본 파란색 대신 사이트 노란색) */
::selection { background: rgba(255, 224, 122, 0.75); color: #151512; }

/* 키보드(Tab)로 이동할 때만 보이는 초점 표시 */
:focus-visible { outline: 2px solid #151512; outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* 가격·수량 숫자의 폭을 같게 해서 자리가 흔들리지 않게 */
body { font-variant-numeric: tabular-nums; }

/* 움직임 줄이기를 켠 사람에게는 전환 효과를 끔 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
