/* 수업 시간표 표형 — 게시판에 붙은 시간표 같은 흑백 표 + 겨자색 강조. 본문 Noto Sans KR, 시각은 Nanum Gothic Coding */
:root {
  --paper: #F6F4EE;
  --white: #FFFEFA;
  --ink: #141414;
  --ink-2: #4E4C47;
  --muted: #8E8B83;
  --line: #DDD9CF;
  --mustard: #E2B43A;
  --mustard-soft: #F8EBC5;
  --red: #B23A2A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.6 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono, .c-time, .strip__lab small, .rc { font-family: 'Nanum Gothic Coding', monospace; }

.mast { border-bottom: 3px solid var(--ink); }
.mast__in { display: flex; align-items: flex-end; gap: 28px; padding-top: 26px; padding-bottom: 16px; }
.mast__name { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.mast__title { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; }
.mast__facts { display: flex; gap: 18px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.mast__facts b { color: var(--ink); margin-right: 3px; }
.mast__owner { margin-left: auto; margin-bottom: 4px; padding: 7px 12px; background: var(--ink); color: var(--white); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mast__owner:hover { background: var(--red); }

/* 주 띠 */
.strip { display: flex; gap: 0; margin: 22px 0 14px; border: 1.5px solid var(--ink); background: var(--white); }
.strip__wk { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border: 0; border-left: 1.5px solid var(--ink); background: transparent; text-align: left; cursor: pointer; min-width: 0; }
.strip__wk:first-child { border-left: 0; }
.strip__wk:hover:not(.is-on) { background: var(--mustard-soft); }
.strip__wk.is-on { background: var(--ink); color: var(--white); }
.strip__lab { font-weight: 700; font-size: 14px; }
.strip__lab small { margin-left: 6px; font-weight: 400; font-size: 12.5px; opacity: .75; }
.strip__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.strip__d { display: flex; flex-direction: column; align-items: center; font-size: 15px; font-weight: 700; line-height: 1.2; }
.strip__d i { font-style: normal; font-size: 10.5px; font-weight: 400; opacity: .7; }
.strip__d.is-off, .strip__d.is-out { opacity: .32; font-weight: 400; }

/* 필터 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sel select { min-height: 38px; padding: 0 30px 0 10px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23141414'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font-weight: 500; font-size: 14px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); }
.seg button { min-height: 35px; padding: 0 12px; border: 0; border-left: 1.5px solid var(--ink); background: var(--white); font-size: 13.5px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--mustard); font-weight: 700; }
.seg--dow button { padding: 0 10px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--ink); }
.menu-note { margin: 12px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.menu-note b { color: var(--ink); }

/* 표 */
.tt { background: var(--white); border: 1.5px solid var(--ink); }
.tt__cols, .tt__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px 120px 96px; align-items: center; }
.tt__cols { padding: 8px 16px; border-bottom: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.tt__day + .tt__day { border-top: 1.5px solid var(--ink); }
.tt__dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.tt__dhead em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.tt__day--off .tt__dhead { color: var(--muted); font-weight: 500; border-bottom: 0; background: repeating-linear-gradient(-45deg, var(--paper) 0 6px, #EFECE4 6px 8px); }
.tt__row { min-height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tt__row:last-child { border-bottom: 0; }
.tt__row--open:hover { background: #FFFBEF; }
.tt__row.is-on { background: var(--mustard-soft); border-bottom-color: transparent; }
.c-time { font-size: 17px; font-weight: 700; }
.c-time small { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.c-class { font-size: 14.5px; }
.c-part { font-size: 13px; color: var(--ink-2); }
.c-act { text-align: right; }
.st { font-style: normal; font-size: 13px; font-weight: 700; }
.st--open { color: #1F6A3F; }
.st--open::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2F8A55; vertical-align: 1px; }
.st--taken { color: var(--red); }
.st--blocked { color: var(--ink-2); font-weight: 500; padding: 1px 6px; border: 1px dashed var(--muted); }
.st--past { color: #B5B1A7; font-weight: 400; }
.tt__row--taken .c-time, .tt__row--past .c-time, .tt__row--past .c-class, .tt__row--taken .c-class { color: #ADA99F; }
.tt__row--taken .c-time { text-decoration: line-through; }
.book { min-width: 72px; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.book:hover { background: var(--red); border-color: var(--red); }
.book.is-on { background: var(--white); color: var(--ink); }
.tt__none { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 13.5px; }

/* 줄 아래 펼쳐지는 신청서 */
.tt__form { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px 12px; padding: 4px 16px 16px; background: var(--mustard-soft); border-bottom: 1px solid var(--line); }
.tt__formhead { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
.f { display: block; }
.f span { display: block; margin-bottom: 3px; font-size: 12.5px; font-weight: 700; }
.f i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.f input { width: 100%; min-height: 42px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--white); font-size: 16px; }
.f input:focus { outline: 3px solid var(--mustard); outline-offset: 0; }
.tt__formact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tt__formact span { font-size: 12.5px; color: var(--ink-2); }
.error { grid-column: 1 / -1; margin: 0; color: var(--red); font-weight: 700; font-size: 13.5px; }
.error:empty { display: none; }
.error--top { padding: 10px 16px; border-bottom: 1.5px solid var(--ink); background: #FBE3DD; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--line { background: var(--white); color: var(--ink); }
.btn--line:hover { background: var(--mustard-soft); color: var(--ink); border-color: var(--ink); }
.link { border: 0; background: none; padding: 0 4px; text-decoration: underline; cursor: pointer; font-size: 13.5px; }

/* 영수증 모양 확인서 */
.receipt { padding: 32px 0 8px; }
.rc { position: relative; max-width: 380px; margin: 0 auto; padding: 26px 26px 22px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 16px 32px -24px rgba(0, 0, 0, .4); font-size: 14px; }
.rc::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 6px, var(--white) 6.5px) repeat-x; background-size: 12px 10px; }
.rc__shop { margin: 0; text-align: center; font-weight: 700; font-size: 18px; }
.rc__sub { margin: 2px 0 14px; text-align: center; font-size: 12px; color: var(--muted); }
.rc__state { margin: 0 0 14px; padding: 6px; text-align: center; background: var(--mustard); font-weight: 700; letter-spacing: 4px; }
.rc__dl { display: grid; grid-template-columns: 70px 1fr; gap: 8px 10px; margin: 0; padding: 14px 0; border-top: 1.5px dashed var(--ink-2); border-bottom: 1.5px dashed var(--ink-2); }
.rc__dl dt { color: var(--muted); }
.rc__dl dd { margin: 0; text-align: right; font-weight: 700; }
.rc__total { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 16px; }
.rc__pay { margin: 0 0 14px; text-align: right; font-size: 12px; color: var(--muted); }
.rc__note { margin: 0; padding-top: 12px; border-top: 1.5px dashed var(--ink-2); font-size: 12.5px; color: var(--ink-2); font-family: 'Noto Sans KR', sans-serif; }
.rc__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }

/* 가격 */
.prices { margin-top: 44px; }
.prices h2 { font-size: 22px; font-weight: 900; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.prices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.price { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price b { font-size: 14.5px; }
.price span { grid-row: 2; font-size: 12.5px; color: var(--muted); }
.price strong { grid-row: 1 / span 2; align-self: center; font-size: 15px; }
.price--pass b { font-weight: 500; }

.maker { margin-top: 36px; }
.maker p { margin: 0; padding: 12px 16px; border-left: 4px solid var(--mustard); background: var(--white); font-size: 13px; color: var(--ink-2); }
.maker b { color: var(--ink); margin-right: 3px; }
.maker a { font-weight: 700; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 22px; padding-bottom: 40px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .mast__in { flex-wrap: wrap; gap: 8px 20px; }
  .mast__facts { order: 3; width: 100%; }
  .prices__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .mast__in { padding-top: 18px; }
  .mast__title { font-size: 31px; }
  .mast__facts { flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; }
  .mast__owner { padding: 6px 10px; font-size: 12.5px; }
  .strip { margin-top: 16px; }
  .strip__days { display: none; }
  .strip__wk { padding: 10px; }
  .strip__lab small { display: block; margin: 0; }
  .filters { gap: 8px; }
  .sel { width: 100%; }
  .sel select { flex: 1; }
  .seg button { padding: 0 10px; }
  .chk { width: 100%; }
  /* 표 → 줄 카드 */
  .tt__cols { display: none; }
  .tt__row { grid-template-columns: auto 1fr auto; grid-template-areas: "time state act" "class class act"; gap: 0 10px; padding: 10px 14px; }
  .c-time { grid-area: time; }
  .c-state { grid-area: state; }
  .c-class { grid-area: class; font-size: 13px; color: var(--ink-2); }
  .c-part { display: none; }
  .c-act { grid-area: act; }
  .tt__dhead { padding: 9px 14px; }
  .tt__form { grid-template-columns: 1fr; padding: 4px 14px 16px; }
  .tt__formact .btn { flex: 1; }
  .prices__grid { grid-template-columns: 1fr; }
  .rc { padding: 22px 18px 18px; }
  .rc__act .btn { width: 100%; }
  .foot { flex-direction: column; }
}
