/* ━━━ 섹션 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   목차  01 히어로 · 02 퀵 내비 · 03 Teaching Flow · 04 교재 · 05 바로 이용 가능한 서비스
        06 신규 오픈 · 07 Learning Flow · 08 영어로 쌓아온 자산
   폭은 전부 .container + .grid(10컬럼) 기준. 숫자 옆 주석은 1636 아트보드 실측값.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━ 01 · 히어로 ━━━ */
.hero { position: relative; overflow: hidden; padding: calc(var(--hd-h) + var(--sec-py)) 0 var(--sec-py); background: linear-gradient(to bottom, #EFEFEF 0%, rgb(239 239 239) 68.0%, rgb(239 239 239) 69.2%, rgb(240 240 240) 72.7%, rgb(243 243 243) 77.9%, rgb(247 247 247) 84.0%, rgb(251 251 251) 90.1%, rgb(254 254 254) 95.3%, rgb(255 255 255) 98.8%, rgb(255 255 255) 100.0%); }   /* 위: 헤더 아래 72 · 아래 72 (데스크톱 높이 734) */
.hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  --hero-mask: linear-gradient(to bottom, #000 0%, #000 68.0%, rgb(0 0 0 / 0.996) 69.2%, rgb(0 0 0 / 0.942) 72.7%, rgb(0 0 0 / 0.773) 77.9%, rgb(0 0 0 / 0.5) 84.0%, rgb(0 0 0 / 0.227) 90.1%, rgb(0 0 0 / 0.058) 95.3%, rgb(0 0 0 / 0.004) 98.8%, transparent 100.0%);
  -webkit-mask-image: var(--hero-mask); mask-image: var(--hero-mask); }
/* 히어로 아래가 퀵메뉴(흰 바탕)로 이어지게: 영상 마스크(--hero-mask)와 바탕 그라데이션(.hero)은 같은 구간(아래 32%) · 같은 9단계 곡선 — 한쪽만 바꾸면 띠가 생긴다.
   쌓임 = 영상(z 0) · 블러 막(::after z 1, 아래로 갈수록 세짐) · 내용(.hero__in z 2) — 내용의 z-index 를 빼면 블러가 배너 · 타이틀을 덮는다 */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 40%; pointer-events: none;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / .5) 45%, #000 85%); mask-image: linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / .5) 45%, #000 85%); }
.hero__in { position: relative; z-index: 2; align-items: start; }                                      /* 우측 카드 top 152 */
.hero__copy { padding-top: 64px; }                                                         /* 키커 top 216 */
.hero__kicker { font-family: var(--display); font-weight: 300; font-size: var(--fs-76); line-height: 1.22; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; transition: opacity .12s, transform .12s; }
.hero__kicker.is-changing { opacity: 0; transform: translateY(4px); }
/* hero.js 가 시작 상태(.is-typing · .is-final)를 정하기 전에는 타이틀을 숨긴다 — 마크업의 정적 문구(회색 FLOW)가 먼저 보였다 바뀌지 않게.
   no-js 면 그대로 보이고, 스크립트가 끝내 돌지 않아도 4s 뒤에 나온다(안전장치) */
html:not(.no-js) .hero:not(.is-typing):not(.is-final) .hero__kicker,
html:not(.no-js) .hero:not(.is-typing):not(.is-final) .hero__brand { opacity: 0; animation: heroShow 0s 4s forwards; }
@keyframes heroShow { to { opacity: 1; } }
.hero__brand { display: flex; align-items: center; height: 112px; font-family: var(--display); font-weight: 900; font-size: var(--fs-92); line-height: 1.22; letter-spacing: 0; white-space: nowrap; }
.hero__typed { color: var(--red); }
.hero__cursor { width: .087em; height: 1.054em; margin: 0 .087em 0 .141em; background: var(--red); animation: heroBlink 700ms steps(1, end) infinite; }   /* NE | FLOW 사이 레드 바 — 261007 히어로 구동 목업 실측(92px 에서 폭 8 · 높이 97 · NE 쪽 13 · FLOW 쪽 8). em 이라 글자 크기에 비례한다 */
@keyframes heroBlink { 50% { opacity: 0; } }
@keyframes heroFlowIn { from { opacity: 0; } }   /* 1023 이하 'NE | FLOW' 단계에서 FLOW 가 나타날 때(아래 1023 미디어) */
.hero__flow { color: #D5D5D6; transition: color .3s; }
.hero.is-branded .hero__flow { color: var(--ink); }
.hero__final { margin-top: 30px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.hero.is-final .hero__final { opacity: 1; transform: none; }
.hero__tagline { font-family: var(--display); font-weight: 700; font-size: var(--fs-20); line-height: 1.54; letter-spacing: -.02em; }
.hero__sub { margin-top: 2px; font-size: var(--fs-16); font-weight: 500; line-height: 1.55; letter-spacing: 0; }   /* 자간 0(공통 --ls-body 제외) — 1023 이하 글자 폭 비율(17.16)이 자간 0 기준이다 */
.hero__tagline, .hero__sub { text-wrap: balance; word-break: keep-all; }   /* 390 에서 '…통합 / 포털'처럼 한 단어만 떨어지지 않게 · 띄어쓰기에서만 줄바꿈 */
.hero__tagline .nobr { white-space: nowrap; }   /* 'NE능률의 교재·자료·출제·진단·평가를' 한 묶음 — 줄이 가운뎃점으로 시작하지 않게. 보이지 않는 연결 문자(U+2060)는 복사할 때 섞여 들어가 쓰지 않는다 */
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; margin-top: 100px; font-size: var(--fs-11); font-weight: 600; letter-spacing: .3em; animation: heroCue 2.8s ease-in-out infinite; }   /* neflow.ai 스크롤 큐와 같은 호흡 */
.hero__scroll img { width: 20px; height: auto; }
@keyframes heroCue { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .2; } }
.hero__promos { grid-column: 8 / span 3; display: flex; flex-direction: column; gap: 20px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.hero.show-promos .hero__promos { opacity: 1; transform: none; }
.promo { position: relative; overflow: hidden; border-radius: var(--r-40); background: var(--white); }
.promo--notice { height: 180px; }
/* 공지 배너 슬라이드(NE Flow 오픈 · NELT). padding-bottom 10 = 아래 점 자리만큼 내용을 위로 — 시안: NELT 배지 top 42 · 수치 top 79 */
.notice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 10px; text-align: center; overflow: hidden; }
.notice--open { background: var(--white); }
.notice--open .promo__badge { background: var(--ink); color: var(--white); }
.notice--nelt { background: var(--nelt); color: var(--white); }
.notice--nelt .promo__badge { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.notice--nelt .promo__badge img { display: block; width: 42px; height: 11px; }
.notice__num { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: var(--fs-40); line-height: 1.22; letter-spacing: var(--ls-title); font-variant-numeric: tabular-nums; }
.promo__curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.promo__curve path { stroke-dasharray: 1; stroke-dashoffset: 1; }   /* 1 = 경로 전체 길이(마크업 path 의 pathLength=1) */
/* NE Flow 오픈 라인: hero.js 가 .is-drawn 을 붙일 때마다(원본 · 복제 슬라이드 같이) 한 번 그리고 멈춘다.
   .72 → .08 = 경로 중 배너 안에 보이는 구간(0.30 ~ 0.90) — 0 ~ 1 로 하면 화면 밖을 그리는 동안 비어 있다. 경로를 바꾸면 다시 잰다 */
.hero.show-promos .notice--open.is-drawn .promo__curve path { animation: promoDraw 1.6s var(--ease-io) .3s both; }
html.no-js .promo__curve path { stroke-dashoffset: 0; }
@keyframes promoDraw { from { stroke-dashoffset: .72; } to { stroke-dashoffset: .08; } }
@media (prefers-reduced-motion: reduce) {
  .promo__curve path { stroke-dashoffset: 0; }
  .hero.show-promos .notice--open.is-drawn .promo__curve path { animation: none; }
}
.promo__badge { position: relative; height: 23px; padding: 0 12px; border-radius: 14px; background: var(--white); font-size: var(--fs-12); font-weight: 700; line-height: 23px; }
.promo__title { position: relative; margin-top: 12px; font-family: var(--display); font-weight: 800; font-size: var(--fs-40); line-height: 1.22; letter-spacing: -.03em; }
.promo--slides { aspect-ratio: 394 / 310; background: var(--surface); }
.promo__track { position: absolute; inset: 0; display: flex; transition: transform .7s var(--ease-io); will-change: transform; }
.promo__track.no-anim { transition: none; }
.promo__slide { flex: none; width: 100%; height: 100%; -webkit-user-drag: none; }   /* hero.js 가 양 끝에 반대쪽 복제를 붙인다 — 이어서 넘긴 뒤 .no-anim 으로 몰래 제자리로. 복제에서는 id 가 지워진다 */
.promo__slide > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.promo[aria-roledescription="carousel"] { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.promo.is-drag { cursor: grabbing; }
.promo:not(.is-drag) .notice--open { cursor: default; }   /* NE Flow 오픈 슬라이드는 링크가 없어 grab 커서를 쓰지 않는다(끄는 동안만 grabbing) */
.promo.is-drag a { pointer-events: none; }
/* 점: 시안 10px · 간격 8 · 아래 공지 16 / 교재 20. .is-dark(hero.js — NELT 슬라이드) = 흰 점 */
.promo__dots { position: absolute; left: 50%; bottom: 20px; display: flex; gap: 8px; transform: translateX(-50%); }
.promo--notice .promo__dots { bottom: 16px; }
.promo__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--ink-rgb) / .25); transition: background .3s; }
.promo__dots button[aria-selected="true"] { background: var(--ink); }
.promo.is-dark .promo__dots button { background: rgb(var(--white-rgb) / .3); }
.promo.is-dark .promo__dots button[aria-selected="true"] { background: var(--white); }

