/* 공개 페이지 — 로그인·가족 합류·내 계정·광고 문의 네 장만 부른다(body.pub).
   page.css 는 app.html 도 쓰므로 거기는 건드리지 않고, 여기서 body.pub 아래만 덮는다.
   R-056 (2026-10-04) GPT 시안에 맞춤: 크림 바탕(#fffaf6) · 흰 머리 띠(아래 선) · 흰 카드(20px) · 네이비 버튼(14px 모서리) · 코랄 머리글.
   (예전 R-012: 하늘빛 그라데이션 · 떠 있는 반투명 머리판 · 손글씨 큰 제목 · 알약 버튼) */
body.pub{min-height:100vh;color:#172c55;background:#fffaf6;
  font:16px/1.65 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
  word-break:normal;overflow-wrap:break-word;-webkit-text-size-adjust:100%}
html:lang(ko) body.pub{word-break:keep-all}
html:lang(ja) body.pub,html:lang(zh) body.pub,html:lang(zh-TW) body.pub{line-break:strict}
.pub{--ink:#172c55;--dim:#5f6b82;--line:#e3e8ef;--line2:#dce2eb;--navy:#172c55;--coral:#b74733;--cream:#fff1e6;--cream-line:#f4e0d0;
  --brand:#2563d6;--ok:#1f7a55;--warn:#b3261e;--card:#fff;--shadow:0 1px 2px rgba(23,44,85,.04),0 12px 32px rgba(23,44,85,.06)}
.pub :focus-visible{outline:3px solid #2563d6;outline-offset:3px}
/* hidden 이 .link·.or 의 display 에 지던 것(가입 탭에서도 «비밀번호 찾기»·«또는 이메일» 이 보였다) */
.pub [hidden]{display:none!important}

/* 머리 띠 — 화면 끝까지 흰 띠, 아래 선. 로고는 확정 묶음 */
.pub .wrap{max-width:none;margin:0;padding:0;background:#fff;border-bottom:1px solid var(--line)}
.pub .top{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;
  background:none;border:0;border-radius:0;box-shadow:none}
.pub .top .logo{margin:0;justify-content:flex-start;min-height:44px}
.pub .top .langsel{font:inherit;font-size:13.5px;font-weight:600;color:var(--dim);background:#fff;border:1px solid var(--line2);border-radius:12px;
  padding:6px 10px;min-height:44px;width:auto;max-width:150px;cursor:pointer}
.pub .tagline{font-family:"Caveat","Gaegu",cursive;font-weight:500;font-size:24px;line-height:1;color:#2b3550;transform:rotate(-2deg)}
.pub .eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--coral);margin:0 0 8px}

/* 가운데 좁은 카드 */
.pub .shell{max-width:524px;margin:0 auto;padding:36px 22px 6px}
.pub .shell.wide{max-width:684px}
.pub .box,.pub .card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow)}
.pub .card+.card,.pub .box+.card,.pub .hero+.card{margin-top:18px}
.pub .box.bare{background:none;border:0;padding:0;box-shadow:none}
.pub h1{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-weight:800;font-size:38px;line-height:1.18;letter-spacing:-.03em;margin:2px 0 8px;text-wrap:balance}
.pub h2{font-size:19px;line-height:1.4;margin:0 0 12px}
.pub .dim{font-size:15.5px;line-height:1.6;margin:0 0 18px;color:var(--dim)}
.pub .head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.pub .head>div{min-width:0}
.pub .head img{width:96px;height:96px;object-fit:contain;flex:none}
.pub .art{display:block;width:100%;max-width:260px;height:auto;margin:0 auto 10px}

