/* 매스원 수학학원 홈페이지 — 모바일 우선
   확인 폭: 360 / 768 / 1200px
   색: 보라 #632EAA, 청록 #57ABBA (학원 소개 자료 인쇄물에서 뽑음) */

:root {
  --brand: #632EAA;      /* 학원 소개 자료 인쇄물 보라 */
  --brand-deep: #45207A;
  --brand-ink: #22133D;
  --teal: #57ABBA;       /* 매스원 주니어 청록 */
  --teal-soft: #E6F4F6;
  --accent: #D9C8F2;
  /* 메인 첫 화면 색 — 여기 값만 바꾸면 첫 화면 보라색이 바뀐다 */
  --hero-1: #4A2390;
  --hero-2: #632EAA;
  --hero-3: #45207A;
  --hero-glow: rgba(216, 198, 255, .35);
  --hero-glow2: rgba(87, 171, 186, .35);
  --accent-soft: #F4EEFB;
  --bg: #FFFFFF;
  --bg-tint: #F8F6FD;
  --line: #E6E0F3;
  --text: #221D2E;
  --muted: #615A72;
  --kakao: #FEE500;
  --todo: #FFF1B8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30, 18, 64, .06), 0 8px 24px rgba(30, 18, 64, .06);
  --gutter: 20px;
  --header-h: 64px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word;
  padding-bottom: 72px; /* 모바일 하단 고정 바 자리 */
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--brand-ink); letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #8E6CE0; outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
/* 좁은 본문도 왼쪽 선은 다른 섹션과 맞추고, 글 폭만 860px로 제한 */
.narrow > * { max-width: 860px; }
mark.todo { background: var(--todo); color: #6B4E00; padding: 1px 6px; border-radius: 6px; font-size: .88em; font-weight: 600; }
.todo-line { margin: 4px 0 16px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { color: var(--brand); border-color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-kakao { background: var(--kakao); color: #191600; }
.btn-naver { background: #03C75A; color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- 머리글 ---------- */
/* backdrop-filter를 쓰면 모바일 메뉴(position:fixed)가 머리글 안에 갇히므로 쓰지 않는다 */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--brand-ink); text-decoration: none; font-size: 18px; letter-spacing: -0.02em; }
.logo b { color: var(--brand); font-weight: 800; }
.menu-btn { width: 48px; height: 48px; border: 0; background: transparent; border-radius: 10px; display: grid; place-content: center; gap: 5px; cursor: pointer; margin-right: -10px; }
.menu-btn i { display: block; width: 22px; height: 2px; background: var(--brand-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.gnb { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 120px; }
.gnb.open { display: block; }
.gnb ul { list-style: none; margin: 0; padding: 0; }
.gnb > ul > li { border-bottom: 1px solid var(--line); }
.gnb a { display: flex; align-items: center; min-height: 52px; color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.gnb a[aria-current="page"] { color: var(--brand); }
.gnb .sub { padding: 0 0 10px 14px; }
.gnb .sub a { min-height: 44px; font-weight: 500; font-size: 16px; color: var(--muted); }
.gnb-cta { margin-top: 20px; width: 100%; color: #fff !important; justify-content: center; }
body.menu-open { overflow: hidden; }

/* ---------- 현재 위치 ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #B3AAC7; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, var(--hero-glow), transparent 60%),
    radial-gradient(600px 300px at -10% 110%, var(--hero-glow2), transparent 60%),
    linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 45%, var(--hero-3) 100%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  animation: heroShift 18s ease-in-out infinite alternate;
}
.hero::after { /* 모눈 무늬 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.hero-in { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: 34px; line-height: 1.25; margin-bottom: 16px; }
.slogan { font-size: 18px; color: #EDE5FF; margin-bottom: 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns .btn { flex: 1 1 140px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--brand); margin: 0 0 10px; text-transform: uppercase; }
.eyebrow-light { color: #CDEBF0; }

/* ---------- 섹션 ---------- */
.sec { padding: 56px 0; }
.sec-tight { padding: 28px 0; }
.sec-tint { background: var(--bg-tint); }
.sec-lead { color: var(--muted); max-width: 720px; }
.sec-more { margin: 28px 0 0; }
.page-head { background: linear-gradient(180deg, var(--accent-soft), #fff); padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 28px; }
.lead { font-size: 18px; color: #3D3550; max-width: 820px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin: 0; }
.page-meta span { white-space: nowrap; }
.h-sm { font-size: 17px; }
.note { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); background: var(--bg-tint); border: 1px dashed var(--line); border-radius: 12px; padding: 18px; }

/* ---------- 카드 ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: 0; color: var(--muted); }
.card-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand) !important; margin-bottom: 6px !important; }
.card-link { transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: #B9A2EF; transform: translateY(-2px); }
.card-link h3 a { color: var(--brand-ink); text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* 카드 전체 누르기 */
.more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--brand); font-size: 15px; }
.card-foot { margin-top: 10px !important; font-size: 14px; font-weight: 700; color: var(--brand) !important; }
.card-feature { background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; background: var(--todo); color: #6B4E00; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.chip-top { margin-bottom: 8px; }

/* ---------- 학습 순환 4단계 (모바일: 세로 단계) ---------- */
.cycle { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 76px; box-shadow: var(--shadow); }
.step + .step { margin-top: 28px; }
.step + .step::before { /* 세로 연결 화살표 */
  content: ""; position: absolute; left: 37px; top: -28px; width: 2px; height: 28px; background: linear-gradient(var(--accent), var(--brand));
}
.step + .step::after { content: ""; position: absolute; left: 32px; top: -9px; border: 6px solid transparent; border-top-color: var(--brand); }
.step-no { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.step h3 { font-size: 20px; margin-bottom: 4px; }
.step-short { color: #3D3550; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.tags span { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.step-how { font-size: 16px; color: var(--muted); margin: 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.cycle-loop { margin: 18px 0 0; font-weight: 700; color: var(--brand); display: flex; gap: 8px; align-items: flex-start; }
.cycle-loop span { font-size: 22px; line-height: 1.2; }

/* ---------- 소개 문단·정보표 ---------- */
.definition { font-size: 19px; line-height: 1.8; color: var(--brand-ink); font-weight: 500; background: #fff; border-left: 4px solid var(--brand); padding: 18px 20px; border-radius: 0 12px 12px 0; box-shadow: var(--shadow); }
.facts { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; }
.facts-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.facts-card > div:last-child { border-bottom: 0; }

/* ---------- 소식 목록 ---------- */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--brand-ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 4px; text-decoration: none; color: var(--text); }
.news-list a:hover .news-title { color: var(--brand); text-decoration: underline; }
.news-title { font-weight: 700; grid-column: 1 / -1; }
.news-list time { font-size: 14px; color: var(--muted); grid-row: 1; grid-column: 2; align-self: center; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #EEEAF5; color: var(--muted); justify-self: start; }
.badge-analysis { background: var(--brand); color: #fff; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq-q { font-size: 17px; margin: 0; color: var(--brand-ink); }
.faq details p { padding: 0 20px 18px; margin: 0; color: #3D3550; }

/* ---------- 연락처 ---------- */
.contact-grid { display: grid; gap: 16px; }
.contact-actions { display: grid; gap: 10px; align-content: start; }

/* ---------- 본문 글 ---------- */
.prose { padding-top: 32px; padding-bottom: 48px; }
.prose section { margin-bottom: 32px; }
.prose h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.prose-wide { padding-top: 24px; padding-bottom: 48px; }
.prose-wide > section { margin-bottom: 40px; }
.link-list { list-style: none; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; }
.link-list a::after { content: "→"; margin-left: auto; padding-left: 12px; }
.related { background: var(--bg-tint); border-radius: var(--radius); padding: 18px 20px 6px; margin-top: 32px; }
.back { margin-top: 28px; }
.placeholder { margin: 32px 0 56px; padding: 28px; border: 1px dashed #C9B8F3; border-radius: var(--radius); background: var(--bg-tint); }

/* ---------- 출처·가상 데이터 표시 ---------- */
.sources { margin: 32px 0 48px; padding: 18px 20px; border-radius: 14px; background: var(--bg-tint); border: 1px solid var(--line); font-size: 15px; }
.sources ul { margin: 0 0 8px; }
.sources p { margin: 0; color: var(--muted); }
.sample-flag { background: #FFF8DB; border: 1px solid #F2D675; color: #5C4600; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0 0 16px; }
.sample-flag b { background: #F2C230; color: #3B2D00; border-radius: 6px; padding: 1px 7px; margin-right: 6px; }
.src-line { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- 표: 모바일에서는 카드형 ---------- */
.rtable { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 16px; }
.rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rtable tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; margin-bottom: 10px; }
.rtable th, .rtable td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; text-align: left; border-bottom: 1px dashed var(--line); font-weight: 400; }
.rtable tr > :last-child { border-bottom: 0; }
.rtable th[scope="row"] { font-weight: 700; color: var(--brand-ink); }
.rtable [data-label]::before { content: attr(data-label); font-weight: 700; font-size: 14px; color: var(--muted); }
.share { display: flex; align-items: center; gap: 10px; }
.share-bar { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #8E6CE0, var(--brand)); min-width: 4px; max-width: 120px; flex: none; }
.share b { white-space: nowrap; }

/* ---------- 난이도 분포 ---------- */
.diff-bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: #eee; margin: 12px 0 14px; }
.d0 { background: #D9C8F2; } .d1 { background: #A784D6; } .d2 { background: #7344B8; } .d3 { background: #3A1A6A; }
.diff-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diff-legend li { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 2px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.diff-legend i { width: 14px; height: 14px; border-radius: 4px; grid-row: span 2; }
.diff-legend span { font-weight: 800; }
.diff-legend b { justify-self: end; }
.diff-legend em { grid-column: 2 / -1; font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- 핵심 포인트 ---------- */
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: p; }
.points li { counter-increment: p; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px 62px; position: relative; }
.points li::before { content: counter(p); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.points h3 { font-size: 18px; margin-bottom: 4px; }
.points p { margin: 0; color: #3D3550; }
.pt-item { display: inline-block; font-size: 13px; background: var(--accent-soft); color: var(--brand); padding: 2px 8px; border-radius: 6px; margin-right: 4px; vertical-align: 2px; }
.summary { background: var(--bg-tint); border-radius: var(--radius); padding: 18px 20px; }

/* ---------- 고교 가이드·내신 분석 ---------- */
.region-nav ul { list-style: none; padding: 0; margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.region-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--brand); text-decoration: none; font-weight: 700; }
.region { padding: 28px 0 8px; }
.region > h2 { padding-bottom: 10px; border-bottom: 2px solid var(--brand-ink); }
.school-grid { display: grid; gap: 16px; margin-top: 18px; }
.school-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.school-card h3 { font-size: 21px; margin-bottom: 2px; }
.school-sub { color: var(--muted); font-size: 15px; }
.school-card h4 { margin-top: 18px; }
.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; }
.school-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-weight: 700; }
.school-links a { display: inline-flex; align-items: center; min-height: 44px; }
.switch { margin: 20px 0; font-weight: 700; }
.switch a { display: inline-flex; min-height: 44px; align-items: center; }
.exam-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.exam-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.exam-list a:hover { border-color: #B9A2EF; }
.exam-t { display: block; font-weight: 800; color: var(--brand-ink); }
.exam-m { display: block; font-size: 15px; color: var(--muted); }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--brand-ink); color: #CFC6E6; font-size: 15px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer mark.todo { background: rgba(255, 241, 184, .2); color: #FFE48A; }
.foot { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.foot-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.foot-info { margin: 14px 0 0; display: grid; gap: 6px; }
.foot-info > div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.foot-info dt { color: #9D93BA; }
.foot-info dd { margin: 0; }
.foot-h { font-weight: 800; color: #fff; margin-bottom: 8px; }
.foot-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links li { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9D93BA; font-size: 14px; }

/* ---------- 빠른 상담 (모바일: 하단 고정 바) ---------- */
.quick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(30, 18, 64, .08); }
.quick a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font-weight: 800; text-decoration: none; font-size: 16px; }
.quick svg { width: 20px; height: 20px; fill: currentColor; }
.quick-tel { background: var(--brand); color: #fff; }
.quick-kakao { background: var(--kakao); color: #191600; }

/* ================= 태블릿 768px~ ================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  body { font-size: 17px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero-in { padding-top: 88px; padding-bottom: 96px; }
  .hero h1 { font-size: 48px; }
  .slogan { font-size: 20px; }
  .btns .btn { flex: 0 0 auto; min-width: 160px; }
  .page-head { padding: 44px 0 44px; }
  .page-head h1 { font-size: 36px; }
  .sec { padding: 80px 0; }
  .cards-3, .cards-4, .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .diff-legend { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 24px; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-links ul { grid-template-columns: 1fr; }

  /* 표: 진짜 표로 */
  .rtable thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .rtable tr { display: table-row; border: 0; border-radius: 0; padding: 0; margin: 0; background: transparent; }
  .rtable th, .rtable td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .rtable tr > :last-child { border-bottom: 1px solid var(--line); }
  .rtable [data-label]::before { content: none; }
  .rtable thead th, .rtable thead tr > th:last-child { background: var(--accent-soft); color: var(--brand-ink); font-weight: 800; font-size: 15px; border-bottom: 2px solid var(--brand); }
  .rtable tbody tr:hover { background: #FCFBFF; }
  .share-bar { max-width: 200px; }
}

/* ================= PC 1080px~ ================= */
@media (min-width: 1080px) {
  body { padding-bottom: 0; }
  .menu-btn { display: none; }
  .gnb { display: flex !important; position: static; inset: auto; padding: 0; overflow: visible; background: transparent; align-items: center; gap: 18px; }
  .gnb > ul { display: flex; gap: 2px; }
  .gnb > ul > li { border: 0; position: relative; }
  .gnb a { min-height: 44px; padding: 0 10px; font-size: 15.5px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
  .gnb > ul > li > a:hover, .gnb a[aria-current="page"] { color: var(--brand); background: var(--accent-soft); }
  .gnb .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
  .gnb .has-sub:hover .sub, .gnb .has-sub:focus-within .sub { display: block; }
  .gnb .sub a { font-size: 15px; color: var(--text); width: 100%; }
  .gnb .sub a:hover { background: var(--accent-soft); color: var(--brand); }
  .gnb-cta { margin: 0; width: auto; min-height: 44px; padding: 0 18px; }
  .foot, .foot-bottom { padding-right: 104px; } /* 오른쪽 아래 둥근 버튼과 겹치지 않게 */

  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .school-grid { grid-template-columns: repeat(2, 1fr); }

  /* 순환 4단계: 가로 흐름 */
  .cycle { grid-template-columns: repeat(4, 1fr); gap: 36px; align-items: stretch; }
  .step { padding: 24px 22px; }
  .step + .step { margin-top: 0; }
  .step + .step::before { left: -36px; top: 42px; width: 36px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--brand)); }
  .step + .step::after { left: -10px; top: 37px; border: 6px solid transparent; border-left-color: var(--brand); border-top-color: transparent; }
  .step-no { position: static; margin-bottom: 14px; width: 44px; height: 44px; }

  /* 빠른 상담: 오른쪽 아래 둥근 버튼 */
  .quick { left: auto; right: 24px; bottom: 24px; grid-template-columns: 1fr; padding: 0; background: transparent; border: 0; box-shadow: none; gap: 10px; }
  .quick a { width: 60px; height: 60px; min-height: 0; border-radius: 50%; box-shadow: 0 6px 20px rgba(30, 18, 64, .22); position: relative; }
  .quick svg { width: 26px; height: 26px; }
  .quick span { position: absolute; right: 70px; white-space: nowrap; background: var(--brand-ink); color: #fff; font-size: 14px; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; }
  .quick a:hover span, .quick a:focus-visible span { opacity: 1; }
}

@media (min-width: 1200px) {
  .hero h1 { font-size: 56px; }
}

/* ---------- 번호 카드(6단계) ---------- */
.num-cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.num-cards li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 76px; box-shadow: var(--shadow); }
.num-cards .num { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: var(--brand); }
.num-cards li:nth-child(even) .num { background: var(--teal); }
.num-cards h3 { font-size: 18px; margin-bottom: 2px; }
.num-cards p { margin: 0; color: var(--muted); }
.tags-lg span { font-size: 15px; padding: 6px 14px; background: var(--teal-soft); color: #1F6F7D; }
.muted { color: var(--muted); font-size: .92em; }
.director { font-size: 19px; font-weight: 700; color: var(--brand-ink); }
.logo img { width: 44px; height: 32px; }

/* ---------- 반 카드(S·A·M) ---------- */
.class-grid { display: grid; gap: 14px; }
.class-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.class-card header { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.class-code { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: var(--brand); flex: none; }
.class-card:nth-child(2) .class-code { background: var(--teal); }
.class-card:nth-child(3) .class-code { background: #8C6CC8; }
.class-card h3 { margin: 0; font-size: 20px; }
.class-card h3 small { font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-left: 4px; }
.class-week { margin: 0; font-size: 15px; font-weight: 700; color: var(--brand); }
.class-head { font-weight: 700; color: var(--brand-ink); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; }
.class-card .kv > div { grid-template-columns: 84px 1fr; }

/* ---------- 선행 로드맵 ---------- */
.rm-title { margin-top: 28px; }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.track-start { display: inline-block; font-weight: 800; color: #fff; background: var(--teal); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px; font-size: 15px; }
.track ol { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 3px solid var(--accent); display: grid; gap: 10px; }
.track li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: baseline; }
.track li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.track li b { color: var(--brand-ink); }
.track-goal span { color: #B3261E; font-weight: 700; }
.track-goal::before { background: var(--brand) !important; }

/* ---------- 자체 교재 ---------- */
.tb-grid { display: grid; gap: 14px; }
.tb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tb-card:first-child { background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.tb-card:nth-child(2) { background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.tb-brand { font-family: "Bungee", "Space Grotesk", sans-serif; font-size: 26px; line-height: 1.2; color: var(--brand); margin: 0 0 4px; }
.tb-card:nth-child(2) .tb-brand { color: #2F7F8D; }
.tb-card h3 { font-size: 18px; margin: 0 0 6px; }
.tb-card p { margin: 0; }
.tb-levels { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tb-levels li { display: flex; gap: 6px; align-items: baseline; background: #fff; border: 1px solid var(--accent); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.tb-levels b { color: var(--brand); }
.tb-levels span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
@media (min-width: 768px) { .tb-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 고등 수업 방식 3가지 ---------- */
.feat-grid { display: grid; gap: 14px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.feat-card:nth-child(2) { border-top-color: var(--teal); }
.feat-card:nth-child(3) { border-top-color: #8C6CC8; }
.feat-no { display: block; font-family: "Bungee", "Space Grotesk", sans-serif; font-size: 22px; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.feat-card h3 { font-size: 19px; margin: 0 0 10px; }
.feat-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15.5px; }
.feat-card li { position: relative; padding-left: 16px; }
.feat-card li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.feat-card:nth-child(2) li::before { background: var(--teal); }
.feat-card:nth-child(3) li::before { background: #8C6CC8; }
@media (min-width: 900px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 고등 연간 커리큘럼 (중등 반 카드 모양 + 구분 배지) ---------- */
.cur-code { font-size: 19px; letter-spacing: -0.02em; }
.cur-card:nth-child(4) .cur-code { background: var(--brand-deep); }
.cur-card .kv > div { grid-template-columns: 76px 1fr; align-items: start; }
.cur-kv dt { font-size: 15px; line-height: 1.4; color: var(--brand-ink); }
.cur-kv dt span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.cur-line { margin: 0; font-size: 15px; }
.cur-lines { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 15px; line-height: 1.6; }
.cur-m { display: inline-block; min-width: 46px; margin-right: 6px; font-size: 14px; font-weight: 400; color: var(--brand); }
.cur-badge { display: inline-block; font-size: 12.5px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.tg-pre { background: var(--accent-soft); color: var(--brand); }
.tg-rev { background: #FFF3D6; color: #8A5A00; }
.tg-exam { background: var(--teal-soft); color: var(--teal-ink); }
.tg-final { background: var(--brand); color: #fff; }
.cur-kv .is-exam dd { color: var(--muted); }
@media (min-width: 1080px) { .class-grid.cur-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 768px) {
  .num-cards { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .num-cards { grid-template-columns: repeat(3, 1fr); }
  .num-cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(3, 1fr); }
  /* 로드맵: 가로 흐름 */
  .track { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; }
  .track-start { margin: 0; text-align: center; }
  .track ol { border-left: 0; padding: 22px 0 0; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 8px / 100% 3px no-repeat; }
  .track li { grid-template-columns: 1fr; gap: 2px; font-size: 15px; line-height: 1.45; }
  .track li::before { left: 0; top: -21px; }
}

/* ================= 움직이는 효과 =================
   내용은 모두 HTML에 있고, 효과는 나타나는 방식만 바꾼다.
   JS가 켜졌을 때만(html.js) 숨겼다가 보이게 하므로 JS가 없어도 내용은 보인다. */
@keyframes heroShift { from { background-position: 0 0, 0 0, 0% 50%; } to { background-position: 0 0, 0 0, 100% 50%; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-18px) rotate(var(--r, 0deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* 첫 화면: 글자가 차례로 떠오름 + 수학 기호가 천천히 떠다님 */
.hero-in > * { animation: riseIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in > :nth-child(2) { animation-delay: .12s; }
.hero-in > :nth-child(3) { animation-delay: .24s; }
.hero-in > :nth-child(4) { animation-delay: .36s; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-deco span { position: absolute; color: #fff; opacity: .12; font-weight: 300; line-height: 1; animation: floatY 9s ease-in-out infinite; font-family: "Times New Roman", serif; }
.hero-deco span:nth-child(1) { right: 8%; top: 14%; font-size: 96px; --r: -8deg; }
.hero-deco span:nth-child(2) { right: 26%; top: 58%; font-size: 64px; --r: 10deg; animation-delay: -3s; animation-duration: 11s; }
.hero-deco span:nth-child(3) { right: 4%; top: 64%; font-size: 72px; --r: 6deg; animation-delay: -6s; }
.hero-deco span:nth-child(4) { right: 40%; top: 8%; font-size: 48px; --r: -12deg; animation-delay: -1.5s; animation-duration: 12s; }
.hero-deco span:nth-child(5) { right: 16%; top: 36%; font-size: 40px; color: #CDEBF0; opacity: .22; animation-delay: -4s; }
@media (max-width: 767px) { .hero-deco span:nth-child(n+4) { display: none; } .hero-deco span { opacity: .09; } }

/* 스크롤하면 나타나기 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* 막대(비중·난이도)는 왼쪽부터 자라남 */
.js .grow { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
.js .grow.in { transform: scaleX(1); }
/* 순환 단계 번호가 톡 튀어나옴 */
.js .step.in .step-no { animation: pop .5s ease both; animation-delay: calc(var(--d, 0s) + .25s); }
.cycle-loop span { display: inline-block; animation: spin 6s linear infinite; }
/* 머리글: 스크롤하면 그림자 */
.site-header { transition: box-shadow .2s; }
body.scrolled .site-header { box-shadow: 0 6px 20px rgba(34, 19, 61, .08); }
/* 카드 위에 올리면 살짝 떠오름(마우스 있는 기기) */
@media (hover: hover) {
  .card, .class-card, .school-card, .num-cards li, .step { transition: transform .2s ease, box-shadow .2s ease, border-color .2s, opacity .7s ease; }
  .card:hover, .class-card:hover, .school-card:hover, .num-cards li:hover, .step:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30, 18, 64, .06), 0 14px 32px rgba(30, 18, 64, .10); }
  .btn:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .grow { opacity: 1; transform: none; }
}
@media print { .site-header, .quick, .site-footer { display: none; } body { padding: 0; } }

/* ---------- 소개·시스템 문구 초안 반영 (2026-11-18) ---------- */
.head-slogan { display: block; font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: var(--brand-deep); margin: 6px 0 12px; }
.sec-lead-wide { max-width: 900px; }
.sub-h { font-size: 20px; margin: 36px 0 12px; }
.gap-top { margin-top: 14px; }
.stats { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.stat { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 34px; line-height: 1.2; color: var(--brand); letter-spacing: -0.02em; }
.stat b.stat-sm { font-size: 24px; line-height: 1.7; }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.greeting { margin: 16px 0 0; padding: 24px 26px; border-left: 4px solid var(--brand); background: var(--accent-soft); border-radius: 0 14px 14px 0; font-size: 18px; }
.greeting p { margin: 0 0 14px; color: var(--brand-ink); }
.greeting footer { font-size: 15px; color: var(--muted); }
.greeting footer b { color: var(--brand-ink); }
.badge-soon { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 9px; vertical-align: 1px; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .head-slogan { font-size: 32px; }
}
@media (min-width: 1080px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 입시 실적 · 합격 후기 (2026-11-18) ---------- */
.tally { display: grid; gap: 16px; margin: 20px 0 8px; }
.tally-total { margin: 0; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff; border-radius: var(--radius); padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tally-total b { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.tally-total span { font-size: 24px; font-weight: 800; }
.tally-total em { flex-basis: 100%; font-style: normal; font-size: 15px; opacity: .85; margin-top: 8px; }
.tally-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tally-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tally-list span { font-weight: 700; color: var(--brand-ink); font-size: 15px; }
.tally-list b { font-size: 22px; color: var(--brand); letter-spacing: -0.02em; }
.result-groups { display: grid; gap: 16px; margin: 28px 0 16px; }
.result-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.result-group h3 { font-size: 19px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-soft); display: flex; align-items: baseline; justify-content: space-between; }
.result-group h3 span { font-size: 14px; font-weight: 800; color: var(--brand); }
.result-group ul { list-style: none; margin: 0; padding: 0; }
.result-group li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.result-group li:last-child { border-bottom: 0; }
.result-group li b { color: var(--brand-ink); font-weight: 700; }
.result-group li span { color: var(--muted); white-space: nowrap; }
.review-card img { display: block; width: 100%; border-radius: 12px; margin-bottom: 14px; }
.review-top { display: grid; gap: 18px; margin-bottom: 28px; }
.review-cert { margin: 0; }
.review-cert img { display: block; width: 100%; max-width: 300px; border: 1px solid var(--line); border-radius: 12px; }
.review-cert figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.review h2 { margin-top: 36px; }
.review .related { margin-top: 36px; }
@media (min-width: 768px) {
  .tally { grid-template-columns: 240px minmax(0, 1fr); align-items: stretch; }
  .tally-total { align-content: center; }
  .tally-total b { font-size: 76px; }

  .result-groups { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .review-top { grid-template-columns: 1fr 240px; align-items: start; }
}
@media (min-width: 1080px) {
  .result-groups { grid-template-columns: repeat(3, 1fr); }
  .tally { grid-template-columns: 280px minmax(0, 1fr); }
  .tally-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) { .stats.stats-2 { grid-template-columns: repeat(2, 1fr); } }
/* 메뉴 9개: 가로 메뉴로 바뀌는 좁은 구간(1080~1239px)에서 간격을 줄여 로고와 겹치지 않게 */
.logo span { white-space: nowrap; }
@media (min-width: 1080px) and (max-width: 1239px) {
  .gnb { gap: 8px; }
  .gnb > ul { gap: 0; }
  .gnb a { padding: 0 6px; font-size: 14.5px; letter-spacing: -0.02em; }
  .gnb .gnb-cta { padding: 0 12px; }
  .logo { font-size: 16px; gap: 8px; }
}

/* ================= A2 디자인 (2026-11-18) =================
   화이트 + 보라, 노랑 포인트, 둥근 모양. 이 묶음이 위쪽 값을 덮어쓴다.
   본문 글꼴 한림고딕, CORE:UP = Bungee, 매쓰마스터 = Black Han Sans, 말풍선 = Jua. */
@font-face { font-family: "Hallym Gothic"; font-weight: 400; font-display: swap; src: local("Hallym Gothic Regular"), local("HallymGothic-Regular"), url("/assets/fonts/HallymGothic-Regular.ttf") format("truetype"); }
@font-face { font-family: "Hallym Gothic"; font-weight: 500 900; font-display: swap; src: local("Hallym Gothic Medium"), local("HallymGothic-Medium"), url("/assets/fonts/HallymGothic-Medium.ttf") format("truetype"); }
:root {
  --brand: #4B2A8A; --brand-deep: #2E1760; --brand-ink: #1E1633;
  --teal: #2E8C9C; --teal-ink: #1F6F7C; --teal-soft: #E6F6F8;
  --accent: #D9CEF2; --accent-soft: #F4EFFC; --bg-tint: #F8F5FD; --line: #E7E1F3;
  --text: #1E1633; --muted: #5A5170; --yellow: #FFE27A; --yellow-soft: #FFF1B8;
  --hero-1: #4B2A8A; --hero-2: #2E1760; --hero-3: #2E1760;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(30, 22, 51, .04), 0 10px 28px rgba(75, 42, 138, .07);
  --font: "Hallym Gothic", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
h1, h2, h3, h4 { font-weight: 700; }
.eyebrow { color: var(--teal-ink); font-family: "Space Grotesk", var(--font); letter-spacing: .16em; }
.btn { border-radius: 999px; }
.card-label, .more, .card-foot { color: var(--teal-ink) !important; }
.sec-tint { background: var(--accent-soft); }
.sec-tint .card, .sec-tint .step, .sec-tint .num-cards li { border-color: #fff; }
.page-head { background: var(--accent-soft); border-bottom: 0; }
.head-slogan { color: var(--brand-ink); }
.stat b { color: var(--brand); }
.stats .stat:nth-child(1) { background: var(--brand); }
.stats .stat:nth-child(1) b { color: var(--yellow); }
.stats .stat:nth-child(1) span { color: #E3D9F7; }
.stats .stat:nth-child(3) { background: var(--yellow); }
.stats .stat:nth-child(3) b { color: var(--brand-ink); }
.stats .stat:nth-child(3) span { color: #4A3A00; }
.stats .stat:nth-child(4) { background: var(--teal-soft); }
.stats .stat:nth-child(4) b { color: var(--teal-ink); }
.greeting { border-left: 0; border-radius: 32px 32px 32px 8px; padding: 32px 36px; }
.step-no, .num-cards .num { border-radius: 50%; color: var(--yellow); }
.num-cards li:nth-child(even) .num { color: #fff; }
.badge-soon { background: #8FD9E4; color: var(--brand-ink); }
.hl { background: var(--yellow); padding: 0 8px; border-radius: 8px; }

/* ---- 머리글: 로고 + 학원명 그림 ---- */
.logo { gap: 10px; }
.logo img.mark { width: 44px; height: 32px; }
.logo img.word { height: 30px; width: auto; position: relative; top: 3px; }
.gnb-cta { background: var(--yellow) !important; color: var(--brand-ink) !important; border-radius: 999px; font-weight: 700; }
.gnb-cta:hover { background: #FFD84D !important; }
.gnb .gnb-cta { border-radius: 999px; }
.gnb ul a { font-weight: 500; }
@media (min-width: 1080px) {
  /* PC: 윗줄에 로고와 상담 버튼, 아랫줄에 메뉴 */
  :root { --header-h: 124px; }
  .bar { display: grid; grid-template-columns: auto 1fr; align-items: center; height: auto; padding-top: 14px; row-gap: 4px; }
  .gnb { display: contents !important; }
  .gnb > ul { grid-column: 1 / -1; grid-row: 2; margin: 0 -12px; gap: 4px; justify-content: flex-end; }
  .gnb a { padding: 0 12px; font-size: 16px; }
  .gnb-cta { grid-column: 2; grid-row: 1; justify-self: end; padding: 0 22px !important; min-height: 46px; }
  .logo img.mark { width: 58px; height: 42px; }
  .logo img.word { height: 44px; top: 5px; }
  .gnb > ul > li > a:hover, .gnb a[aria-current="page"] { background: var(--accent-soft); }
}

/* ---- 메인 첫 화면 ---- */
@keyframes rollA2 { 0%, 40% { transform: translateY(0); } 50%, 90% { transform: translateY(-33.3333%); } 100% { transform: translateY(-66.6667%); } }
@keyframes slideA2 { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bobA2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes waveA2 { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-10deg); } 85% { transform: rotate(8deg); } }
.hero { background: #fff; color: var(--text); animation: none; }
.hero::after { display: none; }
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-blob.b1 { width: 340px; height: 340px; background: var(--accent-soft); right: -170px; top: 150px; }
.hero-blob.b2 { width: 110px; height: 110px; background: var(--yellow-soft); right: 24px; bottom: 76px; }
.hero-in { padding-top: 40px; padding-bottom: 48px; display: grid; gap: 32px; align-items: center; }
.hero-text { display: grid; gap: 20px; min-width: 0; }
.hero h1 { color: var(--teal-ink); font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; margin: 0; }
.say-row { display: flex; align-items: center; gap: 12px; }
.face { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; animation: waveA2 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.say { margin: 0; background: var(--accent-soft); color: var(--brand-deep); font-family: "Jua", var(--font); font-size: 17px; line-height: 1.4; padding: 11px 18px; border-radius: 22px 22px 22px 6px; }
.roll { font-size: clamp(44px, 12.5vw, 124px); line-height: 1.26; height: 1.26em; overflow: hidden; margin: 0; }
.roll-in { display: flex; flex-direction: column; animation: rollA2 7s cubic-bezier(.7, 0, .2, 1) infinite; }
.roll-in span { display: block; height: 1.26em; white-space: nowrap; }
.roll .en { font-family: "Bungee", "Space Grotesk", sans-serif; color: var(--brand); letter-spacing: -0.01em; }
.roll .ko { font-family: "Black Han Sans", var(--font); color: var(--brand-ink); font-size: 1.03em; line-height: 1.223; }
.hero .slogan { color: #3A3150; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.hero-desc { margin: 0; color: var(--muted); max-width: 560px; }
.phone-wrap { display: none; position: relative; justify-self: center; }
.phone { width: 304px; height: 600px; border-radius: 44px; background: var(--brand-ink); padding: 10px; box-shadow: 0 30px 60px rgba(75, 42, 138, .18); }
.phone-in { height: 100%; border-radius: 35px; background: #FBF9FF; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; }
.phone-hi { display: flex; align-items: center; gap: 10px; padding: 24px 18px 8px; }
.phone-hi .face { width: 40px; height: 40px; animation: none; }
.phone-hi .say { font-size: 14px; padding: 9px 13px; border-radius: 16px 16px 16px 4px; }
.phone-body { display: grid; gap: 12px; padding: 10px 16px 16px; align-content: start; flex: 1; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; display: grid; gap: 6px; }
.pcard b { font-size: 12px; color: var(--teal-ink); }
.pcard strong { font-size: 15px; color: var(--brand-ink); }
.pcard span { color: var(--muted); font-size: 12px; }
.pcard.dark { background: var(--brand); border-color: var(--brand); }
.pcard.dark strong { color: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.pcard.dark em { font-style: normal; font-size: 12px; color: var(--brand-ink); background: #8FD9E4; padding: 5px 10px; border-radius: 999px; }
.pbar { height: 8px; border-radius: 999px; background: #6A48A8; overflow: hidden; }
.pbar i { display: block; width: 62%; height: 100%; background: var(--yellow); border-radius: 999px; }
.ptabs { display: flex; justify-content: space-around; padding: 10px 8px 14px; background: #fff; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: #7A7190; }
.ptabs span { padding: 6px 14px; border-radius: 999px; }
.ptabs .on { color: var(--brand); background: var(--accent-soft); }
.phone-pop { position: absolute; left: -64px; top: -18px; margin: 0; background: var(--yellow); color: var(--brand-ink); font-family: "Jua", var(--font); font-size: 17px; padding: 11px 17px; border-radius: 20px 20px 6px 20px; box-shadow: 0 10px 24px rgba(30, 22, 51, .12); animation: bobA2 4s ease-in-out infinite; white-space: nowrap; }
.strip { position: relative; z-index: 1; background: var(--accent-soft); overflow: hidden; height: 56px; display: flex; align-items: center; }
.strip-in { display: flex; gap: 48px; padding-left: 48px; white-space: nowrap; font-family: "Space Grotesk", var(--font); font-size: 19px; font-weight: 700; color: var(--brand); animation: slideA2 30s linear infinite; }
.strip-in span:nth-child(even) { color: var(--teal-ink); }
@media (min-width: 768px) {
  .hero-in { padding-top: 56px; padding-bottom: 64px; }
  .say { font-size: 20px; }
  .hero .slogan { font-size: 28px; }
}
@media (min-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .phone-wrap { display: block; }
  .hero-blob.b1 { width: 620px; height: 620px; right: -200px; top: 40px; }
  .hero-blob.b2 { width: 150px; height: 150px; left: 46%; right: auto; bottom: 86px; }
}

/* ---- 2차 손질 (2026-11-18): 한림고딕은 400·500만 쓴다(700 안 씀), 메뉴 작게·로고 줄과 띄움, 첫 화면 왼쪽 작게, 네이버 예약 버튼 ---- */
h1, h2, h3, h4, b, strong, th, dt, .btn, .gnb-cta, .card-label, .more, .card-foot, .eyebrow, .faq-q, .news-title, .exam-t, .foot-name, .foot-h, .quick a, .step-no, .num-cards .num, .tags span, .badge, .chip, .class-head, .class-week, .director, .head-slogan, .cycle-loop, .track-start, .pt-item, .tally-total b, .tally-total span, .tally-list span, .tally-list b, .result-group h3 span, .result-group li b, .stat b, .class-code, .school-links, .switch, .link-list a, .hero h1, .ptabs, .strip-in { font-weight: 500; }
.gnb ul a { font-weight: 400; }
.gnb a[aria-current="page"] { font-weight: 500; }
.hero-text { gap: 22px; }
.say { font-size: 15px; padding: 9px 15px; }
.face { width: 44px; height: 44px; }
.roll { font-size: clamp(40px, 11vw, 88px); }
.hero .slogan { font-size: 19px; }
.hero-desc { font-size: 15.5px; max-width: 480px; }
.hero .btn { min-height: 44px; font-size: 15px; padding: 0 20px; }
.quick { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.quick a { font-size: 14px; gap: 6px; }
.quick-naver { background: #03C75A; color: #fff; }
@media (min-width: 768px) {
  .say { font-size: 17px; }
  .hero .slogan { font-size: 23px; }
  .hero-in { padding-top: 72px; padding-bottom: 80px; }
}
@media (min-width: 1080px) {
  :root { --header-h: 132px; }
  .bar { padding-top: 16px; row-gap: 14px; }
  .gnb a { font-size: 15px; min-height: 40px; }
  .gnb > ul { margin-bottom: 6px; }
  .hero-in { padding-top: 80px; padding-bottom: 88px; gap: 64px; }
  .quick { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; }
}

/* ---- 3차 손질 (2026-11-18): 제목과 본문이 100% 배율에서도 갈리게 — 본문은 작고 옅게, 제목은 크게, 사이는 넓게 ---- */
:root { --muted: #6B6480; }
body { font-size: 16px; line-height: 1.75; }
h2 { font-size: 26px; margin-bottom: 14px; letter-spacing: -0.03em; }
h3 { font-size: 20px; }
.eyebrow { font-size: 12px; margin-bottom: 14px; }
.sec-lead, .lead { font-size: 16px; color: var(--muted); max-width: 660px; line-height: 1.8; }
.sec-lead-wide { max-width: 760px; }
.cards { gap: 16px; margin-top: 28px; }
.card { padding: 26px 26px 28px; box-shadow: none; }
.card h3 { font-size: 19px; margin-bottom: 12px; color: var(--brand-ink); }
.card p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.card .card-label, .card-label { font-size: 12px; letter-spacing: .14em; margin-bottom: 10px !important; }
.sub-h { font-size: 21px; margin: 56px 0 4px; }
.num-cards h3, .step h3 { margin-bottom: 8px; }
.num-cards p, .step-short, .step-how { font-size: 14.5px; color: var(--muted); }
.note { margin-top: 20px; }
.page-head h1 { letter-spacing: -0.03em; }
.page-head .lead { margin-top: 4px; }
@media (min-width: 768px) {
  h2 { font-size: 32px; }
  .page-head h1 { font-size: 40px; }
  .head-slogan { font-size: 24px; color: var(--brand); margin: 10px 0 14px; }
  .sec { padding: 96px 0; }
  .cards { gap: 22px; }
  .card { padding: 30px 30px 32px; }
  .card h3 { font-size: 21px; }
}

/* ---- 4차 손질 (2026-11-18): 본문 제목 글자 줄임 ---- */
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 18px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.sub-h { font-size: 18px; }
.page-head h1 { font-size: 26px; }
.head-slogan { font-size: 18px; }
.school-card h3, .step h3 { font-size: 18px; }
.prose h2 { font-size: 20px; }
@media (min-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .card h3 { font-size: 18px; }
  .page-head h1 { font-size: 31px; }
  .head-slogan { font-size: 20px; }
}

/* ---- 5차 손질 (2026-11-18): 메인 첫 화면이 PC 한 화면에 들어오게 — 휴대폰 그림은 모양(304×600)을 지키고 화면 높이에 따라 통째로 줄인다 ---- */
.strip { height: 48px; }
.strip-in { font-size: 17px; }
@media (min-width: 1080px) {
  :root { --header-h: 120px; }
  .bar { padding-top: 12px; row-gap: 6px; }
  .gnb > ul { margin-bottom: 4px; }
  .hero-in { padding-top: 34px; padding-bottom: 30px; }
  .hero-text { gap: 18px; }
  .hero-blob.b1 { width: 520px; height: 520px; top: 10px; }
  .hero-blob.b2 { width: 120px; height: 120px; bottom: 64px; }
}
@media (min-width: 1080px) and (max-height: 860px) { .phone-wrap { zoom: .92; } }
@media (min-width: 1080px) and (max-height: 780px) { .phone-wrap { zoom: .84; } }
@media (min-width: 1080px) and (max-height: 700px) {
  .phone-wrap { zoom: .78; }
  .hero-in { padding-top: 22px; padding-bottom: 20px; }
  .hero-text { gap: 14px; }
  .roll { font-size: 76px; }
}

/* 띠를 화면 맨 아래로: 첫 화면이 머리글 아래 남은 높이를 채운다(너무 큰 화면에서는 760px까지만) */
@media (min-width: 1080px) {
  .hero { display: flex; flex-direction: column; min-height: min(calc(100vh - 112px), 760px); }
  .hero-in { flex: 1; align-content: center; }
}

/* 고교 가이드 카드: 긴 수행평가 영역 이름이 좁은 화면에서 넘치지 않게 */
.school-grid > * { min-width: 0; }
.school-card .rtable th, .school-card .rtable td { min-width: 0; overflow-wrap: anywhere; }
.school-card .rtable td > *, .school-card .kv dd { min-width: 0; overflow-wrap: anywhere; }
.school-card h4 { margin-top: 26px; }
@media (min-width: 768px) {
  .school-card .rtable td:nth-child(2) .muted { display: block; white-space: nowrap; font-size: 12.5px; }
  .school-card .rtable td:nth-child(3) { white-space: nowrap; }
}

/* ---- 소개·시스템 배치 (2026-11-18, 캔버스 시안 A2 소개·프로그램) ---- */
.page-head .say-row { margin-bottom: 18px; }
.ph-grid { display: grid; gap: 28px; align-items: center; }
.ph-slogan { font-size: 30px; line-height: 1.3; letter-spacing: -0.03em; color: var(--brand-ink); font-weight: 500; margin: 6px 0 14px; }
.stats-hero { margin: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-hero .stat { border-radius: 24px; padding: 20px 22px; }
.stats-hero .stat:nth-child(1) { grid-column: 1 / -1; padding: 26px 28px; }
.stats-hero .stat:nth-child(1) b { font-family: "Space Grotesk", var(--font); font-size: 60px; font-weight: 700; line-height: 1; }
.stats-hero .stat:nth-child(2) { background: #fff; border: 1px solid var(--line); }
.stats-hero .stat:nth-child(4) { grid-column: 1 / -1; }
.stats-hero .stat b { font-size: 28px; }
.stats-hero .stat b.stat-sm { font-size: 22px; line-height: 1.5; }
.stats-hero .stat span { font-size: 13.5px; }
.split { display: grid; gap: 8px; }
.split-b p { font-size: 16.5px; line-height: 1.85; color: #3A3150; }
.promise li:nth-child(2) { background: var(--brand); border-color: var(--brand); }
.promise li:nth-child(2) h3 { color: #fff; }
.promise li:nth-child(2) p { color: #E3D9F7; }
.promise li:nth-child(2) .num { background: var(--yellow); color: var(--brand-ink); }
.greet { display: grid; gap: 18px; }
.face-lg { width: 72px; height: 72px; animation: none; }
.face-lg svg { width: 46px; height: 46px; }
.greet .greeting { background: var(--accent-soft); }
.sec-dark { background: var(--brand-deep); color: #fff; }
.sec-dark h2, .sec-dark h3, .sec-dark .sub-h { color: #fff; }
.sec-dark .eyebrow { color: #8FD9E4; }
.sec-dark .sec-lead, .sec-dark .note { color: #D9CEF2; }
.sec-dark .card { background: #3D2378; border-color: #55389A; }
.sec-dark .card h3 { color: #fff; }
.sec-dark .card p { color: #D9CEF2; }
.sec-dark .card .card-label { color: var(--yellow) !important; }
.sec-dark .tally-total { background: var(--brand); }
.sec-dark .btn-primary { background: var(--yellow); color: var(--brand-ink); }
.big-letter { display: block; font-family: "Space Grotesk", var(--font); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--brand); margin-bottom: 14px; }
.stairs .card { border: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.stairs .card:nth-child(1) { background: var(--accent-soft); }
.stairs .card:nth-child(2) { background: var(--teal-soft); }
.stairs .card:nth-child(2) .big-letter { color: var(--teal-ink); }
.stairs .card:nth-child(3) { background: var(--brand); }
.stairs .card:nth-child(3) .big-letter { color: var(--yellow); }
.stairs .card:nth-child(3) h3 { color: #fff; }
.stairs .card:nth-child(3) p { color: #E3D9F7; }
.stairs .card:nth-child(3) .card-label { color: #8FD9E4 !important; }
.stairs-l .big-letter { font-size: 34px; color: var(--yellow); }
.sec-dark .stairs-l .card:nth-child(1), .sec-dark .stairs-l .card:nth-child(2), .sec-dark .stairs-l .card:nth-child(3) { background: #3D2378; }
.sec-dark .stairs-l .card:nth-child(3) .big-letter, .sec-dark .stairs-l .card:nth-child(2) .big-letter { color: var(--yellow); }
.sec-dark .stairs-l .card:nth-child(4) { background: var(--yellow); }
.sec-dark .stairs-l .card:nth-child(4) .big-letter { color: var(--brand); }
.sec-dark .stairs-l .card:nth-child(4) h3 { color: var(--brand-ink); }
.sec-dark .stairs-l .card:nth-child(4) p { color: #4A3A00; }
.stairs-l .card-label { display: none; }
.screens .card { border: 0; padding: 32px; }
.screens .card:nth-child(1) { background: var(--brand); }
.screens .card:nth-child(1) h3 { color: #fff; }
.screens .card:nth-child(1) p { color: #E3D9F7; }
.screens .card:nth-child(1) .card-label { color: var(--yellow) !important; }
.screens .card:nth-child(2) { background: #FFF8DB; }
.screens .card:nth-child(2) p { color: #4A3A00; }
.screens .card:nth-child(2) .card-label { color: #6B5300 !important; }
@media (min-width: 768px) {
  .ph-slogan { font-size: 40px; }
  .greet { grid-template-columns: 72px minmax(0, 1fr); gap: 28px; align-items: start; }
  .greet .greeting { border-radius: 32px 32px 32px 8px; padding: 36px 44px; }
}
@media (min-width: 1080px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; }
  .ph-split { padding: 56px 0 64px; }
  .ph-slogan { font-size: 50px; }
  .split { grid-template-columns: 380px minmax(0, 1fr); gap: 64px; }
  .split-b { padding-top: 34px; }
  .stairs { align-items: end; }
  .stairs.cards-3 .card:nth-child(1) { min-height: 270px; }
  .stairs.cards-3 .card:nth-child(2) { min-height: 310px; }
  .stairs.cards-3 .card:nth-child(3) { min-height: 350px; }
  .stairs-l .card:nth-child(1) { min-height: 190px; }
  .stairs-l .card:nth-child(2) { min-height: 214px; }
  .stairs-l .card:nth-child(3) { min-height: 238px; }
  .stairs-l .card:nth-child(4) { min-height: 262px; }
}
.page-head .say { background: #fff; }

/* ---- 바로가기 칸 · 하위 메뉴 표시 (2026-11-18) ---- */
.jump { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.jump a { display: flex; flex-direction: column; gap: 4px; min-height: 86px; justify-content: center; background: #fff; border: 1.5px solid #D9CEF2; border-radius: 20px; padding: 16px 20px; text-decoration: none; color: var(--brand-ink); transition: border-color .15s, transform .15s, background .15s; }
.jump a b { font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.jump a b::after { content: "→"; color: var(--brand); font-size: 18px; }
.jump a span { font-size: 13.5px; color: var(--muted); }
.jump a:hover { border-color: var(--brand); transform: translateY(-2px); }
.jump a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.jump a[aria-current="page"] span { color: #E3D9F7; }
.jump a[aria-current="page"] b::after { content: "지금 보는 곳"; font-size: 11.5px; color: var(--brand-ink); background: var(--yellow); padding: 3px 9px; border-radius: 999px; }
@media (min-width: 600px) { .jump { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .jump { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gnb .has-sub > a::after { content: ""; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; }
  .gnb .sub { border-radius: 16px; padding: 8px; min-width: 200px; box-shadow: 0 14px 34px rgba(30, 22, 51, .14); }
  .gnb .sub a { font-size: 14.5px; min-height: 42px; padding: 0 14px; border-radius: 10px; }
}
.jump li { display: flex; }
.jump a { flex: 1; }

/* 바로가기 줄: 머리 구역과 본문 사이에 걸친다 */
.jump-bar { background: var(--accent-soft); padding-bottom: 40px; }
.jump-bar.only { background: linear-gradient(var(--accent-soft) 50%, #fff 50%); }
.jump-bar + .sec-tint { border-top: 1px solid #E3D9F7; }
.jump-bar .jump { margin: 0; }
.jump-bar .jump a { min-height: 76px; box-shadow: 0 8px 22px rgba(75, 42, 138, .08); }
.jump-bar.only { padding-bottom: 72px; }
.page-head:has(+ .jump-bar) { padding-bottom: 56px; }
@media (max-width: 599px) { .jump-bar { background: var(--accent-soft); padding-bottom: 20px; } .jump-bar.only { padding-bottom: 40px; } .page-head:has(+ .jump-bar) { padding-bottom: 20px; } }

/* 바로가기 안내: 캐릭터 말풍선 + 눌러 볼 수 있는 둥근 화살표 */
.jump-guide { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.jump-guide .face { width: 38px; height: 38px; }
.jump-guide .face svg { width: 24px; height: 24px; }
.jump-guide .say { background: #fff; font-size: 15px; padding: 8px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 4px 12px rgba(75, 42, 138, .08); }
.jump a b::after { content: "→"; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; font-size: 16px; transition: background .15s, color .15s, transform .15s; }
.jump a:hover b::after { background: var(--brand); color: #fff; transform: translateX(3px); }
.jump a[aria-current="page"] b::after { width: auto; height: auto; border-radius: 999px; }
.jump a { cursor: pointer; }

/* 고교 가이드: 학년 칸이 글자마다 꺾이지 않게, 평가 비율은 과목별 막대로 */
.school-card .rtable th[scope="row"] { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.school-card .rtable th[scope="col"] { white-space: nowrap; }
.ev { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ev li { background: var(--bg-tint); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.ev-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ev-h b { font-size: 15.5px; color: var(--brand-ink); }
.ev-g { display: inline-block; font-size: 12px; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 1px 9px; margin-right: 4px; vertical-align: 1px; }
.ev-r { font-size: 14px; color: var(--brand); white-space: nowrap; }
.ev-bar { height: 8px; border-radius: 999px; background: var(--yellow); overflow: hidden; margin: 8px 0 8px; }
.ev-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px 0 0 999px; }
.ev-d { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.ev-d em { font-style: normal; color: var(--brand-ink); font-size: 12.5px; }

/* 고교 가이드: 학교 골라 비교 */
.pick { background: var(--accent-soft); border-radius: 24px; padding: 22px 22px 24px; margin: 8px 0 28px; }
.pick .say-row { margin-bottom: 16px; }
.pick .face { width: 40px; height: 40px; }
.pick .face svg { width: 26px; height: 26px; }
.pick .say { background: #fff; font-size: 15.5px; padding: 9px 15px; }
.pick-row { display: grid; gap: 8px; margin-top: 12px; }
.pick-label { font-size: 13px; color: var(--teal-ink); }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-btn { font: inherit; font-size: 14.5px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D9CEF2; background: #fff; color: var(--brand-ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pick-btn:hover { border-color: var(--brand); }
.pick-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick-btn[aria-pressed="true"]::before { content: "✓ "; color: var(--yellow); }
.pick-btn:disabled { opacity: .45; cursor: default; }
.pick-reset { margin-top: 18px; min-height: 42px; font-size: 14.5px; }
.pick-view { margin: 0 0 40px; }
.pick-view h2 { padding-bottom: 10px; border-bottom: 2px solid var(--brand-ink); }
@media (min-width: 1080px) {
  .pick-row { grid-template-columns: 130px minmax(0, 1fr); align-items: start; }
  .pick-label { padding-top: 10px; }
  .pick-grid.n1 { grid-template-columns: minmax(0, 720px); }
  .pick-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-grid.n3 .school-card { padding: 18px; }
  .pick-grid.n3 .kv > div { grid-template-columns: 84px 1fr; }
}

/* 내신 분석: 왼쪽 찾기 칸 + 오른쪽 본문, 정보 카드 색 구분 */
.ana { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 8px; }
.ana-main { min-width: 0; }
.ana-main > :first-child { margin-top: 0; }
.finder { background: var(--accent-soft); border-radius: 24px; padding: 20px; }
.finder-h { font-size: 16px; font-weight: 500; color: var(--brand-ink); margin: 0 0 12px; }
.finder label { display: grid; gap: 4px; font-size: 12.5px; color: var(--teal-ink); margin-bottom: 10px; }
.finder select { font: inherit; font-size: 14.5px; min-height: 42px; border-radius: 12px; border: 1.5px solid #D9CEF2; background: #fff; padding: 0 10px; color: var(--brand-ink); width: 100%; }
.finder-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.finder-list a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; background: #fff; text-decoration: none; color: var(--brand-ink); font-size: 14px; }
.finder-list a b { font-weight: 500; }
.finder-list a span { font-size: 12.5px; color: var(--muted); }
.finder-list a:hover { outline: 1.5px solid var(--brand); }
.finder-list a[aria-current="page"] { background: var(--brand); color: #fff; }
.finder-list a[aria-current="page"] span { color: #E3D9F7; }
.finder-empty { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.facts-card.info { background: var(--brand); border: 0; color: #fff; padding: 8px 24px; }
.facts-card.info > div { border-bottom-color: rgba(255, 255, 255, .16); }
.facts-card.info dt { color: #D9CEF2; }
.facts-card.info dd a { color: var(--yellow); }
.facts-card.info .muted { color: #D9CEF2; }
@media (min-width: 1080px) {
  .ana { grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; }
  .finder { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
}

/* 고교 가이드 머리의 내신 분석 바로가기, 분석 페이지 간격, 정보 카드 색(연한 청록) */
.ph-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ph-links a { display: grid; gap: 2px; padding: 18px 56px 18px 22px; border-radius: 22px; text-decoration: none; background: #fff; border: 1.5px solid #D9CEF2; color: var(--brand-ink); position: relative; transition: transform .15s, border-color .15s; }
.ph-links a::after { content: "→"; position: absolute; right: 20px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; transition: background .15s, color .15s; }
.ph-links a:hover { transform: translateY(-2px); border-color: var(--brand); }
.ph-links a:hover::after { background: var(--brand); color: #fff; }
.ph-links span { font-family: "Space Grotesk", var(--font); font-size: 11px; letter-spacing: .14em; color: var(--teal-ink); }
.ph-links b { font-size: 19px; font-weight: 500; }
.ph-links em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.ph-links li:first-child a { background: var(--brand); border-color: var(--brand); color: #fff; }
.ph-links li:first-child span { color: var(--yellow); }
.ph-links li:first-child em { color: #E3D9F7; }
.ph-links li:first-child a::after { background: var(--yellow); color: var(--brand-ink); }
@media (min-width: 600px) and (max-width: 1079px) { .ph-links { grid-template-columns: 1fr 1fr; } }
.ana-main > h2 { margin-top: 44px; }
.ana-main > .school-links { margin-top: 14px; }
.ana-main > section + section { margin-top: 8px; }
.facts-card.info { background: var(--teal-soft); color: var(--brand-ink); padding: 8px 24px; }
.facts-card.info > div { border-bottom-color: rgba(31, 111, 124, .18); }
.facts-card.info dt { color: var(--teal-ink); }
.facts-card.info dd a { color: var(--brand); }
.facts-card.info .muted { color: var(--muted); }

/* 휴대폰 메인: 버튼 글자가 두 줄로 꺾이지 않게, 뒤 동그라미가 글을 덮지 않게 */
@media (max-width: 767px) {
  .hero .btns { gap: 8px; }
  .hero .btns .btn { flex: 1 1 auto; white-space: nowrap; padding: 0 14px; font-size: 14px; }
  .hero-blob.b1 { width: 260px; height: 260px; right: -150px; top: 230px; }
  .hero-blob.b2 { display: none; }
}

/* 휴대폰: 아래 상담 줄 글자가 두 줄로 꺾이지 않게, 큰 글씨 블록 줄임 */
@media (max-width: 1079px) {
  .quick { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .quick a { font-size: 13px; gap: 5px; white-space: nowrap; min-height: 46px; padding: 0 4px; }
  .quick svg { width: 17px; height: 17px; flex: none; }
}
@media (max-width: 767px) {
  .definition { font-size: 16px; line-height: 1.75; padding: 16px 18px; }
  .lead { font-size: 16px; }
  .greeting { font-size: 16px; padding: 22px 22px; }
  .split-b p { font-size: 15.5px; }
}

/* 메인 아래쪽 다시 짬(2026-11-18): 시스템 바로가기 3장, 정의 글은 맨 아래에 작게 */
.sec .jump { margin-top: 28px; }
@media (min-width: 1080px) { .jump.jump-3 { grid-template-columns: repeat(3, 1fr); } }
.definition-sm { font-size: 15.5px; line-height: 1.8; font-weight: 400; color: #3A3150; border-left: 0; border-radius: 20px; background: var(--accent-soft); box-shadow: none; padding: 18px 22px; margin: 18px 0 22px; max-width: 900px; }

/* 학교 소식 칸 */
.sn { margin: 22px 0 6px; }
.ana-main > .sn { margin-top: 36px; }
.sn h2, .sn h4 { margin-bottom: 10px; }
.sn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sn-list li { display: grid; grid-template-columns: 96px auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; background: var(--bg-tint); border-radius: 12px; padding: 9px 14px; font-size: 14.5px; }
.sn-when { color: var(--brand-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn-kind { font-size: 11.5px; border-radius: 999px; padding: 2px 9px; background: #EEEAF5; color: var(--muted); white-space: nowrap; }
.sn-list .k-exam { background: var(--yellow-soft); }
.sn-list .k-exam .sn-kind { background: var(--brand); color: #fff; }
.sn-list .k-perf .sn-kind { background: var(--teal-soft); color: var(--teal-ink); }
.sn-title { min-width: 0; overflow-wrap: anywhere; color: var(--brand-ink); }
.sn-title i { font-style: normal; font-size: 12px; color: var(--muted); }
.sn-list em { font-style: normal; font-size: 12px; color: var(--brand-ink); background: var(--yellow); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
@media (max-width: 599px) { .sn-list li { grid-template-columns: auto auto minmax(0, 1fr); } .sn-list em { grid-column: 1 / -1; justify-self: start; } .sn-title { grid-column: 1 / -1; } }

/* 휴대폰: 본문을 조금 작게, 문단·주제 사이를 넓혀 덩어리가 갈리게 */
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 1.75; }
  p { margin-bottom: 1.15em; }
  .sec { padding: 52px 0; }
  h2 { font-size: 21px; margin-bottom: 16px; }
  .eyebrow { margin-bottom: 10px; }
  .sec-lead, .lead { font-size: 15px; line-height: 1.8; }
  .split { gap: 4px; }
  .split-b p { font-size: 15px; line-height: 1.8; margin-bottom: 0; }
  .split-b p + p { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(75, 42, 138, .12); }
  .greeting p { font-size: 15px; line-height: 1.8; }
  .greeting p + p { margin-top: 16px; }
  .card { padding: 22px 20px 24px; }
  .card h3 { font-size: 17px; margin-bottom: 8px; }
  .card p { font-size: 14px; line-height: 1.7; }
  .cards { gap: 12px; margin-top: 22px; }
  .sub-h { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
  .sec-dark .sub-h { border-top-color: rgba(255, 255, 255, .18); }
  .num-cards p, .step-short, .step-how { font-size: 14px; }
  .ana-main > h2, .ana-main > section + section > h2 { padding-top: 26px; border-top: 1px solid var(--line); }
  .prose section + section { padding-top: 26px; border-top: 1px solid var(--line); }
  .faq-q { font-size: 15.5px; }
  .faq details p { font-size: 14.5px; }
  .facts > div, .kv > div { padding: 11px 0; }
  .ph-slogan { font-size: 27px; }
}

/* 휴대폰에서 글자를 크게 보는 브라우저(카카오톡 등)에서도 칸이 화면 밖으로 밀리지 않게: 한 줄짜리 그리드는 내용 폭이 아니라 화면 폭을 따른다 */
@media (max-width: 767px) {
  .contact-grid, .cards, .school-grid, .class-grid, .num-cards, .result-groups, .review-top, .tally, .foot, .stats, .split, .ph-grid, .greet, .ana, .cycle, .points, .exam-list, .ev, .sn-list { grid-template-columns: minmax(0, 1fr); }
  .stats-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-grid > *, .cards > *, .school-grid > *, .class-grid > *, .num-cards > *, .result-groups > *, .tally > *, .foot > *, .stats > *, .split > *, .ph-grid > *, .greet > *, .ana > *, .contact-actions > * { min-width: 0; }
  .facts > div { grid-template-columns: minmax(64px, 28%) minmax(0, 1fr); }
  .kv > div { grid-template-columns: minmax(72px, 30%) minmax(0, 1fr); }
  .facts dd, .kv dd, .foot-info dd { min-width: 0; overflow-wrap: anywhere; }
  .contact-actions { grid-template-columns: minmax(0, 1fr); }
  .btn-block { white-space: normal; text-align: center; padding: 10px 14px; line-height: 1.35; }
  .tally-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* 휴대폰: 캐릭터 아래 여백, 슬로건·본문 글자 한 단계 더 작게 (원장님 2026-11-19) */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .hero .say-row { margin-bottom: 14px; }
  .hero .say { font-size: 14px; padding: 9px 14px; }
  .hero .face { width: 40px; height: 40px; }
  .hero h1 { font-size: 12.5px; }
  .hero .slogan { font-size: 17px; }
  .hero-desc { font-size: 13.5px; line-height: 1.75; }
  .hero-text { gap: 16px; }
  .sec-lead, .lead { font-size: 14px; }
  .split-b p, .greeting p { font-size: 14px; }
  .card p, .num-cards p, .step-short, .step-how { font-size: 13.5px; }
  .card h3 { font-size: 16.5px; }
  h2 { font-size: 20px; }
  .faq-q { font-size: 15px; }
  .faq details p { font-size: 14px; }
  .jump a b { font-size: 16px; }
  .jump a span { font-size: 13px; }
  .sn-list li, .ev-h b { font-size: 14px; }
  .ev-d { font-size: 13px; }
  .rtable { font-size: 14px; }
  .news-title { font-size: 14.5px; }
  .gnb a { font-size: 16px; }
  .gnb .sub a { font-size: 15px; }
}

/* 휴대폰 메인 버튼 세 개: 글자를 크게 보는 폰에서도 한 줄에 — 글자 수에 맞춘 세 칸 */
@media (max-width: 767px) {
  .hero .btns { display: grid; grid-template-columns: 1.25fr .85fr 1fr; gap: 6px; }
  .hero .btns .btn { min-width: 0; padding: 0 4px; font-size: 12.5px; letter-spacing: -0.03em; white-space: nowrap; min-height: 42px; }
}

/* 오시는 길 지도 */
.map-box { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-tint); aspect-ratio: 16 / 9; max-height: 420px; width: 100%; }
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.map-links .btn { flex: 1 1 200px; min-height: 46px; }
@media (max-width: 767px) { .map-box { aspect-ratio: 4 / 3; } .map-links .btn { font-size: 14px; } }

/* 작성·최종 업데이트 줄: 자료 페이지(고교 가이드·내신 분석)에만, 오른쪽에 작게 */
.page-meta { justify-content: flex-end; font-size: 12px; color: #8A839C; margin-top: 12px; }

/* 소식 글 속 그림 */
.post-fig { margin: 22px 0 26px; }
.post-fig img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 14px; border: 1px solid #E6E1EF; }

/* 학원 소식 목록: 썸네일형(기본) / 목록형 */
.news-view { display: flex; justify-content: flex-end; gap: 4px; margin: 0 0 14px; }
.news-view button { font: inherit; font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.news-view button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-thumb, .news-sum { display: none; }
.news-list.is-list { max-width: 820px; }
.news-list.is-thumb { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-list.is-thumb li { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.news-list.is-thumb a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 0 16px; height: 100%; }
.news-list.is-thumb .news-thumb { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center top; margin-bottom: 8px; background: var(--bg-tint); }
.news-list.is-thumb .badge, .news-list.is-thumb .news-title, .news-list.is-thumb .news-sum, .news-list.is-thumb time { margin-left: 16px; margin-right: 16px; }
.news-list.is-thumb .news-title { font-size: 16px; line-height: 1.45; }
.news-list.is-thumb .news-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.news-list.is-thumb time { margin-top: auto; padding-top: 4px; font-size: 13px; align-self: flex-start; }
.news-list.is-thumb li:hover { border-color: var(--brand); }
@media (max-width: 899px) { .news-list.is-thumb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 599px) {
  .news-list.is-thumb { grid-template-columns: 1fr; gap: 10px; }
  .news-list.is-thumb a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 3px 12px; padding: 10px; align-items: start; }
  .news-list.is-thumb .news-thumb { grid-row: 1 / span 4; width: 104px; border-radius: 10px; margin: 0; }
  .news-list.is-thumb .badge, .news-list.is-thumb .news-title, .news-list.is-thumb .news-sum, .news-list.is-thumb time { margin-left: 0; margin-right: 0; grid-column: 2; grid-row: auto; justify-self: start; }
  .news-list.is-thumb .news-title { font-size: 14.5px; }
  .news-list.is-thumb .news-sum { font-size: 12.5px; }
}

/* ---------- 입시 실적 (2026-11-20 다시 짬) ---------- */
.rs-top { background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3)); color: #fff; position: relative; overflow: hidden; }
.rs-top::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(var(--hero-glow), transparent 70%); pointer-events: none; }
.rs-top::after { content: ""; position: absolute; left: -100px; bottom: -180px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(var(--hero-glow2), transparent 70%); pointer-events: none; }
.rs-top .wrap { position: relative; z-index: 1; }
.rs-top h2 { color: #fff; }
.rs-top .eyebrow { color: #8FD9E4; }
.rs-board { display: grid; gap: 18px; margin-top: 22px; }
.rs-total-n { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.rs-total-n b { font-family: "Space Grotesk", var(--font); font-size: 96px; line-height: 1; font-weight: 700; color: var(--yellow, #FFD84D); letter-spacing: -0.04em; }
.rs-total-n span { font-size: 28px; }
.rs-total-t { margin: 6px 0 0; font-size: 16px; color: #E3D9F7; }
.rs-ms { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.rs-ms li { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.rs-ms b { font-family: "Space Grotesk", var(--font); font-size: 22px; min-width: 76px; color: #fff; }
.rs-ms span { font-size: 14px; color: #D9CEF2; }
.rs-tally { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rs-tally a { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.rs-tally a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.rs-tally span { font-size: 15px; color: #E3D9F7; }
.rs-tally b { font-family: "Space Grotesk", var(--font); font-size: 36px; line-height: 1; color: #fff; }
.rs-tally li:nth-child(-n+2) a { background: #fff; border-color: #fff; }
.rs-tally li:nth-child(-n+2) span { color: var(--muted); }
.rs-tally li:nth-child(-n+2) b { color: var(--brand); }

.rs-groups { margin-top: 22px; columns: 1; column-gap: 16px; }
.rs-group { break-inside: avoid; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 40px); }
.rs-group h3 { margin: 0; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; font-size: 18px; background: var(--accent-soft); color: var(--brand-ink); }
.rs-group h3 em { font-style: normal; font-family: "Space Grotesk", var(--font); font-size: 24px; color: var(--brand); line-height: 1; }
.rs-group h3 small { font-family: var(--font); font-size: 13px; margin-left: 2px; color: var(--muted); }
.rs-group.is-top h3 { background: var(--brand); color: #fff; }
.rs-group.is-top h3 em { color: var(--yellow, #FFD84D); }
.rs-group.is-top h3 small { color: #E3D9F7; }
.rs-group ul { list-style: none; margin: 0; padding: 6px 20px 12px; }
.rs-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 15px; border-bottom: 1px solid var(--bg-tint); }
.rs-group li:last-child { border-bottom: 0; }
.rs-group li b { color: var(--brand-ink); font-weight: 500; }
.rs-group li span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.rs-schools { margin: 12px 0 8px; padding: 22px; border-radius: var(--radius); background: var(--bg-tint); }
.rs-schools h3 { margin: 0 0 4px; font-size: 18px; }
.rs-schools p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.rs-schools ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-schools li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 14px; font-size: 14.5px; }
.rs-schools li b { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); font-size: 13px; }
.rs-schools li:nth-child(-n+3) b { background: var(--brand); color: #fff; }

@media (min-width: 768px) {
  .rs-groups { columns: 2; }
  .rs-tally { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1080px) {
  .rs-board { grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: center; }
  .rs-total-n b { font-size: 120px; }
  .rs-groups { columns: 3; }
}

/* 학원 소식 목록: 머리 구역·바닥 글과 띄우기 (2026-11-20) */
.news-page { padding: 28px var(--gutter) 72px; }
.news-page .news-view { margin-bottom: 18px; }
@media (min-width: 768px) { .news-page { padding-top: 36px; padding-bottom: 96px; } }
