/* 970 seminar timetable — forest chapel poster */

:root {
  --sched-night: #0c221c;
  --sched-pine: #14352c;
  --sched-leaf: #1b463a;
  --sched-mist: #d7e4d4;
  --sched-ink: #f4f1e6;
  --sched-line: rgb(244 241 230 / 0.88);
  --sched-mute: rgb(244 241 230 / 0.72);
  --font-display: "Noto Serif KR", "Batang", serif;
  --font-ui: "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
}

.sched-body {
  min-height: 100vh;
  color: var(--sched-ink);
  font-family: var(--font-ui);
  background: var(--sched-night);
  word-break: keep-all;
}

.sched-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 18% -10%, rgb(255 255 255 / 0.07), transparent 46%),
    radial-gradient(90% 50% at 88% 8%, rgb(255 255 255 / 0.04), transparent 42%),
    linear-gradient(180deg, #184338 0%, var(--sched-pine) 38%, var(--sched-night) 100%);
}

.sched-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(closest-side at 12% 18%, rgb(8 24 20 / 0.9) 0 38%, transparent 70%),
    radial-gradient(closest-side at 28% 8%, rgb(8 24 20 / 0.7) 0 30%, transparent 68%),
    radial-gradient(closest-side at 72% 12%, rgb(8 24 20 / 0.75) 0 34%, transparent 70%),
    radial-gradient(closest-side at 90% 22%, rgb(8 24 20 / 0.8) 0 40%, transparent 72%);
  filter: blur(8px);
}

.sched {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.sched__head {
  text-align: center;
  margin: 0 0 28px;
}

.sched__head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sched__head p {
  margin: 12px 0 0;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--sched-mist);
}

.sched__board {
  overflow-x: auto;
  border: 2px solid var(--sched-line);
  background: rgb(12 34 28 / 0.28);
}

.sched-grid {
  display: grid;
  grid-template-columns: 5.75rem 1fr 1fr 1fr;
  grid-template-rows: 2.75rem repeat(25, 1.7rem);
  min-width: 720px;
}

.sched-grid__h,
.sched-grid__time,
.sched-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  outline: 1px solid var(--sched-line);
  outline-offset: -1px;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sched-grid__h {
  padding: 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: rgb(8 28 22 / 0.45);
}

.sched-grid__time {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sched-mute);
  background: rgb(8 28 22 / 0.38);
  white-space: nowrap;
}

.sched-grid__cell {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.sched-mobile {
  display: none;
}

@media (max-width: 720px) {
  .sched {
    width: calc(100% - 24px);
    padding: 12px 0 max(28px, env(safe-area-inset-bottom));
  }

  .sched__head {
    margin: 0 0 18px;
  }

  .sched__head h1 {
    font-size: clamp(18px, 5.4vw, 24px);
  }

  .sched__head p {
    font-size: 13px;
  }

  .sched__board {
    display: none;
  }

  .sched-mobile {
    display: grid;
    gap: 14px;
  }

  .sched-mobile section {
    border: 1.5px solid var(--sched-line);
    padding: 14px 14px 6px;
    background: rgb(12 34 28 / 0.35);
  }

  .sched-mobile h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-style: normal;
    font-size: 17px;
    font-weight: 700;
  }

  .sched-mobile ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sched-mobile li {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgb(244 241 230 / 0.22);
    font-size: 13px;
    line-height: 1.45;
    min-width: 0;
  }

  .sched-mobile li span {
    color: var(--sched-mist);
    font-size: 12px;
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .sched-bg,
  .sched-mobile {
    display: none !important;
  }

  .sched-body,
  .sched__board {
    background: #fff;
    color: #111;
    border-color: #111;
  }

  .sched__head h1,
  .sched-grid__h,
  .sched-grid__time,
  .sched-grid__cell {
    color: #111;
  }

  .sched__board {
    display: block !important;
    overflow: visible;
  }

  .sched-grid {
    min-width: 0;
  }
}
