/* 학원 목록 페이지 틀 — 머리 · 검색 · 추천 검색 · 지역 칩 · 학원 수 · 더 보기 · 결과 없음 · 아래 안내.
   카드 · 미리보기 · 지역 목록은 org.css(list.js 가 그리는 것). 이 파일의 클래스(ac-*)는 서버 화면 틀에 쓰고,
   list.js 가 찾는 data-org-* 속성은 그대로 둔다. 상태 규칙은 DESIGN.md 7-2. */

/* ---------- 머리 ---------- */
.ac-hero { padding: var(--hero-top) 0 64px; text-align: center; }
/* 머리 뱃지: 다른 페이지 뱃지와 같은 30px · 14px · 600(사용자 2026.11.04 — 한 단계 얇게) */
.ac-count { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 99px; background: var(--tint); color: var(--pri-d); font-size: 14px; line-height: 1; font-weight: 600; vertical-align: top; }
.ac-count svg { display: block; }
.ac-count b { font-family: 'Outfit', 'Pretendard Variable','Pretendard', sans-serif; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-count[hidden] { display: none; }
.ac-hero h1 { margin-top: var(--hero-gap-badge); font-size: clamp(40px, 5.6vw, 72px); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; word-break: keep-all; }
.ac-hero h1 em { font-style: normal; color: var(--pri-d); }
.ac-hero .sub { margin: var(--hero-gap-sub) auto 0; max-width: 34em; font-size: 20px; line-height: 1.6; color: var(--mut); text-wrap: pretty; word-break: keep-all; }

/* 검색 줄: [돋보기 입력] [지우기] [찾기] — 지역은 목록 머리 오른쪽 지역 선택 칸 한 곳에서만 고른다(사용자 2026.11.04) — 메인 첫 화면 검색 줄과 같은 모양 */
.ac-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 760px; height: 68px; margin: var(--hero-gap-act) auto 0; padding: 0 10px; border-radius: 99px; background: #ffffff;
    box-shadow: 0 0 0 1px #ece6f7, 0 18px 40px rgba(122, 83, 240, .12); transition: box-shadow .2s ease; text-align: left; }
.ac-search:focus-within { box-shadow: 0 0 0 2px var(--pri), 0 0 0 7px rgba(144, 74, 232, .12), 0 20px 44px rgba(122, 83, 240, .18); }
.ac-search__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 16px; }
.ac-search__field > svg { flex: none; color: var(--mut); }
.ac-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font-family: 'Pretendard Variable','Pretendard', sans-serif; font-size: 17px; color: var(--ink); }
.ac-search input::placeholder { color: #7d7d84; }
.ac-search input::-webkit-search-cancel-button { display: none; }
.ac-search__clear { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--mut); display: grid; place-items: center; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.ac-search__clear:hover { background: var(--soft); color: var(--ink); }
.ac-search__clear[hidden] { display: none; }
.ac-search__submit { flex: none; height: 48px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--ink); color: #ffffff; font-family: 'Pretendard Variable','Pretendard', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background-color .2s ease, transform .2s var(--ease); }
.ac-search__submit:hover { background: var(--pri); }
.ac-search__clear:active, .ac-search__submit:active { transform: scale(.97); }
.ac-search__clear:focus-visible, .ac-search__submit:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }

/* 추천 검색 */
.ac-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.ac-suggest > span { flex: none; white-space: nowrap; margin-right: 4px; font-size: 14px; font-weight: 700; color: var(--mut); }
.ac-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--line);
    font-family: 'Pretendard Variable','Pretendard', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; cursor: pointer;
    transition: box-shadow .2s ease, color .2s ease, background-color .2s ease, transform .2s var(--ease); }
