/* 변시 화면 공용 디자인(2026-10-29) — /exam-learn 에서 시작한 틀을 변시 화면들이 함께 쓴다.
   원칙: 색·글자는 theme.css 의 의미 토큰(--bg·--card-bg·--text-main·--text-muted·--border·--primary)만
   쓴다 → 라이트·다크를 페이지가 따로 칠하지 않는다(10-28 '본문만 어두운' 사고의 재발 방지).
   강조는 검정 알약 버튼 하나, 보조는 밑줄 링크, 안내 상자는 회색 면 하나로 통일한다. */
.exui { font-family: var(--font-sans); background: var(--bg); color: var(--text-main);
        min-height: 100vh; line-height: var(--leading-normal); padding-bottom: env(safe-area-inset-bottom, 0px); }
.exui a { color: inherit; }
.exui .ex-container { max-width: 960px; margin: 0 auto; padding: 24px 16px calc(80px + env(safe-area-inset-bottom, 0px)); }

/* 상단 경로 */
.exui .page-nav { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 4px; }
.exui .page-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.exui .page-nav a:hover { color: var(--text-main); text-decoration: underline; }
.exui .page-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 첫 화면 — 작은 머리말 · 큰 제목 · 짧은 부제 */
.exui .ex-hero { padding: 28px 0 20px; }
.exui .ex-kicker { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--primary); margin-bottom: 10px; }
.exui .ex-hero h1 { font-size: clamp(28px, 5.4vw, 44px); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.exui .ex-hero p { margin-top: 12px; font-size: var(--text-lg); color: var(--text-muted); max-width: 680px; line-height: var(--leading-relaxed); }
.exui .ex-hero p b { color: var(--text-main); font-weight: var(--weight-semibold); }
.exui .ex-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* 버튼 — 주 버튼은 검정 알약 하나 */
.exui .ex-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: var(--radius-full);
                background: var(--text-main); color: var(--bg); font-weight: var(--weight-semibold); text-decoration: none;
                min-height: 44px; border: 0; font-family: inherit; font-size: var(--text-md); cursor: pointer; }
.exui .ex-btn:hover { opacity: .88; }
.exui .ex-link { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--weight-semibold);
                 text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }

/* 칩 — 회색 테두리 알약, 고른 것은 검정 */
.exui .ex-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--radius-full);
                 border: 1px solid var(--border); background: var(--card-bg); color: var(--text-main);
                 font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; font-family: inherit; }
.exui .ex-chip:hover { border-color: var(--text-muted); }
.exui .ex-chip.on, .exui .ex-chip[aria-pressed="true"] { background: var(--text-main); color: var(--bg); border-color: var(--text-main); }

/* 안내 상자 — 회색 면 하나 */
.exui .ex-note { padding: 16px 18px; border-radius: var(--radius-xl); background: var(--bg-secondary);
                 font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }
.exui .ex-note b { color: var(--text-main); }
.exui .ex-note a { text-decoration: underline; }

/* 카드 */
.exui .ex-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-2xl); }

.exui .material-symbols-outlined { font-size: 20px; }