/* ━━━ 02 · 퀵 내비 ━━━ */
.quick__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gutter); }
.quick__item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: var(--fs-14); font-weight: 700; color: var(--text-2); text-align: center; }
.quick__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gray-bg); transition: transform .2s var(--ease-out), background-color .2s; }
.quick__ic img { grid-area: 1 / 1; width: 45px; height: 45px; transition: opacity .2s; }
/* 오버: 원 = 레드, 아이콘 = 오버용 사본(ic-quick-*-on.svg). 두 장을 같은 칸(grid-area 1 / 1)에 겹쳐 투명도만 바꾼다.
   (hover: hover) 안 — 밖이면 터치 뒤 레드로 남는다 */
.quick__ic .quick__on { opacity: 0; }
@media (hover: hover) {
  .quick__item:hover .quick__ic { background-color: var(--red); }   /* :hover 와 :focus-visible 을 한 목록에 두지 않는다 — :focus-visible 을 모르는 브라우저(iOS 15.0~15.3 · Safari 15.3 이하)는 목록 전체를 버려 :hover 까지 사라진다 */
  .quick__item:focus-visible .quick__ic { background-color: var(--red); }
  .quick__item:hover .quick__ic img { opacity: 0; }
  .quick__item:focus-visible .quick__ic img { opacity: 0; }
  .quick__item:hover .quick__ic .quick__on { opacity: 1; }
  .quick__item:focus-visible .quick__ic .quick__on { opacity: 1; }
}
@media (hover: hover) {
  .quick__item:hover .quick__ic { transform: translateY(-3px); }
  .quick__item:hover { color: var(--ink); }
}
/* Teaching Flow 아래 ~ 그 아래 섹션 전부(교재 · 서비스 · 신규 오픈 · Learning Flow · 자산) = 위아래 여백 2배. Teaching Flow 위 · 히어로 · 퀵 · 푸터는 1배 */
.tf { padding-bottom: calc(var(--sec-py) * 2); }
.tf ~ .sec { padding-block: calc(var(--sec-py) * 2); }
.tf ~ .books, .tf ~ .svc { padding-top: var(--sec-py); }   /* 교재 · 서비스는 위 1배 · 아래 2배(Teaching Flow 와 같다) */

/* ━━━ 03 · Teaching Flow ━━━
   띠: 활성 단계가 가운데. 라벨은 44px 로 그리고 비활성은 scale(36/44) — 글자 크기 대신 transform 이라 레이아웃이 흔들리지 않는다.
   카드: 가운데 1장 + 양옆 scale(.8) · opacity(.42), 간격 28(grammar 편의 기능과 같은 수치).
   띠 · 카드의 transform · 투명도(라벨은 --o) · 색 · z-index 는 teaching-flow.js 가 프레임마다 넣는다 — transition 을 걸면 JS 와 겹쳐 출렁인다 */
.tf { --card-w: min(1084px, calc(var(--inner-w) * 0.797)); }   /* 가운데 카드 폭 — 카드 · 좌우 버튼 · 양옆 흐림(띠 · 무대)이 같이 쓴다 */
.tf-band { position: relative; height: 116px; overflow: hidden; box-shadow: inset 0 1px rgb(var(--black-rgb) / .1), inset 0 -1px rgb(var(--black-rgb) / .1); }
/* 위아래 선은 border 가 아니라 안쪽 그림자 — overflow: hidden 이 테두리 안쪽에서 자르므로 border 면 양옆 흐림이 선을 덮지 못한다 */
.tf-band__item { position: absolute; top: 50%; left: 0; padding: 0; white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: var(--fs-44); line-height: 1.2; letter-spacing: var(--ls-title); color: var(--ink);
  transform-origin: center center; opacity: var(--o, 1); will-change: transform; }
.tf-band__item[aria-selected="false"]:hover { opacity: max(var(--o, .2), .45); }   /* (hover: hover) 밖이어도 된다 — 탭하면 그 단계가 되어 오버가 남지 않는다 */
.tf-band__dot { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--line-2); }

