:root {
  --ink: #172033;
  --muted: #5c667a;
  --blue-950: #001b3d;
  --blue-800: #063d70;
  --blue-100: #e8f0f8;
  --gold: #f2c94c;
  --gold-soft: #fff4c2;
  --teal: #007f7b;
  --teal-soft: #dff5f2;
  --coral: #c9543d;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #dbe1e8;
  --shadow: 0 14px 36px rgba(0, 27, 61, 0.1);
  --radius: 18px;
  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-800); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.content-shell { padding-block: 2.25rem 4.25rem; }
.content-shell > :first-child { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--blue-950);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  color: white;
  background: var(--blue-950);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: white; text-decoration: none; }
.brand:hover { color: white; }
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 40px;
  height: 40px;
  padding-block: 3px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  font: 800 .82rem/.76 Georgia, serif;
}
.brand-mark > span { display: block; }
.brand-mark .brand-letter-accent { color: var(--gold); font-style: italic; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-copy small { margin-top: .2rem; color: #bdc9d7; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  padding: .48rem .58rem;
  border-radius: 999px;
  color: #dce5ee;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { color: white; background: rgba(255,255,255,.09); }
.site-nav a[aria-current="page"] { color: var(--blue-950); background: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  display: flex;
  gap: .35rem;
  align-items: center;
  padding: .48rem .58rem;
  border-radius: 999px;
  color: #dce5ee;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.65;
  list-style: none;
  cursor: pointer;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "▾"; color: #aebdcb; font-size: .7rem; }
.nav-dropdown summary:hover, .nav-dropdown[open] summary { color: white; background: rgba(255,255,255,.09); }
.nav-dropdown.is-active summary { color: var(--blue-950); background: var(--gold); }
.nav-dropdown.is-active summary::after { color: var(--blue-950); }
.nav-dropdown-menu { position: absolute; z-index: 50; top: calc(100% + .45rem); right: 0; display: grid; min-width: 190px; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.site-nav .nav-dropdown-menu a { padding: .55rem .65rem; border-radius: 8px; color: var(--blue-950); white-space: nowrap; }
.site-nav .nav-dropdown-menu a:hover { color: var(--blue-950); background: var(--blue-100); }
.site-nav .nav-dropdown-menu a[aria-current="page"] { color: var(--blue-950); background: var(--gold-soft); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 84% 12%, rgba(242,201,76,.18), transparent 20rem),
    linear-gradient(135deg, var(--blue-950), #073763 70%, #075c68);
}
.hero-hangul {
  position: absolute;
  z-index: 0;
  right: clamp(1rem, 4vw, 4rem);
  bottom: .75rem;
  width: 21rem;
  height: 13rem;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-hangul span { position: absolute; color: rgba(255,255,255,.08); }
.hero-hangul span:nth-child(1) { left: 7%; top: 12%; font-size: 3.3rem; transform: rotate(-5deg); }
.hero-hangul span:nth-child(2) { left: 48%; top: 0; color: rgba(242,201,76,.09); font-size: 2.45rem; transform: rotate(4deg); }
.hero-hangul span:nth-child(3) { right: 2%; top: 22%; font-size: 4.35rem; transform: rotate(3deg); }
.hero-hangul span:nth-child(4) { left: 0; bottom: 3%; font-size: 2.5rem; transform: rotate(6deg); }
.hero-hangul span:nth-child(5) { left: 35%; bottom: 5%; font-size: 4.8rem; transform: rotate(-3deg); }
.hero-hangul span:nth-child(6) { right: 5%; bottom: 0; color: rgba(242,201,76,.075); font-size: 2.9rem; transform: rotate(5deg); }
.hero-hangul span:nth-child(7) { left: 27%; top: 39%; font-size: 1.75rem; transform: rotate(-8deg); }
.hero-hangul span:nth-child(8) { right: 27%; top: 43%; color: rgba(242,201,76,.07); font-size: 2.15rem; transform: rotate(7deg); }
.hero-hangul span:nth-child(9) { left: 69%; top: 5%; font-size: 1.55rem; transform: rotate(-4deg); }
.hero-hangul span:nth-child(10) { left: 11%; top: 51%; font-size: 1.3rem; transform: rotate(8deg); }
.hero-hangul span:nth-child(11) { left: 61%; top: 37%; color: rgba(242,201,76,.065); font-size: 1.2rem; transform: rotate(-7deg); }
.hero-hangul span:nth-child(12) { right: 39%; bottom: 0; font-size: 1.4rem; transform: rotate(5deg); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(2.4rem, 5vw, 3.75rem) 2rem; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}
.hero-lede { max-width: 780px; margin: 1rem 0 0; color: #dfe9f1; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 2rem;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.course-facts div { display: grid; gap: .05rem; }
.course-facts dt { color: #aebdcb; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.course-facts dd { margin: 0; color: white; font-size: .88rem; font-weight: 750; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--gold);
  color: var(--blue-950);
  font-weight: 850;
  text-decoration: none;
}
.button:hover { background: #ffdd68; color: var(--blue-950); }
.button.secondary { border-color: rgba(255,255,255,.45); background: transparent; color: white; }
.button.secondary:hover { background: rgba(255,255,255,.1); color: white; }

.next-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.next-panel p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.next-panel strong { display: block; color: var(--blue-950); font-size: 1.02rem; }
.next-label { display: block; margin-bottom: .15rem; color: var(--teal); font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.next-link { padding: .55rem .75rem; border-radius: 9px; background: var(--blue-100); color: var(--blue-950); font-size: .88rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.next-link:hover { background: var(--teal-soft); color: var(--blue-950); }

h1, h2, h3 { color: var(--blue-950); line-height: 1.2; }
h1 { letter-spacing: -.035em; }
h2 { margin-top: 2.25rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; }
h3 { margin-top: 2rem; }
.section-heading { max-width: 710px; margin: 2.75rem 0 1.25rem; }
.section-heading h2 { margin-bottom: .55rem; }
.section-heading p { color: var(--muted); }

.page-heading { padding-block: 2.25rem .35rem; }
.page-heading h1 { max-width: 800px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.5vw, 3.25rem); font-weight: 500; }
.page-lede { max-width: 740px; margin: 1rem 0 0; color: var(--muted); font-size: 1.15rem; }
.back-link { display: inline-block; margin-bottom: .75rem; color: var(--muted); font-size: .85rem; font-weight: 750; text-decoration: none; }
.back-link:hover { color: var(--teal); }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0,27,61,.045);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin: .45rem 0 .5rem; font-size: 1.15rem; }
.card p { color: var(--muted); }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.card-link:hover { transform: translateY(-3px); color: inherit; box-shadow: var(--shadow); }

.session-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.session-card { display: flex; flex-direction: column; min-height: 215px; }
.session-card .session-top { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.session-number { color: var(--teal); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.session-date { color: var(--muted); font-size: .82rem; font-weight: 800; }
.session-card p { flex: 1; }
.session-meta { padding-top: .8rem; border-top: 1px solid var(--line); font-size: .82rem; }
.session-focus { display: none !important; }
.session-action { color: var(--blue-800); font-weight: 850; }
.session-card--locked .session-action { color: var(--muted); }
.final-session-wrap { margin-top: 1rem; }
.final-session-wrap .session-card { min-height: 0; border-color: #efc7bd; background: linear-gradient(90deg, #fff 0%, #fff8f5 100%); }
.class-rhythm { margin-top: 1.25rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.class-rhythm h3 { margin: 0 0 1rem; color: var(--blue-950); }
.class-rhythm .flow { margin-bottom: 1rem; }
.class-rhythm > :last-child { margin-bottom: 0; }

.status { display: inline-flex; align-items: center; padding: .3rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status.upcoming, .status.planned { background: var(--blue-100); color: var(--blue-800); }
.status.current { background: var(--gold-soft); color: #654e00; }
.status.complete { background: var(--teal-soft); color: #075d59; }
.status.hackathon { background: #ffe6df; color: #8c3524; }

.callout { margin-block: 1.5rem; padding: 1.1rem 1.25rem; border-left: 5px solid var(--teal); border-radius: 0 12px 12px 0; background: var(--teal-soft); }
.callout.warning { border-color: var(--gold); background: var(--gold-soft); }
.callout.policy { border-color: var(--coral); background: #fff0ec; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.track-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.track-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); }
.track-card.r::before { background: var(--coral); }
.track-card h2 { margin: .4rem 0 .65rem; font-size: 1.45rem; }
.track-card > :last-child { margin-top: auto; padding-top: .5rem; }

.assessment-band { display: grid; grid-template-columns: minmax(210px, .75fr) 1.4fr; gap: 1.25rem; align-items: center; margin-block: 2.5rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); color: white; background: var(--blue-950); }
.assessment-band h2, .assessment-band h3 { color: white; }
.assessment-band h2 { margin: 0; font-size: 1.25rem; }
.assessment-band p { margin: .25rem 0 0; color: #cbd7e2; font-size: .85rem; }
.assessment-band .eyebrow { margin-bottom: .2rem; color: var(--gold); }
.assessment-split { display: grid; grid-template-columns: 3fr 7fr; gap: .65rem; }
.assessment-part { display: grid; align-content: center; padding: .75rem .9rem; border-radius: 10px; background: rgba(255,255,255,.1); }
.assessment-part:last-child { background: rgba(242,201,76,.16); }
.assessment-part strong { display: block; color: var(--gold); font-size: 1.35rem; line-height: 1.1; }
.assessment-part span { font-size: .82rem; line-height: 1.35; }

.assessment-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.35rem 2rem; }
.assessment-card { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,27,61,.045); }
.assessment-card-weight { display: grid; place-items: center; min-height: 4rem; border-radius: 11px; background: var(--blue-100); color: var(--blue-950); font-size: 1.45rem; font-weight: 900; line-height: 1; }
.assessment-card:last-child .assessment-card-weight { background: var(--gold-soft); }
.assessment-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.assessment-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.jump-nav { display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: center; margin-bottom: 2rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: .86rem; }
.jump-nav strong { margin-right: .2rem; color: var(--blue-950); }

.flow { counter-reset: flow; display: grid; gap: .75rem; padding: 0; list-style: none; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; align-items: start; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue-100); color: var(--blue-950); font-weight: 900; }

.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.85rem; margin-block: .55rem; }
.checklist li::before { content: "□"; position: absolute; left: 0; top: -.08rem; color: var(--teal); font-size: 1.25rem; font-weight: 900; }

/* Kramdown task lists already include a checkbox; suppress the list marker. */
.task-list { padding-left: 0; list-style: none; }
.task-list-item { display: flex; gap: .6rem; align-items: flex-start; margin-block: .55rem; }
.task-list-item-checkbox { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: .28rem 0 0; opacity: 1; accent-color: var(--teal); }

.table-wrap { overflow-x: auto; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--blue-100); color: var(--blue-950); font-size: .82rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.course-schedule-table { min-width: 760px; }
.course-schedule-table th:first-child { width: 8.5rem; }
.course-schedule-table th:nth-child(2) { width: 28%; }
.course-schedule-table td { font-size: .91rem; }
.schedule-date, .schedule-release { display: block; margin-top: .22rem; color: var(--muted); font-size: .8rem; }
.schedule-release { font-weight: 750; }
.schedule-final td { background: #fff8f5; }

code { padding: .12em .35em; border-radius: 5px; background: #edf1f4; font-size: .9em; }
pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f3f6f8; }
pre code { padding: 0; background: transparent; }
hr { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 1.5rem 0; padding: .25rem 1.2rem; border-left: 4px solid var(--gold); color: var(--muted); }

.resource-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.resource-item { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.resource-item p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.resource-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.tag { padding: .22rem .45rem; border-radius: 6px; background: var(--blue-100); color: var(--blue-800); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.tag.required { background: var(--gold-soft); color: #654e00; }

.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: .2rem 0 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; background: transparent; color: white; font: inherit; font-weight: 800; }
  .site-nav { position: absolute; inset: 72px 0 auto; display: none; padding: .75rem 1rem 1rem; border-bottom: 4px solid var(--gold); background: var(--blue-950); }
  .site-nav.is-open { display: grid; }
  .site-nav a { width: min(100%, var(--shell)); margin-inline: auto; }
  .nav-dropdown { width: min(100%, var(--shell)); margin-inline: auto; }
  .nav-dropdown summary { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; min-width: 0; margin-top: .25rem; padding: .25rem 0 .25rem .75rem; border: 0; background: rgba(255,255,255,.04); box-shadow: none; }
  .site-nav .nav-dropdown-menu a { width: 100%; color: #dce5ee; }
  .site-nav .nav-dropdown-menu a:hover { color: white; background: rgba(255,255,255,.09); }
  .session-grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
  .brand-copy small { display: none; }
  .hero-inner { padding-block: 2.35rem 1.75rem; }
  .hero-hangul { right: -2rem; bottom: -.5rem; transform: scale(.58); transform-origin: right bottom; opacity: .4; }
  .course-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .next-panel, .grid.two, .grid.three, .session-grid, .assessment-band, .assessment-split, .assessment-cards { grid-template-columns: 1fr; }
  .next-panel { align-items: start; }
  .next-link { justify-self: start; }
  .assessment-band { gap: .9rem; }
  .footer-grid { display: grid; }
  .table-wrap { margin-inline: -.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer { display: none; }
  body { background: white; color: black; }
  .content-shell { padding: 0; }
  a { color: black; text-decoration: none; }
  .card, .callout, .assessment-band { box-shadow: none; break-inside: avoid; }
}
