/* 프로필 허브형 — 강사 한 사람의 개인 페이지 같은 부드러운 톤. Gowun Dodum 제목 + Pretendard, 분홍빛 베이지에 자두색 */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920; font-style: normal; font-display: swap;
}
:root {
  --bg: #F3EDE8;
  --card: #FFFFFF;
  --ink: #2B2523;
  --soft: #7A6F6B;
  --line: #EAE1DB;
  --plum: #8C4F5E;
  --plum-deep: #6E3A47;
  --plum-soft: #F4E6E8;
  --round: 'Gowun Dodum', 'Pretendard Variable', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.65 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; letter-spacing: -0.2px; word-break: keep-all; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.small { font-size: 13px; color: var(--soft); }

.page { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; max-width: 1080px; margin: 0 auto; padding: 32px 24px 48px; align-items: start; }

/* 왼쪽 프로필 */
.me { position: sticky; top: 20px; }
.me__card { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.me__banner { display: block; width: 100%; height: 104px; }
.me__avatar { width: 96px; height: 96px; margin: -48px 0 0 24px; position: relative; border-radius: 50%; border: 4px solid var(--card); background: var(--card); }
.me__avatar svg { display: block; width: 100%; height: 100%; }
.me__body { padding: 10px 24px 24px; }
.me h1 { font-family: var(--round); font-size: 28px; line-height: 1.2; }
.me__role { margin: 2px 0 0; font-size: 14px; color: var(--plum); }
.me__line { margin: 14px 0 0; font-size: 15px; }
.me__facts { margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14px; }
.me__facts li { padding: 2px 0; }
.me__facts b { font-weight: 600; margin-right: 4px; }
.me__facts span { color: var(--soft); margin-left: 4px; }
.me__links { display: flex; gap: 8px; margin-top: 16px; }
.me__links a { flex: 1; padding: 9px 0; border: 1px solid var(--line); border-radius: 99px; text-align: center; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.me__links a:hover { border-color: var(--plum); color: var(--plum); }
.me__owner { margin: 12px 0 0 8px; font-size: 13.5px; }
.me__owner a { color: var(--plum); font-weight: 600; text-decoration: none; }

/* 오른쪽 */
.hub__h { font-family: var(--round); font-size: 19px; margin: 32px 0 12px 4px; }
.hub__h:first-child { margin-top: 4px; }
.cards { display: grid; gap: 12px; scroll-margin-top: 16px; }
.card { display: block; padding: 20px 22px; background: var(--card); border: 1px solid transparent; border-radius: 16px; text-decoration: none; transition: border-color .12s, transform .12s; }
.card:hover { border-color: var(--plum); transform: translateY(-1px); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { font-family: var(--round); font-size: 20px; }
.card__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); font-weight: 700; }
.card p { margin: 6px 0 0; color: var(--soft); font-size: 14.5px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.card__meta b { margin-left: auto; font-size: 17px; font-weight: 700; }
.card__meta i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--soft); }
.tag { padding: 2px 10px; border-radius: 99px; background: #F4EFEC; font-size: 12.5px; color: #5E5450; }
.tag--wait { background: #FBF0D2; color: #7A5B07; }
.passes { margin: 0 0 8px; padding: 6px 20px; list-style: none; background: var(--card); border-radius: 16px; }
.passes li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.passes li:last-child { border: 0; }
.passes i { font-style: normal; font-size: 12.5px; color: var(--soft); margin-left: 8px; }
.news { margin: 0; padding: 0; list-style: none; }
.news li { padding: 10px 4px; border-bottom: 1px solid #E3D8D1; font-size: 14.5px; }
.news time { display: inline-block; min-width: 92px; color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.maker { margin-top: 28px; padding: 16px 18px; border: 1px dashed #CDBDB5; border-radius: 14px; font-size: 13.5px; }
.maker p { margin: 0 0 6px; color: #574D49; }
.maker a { color: var(--plum); font-weight: 600; }
.foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 13px; color: var(--soft); }

/* 예약 화면 */
.back { display: inline-block; margin: 2px 0 12px 4px; font-size: 14px; font-weight: 600; color: var(--plum); text-decoration: none; }
.bk { background: var(--card); border-radius: 20px; overflow: hidden; }
.bk__head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.bk__who { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13.5px; color: var(--soft); }
.bk__who svg { width: 24px; height: 24px; }
.bk__head h2 { font-family: var(--round); font-size: 24px; }
.bk__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 14px; color: var(--soft); }
.bk__when { display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 99px; background: var(--plum-soft); color: var(--plum-deep); font-weight: 600; font-size: 14.5px; }
.bk__body { padding: 20px 26px 26px; }
.warn { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #F8E4E2; color: #8E3B2F; font-size: 14px; }

.pick { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; }
.pick__range { margin: 0 0 8px; font-weight: 600; }
.dow, .dgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.dow span { font-size: 12px; color: var(--soft); padding-bottom: 4px; }
.d { display: grid; place-items: center; aspect-ratio: 1; max-height: 52px; width: 100%; border: 0; border-radius: 12px; background: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.d--off { color: #C2B6B0; }
.d--open { background: var(--plum-soft); color: var(--plum-deep); font-weight: 700; cursor: pointer; }
.d--open:hover { background: #ECD3D8; }
.d--full { color: #B0A39D; text-decoration: line-through; cursor: pointer; }
.d.is-on { background: var(--plum); color: #fff; }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 12px 0 0; font-size: 12px; color: var(--soft); }
.key i { width: 12px; height: 12px; border-radius: 4px; margin-left: 8px; }
.key i:first-child { margin-left: 0; }
.k1 { background: var(--plum-soft); }
.k2 { background: linear-gradient(transparent 45%, #B0A39D 45% 58%, transparent 58%); border: 1px solid var(--line); }
.k3 { border: 1px dashed #C9BCB5; }
.pick__times { display: flex; flex-direction: column; gap: 6px; }
.pick__times h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.t { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--plum); border-radius: 10px; background: #fff; color: var(--plum-deep); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
button.t:hover { background: var(--plum); color: #fff; }
span.t { border-color: var(--line); color: #A99C96; font-weight: 500; cursor: default; }
span.t s { text-decoration: none; }
span.t em { font-style: normal; font-size: 12px; }
.t--taken s { text-decoration: line-through !important; }
.t--blocked { background: repeating-linear-gradient(135deg, #fff 0 6px, #F4EEEA 6px 7px) !important; }
.t--past { opacity: .6; }
.t__empty { margin: 0; color: var(--soft); font-size: 14px; }

.form { max-width: 460px; }
.link { padding: 0; margin-bottom: 14px; border: 0; background: none; color: var(--soft); font-size: 14px; cursor: pointer; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; }
.field i { font-style: normal; font-weight: 400; color: var(--soft); }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid #DDD1CA; border-radius: 12px; font-size: 16px; resize: vertical; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.error { min-height: 1em; margin: 0 0 8px; color: #8E3B2F; font-size: 14px; }
.btn { display: block; width: 100%; padding: 13px; border: 0; border-radius: 99px; background: var(--plum); color: #fff; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--plum-deep); }
.btn--line { margin-top: 8px; background: #fff; color: var(--ink); border: 1px solid #DDD1CA; }
.btn--line:hover { background: #FAF6F3; }
.form .small { margin: 10px 0 0; }
.done { max-width: 460px; }
.badge { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 99px; background: #FBF0D2; color: #7A5B07; font-size: 12.5px; font-weight: 700; }
.done h3 { font-family: var(--round); font-size: 22px; }
.done > p { margin: 6px 0 0; color: var(--soft); font-size: 14.5px; }
.done dl { display: grid; grid-template-columns: 60px 1fr; gap: 6px 10px; margin: 16px 0 18px; padding: 16px; background: #FAF6F3; border-radius: 14px; font-size: 14.5px; }
.done dt { color: var(--soft); }
.done dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.mbar { display: none; }

@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 110px; }
  .me { position: static; }
  .me__body { padding: 8px 20px 20px; }
  .me__avatar { margin-left: 20px; width: 84px; height: 84px; margin-top: -42px; }
  .me h1 { font-size: 25px; }
  .hub__h { margin-top: 26px; }
  .card { padding: 18px; }
  .bk__head { padding: 18px 18px 14px; }
  .bk__body { padding: 16px 18px 22px; }
  .pick { grid-template-columns: 1fr; gap: 18px; }
  .pick__times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick__times h3, .t__empty { grid-column: 1 / -1; }
  span.t { flex-direction: column; gap: 0; padding: 5px; line-height: 1.25; }
  .foot { flex-direction: column; gap: 4px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
  .mbar p { margin: 0; line-height: 1.35; font-size: 15px; }
  .mbar span { display: block; font-size: 12.5px; color: var(--soft); }
  .mbar a { flex: none; padding: 12px 22px; border-radius: 99px; background: var(--plum); color: #fff; font-weight: 700; text-decoration: none; }
  body.is-booking .mbar { display: none; }
  body.is-booking .me__line, body.is-booking .me__facts, body.is-booking .me__links, body.is-booking .me__banner, body.is-booking .me__avatar { display: none; }
  body.is-booking .me__body { padding: 14px 20px; }
  .news time { display: block; }
}