.tf-stage { position: relative; overflow: hidden; overflow: clip visible; margin-top: var(--head-gap); }   /* clip visible = overflow-x: clip(세로는 그대로) — 빼면 옆 카드 때문에 문서가 가로로 넘친다. 앞의 hidden 은 clip 을 모르는 브라우저(iOS 15 · Safari 15)용 — 없으면 그 기기에서 모바일 화면이 40% 로 축소된다 */
/* 양옆 흐림(띠 · 무대 공통, 가운데 카드 바깥 폭). z 11 = 카드(JS z-index 0~10) 위 · 좌우 버튼(12) 아래, 클릭은 통과 */
.tf-band::before, .tf-band::after, .tf-stage::before, .tf-stage::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 11; width: max(60px, calc(50% - var(--card-w) / 2 - 6px)); pointer-events: none; }
.tf-band::before, .tf-stage::before { left: 0; background: linear-gradient(90deg, var(--white) 0%, rgb(var(--white-rgb) / .62) 55%, rgb(var(--white-rgb) / 0) 100%); }
.tf-band::after, .tf-stage::after { right: 0; background: linear-gradient(270deg, var(--white) 0%, rgb(var(--white-rgb) / .62) 55%, rgb(var(--white-rgb) / 0) 100%); }
.tf-track { display: grid; justify-content: center; touch-action: pan-y; }
.tf-card { grid-area: 1 / 1; width: var(--card-w); padding: 61px 138px 58px; border-radius: var(--r-30); background: var(--surface);
  will-change: transform, opacity; }
.tf-card[data-pos="-1"], .tf-card[data-pos="1"] { cursor: pointer; }
.tf-card:not([data-pos="0"]) .svc-card { pointer-events: none; }   /* 옆 카드 = 단계 넘김만. 안의 카드는 오버로 펼치지 않는다 */
.tf-card__head { display: flex; align-items: center; gap: 0; min-height: 80px; }
.tf-card__title { flex: none; width: 200px; font-family: var(--display); font-weight: 600; font-size: var(--fs-32); line-height: 1.25; letter-spacing: -.02em; }
.tf-card__rule { flex: none; width: 1px; height: 74px; margin-right: 52px; background: rgb(var(--black-rgb) / .1); }
.tf-card__lead { font-size: var(--fs-20); line-height: 1.5; letter-spacing: -.02em; }
.tf-card__lead b { font-weight: 700; }
.tf-card__lead--mo { display: none; }   /* 1023 이하 문구(banners.js leadMo) */
.tf-card__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: 33px; }
.tf-card__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 카드 수별 배치: 2장 = 2열 · 3장 = 3열 · 4장 이상 = 가로 줄(--flow · 데스크톱만, 끌기 = teaching-flow.js — scroll-snap 을 켜면 끄는 중 카드 단위로 튄다).
   --flow 는 패널 좌우 끝까지 편다: 음수 margin-inline + padding-inline = --tf-px(= .tf-card 좌우 padding, 같이 바꾼다).
   위 12 · 아래 40 padding(오버 때 떠오르는 카드 · 그림자 자리)은 margin(위 21 = 33 - 12 · 아래 -40)과 한 쌍 */
.tf-card { --tf-px: 138px; }
@media (min-width: 1024px) {
  .tf-card__cards--flow { position: relative; display: flex; gap: var(--gutter); margin: 21px calc(-1 * var(--tf-px)) -40px; padding: 12px var(--tf-px) 40px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
  .tf-card__cards--flow::-webkit-scrollbar { display: none; }
  .tf-card__cards--flow > * { flex: none; width: calc((100% - 2 * var(--gutter)) / 3); }
  .tf-card__cards--flow.is-drag { cursor: grabbing; }
}
/* 배너는 한 규격(256×218). 2장 단계 칸(394×218)만 배너보다 넓어 contain 으로 가운데 두고 좌우를 배너 배경색(--thumb-bg)으로 채운다 */
.tf-card__cards .svc-card__thumb img { object-fit: contain; }
.tf-strip { display: none; }   /* 1023 이하 카드 한 줄(teaching-flow.js 가 만든다) */
.tf-nav { position: absolute; top: 50%; z-index: 12; transform: translateY(-50%); }   /* 12 = 카드(0~10) · 양옆 흐림(11) 위 */
.tf-nav:hover { transform: translateY(-50%) scale(1.06); }
.tf-nav--prev { left: calc(50% - var(--card-w) / 2 - 28px - 64px); }
.tf-nav--next { right: calc(50% - var(--card-w) / 2 - 28px - 64px); }

/* ━━━ 04 · 해당 교재로 바로 시작하세요 ━━━
   왼쪽 6칸(808): 필터 + 표지 타일 3열 / 오른쪽 4칸(532): 22 띄운 세로선(1) + 안쪽 45 → 내용 464
   시안(1636): 타일 끝 x946 → 선 x988(42) → 내용 x1034(46). 선 길이 = 필터 위 ~ 2번째 줄 라벨 아래(785) → 패널을 왼쪽 높이에 맞춰 늘린다
   패널 안 세로: 제목 위 13 · 제목→부제 9 · 부제→칩 24 · 칩→구분선 37 · 구분선→첫 행 53 · 행 간격 98 */
.books__grid { align-items: start; }
.books__filters { display: grid; gap: 14px; margin-bottom: 53px; }
.bf-row { display: flex; align-items: center; gap: 14px; }
.bf-row__label { flex: none; width: 64px; font-size: var(--fs-13); font-weight: 700; color: var(--weak); }
.bf-row__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.books__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px var(--gutter); }   /* 줄 간격 = 시안 행 피치 338 */
.book-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.book-tile__box { display: grid; place-items: center; aspect-ratio: 256 / 264; border-radius: var(--r-30); background: var(--surface); transition: background .25s; }
.book-tile__box img { width: 57%; height: auto; aspect-ratio: 146 / 197; object-fit: contain; filter: drop-shadow(0 18px 22px rgb(var(--black-rgb) / .18)); transition: transform .3s var(--ease-out); }
.book-tile__box img.is-broken, .bk-modal__cover img.is-broken { visibility: hidden; }   /* 표지를 못 받았을 때(books.js) 빈 타일만 — (hover: hover) 안에 두면 터치 기기에서 대체 글자가 보인다 */
@media (hover: hover) { .book-tile:hover .book-tile__box img { transform: translateY(-4px); } }
.book-tile[aria-selected="true"] .book-tile__box { background: var(--red); }
.book-tile__label { padding: 0 16px; font-size: var(--fs-16); font-weight: 500; line-height: 1.4; color: var(--ink); text-align: center; }
.book-more { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 256 / 264; padding: 40px 28px 22px; border-radius: var(--r-30); background: var(--ink); color: #E2E2E2; }
.book-more__t { font-size: 22px; font-weight: 700; line-height: 1.32; letter-spacing: var(--ls-title); }
.book-more__plus { align-self: flex-end; font-size: 55px; font-weight: 300; line-height: 1; }
.books__empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; font-size: var(--fs-16); color: var(--muted); }