.ac-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.ac-chip:active { transform: scale(.97); }
.ac-chip:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.ac-chip[aria-pressed="true"] { background: var(--ink); color: #ffffff; box-shadow: none; }

/* ---------- 목록 ---------- */
.ac-list { padding: 8px 0 104px; }
.ac-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ac-total { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ac-total b { font-family: 'Outfit', 'Pretendard Variable','Pretendard', sans-serif; font-size: 22px; font-weight: 700; color: var(--pri-d); font-variant-numeric: tabular-nums; }
/* 지역 선택 칸: 목록 머리 오른쪽 한 곳(사용자 2026.11.04 — 뱃지가 많으면 혼란). list.js 가 select 를 menu-select 목록으로 바꾼다.
   흰 바탕 + 회색 선 → 올리면 검정 선(7-2 선 버튼), 목록은 오른쪽 끝에 맞춰 연다 */
.ac-region { flex: none; }
.ac-region .cl-menu-select__button { height: 44px; padding: 0 14px 0 18px; background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s ease, transform .2s var(--ease); }
.ac-region .cl-menu-select__button:hover { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ac-region .cl-menu-select__list { left: auto; right: 0; width: 180px; }
.ac-more { display: flex; justify-content: center; margin-top: 48px; }
.ac-more .btn { gap: 12px; }
.ac-more .btn[hidden] { display: none; }
.ac-more__count { font-family: 'Outfit', 'Pretendard Variable','Pretendard', sans-serif; font-size: 15px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; }

/* ---------- 결과 없음 ---------- */
.ac-empty { padding: 8px 0 104px; }
.ac-empty[hidden] { display: none; }
.ac-empty__box { display: flex; flex-direction: column; align-items: center; padding: 72px 24px; border-radius: 36px; background: var(--soft); text-align: center; }
.ac-empty__icon { width: 64px; height: 64px; border-radius: 99px; background: #ffffff; color: var(--pri); display: grid; place-items: center; }
.ac-empty__box h2 { margin-top: 20px; font-size: 26px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); word-break: keep-all; }
.ac-empty__box p { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--mut); }
.ac-empty__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.ac-empty__acts .btn { height: 44px; padding: 0 22px; font-size: 15px; }

/* ---------- 아래 안내: 우리 학원도 목록에 ---------- */
.ac-join { padding: 0 0 128px; }
.ac-join__box { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; padding: 72px; border-radius: 44px; background: var(--ink); color: #ffffff; overflow: hidden; }
.ac-join__box .h2 { color: #ffffff; }
.ac-join__box .h2:first-child { margin-top: 0; } /* 뱃지(FOR ACADEMIES)를 뺀 자리 — 2026.11.05 */
.ac-join__box .lede { color: #d2d2d7; word-break: keep-all; }
.ac-join__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* 오른쪽 꾸밈: 새 학원 카드가 목록에 올라오는 모습(6초 반복, 기본 모습 = 다 올라온 상태) */
.ac-deco { position: relative; height: 340px; }
/* 새 학원 타일 모양(org.css 학원 타일과 같은 짜임): 위 로고 + 구분선 → 이름 · 소개 → 갈 곳 한 줄 */
.ac-deco .dc { position: absolute; left: 50%; width: 240px; border-radius: 24px; background: #ffffff; color: var(--ink); overflow: hidden; }
.ac-deco .dc i { display: block; }
.ac-deco .dc .lg { height: 104px; border-bottom: 1px solid var(--line); }
.ac-deco .dc .tx { padding: 16px 18px 18px; }
.ac-deco .dc .tx i { height: 10px; border-radius: 99px; background: var(--track); }
.ac-deco .dc .tx i + i { margin-top: 8px; }
.ac-deco .b1 { top: 0; transform: translateX(-78%) rotate(-6deg) scale(.9); opacity: .35; }
.ac-deco .b2 { top: 16px; transform: translateX(-22%) rotate(5deg) scale(.9); opacity: .35; }
.ac-deco .nw { top: 46px; transform: translateX(-50%); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.ac-deco .nw .lg { display: grid; place-items: center; }
.ac-deco .nw .lg b { font-size: 20px; font-weight: 800; color: var(--pri-d); letter-spacing: -0.02em; }
/* 새 학원 타일 = 짧은 신청서(이름 · 연락처 · 이메일 · [신청]) — 몇 칸만 쓰면 신청된다는 뜻(사용자 2026.11.04) */
.ac-deco .nw .fm { display: grid; gap: 8px; padding: 16px 18px 18px; }
.ac-deco .nw .f { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--soft); }
.ac-deco .nw .f em { flex: none; width: 38px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--mut); }
.ac-deco .nw .f i { height: 8px; border-radius: 99px; background: var(--ink-2); }
.ac-deco .nw .f1 i { width: 34%; }
.ac-deco .nw .f2 i { width: 58%; }
.ac-deco .nw .f3 i { width: 66%; }
.ac-deco .nw .go { display: grid; place-items: center; height: 34px; margin-top: 4px; border-radius: 99px; background: var(--pri); color: #ffffff; font-size: 13px; font-weight: 700; }
.ac-deco .ok { position: absolute; left: 50%; top: 18px; transform: translateX(40px); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--pri); color: #ffffff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.js .ac-join.is-in .nw { animation: acCardUp 6s var(--ease) .3s infinite; }
.js .ac-join.is-in .nw .f1 i { animation: acType1 6s ease .3s infinite; }
.js .ac-join.is-in .nw .f2 i { animation: acType2 6s ease .3s infinite; }
.js .ac-join.is-in .nw .f3 i { animation: acType3 6s ease .3s infinite; }
.js .ac-join.is-in .nw .go { animation: acPress 6s ease .3s infinite; }
.js .ac-join.is-in .ok { animation: acPop 6s var(--pop) .3s infinite; }
@keyframes acCardUp { 0% { transform: translate(-50%, 90px); opacity: 0; } 14%, 100% { transform: translateX(-50%); opacity: 1; } }
@keyframes acType1 { 0%, 16% { clip-path: inset(0 100% 0 0 round 99px); } 22%, 100% { clip-path: inset(0 0 0 0 round 99px); } }
@keyframes acType2 { 0%, 24% { clip-path: inset(0 100% 0 0 round 99px); } 32%, 100% { clip-path: inset(0 0 0 0 round 99px); } }
@keyframes acType3 { 0%, 34% { clip-path: inset(0 100% 0 0 round 99px); } 42%, 100% { clip-path: inset(0 0 0 0 round 99px); } }
@keyframes acPress { 0%, 46% { transform: scale(1); background: var(--pri); } 48% { transform: scale(.97); background: var(--pri-d); } 51%, 100% { transform: scale(1); background: var(--pri); } }
@keyframes acPop { 0%, 52% { transform: translateX(40px) scale(.6); opacity: 0; } 60%, 100% { transform: translateX(40px) scale(1); opacity: 1; } }

@media (max-width: 1080px) {
    .ac-join__box { grid-template-columns: minmax(0, 1fr); padding: 56px 40px; }
    .ac-deco { display: none; }
}
@media (max-width: 640px) {
    .ac-hero { padding: var(--hero-top) 0 40px; }
    .ac-hero .sub { font-size: 16px; }
    .ac-search { height: 60px; padding: 0 8px; gap: 4px; }
    .ac-search__field { padding-left: 10px; gap: 8px; }
    .ac-search input { font-size: 16px; }
    .ac-search__submit { height: 44px; padding: 0 18px; }
    .ac-suggest { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 16px -20px 0; padding: 2px 20px; }
    .ac-suggest::-webkit-scrollbar { display: none; }
    .ac-bar { margin-bottom: 20px; }
    .ac-list, .ac-empty { padding-bottom: 72px; }
    .ac-empty__box { padding: 56px 20px; border-radius: 28px; }
    .ac-empty__box h2 { font-size: 22px; }
    .ac-join { padding-bottom: 88px; }
    .ac-join__box { padding: 48px 24px; border-radius: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .js .ac-join.is-in .nw, .js .ac-join.is-in .nw .f i, .js .ac-join.is-in .nw .go, .js .ac-join.is-in .ok { animation: none; }
}
