/* =========================================
   리카수니 자료실 - 스타일
   ========================================= */
:root {
  --navy: #1e3a8a;
  --navy-d: #172554;
  --gold: #FFC857;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #16a34a;
  --warn: #b45309;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
/* 전체 글씨 크기: 기본 16px → 18px (모바일 17px). 모든 글씨가 rem 기준이라 함께 커집니다 */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
@media (max-width: 640px) { html { font-size: 106.25%; } .brand { white-space: nowrap; font-size: 1.05rem; } .hdr-cta { font-size: .78rem; padding: 6px 10px; } }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; }

/* 상단 바 */
.top { background: linear-gradient(135deg, var(--navy-d), var(--navy)); color: #fff; }
.top-in {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: #fff; }
.brand b { color: var(--gold); }
.auth { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.avatar { width: 28px; height: 28px; border-radius: 50%; }

/* 본문 */
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 60px; }
.hero { margin: 6px 0 18px; }
.hero h1 { font-size: 1.5rem; margin: 0 0 6px; color: var(--navy-d); }
.hero p { margin: 0; color: var(--muted); }
h2 { font-size: 1.15rem; margin: 0 0 10px; color: var(--navy-d); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; margin-bottom: 14px;
}
.card.mission { border: 2px solid var(--gold); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 10px 16px;
  font-weight: 700; font-size: .95rem; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--navy-d); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 소셜 로그인 버튼 */
.login-btns { display: grid; gap: 10px; max-width: 320px; margin-top: 12px; }
.btn-kakao { background: #FEE500; color: #191919; padding: 12px 16px; }
.btn-google { background: #fff; color: #1f2937; border: 1.5px solid #d1d5db; padding: 12px 16px; }
.btn-kakao .ico, .btn-google .ico { font-size: 1rem; }
.btn-google .ico.g { font-weight: 800; color: #4285F4; }

/* 로그인 선택 창 */
.modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.modal-box {
  position: relative; background: #fff; border-radius: 16px;
  padding: 26px 22px 22px; width: 100%; max-width: 360px;
}
.modal-box h2 { margin-bottom: 4px; }
.modal-box .login-btns { max-width: none; margin-top: 16px; }
.modal-x {
  position: absolute; top: 10px; right: 12px; border: 0; background: none;
  font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}

/* 진행률 */
.bar { height: 12px; background: #e8ecf5; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  border-radius: 99px; transition: width .4s;
}

/* 자료 목록 */
.list { display: grid; gap: 12px; }
.item {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; transition: border-color .2s;
}
.item:hover { border-color: var(--navy); }
.item h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy-d); }
.item p { margin: 0; color: var(--muted); font-size: .92rem; }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: #eef2ff; color: var(--navy);
}
.tag.wait { background: #fef3c7; color: var(--warn); }
.tag.ok { background: #dcfce7; color: var(--ok); }

/* 댓글 */
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment:first-child { border-top: 0; padding-top: 0; }
.comment .body { white-space: pre-wrap; margin: 4px 0 0; }
.meta { font-size: .8rem; color: var(--muted); }

/* 입력 */
textarea, input[type=text], input[type=email], input[type=number] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid var(--gold); border-color: transparent; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 10px; }
.muted { color: var(--muted); font-size: .9rem; }
.back { display: inline-block; margin-bottom: 12px; color: var(--navy); font-weight: 700; text-decoration: none; }

/* 광고 자리 (코드를 넣기 전에는 자동으로 숨김) */
/* 광고 자리를 미리 확보해 화면 밀림(CLS) 방지, 채워지지 않으면 접힘 */
.ad-slot { margin: 28px 0; text-align: center; min-height: 250px; }
.ad-slot:empty { display: none; }
/* 광고가 채워지지 않으면 빈 자리를 숨김 */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* 관리자 탭 */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 99px; padding: 6px 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.tab.on { background: var(--navy); color: #fff; }
/* 자료 요청 칸: 탭별 한 줄 안내 · 자세히 보기 · 기타 자료 종류 칩 · 나와의 채팅 안내 */
.nr-hint { margin: -4px 0 12px; font-size: .92rem; color: var(--ink, #1f2937); }
.nr-more { margin: 4px 0 8px; }
.nr-more summary { cursor: pointer; color: var(--navy); font-weight: 700; font-size: .88rem; }
.etc-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.etc-kinds .chip { cursor: pointer; font-family: inherit; }
.etc-kinds .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
#etc-name { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; min-width: 0; }
.nr-talknote { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3d48a; color: #6b4e00; font-size: .86rem; }

/* 알림 */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--navy-d); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: .9rem; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 99;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; }

footer { text-align: center; font-size: .8rem; color: var(--muted); padding: 24px 16px; }
footer a { color: var(--muted); margin: 0 6px; }

@media (max-width: 560px) {
  .auth .name { display: none; }
  .hero h1 { font-size: 1.3rem; }
}

/* =========================================
   기출 자료실 (2026-10 추가)
   ========================================= */
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.nav-in a { padding: 11px 12px; font-weight: 700; font-size: .92rem; color: var(--navy); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-in a.on, .nav-in a:hover { border-bottom-color: var(--gold); }
.nav-in .nav-g { padding: 11px 12px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--navy); background: none; border: 0; border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; }
.nav-in .nav-g.on, .nav-in .nav-g:hover { border-bottom-color: var(--gold); } .nav-g .cr { font-style: normal; font-size: .7em; margin-left: 3px; }
.nav-sub { background: #f3f6fd; border-top: 1px solid var(--line); }
.nav-sub-in { max-width: 1040px; margin: 0 auto; padding: 7px 16px; display: flex; gap: 6px; overflow-x: auto; }
.nav-sub-in a { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #d6def0; font-size: .85rem; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-sub-in a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 480px) {
  .nav-in { gap: 0; justify-content: space-between; padding: 0 8px; } .nav-in a, .nav-in .nav-g { padding: 11px 7px; font-size: .88rem; }
  .nav-sub-in { gap: 4px; padding: 7px 8px; justify-content: space-between; } .nav-sub-in a { padding: 5px 8px; font-size: .78rem; }
}

.crumb { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }
.page-h1 { font-size: 1.45rem; margin: 0 0 6px; color: var(--navy-d); line-height: 1.35; }
.lead { margin: 0 0 16px; color: var(--muted); }

.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: border-color .2s; }
.tile:hover { border-color: var(--navy); }
.tile b { display: block; font-size: 1.15rem; color: var(--navy-d); }
.tile span { font-size: .82rem; color: var(--muted); }
.tile.gold { background: linear-gradient(135deg, var(--navy-d), var(--navy)); border: 0; }
.tile.gold b { color: var(--gold); } .tile.gold span { color: #dbe3ff; }

.year { margin: 18px 0 8px; font-size: 1.05rem; color: var(--navy-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; }
.chip:hover { border-color: var(--navy); }
.chip small { font-weight: 400; color: var(--muted); margin-left: 4px; }

.info { width: 100%; border-collapse: collapse; font-size: .92rem; }
.info th, .info td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 92px; color: var(--muted); font-weight: 700; white-space: nowrap; }

.subj { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.subj:first-of-type { border-top: 0; }
.subj .nm { font-weight: 800; color: var(--navy-d); text-decoration: none; }
.subj .nm:hover { text-decoration: underline; }
.dl { display: flex; flex-wrap: wrap; gap: 6px; }
.dl a { font-size: .82rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; text-decoration: none; background: #eef2ff; color: var(--navy); }
.dl a:hover { background: var(--navy); color: #fff; }
.grp { margin: 0 0 6px; font-size: .78rem; font-weight: 800; color: var(--warn); letter-spacing: .02em; }

.file { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.file .t { font-weight: 800; color: var(--navy-d); }
.file .s { font-size: .8rem; color: var(--muted); }
.soon { padding: 12px 14px; border: 1.5px dashed #d6dbea; border-radius: 12px; color: var(--muted); font-size: .9rem; margin-bottom: 8px; background: #fbfcff; }
.soon b { color: var(--navy); }

.pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pn a { font-size: .88rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.pn a:hover { text-decoration: underline; }

.banner { display: block; text-decoration: none; background: linear-gradient(135deg, var(--navy-d), var(--navy)); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.banner b { color: var(--gold); font-size: 1.05rem; }
.banner p { margin: 4px 0 0; color: #dbe3ff; font-size: .9rem; }

.reply { margin: 8px 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--gold); background: #fffaf0; border-radius: 0 8px 8px 0; font-size: .9rem; white-space: pre-wrap; }
.reply b { color: var(--warn); }
.biz { font-size: .76rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.hero { background: linear-gradient(135deg, var(--navy-d), var(--navy)); color: #fff; border-radius: 16px; padding: 24px 20px; margin-bottom: 14px; }
.hero h1 { margin: 0 0 6px; font-size: 1.5rem; color: #fff; }
.hero p { margin: 0; color: #dbe3ff; }

/* 등급컷 표 · 시험 요약 */
.sum { margin: 6px 0 0; padding-left: 1.2em; }
.sum li { margin: 4px 0; }
.cut-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cut { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: center; min-width: 480px; }
.cut th, .cut td { border-bottom: 1px solid var(--line); padding: 8px 6px; }
.cut thead th { background: #eef2ff; color: var(--navy-d); font-size: .82rem; }
.cut tbody th { text-align: left; white-space: nowrap; color: var(--navy-d); }
.cut small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; min-width: 180px; }
.info-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 16px; }

/* 분석노트 요청 강조 (댓글과 구분) */
.top-r { display: flex; align-items: center; gap: 8px; }
.hdr-cta { background: #fff; color: var(--navy-d); font-weight: 800; font-size: .85rem; text-decoration: none; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.hdr-cta:hover { background: var(--gold); }
.banner.note { background: linear-gradient(135deg, #b45309, #d97706); }
.banner.note b { color: #fff; }
.banner.note p { color: #fff7e6; }
#comments h2 { border-left: 4px solid var(--navy); padding-left: 10px; }

/* 부교재 요청방 */
.btn-kakao { background: #fee500; color: #191600; }
.banner.book { background: linear-gradient(135deg, #0f6b6e, #157e80); }
.banner.book b { color: #fff; } .banner.book p { color: #e3f6f5; }
.book-top { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 4px; }
.book-info { min-width: 0; }
.book-info > p { margin: 8px 0 0; }
.book-cover { width: 150px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px rgba(20, 35, 70, .18); background: #fff; border: 1px solid #e3e8f0; }
.book-cover img { display: block; width: 100%; height: auto; }
.book-cover:has(img) { aspect-ratio: auto; }
.book-cover.ph { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px; background: linear-gradient(160deg, #1e3a8a, #157e80); color: #fff; }
.book-cover.ph b { font-size: 1.02rem; line-height: 1.35; word-break: keep-all; }
.book-cover.ph .ph-pub { font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #ffc857; }
.book-cover.ph .ph-who { font-size: .75rem; opacity: .85; }
@media (max-width: 640px) { .book-top { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .book-cover { width: 96px; } .book-cover.ph { padding: 10px 8px; } .book-cover.ph b { font-size: .82rem; } }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.shelf-b { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border: 2px solid transparent; border-radius: 12px; background: #fff; font: inherit; color: var(--text); cursor: pointer; text-align: center; }
.shelf-b .book-cover { width: 100%; max-width: 170px; box-shadow: 0 4px 12px rgba(20, 35, 70, .18); }
.shelf-b .book-cover.ph { padding: 12px 10px; } .shelf-b .book-cover.ph b { font-size: .95rem; } .shelf-b .book-cover.ph span { font-size: .7rem; }
.shelf-b > span { font-size: .9rem; font-weight: 700; line-height: 1.3; word-break: keep-all; }
.shelf-b em { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.shelf-b em.ready { background: #e7f6ec; color: #15803d; }
.shelf-b:hover { border-color: #c9d4ee; } .shelf-b.on { border-color: var(--navy); background: #f3f6ff; }
@media (max-width: 640px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .shelf-b { padding: 8px 4px; } .shelf-b > span { font-size: .76rem; } .shelf-b em { font-size: .64rem; padding: 2px 6px; } .shelf-b .book-cover.ph b { font-size: .74rem; } }
.card.book .book-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.card.book .book-hd h2 { margin: 0; }
.card.book .tag { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1fa; color: var(--navy); }
.book-meta { margin: 8px 0 12px; padding-left: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.book-meta li { margin: 2px 0; }
.book-use { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.book-use div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f7f9fb; }
.book-use b { display: block; color: var(--navy-d); } .book-use span { font-size: .85rem; color: var(--muted); }
.book-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.book-btns .btn { flex: 1 1 180px; text-align: center; }
.book-soon { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3d48a; color: #6b4e00; font-size: .9rem; }
.banner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.banner-row .banner { margin: 0; height: 100%; }
@media (max-width: 640px) { .banner-row { grid-template-columns: 1fr; } }
.var { margin: 6px 0 12px; padding: 12px; border-radius: 10px; background: #f3f6ff; border: 1px solid #d5ddf5; }
.var p { margin: 4px 0 8px; }

/* 홈: 한눈에 보는 이용 메뉴 */
.grid4 + .card { margin-top: 14px; }
.sec-h { font-size: 1.1rem; margin: 22px 0 10px; color: var(--navy-d); }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc-c { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 14px; text-decoration: none; color: #fff; min-height: 168px; }
.svc-c i { font-style: normal; font-size: 1.6rem; line-height: 1; }
.svc-c b { font-size: 1.08rem; margin-top: 6px; }
.svc-c span { font-size: .86rem; opacity: .92; line-height: 1.45; flex: 1; }
.svc-c em { font-style: normal; font-size: .8rem; font-weight: 700; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.2); }
.svc-c:hover { filter: brightness(1.06); }
.svc-c.c1 { background: linear-gradient(135deg, var(--navy-d), var(--navy)); }
.svc-c.c2 { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.svc-c.c3 { background: linear-gradient(135deg, #b45309, #d97706); }
.svc-c.c4 { background: linear-gradient(135deg, #0f6b6e, #157e80); }
@media (max-width: 860px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-c { min-height: 150px; } }
.chip small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }

.svc-c.c5 { background: linear-gradient(135deg, #15803d, #22c55e); }
.hero p b { color: var(--gold); }
/* 영어 페이지 번호 버튼 */
.en-sec h2 small, .card h2 small { font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.nbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.nb { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-weight: 800; font-size: .92rem; text-decoration: none; }
.nb.open { background: var(--navy); color: #fff; }
.nb.req { background: #f59e0b; color: #fff; position: relative; }
.nb.req::after { content: "NEW"; position: absolute; top: -6px; right: -4px; font-size: .58rem; background: #dc2626; color: #fff; border-radius: 999px; padding: 1px 5px; }
.nb.var { background: #7c3aed; color: #fff; }
.nb.off { background: #eef1f6; color: #a0a8bb; border: 1px dashed #cdd3e2; }
a.nb:hover { filter: brightness(1.12); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; min-height: 0; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.legend i.nb.req::after { content: none; }
.hot { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; border: 1px solid #f3d48a; color: #7a4b00; font-size: .9rem; }
.en-t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.en-t th, .en-t td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.en-t th:first-child, .en-t td:first-child { text-align: left; }
.en-t .ok { color: #15803d; font-weight: 700; } .en-t .no { color: #c0c6d4; }
.g-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; margin: 0 0 12px; padding: 8px 0; background: var(--bg, #f5f7fb); }
.g-tab { flex: 1; padding: 11px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; }
.g-tab small { margin-left: 6px; font-weight: 600; font-size: .78rem; opacity: .7; }
.g-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* 수업자료: 연도 탭 + 회차 버튼 */
.y-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; margin: 0 0 10px; padding: 8px 0; background: var(--bg, #f5f7fb); overflow-x: auto; }
.y-tab { flex: 1 0 auto; min-width: 88px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; }
.y-tab small { margin-left: 6px; font-weight: 600; font-size: .78rem; opacity: .7; }
.y-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.s-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.s-tab { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; }
.s-tab small { margin-left: 5px; font-weight: 500; font-size: .76rem; color: var(--muted); }
.s-tab.on { background: #fff7e6; border-color: #f3a712; }
.s-tab[hidden], .p-panel[hidden] { display: none; }
.bw { margin: 0 0 14px; padding: 12px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.bw .chips { margin-top: 8px; }

/* 준비된 요청 자료 알림 */
.ready-box { margin: 12px 0 4px; padding: 14px 16px; border-radius: 12px; background: #ecfdf3; border: 1.5px solid #86efac; }
.ready-box > b { color: #166534; font-size: 1.02rem; }
.ready-box ul { list-style: none; margin: 8px 0 4px; padding: 0; }
.ready-box li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #d1fae5; }
.ready-box li:last-child { border-bottom: 0; }
.ready-box li span { font-weight: 700; }
.making-box { margin: 10px 0 4px; padding: 12px 16px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.making-box > b { color: #92400e; } .making-box ul { margin: 6px 0; padding-left: 18px; } .making-box li { padding: 2px 0; }
.push-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #eef2ff; border: 1px solid #c7d2fe; font-size: .92rem; font-weight: 700; color: #1e3a8a; }
.my-notes { border: 2px solid #86efac; } .my-notes h2 { margin: 0 0 6px; font-size: 1.05rem; } .my-notes .mn-ready { margin: 0 0 8px; } .my-notes p { margin: 4px 0; }

/* 최근 댓글 (첫 화면) — 눈에 띄게 */
#recent-cmt { margin: 26px 0; border-radius: 16px; overflow: hidden; border: 2px solid #1e3a8a; background: #fff; box-shadow: 0 8px 24px rgba(30, 58, 138, .12); }
#recent-cmt .rc-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: linear-gradient(135deg, #172554, #1e3a8a); color: #fff; }
#recent-cmt .rc-title { margin: 0; color: #fff; font-size: 1.12rem; font-weight: 800; }
/* 자동광고가 머리 줄 안에 들어와도 제목을 밀지 않게: 광고는 맨 위 한 줄을 따로 차지 */
#recent-cmt .rc-head { flex-wrap: wrap; }
#recent-cmt .rc-head > :not(.rc-live):not(.rc-title):not(.rc-n) { flex: 0 0 100%; order: -1; max-width: 100%; }
#recent-cmt .rc-n { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: #ffc857; color: #172554; font-size: .82rem; font-weight: 800; }
.rc-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .78rem; font-weight: 800; }
.rc-live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: rcpulse 1.6s infinite; }
@keyframes rcpulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.rc-body { padding: 4px 20px 10px; }
.rc-tip { margin: 12px 0 4px; padding: 8px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3d48a; color: #6b4e00; font-size: .82rem; }
.rc-login { display: inline-block; margin: 0 0 0 8px; padding: 3px 10px; border: 0; border-radius: 6px; background: #fee500; color: #191919; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; vertical-align: 1px; }
.rc-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rc-item:last-child { border-bottom: 0; }
.rc-av { flex: none; width: 34px; height: 34px; font-size: .85rem; border-radius: 50%; background: #9aa5ba; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rc-item.own .rc-av { background: #1e3a8a; }
.rc-bd { flex: 1; min-width: 0; }
.rc-nm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rc-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #ffc857; color: #4a3000; font-size: .72rem; font-weight: 800; }
.rc-tx { margin: 4px 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.rc-item.own .rc-tx { padding: 10px 12px; border-radius: 10px; background: #f3f6ff; }
.rc-rp { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #f3f6ff; font-size: .84rem; }
.rc-rp b { color: var(--navy); margin-right: 4px; }
.rc-pg { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 8px; background: #eef1f6; font-size: .78rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.rc-pg:hover { background: #1e3a8a; color: #fff; }
@media (max-width: 640px) { #recent-cmt .rc-head { padding: 14px 16px; } .rc-body { padding: 4px 16px 8px; } }
#recent-cmt .rc-n:empty { display: none; }

/* 최근 자료 요청: 진행·완료 구분 없이 한 상자, 넓은 화면은 2열 */
.rq-col { margin: 12px 0 4px; min-width: 0; border: 1px solid #f3d48a; border-radius: 12px; background: #fffbf0; padding: 10px 12px; }
.rq-col.ok { border-color: #b7e4c7; background: #f2fbf5; }
.rq-col h3 { margin: 0 0 6px; font-size: .9rem; color: #7a4b00; display: flex; align-items: center; gap: 6px; }
.rq-col.ok h3 { color: #166534; }
.rq-col h3 span { padding: 1px 8px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: .74rem; }
.rq-col.ok h3 span { background: #16a34a; }
.rq-col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
@media (max-width: 640px) { .rq-col ul { grid-template-columns: 1fr; } }
.rq-col ul.open, .rc-cm.open { max-height: 330px; overflow-y: auto; }
.rq { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed #ead9ad; font-size: .84rem; }
.rq-col.ok .rq { border-top-color: #cfe9d8; }
.rq:first-child { border-top: 0; }
@media (min-width: 641px) { .rq:nth-child(2) { border-top: 0; } }
.rq-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.rq-tx b { font-weight: 700; overflow-wrap: anywhere; }
.rq-tx .meta { font-size: .74rem; }
.rq-st { flex: none; display: inline-block; padding: 2px 7px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: .7rem; font-weight: 800; }
.rq.ok .rq-st, .rq-st.ok { background: #16a34a; }
.rq.rd .rq-st, .rq-st.rd { background: #2563eb; }
.rq.rd .rq-go { border-color: #93b4f5; color: #1d4ed8; }
.rq-go { flex: none; padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid #e5d3a1; font-size: .74rem; font-weight: 700; color: #7a4b00; text-decoration: none; }
.rq.ok .rq-go { border-color: #a7dcb8; color: #166534; }
.rq-empty { padding: 6px 0; font-size: .8rem; color: #8a93a8; }
.rc-sub { margin: 14px 0 0; font-size: .95rem; color: var(--navy); }
.rc-more { display: block; width: 100%; margin: 6px 0 4px; padding: 6px; border: 0; border-radius: 8px; background: rgba(30,58,138,.06); color: var(--navy); font-size: .8rem; font-weight: 700; cursor: pointer; }
.rc-more:hover { background: rgba(30,58,138,.12); }
#recent-cmt .rc-n { white-space: nowrap; }
@media (max-width: 640px) { #recent-cmt .rc-title { font-size: 1rem; } #recent-cmt .rc-head { gap: 8px; } .rc-live { padding: 3px 8px; } }
.rq-col h3 small { margin-left: auto; font-size: .72rem; font-weight: 600; color: #4b7a5c; }

/* ---------- 문항별 해설 ---------- */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 6px; }
.plist a { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; background: #fff; }
.plist a:hover { border-color: #1e3a8a; background: #f6f8ff; }
.plist a b { flex: none; font-size: .9rem; color: var(--navy); }
.plist a span { min-width: 0; font-size: .8rem; color: #5b6478; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-l { margin: -6px 0 18px; text-align: right; font-size: .9rem; }
.ans { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 6px; background: #16a34a; color: #fff; text-align: center; margin-right: 4px; }
.flow { margin: 0; padding-left: 1.2em; } .flow li { margin: 6px 0; } .flow b { color: var(--navy); margin-right: 6px; }
.ev { margin: 10px 0; padding: 12px 14px; border-left: 4px solid #ffc857; background: #fffaf0; border-radius: 0 10px 10px 0; }
.ev p { margin: 4px 0; } .en { font-family: Georgia, 'Times New Roman', serif; color: #172554; } .ko { color: #3a4152; } .ev .nt { font-size: .9rem; color: #7a4b00; }
.chs { list-style: none; margin: 0; padding: 0; }
.chs li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); } .chs li:first-child { border-top: 0; }
.chs .no { flex: none; font-size: 1.1rem; color: #8a93a8; } .chs p { margin: 2px 0; } .chs .why { font-size: .9rem; color: #5b6478; }
.chs li.ok { background: #f2fbf5; border-radius: 10px; padding: 10px; border-top-color: transparent; } .chs li.ok .no { color: #16a34a; font-weight: 800; } .chs li.ok .why { color: #166534; font-weight: 700; }
.tip { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: #eef4ff; border: 1px solid #c9dbfb; } .tip b { color: var(--navy); margin-right: 6px; }
.note { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f5d98a; } .note b { color: #8a5a00; } .note p { margin: 6px 0 4px; font-size: 1rem; color: var(--text); } .note small { color: #8a6d2f; }
.gr { padding: 10px 0; border-top: 1px dashed var(--line); } .gr:first-of-type { border-top: 0; } .gr b { color: var(--navy); } .gr p { margin: 4px 0; }
.vocab th { width: 40%; font-family: Georgia, 'Times New Roman', serif; }
.faq details { padding: 10px 0; border-top: 1px dashed var(--line); } .faq details:first-of-type { border-top: 0; } .faq summary { cursor: pointer; font-weight: 700; } .faq p { margin: 6px 0 0; }

/* 최근 자료 요청: 왼쪽 만드는 중 · 오른쪽 받을 수 있어요, 위에 학년 필터 */
.rq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 6px; }
.rq-top .rc-sub { margin: 0; }
.rq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-chip { border: 1px solid #e5d3a1; background: #fff; color: #7a4b00; border-radius: 999px; padding: 3px 11px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.rq-chip small { font-weight: 600; opacity: .7; }
.rq-chip.on { background: #7a4b00; border-color: #7a4b00; color: #fff; }
.rq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 720px) { .rq-cols { grid-template-columns: 1fr; } }
.rq-cols .rq-col { margin: 0; }
.rq-cols .rq-col ul { display: block; } /* 한 줄 목록은 grid 대신 block: 사파리에서 첫 줄이 한 글자 폭으로 찌그러지던 문제 */
.rq-cols .rq { width: 100%; }
.rq-cols .rq-tx b { overflow-wrap: break-word; }
.rq-cols .rq:nth-child(2) { border-top: 1px dashed #ead9ad; }
.rq-col.rd { border-color: #bcd0fa; background: #f3f7ff; }
.rq-col.rd h3 { color: #1d4ed8; }
.rq-col.rd h3 span { background: #2563eb; }
.rq-col.rd .rq { border-top-color: #d3e0fb; }
.rq-cols .rq-col.ok .rq:nth-child(2) { border-top-color: #cfe9d8; }
.rq-cols .rq-col.rd .rq:nth-child(2) { border-top-color: #d3e0fb; }

/* 소통하기: 블로그 위젯처럼 '자료 요청 · 소통하기' 한 상자 안 아래쪽 (#talk.tk-in) */
#recent-cmt .rc-ad { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed #e3e7ef; }  /* 첫 화면 '자료 요청 · 소통하기' 상자 안, 소통하기 바로 위 직접 광고 (2026-11-07 원장님 요청) */
#talk.tk-in { margin: 18px 0 4px; border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: transparent; }
.tk-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.tk-h b { font-size: 1rem; color: var(--navy); } .tk-h span { font-size: .82rem; color: var(--muted); }
/* 소통하기 게시판 (예전: 첫 화면 '자료 요청' 아래 독립 상자) */
#talk { margin: 26px 0; border-radius: 16px; overflow: hidden; border: 2px solid #1e3a8a; background: #fff; box-shadow: 0 8px 24px rgba(30, 58, 138, .12); }
#talk .rc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; background: linear-gradient(135deg, #172554, #1e3a8a); color: #fff; }
#talk .rc-head > :not(.rc-live):not(.rc-title):not(.tk-sub) { flex: 0 0 100%; order: -1; max-width: 100%; }
#talk .rc-title { margin: 0; color: #fff; font-size: 1.12rem; font-weight: 800; }
#talk .tk-sub { font-size: .82rem; color: #c7d2fe; }
.tk-form { margin: 14px 0 6px; }
.tk-form textarea { width: 100%; min-height: 84px; box-sizing: border-box; }
.tk-bar { flex-wrap: wrap; gap: 8px; }
.tk-secret { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; cursor: pointer; }
.tk-note { margin: 6px 0 0; }
.tk-login { margin: 12px 0 8px; }
.tk-list { margin-top: 8px; }
.tk-item { padding: 12px 0; border-top: 1px solid var(--line); }
.tk-item:first-child { border-top: 0; }
.tk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; }
.tk-st { padding: 2px 8px; border-radius: 6px; background: #e5e7eb; color: #4b5563; font-size: .72rem; font-weight: 800; }
.tk-st.ok { background: #16a34a; color: #fff; }
.tk-mine { padding: 1px 7px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .72rem; font-weight: 700; }
.tk-lock { font-size: .76rem; color: #64748b; font-weight: 700; }
.tk-tx { margin: 6px 0 0; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-tx.tk-hid { color: #94a3b8; font-style: italic; }
.tk-item.own .tk-tx { padding: 10px 12px; border-radius: 10px; background: #f3f6ff; }
.tk-rp { margin: 8px 0 0 14px; padding: 10px 12px; border-left: 3px solid #1e3a8a; border-radius: 0 10px 10px 0; background: #f3f6ff; font-size: .9rem; }
.tk-rp b { color: var(--navy); margin-right: 6px; }
.tk-rp p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { #talk .rc-head { padding: 14px 16px; } #talk .rc-title { font-size: 1rem; } .tk-rp { margin-left: 6px; } }
.tk-item.pin { margin: 6px 0; padding: 12px 14px; border: 1px solid #f3d48a; border-radius: 12px; background: #fffbf0; }
.tk-item.pin + .tk-item { border-top: 0; }
.tk-pin { padding: 2px 8px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: .72rem; font-weight: 800; }
.tk-item.pin.own .tk-tx { background: #fff; }
.tk-pbtn { margin-left: auto; padding: 2px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #475569; font-size: .72rem; font-weight: 700; cursor: pointer; }

/* 새 자료 알림 버튼 (push.js) */
.push-ic { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 99px; font-size: 1rem; line-height: 1; cursor: pointer; padding: 0; flex: none; }
.push-ic:hover { background: rgba(255,255,255,.28); }
.push-ic.on { background: var(--gold); }
.push-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; box-sizing: border-box; margin: 0 0 18px; padding: 12px 16px; border: 1px solid #f1d58a; border-radius: 12px; background: #fff8e6; color: var(--navy-d); font: inherit; text-align: left; cursor: pointer; }
.push-bar .pt { font-weight: 800; }
.push-bar small { color: var(--muted); flex: 1 1 220px; }
.push-bar.on { background: #eef7ee; border-color: #b9dcb9; }
.push-bar.on small { display: none; }
.push-wrap { position: relative; margin: 0 0 18px; }
.push-wrap .push-bar { margin: 0; }  /* 알림 이용법은 처음부터 펼쳐 두고 그 아래 광고 (2026-11-04) — 누르는 칸 바로 밑엔 광고를 두지 않음 */
.push-help summary { position: absolute; top: 12px; right: 12px; list-style: none; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--navy-d); background: #fff; border: 1px solid #d9dee8; border-radius: 99px; padding: 3px 10px; line-height: 1.4; }
.push-help summary::-webkit-details-marker { display: none; }
.push-help summary::after { content: ' ▾'; }
.push-help[open] summary::after { content: ' ▴'; }
.push-help { box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden; margin: 8px 0 0; padding: 12px 16px; background: #fff; border: 1px solid #e3e7ef; border-radius: 12px; }  /* 설명 + 광고가 한 네모 안 (2026-11-04) */
.push-help ol { margin: 0; padding: 0 0 0 18px; font-size: .92rem; line-height: 1.6; }
.push-help .ad-slot, .my-notes .ad-slot, .req-box > .ad-slot, .card > .ad-slot { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed #e3e7ef; }  /* 광고는 네모칸 안 맨 아래에만 */
.my-notes, .req-box { overflow: hidden; }
.push-help li + li { margin-top: 4px; }
@media (max-width: 640px) { .top-r { gap: 6px; } .push-ic { width: 28px; height: 28px; font-size: .85rem; } }
@media (max-width: 400px) { .brand { font-size: .95rem; } .hdr-cta { padding: 6px 8px; } .top-r { gap: 4px; } }

/* 첫 화면 '최근 알림' (push.js) */
#push-news { margin: -6px 0 18px; padding: 14px 18px; }
#push-news h2 { font-size: 1rem; margin: 0 0 6px; }
#push-news ul { list-style: none; margin: 0; padding: 0; }
#push-news li + li { border-top: 1px dashed var(--line); }
#push-news a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 0; color: inherit; text-decoration: none; }
#push-news a:hover b { text-decoration: underline; }
#push-news .pn-d { color: var(--muted); font-size: .82rem; min-width: 34px; }
#push-news .pn-b { color: var(--muted); font-size: .88rem; flex: 1 1 200px; }

/* 학교별 내신 분석 (코코스 학원생 전용) */
.ns-lock { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: #fff7e6; border: 1px solid #f3d48a; color: #7a4b00; font-size: .78rem; font-weight: 800; vertical-align: 3px; }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ns-school { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; }
.ns-school:hover { border-color: var(--navy); }
.ns-school b { font-size: 1.1rem; }
.ns-school span { font-size: .8rem; color: var(--muted); }
.ns-school em { align-self: flex-start; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: #eef1f6; color: #6b7280; font-style: normal; font-size: .74rem; font-weight: 700; }
.ns-school em.ok { background: #dcfce7; color: #166534; }
.ns-exams { list-style: none; margin: 0; padding: 0; }
.ns-exams li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.ns-cocos { background: linear-gradient(135deg, #fffbeb, #fff7e6); border-color: #f3d48a; }
.btn-cocos { display: inline-block; padding: 9px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }
.ns-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; text-decoration: none; }
.ns-banner b { font-size: 1.05rem; } .ns-banner b small { margin-left: 6px; font-size: .78rem; opacity: .9; }
.ns-banner span { flex: 1; font-size: .86rem; opacity: .95; } .ns-banner em { font-style: normal; font-weight: 800; font-size: .86rem; }
.ns-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ns-form label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--navy); }
.ns-form input, .ns-form select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 110px; }
.ok-line { color: #166534; font-weight: 800; }
.ns-post { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ns-post summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; color: var(--navy); }
.ns-body { margin-top: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.ns-body img { max-width: 100%; height: auto; }
.ns-exam { padding: 12px 0; border-top: 1px solid var(--line); }
.ns-exam:first-of-type { border-top: 0; }
.ns-exam-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ns-free { margin: 10px 0 4px; font-weight: 800; color: #0f766e; font-size: .9rem; }
.ns-exams a { color: var(--navy); text-decoration: none; } .ns-exams a:hover { text-decoration: underline; }
.ns-open { flex: none; padding: 2px 8px; border-radius: 6px; background: #ccfbf1; color: #0f766e; font-size: .74rem; font-weight: 800; }
.ns-rest { margin: 8px 0 0; color: #7a4b00; font-size: .88rem; }
.ns-pairs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ns-pairs th, .ns-pairs td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ns-pairs td:nth-child(3), .ns-pairs th:nth-child(3) { text-align: center; white-space: nowrap; }
.ns-pairs tr.bad td { background: #fef2f2; }
.ns-cta { border-color: #99f6e4; background: #f0fdfa; }
.nq-pick { margin: 10px 0; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); }
.nq-nums { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.nq-num { min-width: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.nq-num.on { background: #dc2626; border-color: #dc2626; color: #fff; }
.nq { margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nq[hidden] { display: none; }
.nq-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.nq-h b { font-size: 1.2rem; color: var(--navy); } .nq-ans { margin-left: auto; padding: 2px 10px; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 800; font-size: .86rem; }
.nq h4 { margin: 14px 0 6px; color: var(--navy); font-size: .98rem; }
.nq-where { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; border: 1px solid #f3d48a; }
.nq-ch { width: 100%; border-collapse: collapse; font-size: .92rem; }
.nq-ch td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; } .nq-ch td:nth-child(2) { text-align: center; white-space: nowrap; }
.nq-ch tr.bad td { background: #fef2f2; }
.nq-checks li { margin: 6px 0; } .nq-checks details { margin: 4px 0 0; color: #166534; } .nq-checks summary { cursor: pointer; color: var(--muted); font-size: .86rem; }
.nq-next { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f0fdfa; border: 1px solid #99f6e4; }
@media print {
  body.ns-printing header, body.ns-printing nav, body.ns-printing footer, body.ns-printing .crumb, body.ns-printing .card:not(.ns-member), body.ns-printing .no-print, body.ns-printing .ad-slot, body.ns-printing .page-h1, body.ns-printing .lead, body.ns-printing .ok-line { display: none !important; }
  body.ns-printing .ns-member { border: 0; box-shadow: none; }
  body.ns-printing .nq { break-inside: avoid; }
}
.nq-model { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #eef4ff; border: 1px solid #c9dbfb; font-weight: 600; }
.nq-model b { color: var(--navy); margin-right: 6px; }
.ns-sum { padding: 4px 0 8px; } .ns-sum h3 { color: var(--navy); } .ns-sum h4 { margin: 14px 0 6px; color: var(--navy); } .ns-sum li { margin: 4px 0; }
.ns-sum .nq-ch td { text-align: left !important; } .ns-sum .nq-ch td:first-child { white-space: nowrap; }
 .ns-sum .nq-ch td:nth-child(2) { white-space: normal; }
 .ns-sum .nq-ch td:nth-child(3) { min-width: 7em; color: var(--muted); font-size: .86rem; }
.ns-list { margin: 4px 0 0; padding-left: 0; list-style: none; }
.ns-list li { padding: 9px 0 9px 12px; border-top: 1px dashed var(--line); border-left: 3px solid #c9dbfb; margin: 0 0 4px; line-height: 1.65; }
.ns-list li:first-child { border-top: 0; }
.mk { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 6px; font-weight: 800; text-align: center; }
.mk.ok { background: #dcfce7; color: #166534; } .mk.ng { background: #fee2e2; color: #b91c1c; }

/* 학년별 부교재 쿠팡 상자 */
.cp-box { border-color: var(--line); background: #fff; }
.cp-box h2 { color: var(--navy-d); font-size: 1rem; }
.cp-dis { font-size: .78rem; color: #6b7280; margin: 0 0 8px; }
.cp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 0 0 8px; }
.cp-list a { display: block; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid #d6dcea; color: var(--navy-d); text-decoration: none; line-height: 1.35; }
.cp-list a:hover { background: #f4f6fb; }
.cp-list b { display: block; font-size: .9rem; }
.cp-list small { display: block; font-size: .76rem; color: #6b7280; margin-top: 2px; }
.cp-print { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.cp-print span { font-size: .82rem; font-weight: 700; color: #4b5563; margin-right: 2px; }
.cp-print a { font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid #d6dcea; background: #fff; color: var(--navy-d); text-decoration: none; }
.cp-print a:hover { background: #f4f6fb; }

/* 표지가 보이는 쿠팡 구매 카드 (수험생 준비물 가이드 · 교재 소식) */
.cp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 8px 0; text-align: left; }
.cp-cards.one { grid-template-columns: minmax(0, 340px); justify-content: center; }
.cp-card { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px; border: 1px solid #f5c2b8; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; box-sizing: border-box; }
.cp-card:hover { border-color: #e8331f; }
.cp-card img { flex: none; width: 64px; height: 84px; object-fit: contain; border-radius: 4px; background: #f8fafc; }
.cp-card span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-card b { font-size: .92rem; line-height: 1.35; color: var(--navy-d); }
.cp-card small { font-size: .76rem; color: var(--muted); }
.cp-card i { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: .78rem; font-weight: 700; color: #fff; background: #e8331f; border-radius: 6px; padding: 3px 10px; }

/* 분석노트 미리보기 (첫 화면 '받을 수 있어요' 칸의 [미리보기]) */
.rq-pv { cursor: pointer; margin-right: 4px; }
.pv-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pv-box { background: #fff; border-radius: 14px; max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; padding: 14px 16px 16px; box-sizing: border-box; }
.pv-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--navy-d); }
.pv-x { border: 0; background: #f1f5f9; border-radius: 8px; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; }
.pv-box img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.pv-box .meta { margin: 10px 0; }
.pv-go { display: block; text-align: center; padding: 11px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }

/* 첫 화면 '최근 알림': 최근 1개만, 나머지는 펼쳐서 */
#push-news:not(.open) li:nth-child(n+2) { display: none; }
.pn-more { margin-top: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 700; color: var(--navy); cursor: pointer; }

/* 카톡 받기 동의가 꺼진 학생에게 보이는 안내 (분석노트 요청 칸) */
.talk-warn { border: 1px solid #f3c47a; background: #fff8eb; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.talk-warn b:first-child { color: #9a3412; }
.talk-warn p { margin: 6px 0; }
/* 첫 화면 자료 요청 상자 (블로그 홈 위젯과 같은 구성): 버튼을 누르면 /notes/ 요청 칸의 그 탭으로 */
.rq-box { margin: 0 0 18px; padding: 20px; border-radius: 16px; background: #fff; border: 1.5px solid #f3d48a; }
.rq-box-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.rq-box-h b { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.rq-box-h span { font-size: .92rem; color: var(--muted); }
.rq-box-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rqb { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 84px; padding: 14px 16px; border-radius: 12px; text-decoration: none; }
.rqb b { font-size: 1.06rem; font-weight: 800; line-height: 1.3; word-break: keep-all; }
.rqb small { font-size: .85rem; line-height: 1.4; word-break: keep-all; opacity: .9; }
.rqb:hover { filter: brightness(1.05); }
.rqb.r1 { background: #fee500; color: #191600; }
.rqb.r2 { background: #1e3a8a; color: #fff; }
.rqb.r3 { background: #fff4dc; color: #7a4b00; border: 1px solid #f3d48a; }
.rq-box-ft { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.rq-box-ft a { color: var(--navy); font-weight: 700; }
@media (max-width: 760px) { .rq-box { padding: 16px 14px; } .rq-box-btns { grid-template-columns: minmax(0, 1fr); gap: 8px; } .rqb { min-height: 64px; } }


/* 원장님 분석노트 그림 (문항 해설 페이지) */
.nv .nv-pg { display: block; margin: 10px 0 4px; border: 1px solid #e3e6ee; border-radius: 8px; overflow: hidden; background: #fff; }
.nv .nv-pg img { display: block; width: 100%; height: auto; }
.nv-src { margin: 10px 0 4px; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.nv-text { margin: 8px 0; } .nv-text summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .92rem; }
.nv-text p { font-size: .92rem; line-height: 1.75; margin: 8px 0; }
.rq-go.rq-eb, .rq.rd .rq-go.rq-eb, .rq.ok .rq-go.rq-eb { background: #1e3a8a; border-color: #1e3a8a; color: #fff; font-weight: 800; }
.eb-b { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #1e3a8a; color: #fff; font-size: .72rem; font-weight: 800; font-style: normal; vertical-align: 1px; }

/* 내 자료함 · 받은 뒤 이어서 공부하기 */
.got-box { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: #f1f5ff; border: 1.5px solid #c7d2fe; }
.got-box > b { color: #1e3a8a; }
.got-box ul { list-style: none; margin: 6px 0 4px; padding: 0; }
.got-box li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid #e0e7ff; }
.got-box li:last-child { border-bottom: 0; }
.got-go { display: flex; gap: 6px; flex-wrap: wrap; }
.next-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #93c5fd; }
.next-box p { margin: 6px 0 0; }