.books__panel { grid-column: 7 / span 4; align-self: stretch; margin-left: 22px; padding: 13px 0 0 45px; border-left: 1px solid var(--line); min-height: 660px; container-type: inline-size; }   /* 제목 크기 기준(cqi) */
.bp-title { font-size: clamp(26px, 7.8cqi, 36px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }   /* 패널 폭 기준: 1440 = 36, 패널이 좁아지면 26 까지 — 36 고정이면 1024~1400 에서 3줄로 넘친다 */
@supports not (width: 1cqi) {   /* cqi 를 모르는 브라우저(iOS 15 · 크롬 105 미만)용 — 패널 폭을 화면 폭으로 환산한 같은 값 */
  .bp-title { font-size: clamp(26px, (min(100vw, 1440px) * .4 - 112px) * .078, 36px); }
  @media (max-width: 1279px) { .bp-title { font-size: clamp(26px, (100vw * .4 - 99px) * .078, 36px); } }
  @media (max-width: 1023px) { .bp-title { font-size: clamp(26px, var(--inner-w) * .078, 36px); } }
}
.bp-title__l { display: block; text-wrap: balance; }   /* 줄 단위(books.js titleLines) */
.bp-sub { margin-top: 9px; font-size: var(--fs-18); color: var(--ink); }
.bp-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bp-rule { height: 1px; margin: 37px 0 30px; background: var(--line); }   /* + 행 위 패딩 23 = 구분선→첫 행 53 */
.bp-list { display: grid; }
.bp-row { display: flex; align-items: center; gap: 14px; padding: 23px 0; }
.bp-row__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-10); background: var(--white); }
.bp-row__ic img { width: 52px; height: 52px; }
.bp-row__tx { flex: 1; min-width: 0; container: bprow / inline-size; }
.bp-row__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--fs-20); font-weight: 700; line-height: 1.3; letter-spacing: var(--ls-title); }   /* 이름 + 뱃지 flex — 넘쳐도 뱃지가 들여쓰기 없이 왼쪽에 붙는다(컨테이너 쿼리를 모르는 브라우저의 대체) */
/* 칸(.bp-row__tx = 컨테이너 bprow)이 모자라면 뱃지를 이름 위로 — 아래로 떨어지면 이름과 설명 사이에 낀다. 기준 219 · 254 = 가장 긴 '문법 문제 출제 서비스 + 11월 중 오픈'이
   한 줄에 드는 폭(767 이하 16px · 그 위 20px) — 모든 행이 같은 기준으로 같이 바뀐다. 이름 · 뱃지 문구 · 글자 크기가 바뀌면 다시 잰다 */
@media (max-width: 767px) { @container bprow (max-width: 219px) { .bp-row__name { flex-direction: column-reverse; align-items: flex-start; } } }
@media (min-width: 768px) { @container bprow (max-width: 254px) { .bp-row__name { flex-direction: column-reverse; align-items: flex-start; } } }
.bp-badge { display: inline-flex; align-items: center; height: 22px; padding: 1px 8px 0; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: var(--fs-11); font-weight: 600; line-height: 19px; letter-spacing: var(--ls-badge); white-space: nowrap;
  flex: none; }   /* 상태 뱃지 S(메뉴 .gm-st 와 같은 규격 · 문구 = services.js badge). 기본 = 블랙(오픈 예정 · 리뉴얼 예정). 이름과의 간격은 .bp-row__name gap */
.bp-badge.is-new { border-color: var(--red); background: var(--red); color: var(--white); }   /* NEW = 레드. 색 클래스는 문구로 고른다(N.badgeTone) */
.bp-badge.is-month { border-color: var(--blue); background: var(--blue); }   /* 11월 중 오픈 = 블루 */
.bp-row__desc { display: block; margin-top: 4px; font-size: var(--fs-14); color: var(--text-2); }
.bp-row .ic-arrow--soft { transition: background .2s, color .2s; }
@media (hover: hover) { .bp-row:hover .ic-arrow--soft { background: var(--ink); color: var(--white); } }
.books__panel:empty { border-color: transparent; }
.books__panel.is-swap > * { animation: bpIn .2s var(--ease-out); }   /* 교재가 바뀔 때만(타일 · 자동 순환, books.js) — 레벨 칩은 효과 없음 */
@keyframes bpIn { from { opacity: 0; } }

/* ━━━ 05 · 바로 이용 가능한 서비스 ━━━
   카드 3장(1360×400 · r30 · 간격 40). 스크롤 고정 스택 = service-stack.js */
.svc-stack__vp { display: grid; gap: 40px; }
.svc-bn { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 400px; border-radius: var(--r-30); overflow: hidden; transform-origin: center top; }
.svc-bn--nelt { background: var(--bn-nelt); }
.svc-bn--achieve { background: var(--bn-achieve); }
.svc-bn--netimes { background: var(--bn-netimes); }
.svc-bn__tx { grid-column: 2 / span 4; padding-block: 60px; }
.svc-bn__kicker { font-family: var(--display); font-weight: 900; font-size: var(--fs-36); line-height: 1.2; letter-spacing: -.02em; }
.svc-bn__title { margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: var(--fs-48); line-height: 1.2; letter-spacing: -.02em; }
.svc-bn__desc { margin-top: 18px; font-size: var(--fs-16); font-weight: 500; line-height: 1.56; color: var(--ink); }   /* 잉크 500 — 색 있는 카드 위에서 회색은 대비가 낮다(주황 바탕: 회색 4.7 : 1 · 잉크 8.9 : 1). 첫 줄(b, 700)과의 위계는 굵기로 */
.svc-bn__desc b { color: var(--ink); font-weight: 700; }
.svc-bn .btn-pill { margin-top: 46px; }
.svc-bn__v { grid-column: 6 / span 4; align-self: stretch; display: grid; place-items: center; }
.svc-bn__v img { width: 100%; height: 100%; max-height: 400px; object-fit: contain; }
/* 스택 동작 중(.is-stacking — service-stack.js). 고정 = 제목 + 카드 묶음(.svc-stack__pin) — 카드가 올라오는 동안 제목이 보이게(ne-ai-portal 원본과 같다).
   top 은 JS 가 화면 높이에 맞춰 덮어쓴다(여기 값 = 헤더 아래 24) */
.svc-stack.is-stacking .svc-stack__pin { position: sticky; top: calc(var(--hd-h) + 24px); }
.svc-stack.is-stacking .svc-stack__vp { position: relative; display: block; }
.svc-stack.is-stacking .svc-bn ~ .svc-bn { position: absolute; top: 0; left: 0; right: 0; }   /* + 가 아니라 ~ — 카드 사이에 그림자 층(.svc-bn__sh)이 끼어 있다 */
/* 뒤 카드 그림자 층(터치 기기만 — service-stack.js 가 카드 바로 앞에 끼운다). 모양 = 데스크톱 카드 box-shadow, 진하기 = opacity.
   will-change 는 움직이는 구간(.is-moving)에만 — 늘 켜 두면 멈춘 카드의 글자가 흐려진다 */
.svc-bn__sh { position: absolute; top: 0; left: 0; right: 0; border-radius: var(--r-30); transform-origin: center top; opacity: 0; pointer-events: none;
  box-shadow: 0 -12px 40px -16px rgb(var(--shadow-rgb) / .28), 0 12px 36px -22px rgb(var(--shadow-rgb) / .2); }
.svc-stack.is-moving .svc-bn { will-change: transform; }
.svc-stack.is-moving .svc-bn__sh { will-change: transform, opacity; }

