* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eceef1;
  color: #1b1f24;
}
.layout { display: flex; align-items: flex-start; gap: 18px; padding: 18px; }

/* -------------------- controls panel -------------------- */
.controls {
  width: 340px; flex: 0 0 340px;
  background: #fff; border-radius: 12px; padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12); position: sticky; top: 18px;
}
.controls h1 { font-size: 20px; margin: 0 0 4px; }
.controls .sub { font-size: 12px; color: #5a626b; margin: 0 0 14px; }
.field-row { display: flex; gap: 10px; }
.field { flex: 1; margin-bottom: 10px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: #444; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; padding: 7px 8px; border: 1px solid #c8ccd2; border-radius: 7px; font-size: 13px; background:#fff;
}
.block { border-top: 1px solid #e6e8ec; padding-top: 12px; margin-top: 6px; }
.block-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #707883; margin-bottom: 8px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.prefill { font-size: 11px; color: #6b7280; margin: 6px 0; }
.muted { font-size: 12px; color: #8a93a0; }

.holiday-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 8px;
  padding: 6px 0; border-bottom: 1px dashed #eceef1; font-size: 12px;
}
.holiday-row .hname { font-weight: 600; }
.holiday-row .hdate { color: #6b7280; font-size: 11px; }
.holiday-row .htype { grid-column: 2 / 4; padding: 4px 6px; border: 1px solid #c8ccd2; border-radius: 6px; font-size: 12px; }

.buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.buttons button, .link {
  padding: 10px; border: 1px solid #c2c8d0; background: #f6f7f9; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.buttons button:hover { background: #eef0f3; }
.buttons .primary { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.buttons .primary:hover { background: #195bc4; }
.hint { font-size: 10.5px; color: #8a93a0; margin-top: 4px; }

/* ====================================================================== */
/* ===============  PREVIEW / PRINTABLE SHEET (matches PDF)  ============= */
/* ====================================================================== */
.preview-wrap { flex: 1; overflow: auto; }

/* serif for structure/headers, sans for calendar cells & notes */
#sheet {
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, "Liberation Sans", sans-serif;
  width: 1500px; background: #fff; padding: 20px 26px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,.18); margin: 0 auto; color: #000;
}

/* ---- top logo + tagline ---- */
.brand {
  text-align: center; font-family: var(--sans);
  font-size: 60px; font-weight: 900; font-style: italic; letter-spacing: -2px; line-height: 1;
}
.brand .reg { font-size: 18px; vertical-align: super; font-style: normal; font-weight: 700; }
.tagline {
  text-align: center; font-family: var(--sans); font-style: italic; font-weight: 700;
  font-size: 15px; letter-spacing: .02em; margin: 2px 0 12px;
}

/* ---- two-column area, top-aligned & equal height ---- */
.main-area { display: flex; gap: 18px; align-items: stretch; }

/* ===== left box: 23 Classes / 36 Essential Techniques ===== */
.left-col { flex: 0 0 360px; display: flex; }
table.tech {
  width: 100%; border-collapse: collapse; font-family: var(--serif);
  border: 1.5px solid #000;
}
table.tech th, table.tech td { border: 1px solid #000; }
table.tech .th-num { width: 64px; text-align: center; font-weight: 700; font-size: 17px; line-height: 1.05; padding: 6px 2px; }
table.tech .th-tech { text-align: center; font-weight: 700; font-size: 18px; padding: 6px; }
table.tech .tnum { text-align: center; font-weight: 400; font-size: 16px; vertical-align: middle; }
table.tech .ttext { padding: 3px 8px; }
.tline1 { font-size: 14.5px; line-height: 1.18; }
.tline1 b { font-weight: 700; }
.tline2 { font-size: 14px; line-height: 1.18; }

/* ===== right box: calendar + notes ===== */
.right-col { flex: 1; display: flex; flex-direction: column; }

/* the calendar grows to fill the right column so its rows get tall (like the
   original) and the notes flow continuously underneath — no mid-page gap. */
table.cal { width: 100%; border-collapse: collapse; border: 1.5px solid #000; table-layout: fixed; flex: 1 1 auto; }
table.cal th, table.cal td { border: 1px solid #000; }
table.cal .month-title {
  font-family: var(--serif); font-weight: 700; font-size: 21px; text-align: center; padding: 4px;
}
table.cal .dow {
  font-family: var(--serif); font-weight: 400; font-size: 15px; text-align: center; padding: 4px 2px;
}
table.cal td.cell {
  font-family: var(--sans); vertical-align: top; height: 70px; padding: 4px 6px;
  font-size: 13px; line-height: 1.2;
}
.cell .dnum { font-weight: 400; font-size: 13px; }
.cell .ctext { margin-top: 2px; }
.cell .ctext b { font-weight: 700; }

/* ---- notes flow right under the calendar (no gap) ---- */
.notes { font-family: var(--sans); flex: 0 0 auto; }
.note-top-wrap { margin-top: 6px; }
.note-top { font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.note { font-size: 12px; line-height: 1.3; margin-top: 6px; }
.note-h { display: block; font-weight: 800; }
.ul { text-decoration: underline; }

.footer { text-align: center; font-family: var(--sans); font-weight: 700; margin-top: 10px; font-size: 12.5px; }

@media (max-width: 1100px) {
  .layout { flex-direction: column; }
  .controls { position: static; width: 100%; flex-basis: auto; }
}
