/* 첫 화면 학원 찾기(app/views/home/directory.php). 운영팀이 확인한 시안 v3 의 값이다.
   넓은 화면: 왼쪽 소개 + 오른쪽 앱 열(480px)을 한 묶음(최대 1040px)으로 화면 가운데에 둔다(2026-10-18 — 오른쪽 끝에 붙어 보이던 것을 고침).
   양옆 빈 곳은 소개 영역과 같은 색. 좁은 화면: 앱 열 하나. 밝은 화면 하나로 정했다(어두운 테마 없음).
   포인트 색은 청록(2026-10-17 결정, 바뀔 수 있다 — 아래 --accent 두 줄과 views 의 theme-color 만 고치면 된다). */
:root {
  --ink: #16182b;
  --ink-2: #565b70;
  --ink-3: #7f8499;
  --line: #ebecf1;
  --chip: #f2f3f7;
  --band: #f3f4f7;
  --paper: #ffffff;
  --accent: #0d7f86;
  --accent-soft: #e3f4f4;
  --accent-ink: #ffffff;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --r-photo: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--accent-soft); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 480px; max-width: 1040px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; }
.side { display: flex; flex-direction: column; gap: 28px; padding: 72px 48px 40px 40px; background: var(--accent-soft); }
.side-inner { position: sticky; top: 48px; display: grid; gap: 28px; }
.side-foot { display: grid; gap: 4px; margin-top: auto; color: var(--ink-3); font-size: 12.5px; }
.side-foot a, .foot nav a, .ceo dd a { text-decoration: underline; text-underline-offset: 2px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 19px; }
.side-title { margin: 0; font-size: 44px; line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.side-title em { font-style: normal; color: var(--accent); }
.side-lead { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 17px; }
.side-links { display: flex; flex-wrap: wrap; gap: 10px; }
.side-links a { display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 14px; }

.app { position: relative; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--paper); box-shadow: 0 0 32px rgba(13, 127, 134, 0.08); }
.app-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--paper); }
.app-top .logo { font-size: 20px; }
.app-top .logo-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.pill-buttons { display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--chip); font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.short-intro { margin: 0 20px 12px; font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.search { display: flex; gap: 8px; padding: 0 20px 16px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--chip); color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search-box:focus-within { background: var(--paper); box-shadow: inset 0 0 0 2px var(--accent); }
.search button { flex: none; border: 0; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
/* 검색 칸·찾기 단추의 초점 표시는 안쪽에 그린다. 바깥으로 그리면 바로 위 고정 머리에 윗부분이 가려진다(2026-10-18 사용자 지적). */
.search button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -5px; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 20px 6px; border-top: 8px solid var(--band); }
.list-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.list-head h2 b { color: var(--accent); }
.list-head span { color: var(--ink-3); font-size: 12.5px; }

.list { list-style: none; margin: 0; padding: 0 20px; }
.row { border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.row-main { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 18px 0; }
.row-main:hover .row-name { color: var(--accent); }
.row-text { display: grid; gap: 3px; min-width: 0; }
.row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 800; }
.row-meta { color: var(--ink-2); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chips span { padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--ink-2); font-size: 12.5px; }
.photo { flex: none; display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border: 1px solid rgba(22, 24, 43, 0.06); border-radius: var(--r-photo); background: var(--accent-soft); color: var(--accent); font-size: 30px; font-weight: 800; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.more { display: grid; place-items: center; margin: 18px 20px 26px; height: 46px; border: 1px solid #dcdfe8; border-radius: 12px; background: var(--paper); font-weight: 700; color: var(--ink-2); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px 36px; border-top: 8px solid var(--band); text-align: center; color: var(--ink-2); }
.empty strong { color: var(--ink); font-size: 17px; }
.empty a { padding: 10px 18px; border-radius: 999px; background: var(--chip); font-weight: 700; color: var(--ink); }
.empty-welcome a { background: var(--accent); color: var(--accent-ink); }

.ceo { display: grid; gap: 14px; padding: 24px 20px 32px; border-top: 8px solid var(--band); }
.ceo h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.ceo p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.ceo .actions { display: grid; gap: 8px; }
.ceo .actions a { display: grid; place-items: center; height: 48px; border: 1px solid #dcdfe8; border-radius: 12px; background: var(--paper); font-weight: 700; }
.ceo .actions .primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.ceo dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.ceo dt { color: var(--ink-3); }
.ceo dd { margin: 0; }

.foot { display: grid; gap: 6px; margin-top: auto; padding: 20px 20px 92px; border-top: 8px solid var(--band); color: var(--ink-3); font-size: 12.5px; }
.foot nav { display: flex; gap: 14px; font-weight: 700; color: var(--ink-2); }
.tabs { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); background: var(--paper); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 9px 0 10px; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.tabs svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--accent); }

/* 넓은 화면에서는 왼쪽 큰 문구가 제목 자리를 맡는다(h1 은 화면 읽기 프로그램에만). */
@media (min-width: 961px) {
  .short-intro { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (max-width: 960px) {
  body { background: var(--paper); }
  .stage { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .side { display: none; }
  .app { min-height: 100vh; min-height: 100dvh; border-left: 0; border-right: 0; box-shadow: none; }
  .app-top, .search, .short-intro, .list-head, .list, .more, .empty, .ceo, .foot { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .short-intro, .more { margin-left: 0; margin-right: 0; }
  .more { margin-left: max(20px, env(safe-area-inset-left, 0px)); margin-right: max(20px, env(safe-area-inset-right, 0px)); padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .row-name, .tabs a { transition: color .15s; }
}