/* ━━━ 06 · 신규 오픈 서비스 ━━━ 3등분(440) · 같은 거터 20 */
.news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.news-card { display: flex; flex-direction: column; height: 100%; padding: 28px 28px 48px; border-radius: var(--r-30); background: var(--white); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
@media (min-width: 1024px) { .news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgb(var(--shadow-rgb) / .4); } }   /* 1024 이상만 — 밖으로 빼면 휴대폰에서 탭한 뒤 떠오른 채 남는다 */
.news-card.is-soon { cursor: default; }   /* 오픈 예정 = 링크 아님(손 커서 없음 · 오버 효과는 다른 카드와 같다) */
.news-card__status { align-self: flex-start; height: 28px; padding: 0 11px; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: var(--fs-12); font-weight: 600; line-height: 26px; letter-spacing: var(--ls-badge); white-space: nowrap; }   /* 상태 뱃지 M(카드 썸네일 .svc-card__flag 와 같은 규격) */
.news-card__status.is-new { border-color: var(--red); background: var(--red); }   /* 색 클래스 = .bp-badge 와 같은 체계(N.badgeTone) */
.news-card__status.is-month { border-color: var(--blue); background: var(--blue); }
.news-card__thumb { margin-top: 20px; aspect-ratio: 384 / 210; border-radius: var(--r-14); overflow: hidden; background: var(--gray-bg); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__title { margin-top: 22px; font-size: var(--fs-20); font-weight: 800; line-height: 1.4; letter-spacing: var(--ls-title); }
.news-card__strong { margin-top: 12px; font-size: var(--fs-16); font-weight: 700; line-height: 1.4; }
.news-card__desc { margin-top: 6px; margin-bottom: 28px; font-size: var(--fs-16); line-height: 1.5; color: var(--muted); }
/* CTA = 서비스 카드 바로가기와 같은 블랙 알약. 카드 아래 끝에 붙여(margin-top: auto) 세 장의 CTA 높이를 맞춘다 */
.news-card__cta { margin-top: auto; }
.news-card:has(.news-card__cta) { padding-bottom: 28px; }   /* 아래 여백 = 좌우 여백 */
@supports not selector(:has(a)) { .news-card { padding-bottom: 28px; } }   /* :has 를 모르는 브라우저(iOS 15.0~15.3 · 크롬 105 미만)용 — 지금 카드는 모두 CTA 가 있어 결과가 같다 */

/* ━━━ 07 · Learning Flow ━━━
   패널 1360 · r40. 카드 줄(.lf-row)은 화면 끝까지 간다(margin 50% - 50vw — 패널이 화면 가운데라는 전제). 카드 5장 그대로(복제 · 무한 반복 없음) */
.lf-panel { position: relative; padding: 90px 0 54px; border-radius: var(--r-40); background: var(--surface); }
.lf-panel__title, .lf-panel__sub { margin-left: calc((100% - 9 * var(--gutter)) / 10 + var(--gutter)); }   /* 2번째 칸 시작(x276) */
.lf-panel__title { font-family: var(--display); font-weight: 800; font-size: var(--fs-36); line-height: 1.15; letter-spacing: -.02em; }
.lf-panel__sub { margin-top: 18px; font-size: var(--fs-18); color: var(--text-2); }   /* 섹션 설명(.sec-head__lead)과 같은 크기 */
.lf-row { margin-top: 32px; margin-bottom: -40px; padding-block: 12px 40px; margin-right: calc(50% - 50vw); padding-left: calc((100% - 9 * var(--gutter)) / 10 + var(--gutter));
  padding-right: var(--pad-x); overflow-x: auto; scrollbar-width: none; cursor: grab; }   /* padding 위 12 · 아래 40 = 오버 때 떠오르는 카드 · 그림자 자리(가로 스크롤 줄은 위아래도 자른다). 아래 40 은 margin-bottom -40 과 한 쌍 */
.lf-row::-webkit-scrollbar { display: none; }
.lf-row.is-drag { cursor: grabbing; }
.lf-row.is-drag a { pointer-events: none; }
.lf-track { display: flex; gap: var(--gutter); width: max-content; }
.lf-track > li { flex: none; width: 256px; }
.lf-row .svc-card { height: 100%; }
.lf-row .svc-card__thumb { background: transparent; }
/* 좌우 버튼: 패널 오른쪽 위(제목 줄 높이 · 오른쪽 끝 = 9번째 칸 끝). 넘칠 때만(.has-overflow — sections.js) · 데스크톱만 */
.lf-nav { position: absolute; top: 98px; right: calc((100% - 9 * var(--gutter)) / 10 + var(--gutter)); display: none; gap: 12px; }
.lf-panel.has-overflow .lf-nav { display: flex; }
.lf-nav__btn { width: 48px; height: 48px; }
.lf-nav__btn svg { width: 20px; height: 20px; }
/* 등장(1023 이하 — 데스크톱은 아래 미디어에서 덮는다): 두 겹을 더한다. transform = 화면 오른쪽 밖 → 한 칸 오른쪽까지 빠르게(뒤 카드일수록 멀리서),
   translate = 한 칸(카드 + 거터) → 제자리까지 길게 감속. 하나로 합치면 '도착해서 멈춤'이 생긴다. --i = 카드 순번(sections.js) */
.lf-track > li { opacity: 0; transform: translateX(calc(42vw + var(--i, 0) * 72px)); translate: calc(100% + var(--gutter)) 0;
  transition: opacity .9s var(--ease-out), transform 1.35s cubic-bezier(.16, 1, .3, 1), translate 4.8s cubic-bezier(.3, .5, .4, 1);
  transition-delay: calc(var(--i, 0) * 70ms); }
.lf-row.is-in .lf-track > li { opacity: 1; transform: none; translate: 0 0; }
/* 데스크톱 등장 — 줄은 처음부터 끝 자리(맨 오른쪽 배너가 패널 안 · 오른쪽 여백 = 줄 왼쪽 여백, sections.js)에 있고 카드만 오른쪽에서 하나씩 들어온다.
   줄 스크롤과 카드 등장을 겹치면 중간에 가속이 붙는다. 그 끝 자리까지 스크롤되게 트랙 끝에 빈 칸(--lf-tail, sections.js)을 둔다 */
@media (min-width: 1024px) {
  .lf-track > li { transform: translateX(calc(30vw + var(--i, 0) * 56px)); translate: none; transition: opacity 1s var(--ease-out), transform 1.9s cubic-bezier(.25, .5, .35, 1); transition-delay: calc(var(--i, 0) * 110ms); }
  .lf-track::after { content: ""; flex: none; width: var(--lf-tail, 0px); }
  /* 줄을 화면 왼쪽 끝까지 — 첫 배너 자리는 그대로: padding-left = 화면 끝 → 패널 왼쪽(50vw - 50%) + 2번째 칸 시작 */
  .lf-row { margin-left: calc(50% - 50vw); padding-left: calc(50vw - 50% + (100% - 9 * var(--gutter)) / 10 + var(--gutter)); }
}

/* ━━━ 08 · 영어로 쌓아온 자산 ━━━ */
.why__title { font-weight: 300; }
.marquee { position: relative; height: 412px; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 3; width: 12%; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--dark), rgb(var(--dark-rgb) / 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--dark), rgb(var(--dark-rgb) / 0)); }
.marquee__row { position: absolute; left: 0; right: 0; height: 226px; }
.marquee__row--a { top: 0; z-index: 1; }
.marquee__row--b { top: 186px; z-index: 2; }                       /* 앞줄이 뒷줄 아래 40px 를 덮는다(226 - 40) */
.marquee__track { display: flex; gap: 16px; width: max-content; will-change: transform; animation: mqLeft var(--mq-dur, 70s) linear infinite; }
.marquee__row--b .marquee__track { margin-left: -95px; animation-name: mqRight; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }   /* 화면 밖 · 동작 줄이기에서만(sections.js) — 마우스 오버로는 멈추지 않는다 */
.marquee__track img { flex: none; width: 173px; height: 226px; border-radius: 6px; object-fit: cover; background: #E9EDF3;
  box-shadow: 0 14px 30px -12px rgb(var(--black-rgb) / .58), 0 4px 10px -3px rgb(var(--black-rgb) / .3); }
