/* 학부모용 메인: 들어오자마자 목록, 고르기는 옆에 고정. 글꼴 Jua: SIL OFL 1.1 */
@font-face { font-family: "Jua"; src: url("../minihome/fonts/Jua-Regular.783758a968ec.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --ink: #16202B; --sub: #56616E; --line: #E3E7EC; --soft: #F3F5F8; --main: #2447C9; --tint: #EAF0FF; --yellow: #FFD24A; --cute: "Jua", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif; color: var(--ink); background: var(--soft); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--main); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--main); outline-offset: 2px; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--cute); font-size: 24px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--main); display: inline-flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slogan { color: var(--sub); font-size: 15px; }

/* ----- 맨 위: 미니홈피 ----- */
.feat { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0 18px; }
.feat h2 { font-family: var(--cute); font-weight: 400; font-size: 19px; margin-bottom: 10px; }
.feat-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 8px; scrollbar-width: thin; }
.feat-list li { flex: 0 0 min(360px, 86%); scroll-snap-align: start; }
.feat-list a { height: 100%; display: flex; background: #FFF6F0; border: 3px solid #3A3550; border-radius: 20px; overflow: hidden; text-decoration: none; color: #3A3550; box-shadow: 0 5px 0 rgba(58, 53, 80, 0.18); transition: transform 0.12s, box-shadow 0.12s; }
.feat-list a:hover { transform: translateY(2px); box-shadow: 0 3px 0 rgba(58, 53, 80, 0.18); }
.feat-list img, .noimg { flex: 0 0 128px; width: 128px; height: auto; min-height: 112px; object-fit: cover; background: #FFC2B4; border-right: 3px solid #3A3550; }
.feat-text { flex: 1 1 0; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.badge { background: var(--yellow); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.feat-text strong { font-family: var(--cute); font-weight: 400; font-size: 19px; line-height: 1.3; }
.where { font-size: 13px; color: #5C5672; }
.say { font-size: 14px; }

/* ----- 고르기 + 목록 ----- */
.body { display: flex; align-items: flex-start; gap: 20px; padding-top: 20px; padding-bottom: 48px; }
.pick { flex: 0 0 240px; position: sticky; top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.pick form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 14px; font-weight: 700; }
select, input[type="search"] { width: 100%; height: 46px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #8B96A3; border-radius: 10px; }
select:disabled { background: var(--soft); color: var(--sub); }
.pick button { height: 46px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--ink); border: 0; border-radius: 10px; cursor: pointer; }
.pick button:hover { background: #2B3540; }
.reset { align-self: center; font-size: 14px; padding: 6px; color: var(--sub); }
.why { font-size: 13px; color: var(--sub); text-align: center; }

.list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.list-head h1 { font-size: 18px; font-weight: 700; }
.list-head h1 span { font-weight: 400; color: var(--sub); font-size: 16px; margin-left: 4px; }
.list-head p { font-size: 13px; color: var(--sub); }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rows li { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.rows li:not(.has) { padding: 11px 16px; display: flex; flex-direction: column; }
.rows .n { font-weight: 700; font-size: 16px; }
.rows .w { font-size: 14px; color: var(--sub); }
.rows li.has { grid-column: 1 / -1; border: 2px solid var(--main); background: #F7F9FF; }
.rows li.has a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 13px 16px; text-decoration: none; color: var(--ink); }
.rows li.has .n { font-size: 18px; }
.rows li.has .w { flex: 1 1 200px; }
.go { background: var(--main); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 12px; }
.pager a, .pager span:not(.now) { min-width: 76px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #8B96A3; border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.pager span:not(.now) { color: #A7B0BA; border-color: var(--line); }
.now { font-size: 14px; color: var(--sub); }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px 16px; text-align: center; color: var(--sub); }

.foot { background: var(--ink); color: #C4CCD6; }
.foot-in { padding-top: 26px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot strong { color: #fff; }
.src { font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .feat-list a { transition: none; } }

/* 휴대폰: 고르기는 목록 위에 붙어서 따라온다 */
@media (max-width: 820px) {
  .wrap { padding: 0 12px; }
  .slogan { font-size: 13px; }
  .body { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 0; }
  .list { flex: 0 0 auto; }
  .pick { position: sticky; top: 0; z-index: 2; flex: 0 0 auto; margin: 0 -12px; border-radius: 0; border-width: 0 0 1px; padding: 10px 12px; box-shadow: 0 4px 10px rgba(22, 32, 43, 0.06); }
  .pick form { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .field { flex: 1 1 calc(33% - 6px); min-width: 0; }
  .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .field:nth-of-type(5) { flex: 1 1 40%; }
  select, input[type="search"] { height: 44px; padding: 0 8px; font-size: 15px; }
  .pick button { flex: 0 0 72px; height: 44px; }
  .reset { flex: 1 1 100%; text-align: center; padding: 0; }
  .why { flex: 1 1 100%; }
  .rows { grid-template-columns: minmax(0, 1fr); }
}