/* 입력·버튼 */
.pub label{font-size:14px;font-weight:650;color:var(--ink);margin:16px 0 7px}
.pub input,.pub select,.pub textarea{min-height:48px;font-size:16px;color:var(--ink);background:#fff;border:1px solid #bac6d6;border-radius:12px;padding:12px 14px}
.pub textarea{min-height:110px}
.pub input:focus,.pub select:focus,.pub textarea:focus{border-color:#2563d6}
.pub .go{min-height:48px;border-radius:14px;background:var(--navy);color:#fff;box-shadow:none;border:1px solid var(--navy)}
.pub .go:hover{filter:brightness(1.12)}
.pub .go.ghost{background:#fff;color:var(--ink);border:1px solid var(--line2);box-shadow:none}
.pub .go.ghost:hover{filter:none;border-color:var(--ink)}
.pub .google{min-height:48px;border-radius:14px}
.pub .tabs{border-radius:14px;margin-bottom:20px;background:#f1f3f7}
.pub .tabs button{min-height:44px;border-radius:11px}
.pub .tabs button[aria-selected=true]{background:#fff;color:var(--ink)}
.pub .link{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;color:#1f4fa8;text-decoration:underline;text-underline-offset:3px}
.pub .msg{margin-top:4px}
.pub .msg.no{color:var(--warn)} .pub .msg.ok{color:var(--ok)}
.pub .note{border-radius:16px;padding:14px 16px;font-size:13.5px;background:#edf7f0;color:#3e4b63}
.pub .note b{color:var(--ok)}
.pub .fieldhelp{font-size:13px;color:var(--dim);margin:6px 0 0;line-height:1.5}
.pub .fieldhelp[hidden]{display:none}

/* 로그인·가입 (R-056 login/signup): 왼쪽 인사 + 오른쪽 입력 카드 */
.pub .authhero{max-width:1040px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,470px);gap:48px;align-items:start;padding-top:44px}
.pub .authintro{padding:28px 6px 0}
.pub .authintro h1{font-size:46px}
.pub .authintro .head img{width:110px;height:110px}
.pub .switch{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;background:var(--cream);border:1px solid var(--cream-line);border-radius:16px;padding:12px 18px;margin:8px 0 16px;font-size:15px}
.pub .switch .link{margin:0;font-weight:800;color:var(--ink);text-decoration:none}
.pub .switch .link:hover{text-decoration:underline}
.pub.auth .box{padding:30px}

/* 내 계정 */
.pub .plan{border-radius:14px;padding:10px 12px 10px 20px;background:#eef3fb;margin:0 0 18px}
.pub .plan span{color:#23559c;font-weight:700;font-size:13.5px}
.pub .plan b{font-size:16px;background:#fff;color:var(--ink);border-radius:10px;padding:4px 14px}
.pub .steps>div{padding:14px;background:#fffaf6;border:1px solid var(--line);border-radius:16px}
.pub .steps em{background:var(--cream);color:var(--coral)}
.pub .vbox{border-radius:16px;padding:16px 18px}
.pub .vrow .go{min-height:46px}

/* 광고 문의 — 머리 카드(크림) */
.pub .hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:28px;border-radius:24px;
  background:var(--cream);border:1px solid var(--cream-line);box-shadow:none}
.pub .hero>div{min-width:0}
.pub .hero .dim{margin:0}
.pub .hero img{width:150px;height:150px;object-fit:contain;flex:none}
.pub .pts{margin:0 0 6px}

.pub .corp{margin:22px 0 14px!important}

@media (max-width:860px){
  /* 폰: 인사 → 입력 카드 → 개인정보 안내 순서(왼쪽 칸을 풀어서 순서만 바꾼다). 위 «계정 만들기» 줄은 탭과 같아서 뺀다 */
  .pub .authhero{display:flex;flex-direction:column;gap:0;padding-top:24px}
  .pub .authintro{display:contents}
  .pub .authintro h1{font-size:36px}
  .pub .switch{display:none}
  .pub .authhero .box{order:1;margin-top:8px}
  .pub .authintro .note{order:2;margin-top:18px}
}
@media (max-width:760px){
  .pub .top{padding:8px 16px}
  .pub .tagline{font-size:20px}
  .pub .shell{padding:22px 16px 6px}
  .pub .box,.pub .card{padding:22px 20px;border-radius:20px}
  .pub.auth .box{padding:22px 20px}
  .pub h1,.pub .authintro h1{font-size:32px}
  .pub .head img,.pub .authintro .head img{width:72px;height:72px}
  .pub .hero{padding:22px 20px;gap:8px;border-radius:22px}
  .pub .hero img{width:96px;height:110px}
}
@media (max-width:420px){ .pub .row2{grid-template-columns:1fr} .pub .top .lk-tg{display:none} .pub .top .langsel{max-width:112px} }
@media (prefers-reduced-motion:reduce){.pub *{animation:none!important;transition:none!important}}

.pub .top .logo img.wm{height:34px;width:auto}
@media (max-width:480px){.pub .top .logo img.wm{height:28px}}

/* SchoolPorch 로고 묶음 (2026-10-04 사장님 "요런거 괜찮아보여"): 크림 아이콘 + 굵은 School(글자색 상속)·Porch(코랄) + 짧은 문구 */
.logo.lock{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.lock .lk-ic{width:44px;height:44px;flex:none;border-radius:12px;display:block}
.lock .lk-tx{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.lock .lk-nm{font-family:system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;font-weight:800;font-size:24px;letter-spacing:-.035em;color:inherit;white-space:nowrap}
.lock .lk-nm i{font-style:normal;color:#F04A3C}
.lock .lk-tg{font-size:13.5px;color:#5d6980;margin-top:3px;font-weight:500;white-space:nowrap}
@media (max-width:480px){.lock .lk-ic{width:36px;height:36px;border-radius:10px}.lock .lk-nm{font-size:20px}.lock .lk-tg{font-size:12px}}
.pub .top{justify-content:space-between}