/* 이동량 = 한 벌 폭(간격 16 포함, px) — sections.js 가 --mq-shift 로 넣는다. 퍼센트로 두면 반올림 오차로 이음매가 튄다 */
@keyframes mqLeft { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--mq-shift, 1700px) * -1), 0, 0); } }
@keyframes mqRight { from { transform: translate3d(calc(var(--mq-shift, 1700px) * -1), 0, 0); } to { transform: translate3d(0, 0, 0); } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 53px; }
.stats__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 176px; padding-top: 49px; text-align: center; }
.stats__item + .stats__item::before { content: ""; position: absolute; left: calc(var(--gutter) / -2); top: 0; bottom: 0; width: 1px; background: rgb(var(--white-rgb) / .16); }
.stats__num { font-size: var(--fs-48); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: var(--red-on-dark); }
.stats__num small { margin-left: 2px; font-size: var(--fs-20); }
.stats__label { margin-top: 14px; font-size: var(--fs-14); line-height: 1.6; color: var(--white); }

/* ━━━ 반응형 ━━━ */
@media (max-width: 1279px) {
  .hero__kicker { font-size: 60px; }
  .hero__brand { font-size: 72px; height: 92px; }
  .tf-card { --tf-px: 72px; padding: 48px 72px 48px; }
  .books__panel { padding-left: 32px; }   /* 패널이 좁은 1024~1279 — 제목이 3줄로 넘치지 않게 */
  .tf-card__title { font-size: var(--fs-28); }
  .tf-card__lead { font-size: var(--fs-18); }
  .svc-bn__tx { grid-column: 1 / span 5; padding-left: 56px; }
}
@media (max-width: 1023px) {
  .hero::after { display: none; }   /* 블러 막은 데스크톱만 — 재생 중인 영상 위 블러는 모바일 GPU 부담. 마스크 흐림은 그대로 */
  /* 1023 이하 히어로: 키커 한 줄 + 'NE | FLOW' + 서브 한 줄, 가운데. 크기 = 기준 폭(--hero-w) 비율 — 키커 줄 폭 64% · NE | FLOW 글자 폭 80%.
     글꼴 실측: 키커 한 줄 = 글자 크기 × 7.2(자간 -.03em 포함), NE FLOW = × 5.1 → 390 = 31 / 55px · 1023 = 87 / 153px. 글꼴 · 자간 · 문구를 바꾸면 비율(7.2 · 5.1 · 서브 17.16)을 다시 잰다.
     FLOW 는 .is-flow 단계(hero.js)에서만 — 390 에서 TEACHING + 바 = 318 / 컨테이너 350 이라 FLOW 까지 두면 넘친다 */
  /* 화면에서만 숨김(스크린리더는 읽는다) — 히어로 태그라인 · Teaching Flow 패널 제목(위 띠의 단계 이름이 곧 제목) */
  .hero__tagline, .tf-card__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* 기준 폭 = 컨테이너 폭, 단 화면 높이의 140% 까지 — 휴대폰 가로(844×390)처럼 낮은 화면에서만 줄어 NE | FLOW 가 화면 높이를 다 채우지 않는다 */
  .hero { --hero-w: min(var(--inner-w), 140vh); padding-bottom: 28px; }   /* 아래 28 + .quick 위(--sec-py / 2) = 배너 ~ 퀵메뉴 아이콘 52(768 ~ 1023 은 56) */
  .quick { padding-top: calc(var(--sec-py) / 2); }
  .hero__kicker { font-size: calc(var(--hero-w) * .64 / 7.2); text-align: center; }
  .hero__brand { font-size: calc(var(--hero-w) * .8 / 5.1); height: 1.28em; justify-content: center; padding-right: .055em; }   /* 오른쪽 안 여백 .055em = NE 왼쪽 글자 여백만큼 — 상자가 아니라 글자(잉크) 기준으로 가운데 */
  .hero.is-typing:not(.is-flow) .hero__flow { display: none; }
  .hero.is-typing.is-flow .hero__flow { animation: heroFlowIn .3s var(--ease-out); }
  .hero__final { margin-top: 0; }   /* 0 이면 NE FLOW ↔ 서브 글자 간격 = 키커 ↔ NE FLOW 간격(NE FLOW 크기 × .33) — 세 줄이 같은 리듬 */
  .hero__sub { margin-top: 0; font-size: calc(var(--hero-w) * .8 / 17.16); white-space: nowrap; text-align: center; padding-left: .01em; }   /* 한 줄 글자 폭 = NE | FLOW 글자 폭(80%): 이 문장 = 글자 크기 × 17.16(Pretendard 500 실측). padding-left .01em = 글자 기준 가운데를 NE FLOW 와 맞춤 */
  .hero__scroll { display: none; }
  .promo__title, .notice__num { font-size: clamp(30px, 24.57px + 1.508vw, 40px); }
  .svc-bn__kicker { font-size: clamp(22px, 14.40px + 2.112vw, 36px); }
  .svc-bn__title { font-size: clamp(34px, 26.40px + 2.112vw, 48px); }
  .svc-bn__desc { font-size: var(--fs-16); }   /* 데스크톱과 같은 16(폭 비례 없음) */
  .stats__num { font-size: clamp(30px, 20.23px + 2.715vw, 48px); }
  .hero__in { row-gap: 40px; }
  .hero__copy { grid-column: 1 / -1; padding-top: 0; }
  .hero__promos { grid-column: 1 / -1; flex-direction: row; }
  .hero__promos > .promo { flex: 1; }
  .promo--notice { height: auto; aspect-ratio: 394 / 310; }
  /* 퀵메뉴 4개 한 줄 — .is-pc-only(교재 추천 레벨테스트 · 시험지 만들기)를 뺀다. 원 64 그대로(360 한 칸 71), 긴 이름은 띄어쓰기에서 두 줄 */
  .quick__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick__list > .is-pc-only { display: none; }
  .quick__item { word-break: keep-all; }

  .tf-band { height: clamp(64px, 53.14px + 3.017vw, 84px); }
  .tf-band__item { font-size: clamp(22px, 17.66px + 1.207vw, 30px); }   /* 위치는 JS 가 글자 폭을 다시 재서 맞춘다 */
  .tf { --card-w: calc(var(--inner-w) - 48px); --tf-px-m: 32px; --tf-pb: 36px; --tf-pbb: calc(var(--tf-pb) + 12px); }   /* --tf-pbb = 카드 줄 아래 ~ 박스 끝(= 박스 위 여백) — .tf-card padding-bottom · .tf-strip 위 · 아래 margin 세 곳에 같이 들어간다 */
  .tf-band::before, .tf-band::after, .tf-stage::before, .tf-stage::after { display: none; }
  .tf-nav { display: none; }
  .tf-card { padding: calc(var(--tf-pb) + 12px) var(--tf-px-m) calc(var(--strip-h, 340px) + var(--tf-pbb) + var(--tf-gap, 24px)); }   /* 아래 = 카드 한 줄 자리(--strip-h, teaching-flow.js 가 잰다) + --tf-pbb + 설명 ~ 카드 간격(--tf-gap) */
  .tf-card__head { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .tf-card__rule { display: none; }
  .tf-card__lead { font-size: clamp(20px, 16.74px + 0.905vw, 26px); letter-spacing: -.03em; word-break: keep-all; }
  .tf-card__lead--pc { display: none; }
  .tf-card__lead--mo { display: block; font-family: var(--display); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }   /* 와이어프레임 'MO 카드 카피'(banners.js leadMo) — leadMo 가 없는 단계는 --pc 가 붙지 않아 PC 문구 그대로 */
  .tf-card__lead--mo b { font-weight: 800; }
  /* 카드 한 줄 — 패널 밖 한 줄(화면 끝까지)을 패널 아래쪽에 음수 margin 으로 겹친다. 첫 카드 자리 = 패널 안 왼쪽 여백(--tf-px-m).
     padding 위아래 32 = 퀵메뉴 강조 빛(.is-pinged · 카드 밖 약 34) 자리 — 줄이면 빛이 칼같이 끊긴다. margin 의 32 와 한 쌍 */
  .tf-card__cards { display: none; }
  .tf-strip { display: block; position: relative; z-index: 11; margin: calc(-1 * (var(--strip-h, 340px) + var(--tf-pbb) + 32px)) 0 calc(var(--tf-pbb) - 32px);
    padding: 32px calc(50% - var(--card-w) / 2 + var(--tf-px-m)) 32px; scroll-padding-left: calc(50% - var(--card-w) / 2 + var(--tf-px-m));
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tf-strip::-webkit-scrollbar { display: none; }
  .tf-strip__track { display: flex; gap: 12px; width: max-content; }
  /* 가로로 넘기는 카드 한 장 폭 = 공통 토큰 하나(--m-card-w) — Teaching Flow 카드 줄 · 신규 오픈 · Learning Flow 가 같이 쓴다. 섹션마다 따로 폭을 주지 않는다 */
  .tf-strip__item, .news__list > li, .lf-track > li { flex: none; width: var(--m-card-w); scroll-snap-align: start; }
  /* 카드는 늘 살짝 떠 있다 — 흰 카드와 패널(#F7F7F7) 대비가 1.07:1 이고, 카드 줄이 패널 밖 흰 바탕까지 나가 그 구간은 테두리가 사라진다.
     세기 = 데스크톱 오버 그림자의 절반. 퀵메뉴 빛(cardGlow · base.css)이 --card-sh 를 같이 그려 빛나는 동안에도 그림자가 남는다. 여유는 각 줄의 padding(32 · 40) */
  .svc-card, .news-card { --card-sh: 0 10px 24px -16px rgb(var(--shadow-rgb) / .22); box-shadow: var(--card-sh); }
  .tf-strip .svc-card { height: 100%; }   /* 썸네일 비율 256/218 은 .svc-card--sm */
  .tf-strip .svc-card__thumb img { object-fit: contain; }

  .books__pick, .books__panel { grid-column: 1 / -1; }
  /* 교재: 상세 패널은 숨기고, 표지를 누르면 books.js 가 패널 요소를 전체 화면 모달(.bk-modal)로 옮긴다. 자동 순환은 없다 */
  .books__panel { display: none; }
  .bk-modal .books__panel { display: block; min-height: 0; margin: 0; padding: 0; border: 0; }
  .books__filters { gap: 10px; margin-bottom: 24px; }
  .bf-row { align-items: flex-start; gap: 12px; min-width: 0; }   /* min-width 0 — 지금은 칩이 줄바꿈돼 영향이 없지만, 칩 줄을 가로 스크롤로 바꾸면 행이 칩 전체 길이만큼 늘어나 모바일 화면이 통째로 축소된다(390 → 446) */
  .bf-row__label { width: 44px; line-height: 44px; }   /* 두 라벨(학교급 · 영역) 폭을 같게 해 칩 시작점을 맞춘다. 줄 높이 44 = 칩 높이 — 칩이 두 줄이어도 라벨은 첫 줄과 나란하다 */
  .bf-row__chips { min-width: 0; }   /* 넘치면 아래 줄로(가로 스크롤 아님) */
  .bf-row__chips .chip { flex: none; }
  .books__tiles { gap: 24px var(--gutter); }   /* 3열(3 × 2) · 767 이하 2열(2 × 3) — 5권 + '더 많은 교재' = 6칸이 꼭 맞는다 */
  .book-tile__label { padding: 0 6px; font-size: var(--fs-14); }
  .book-more { padding: 20px 16px 12px; border-radius: var(--r-20); }
  .book-more__t { font-size: var(--fs-16); }
  .book-more__plus { font-size: var(--fs-36); }
  .book-tile__box { border-radius: var(--r-20); }
  .book-tile[aria-selected="true"] .book-tile__box { background: var(--surface); }   /* 고른 표지 레드 바탕 없음 — 누르면 바로 모달이라 '고른 교재' 표시가 필요 없다 */
  .books__empty { width: 100%; padding: 32px 0; }
  .bk-modal__cover { display: flex; align-items: center; justify-content: center; height: min(40vh, 300px); margin: 12px var(--pad-x) 0; border-radius: var(--r-20); background: var(--surface); }   /* flex — grid 로 두면 표지 img 의 높이 %(76%)가 풀리지 않아 원본 크기로 커진다 */
  .bk-modal__cover img { width: auto; height: 76%; filter: drop-shadow(0 18px 22px rgb(var(--black-rgb) / .18)); }
  .bk-modal__body { padding: 24px var(--pad-x) 40px; }
  .bp-row .ic-arrow--soft { background: var(--ink); color: var(--white); }   /* 처음부터 데스크톱 오버 모습 — 터치에는 오버가 없다 */

  .svc-bn { grid-template-columns: 1fr; min-height: 0; }
  .svc-bn__tx { grid-column: auto; padding: 72px 40px 8px; text-align: center; }   /* 버튼(.btn-pill, inline-flex)도 이 text-align 으로 가운데 */
  .svc-bn__v { grid-column: auto; padding: 0 24px 24px; }
  .svc-bn__v img { max-height: min(320px, 32vh); }   /* 화면이 낮으면 이미지도 줄인다 — 쌓인 카드가 태블릿 가로(1023 × 768) 화면 안에 들어가게 */

  .news__list { display: flex; gap: 12px; margin-inline: calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); scroll-padding-left: var(--pad-x); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-block: 12px 40px; margin-block: -12px -40px; }   /* scroll-padding-left = 페이지 여백 — 빠지면 스냅이 첫 카드를 화면 끝에 붙인다. 가로 스크롤 줄은 위아래도 자르므로 padding 12 / 40 여유와 같은 만큼의 음수 margin 을 한 쌍으로 둔다 */
  .news__list::-webkit-scrollbar { display: none; }

  .lf-panel { padding: 56px 0 40px; }
  .lf-panel.has-overflow .lf-nav { display: none; }   /* 1023 이하는 손가락으로 넘긴다 */
  .lf-panel__title, .lf-panel__sub { margin-left: 32px; margin-right: 32px; text-align: center; text-wrap: balance; }   /* 1023 이하는 가운데 — 이 폭의 다른 패널 머리글(Teaching Flow 설명 · 서비스 배너)과 같은 축. 320 처럼 줄이 나뉘면 한 단어만 떨어지지 않게 고르게 */
  .lf-panel__sub { font-size: clamp(16px, 13.83px + 0.603vw, 18px); }   /* 섹션 설명(.sec-head__lead)과 같은 비례 */
  /* 줄을 화면 왼쪽 끝까지 — 패널이 --pad-x 안쪽이라 그만큼 밖으로 빼고 안 여백 · scroll-padding 에 더한다 */
  .lf-row { margin-left: calc(-1 * var(--pad-x)); padding-left: calc(var(--pad-x) + 32px); scroll-padding-left: calc(var(--pad-x) + 32px); }
  .lf-row.is-settled { scroll-snap-type: x mandatory; }   /* 등장이 끝난 뒤에만(.is-settled — sections.js) — 움직이는 중에 켜면 첫 카드가 밀린 채 멈춘다. proximity 는 아이폰에서 끌 때 끊긴다 */
  .lf-panel__title { font-size: clamp(22px, 18.74px + 0.905vw, 28px); }

  /* 수치 2 × 2 — 네 칸 같은 폭 · 같은 높이(1fr), 내용은 세로 가운데. 구분선은 가운데 교차점에서 상하좌우로 같은 거리(--x-gap)만큼 비우고 끊긴다 */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; row-gap: 0; --x-gap: 24px; }
  .stats__item { justify-content: center; min-height: 0; padding: 40px 0; }
  .stats__item:nth-child(3)::before { display: none; }
  .stats__item:nth-child(2)::before { bottom: var(--x-gap); }
  .stats__item:nth-child(4)::before { top: var(--x-gap); }
  .stats__item:nth-child(n+3)::after { content: ""; position: absolute; top: 0; height: 1px; background: rgb(var(--white-rgb) / .08); }
  .stats__item:nth-child(3)::after { left: 0; right: calc(var(--gutter) / -2 + var(--x-gap)); }
  .stats__item:nth-child(4)::after { left: calc(var(--gutter) / -2 + var(--x-gap)); right: 0; }
  .stats__item + .stats__item::before { background: rgb(var(--white-rgb) / .08); }   /* 1023 이하 구분선은 데스크톱(.16)의 절반 — 2×2 십자로 겹쳐 같은 진하기면 무겁게 보인다(가로선 ::after 도 .08) */
}
@media (max-width: 767px) {
  .quick__item { font-size: var(--fs-13); }

  .tf { --card-w: calc(var(--inner-w) - 24px); --tf-px-m: 20px; --tf-pb: 28px; --tf-gap: 12px; }   /* 패널 여백은 --tf-px-m · --tf-pb 로(1023 블록 .tf-card padding) · --tf-gap 12 = 설명 ~ 카드 간격(390 = 35) */

  .books__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-row { padding: 16px 0; }
  .bp-row__name { font-size: var(--fs-16); }

  .svc-bn__tx { padding: 54px 24px 4px; }
  .svc-bn .btn-pill { margin-top: 28px; }

  .news-card { padding: 22px 22px 32px; }
  .news-card:has(.news-card__cta) { padding-bottom: 22px; }
  @supports not selector(:has(a)) { .news-card { padding-bottom: 22px; } }
  .news-card__desc { margin-bottom: 22px; }

  .lf-panel { border-radius: var(--r-30); padding: 40px 0 28px; }
  .lf-panel__title, .lf-panel__sub { margin-left: 20px; margin-right: 20px; }
  .lf-panel__title { line-height: 1.35; }
  .lf-row { padding-left: calc(var(--pad-x) + 20px); margin-top: 16px; scroll-padding-left: calc(var(--pad-x) + 20px); }

  .marquee { height: 300px; }
  .marquee__row { height: 164px; }
  .marquee__row--b { top: 136px; }
  .marquee__track img { width: 126px; height: 164px; }
  .stats__item { padding: 28px 0; }
  .stats__label { font-size: var(--fs-12); }
}
/* 히어로 배너 — 720 미만에서만 세로로(보조 경계 719 · 이 요소 한정). 배너 이미지 안에 글자가 있어 디자인 폭(394)에서 너무 멀어지면 안 된다:
   가로 두 장은 한 장이 330 이상일 때만(720~) — 600 에서 두 장이면 한 장 270 이라 이미지 속 작은 글자가 7px 안팎 */
