@page { size: A4; margin: 0; }
:root {
  --navy: #0B4761; --gold: #C9A062; --gold-dk: #8A6224; --gold-lt: #E3CD9F;
  --cream: #F7F3EA; --card: #FBF8F1; --line: #D9CCB2; --sub: #44687A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 794px; height: 1123px; }
body {
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
  background: var(--cream); color: var(--navy);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  display: flex; flex-direction: column; overflow: hidden;
}

/* 머리 */
.head {
  background: var(--navy); color: #fff; text-align: center;
  padding: 26px 40px 26px; position: relative;
}
.head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold);
}
.head img { width: 100px; display: block; margin: 0 auto 10px; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 4px; }
.head h1 { font-size: 48px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 10px; }
.head h1 em { font-style: normal; color: var(--gold); }
.head .who {
  display: inline-block; font-size: 16px; color: var(--gold-lt);
  border: 1px solid rgba(227,205,159,.55); border-radius: 30px; padding: 6px 20px;
}

/* 본문 */
.body {
  flex: 1; padding: 22px 46px 22px; display: flex; flex-direction: column;
  gap: 14px; justify-content: space-evenly;
}
.step { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; }
.num {
  width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-top: 4px; }
.step-head h2 { font-size: 23px; font-weight: 800; }
.date {
  font-size: 14px; font-weight: 700; color: #fff; background: var(--gold-dk);
  border-radius: 4px; padding: 3px 10px;
}
.step-body { grid-column: 2; margin-top: 4px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 128px 1fr; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.row .k {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: #EFE6D3; color: var(--gold-dk); font-weight: 800; font-size: 15px; padding: 10px 8px; text-align: center;
}
.row .v { padding: 9px 18px; font-size: 16.5px; font-weight: 600; }
.row .v b { color: var(--gold-dk); }
.note { font-size: 13px; color: var(--sub); margin-top: 8px; }

/* 반별 카드 */
.classes { display: flex; flex-direction: column; gap: 10px; }
.cls {
  display: grid; grid-template-columns: 74px 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.cls .name {
  background: var(--navy); color: #fff; font-size: 24px; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.classes.pair { display: grid; grid-template-columns: 1fr 1fr; }
.cls .name.sm { font-size: 14px; white-space: nowrap; }
.cls .name .sub { font-size: 17px; margin-left: 1px; }
.cls .name small { font-size: 12px; color: var(--gold-lt); font-weight: 600; margin-top: 3px; }
.cls .lines { padding: 8px 18px; }
.cls .line { display: grid; grid-template-columns: 62px 1fr; align-items: center; padding: 5px 0; font-size: 16.5px; font-weight: 600; }
.cls .line + .line { border-top: 1px dashed var(--line); }
.day {
  font-size: 13px; font-weight: 800; color: var(--gold-dk); border: 1px solid var(--gold);
  border-radius: 20px; text-align: center; padding: 2px 0; width: 50px;
}
.tbd {
  border: 2px dashed var(--line); border-radius: 8px; padding: 18px; text-align: center;
  color: var(--sub); font-size: 16px; font-weight: 600; background: var(--card);
}

/* 꼬리 */
.foot {
  background: var(--navy); color: #fff; padding: 18px 46px;
  display: flex; align-items: center; justify-content: space-between;
}
.foot .acad { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.foot .acad span { color: var(--gold); }
.foot .acad .tel { font-size: 20px; color: #fff; letter-spacing: .5px; margin-top: 4px; }
.foot .msg { font-size: 13.5px; color: var(--gold-lt); text-align: right; line-height: 1.6; }
.foot .msg b { color: #fff; }