@media (max-width: 719px) {
  .hero__promos { flex-direction: column; align-items: center; }
  .hero__promos > .promo { flex: none; width: 100%; }   /* flex: none — 세로 배치에 flex: 1(기준 0)이 남으면 공지 배너 높이가 0 이 된다(트랙이 absolute) */
  .promo--notice { aspect-ratio: auto; height: 140px; }
  /* 719 이하는 공지 배너를 숨기고 교재 배너 한 장(720 ~ 1023 은 두 장 가로). 교재 배너 폭 = 컨테이너의 92% · 가운데(좌우 여백은 이 값 하나로 조절) ·
     하한 322 = 이미지 속 가장 작은 글자(디자인 394 에서 11px)가 9px 아래로 내려가지 않는 폭(394 × 9/11) · 상한 394 = 디자인 폭(넘으면 이미지가 늘어난다) */
  .hero__promos > .promo--notice { display: none; }
  .hero__promos > .promo.promo--slides { width: min(100%, clamp(322px, 92%, 394px)); }
}

/* 700 ~ 1023 Teaching Flow — 데스크톱처럼 패널 안에 그 단계 카드만. 카드 한 줄(.tf-strip)은 699 이하(teaching-flow.js 와 같은 경계) —
   폭이 넓으면 패널 한 칸에 여러 단계 카드가 걸쳐 보인다. 1023 블록의 패널 머리(가운데 MO 문구) · 좌우 버튼 숨김 · 767 블록의 여백 토큰은 그대로 쓴다.
   카드 1 ~ 3장 = 가운데 한 줄(1장은 2장 폭) · pcOnly 는 숨긴다(문서 'MO 배너 비노출' · .is-pc-only 는 teaching-flow.js). 양옆 흐림은 패널 바깥만(데스크톱의 최소 60px 을 빼 패널을 덮지 않게) */
@media (min-width: 700px) and (max-width: 1023px) {
  .tf-card { padding: calc(var(--tf-pb) + 12px) var(--tf-px-m); }
  .tf-card__cards { display: flex; justify-content: center; gap: var(--gutter); margin-top: 24px; }
  .tf-card__cards > .svc-card { flex: 1 1 0; min-width: 0; max-width: calc((100% - var(--gutter)) / 2); }
  .tf-card__cards > .is-pc-only { display: none; }
  .tf-strip { display: none; }
  .tf-band::before, .tf-band::after, .tf-stage::before, .tf-stage::after { display: block; width: max(0px, calc(50% - var(--card-w) / 2 - 6px)); }
}
