@font-face {
  font-family: "Pretendard GOV";
  src: url("https://www.sciencecenter.go.kr/gnsm/static/tinymce/font/PretendardGOV-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* KRDS semantic tokens — dark event theme */
  --krds-color-primary-30: #6a95e9;
  --krds-color-primary-40: #3974d9;
  --krds-color-primary-50: #246beb;
  --krds-color-primary-60: #1d56bc;
  --krds-color-text-basic: #f8f8f8;
  --krds-color-text-subtle: #d8d8d8;
  --krds-color-text-disabled: #8a949e;
  --krds-color-surface-basic: #0b1220;
  --krds-color-surface-subtle: #131d2c;
  --krds-color-surface-raised: #1b2738;
  --krds-color-border-gray: #58616c;
  --krds-color-border-subtle: #344150;
  --krds-color-focus: #ffdd66;
  --krds-radius-small: 6px;
  --krds-radius-medium: 8px;
  --krds-radius-large: 12px;
  --krds-shadow-raised: 0 8px 24px rgba(0, 0, 0, .32);
  --krds-transition-base: 160ms ease;
  --ink: var(--krds-color-text-basic);
  --muted: var(--krds-color-text-subtle);
  --night: var(--krds-color-surface-basic);
  --night-2: #101a29;
  --panel: rgba(27, 39, 56, .92);
  --panel-strong: var(--krds-color-surface-raised);
  --violet: var(--krds-color-primary-40);
  --violet-bright: #8eb4f8;
  --coral: var(--krds-color-focus);
  --line: rgba(142, 180, 248, .28);
  --max: 1200px;
  --sans: "Pretendard GOV", "Source Sans 3", "Malgun Gothic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(36, 107, 235, .22), transparent 34rem),
    radial-gradient(circle at 90% 36%, rgba(106, 149, 233, .1), transparent 30rem),
    var(--night);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(142,180,248,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(142,180,248,.16) 1px, transparent 1px);
  background-size: 48px 48px;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--krds-color-focus); outline-offset: 3px; }

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

/* KRDS component compatibility layer */
.krds-site { min-width: 280px; }
.krds-btn { min-width: 4rem; min-height: 3rem; font-family: inherit; font-weight: 700; }
.krds-btn.icon { min-width: 2.75rem; min-height: 2.75rem; }
.krds-card { border-color: var(--krds-color-border-subtle); }
.krds-table { color: var(--krds-color-text-basic); }
.krds-modal { color: var(--krds-color-text-basic); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--krds-radius-medium);
  color: #fff;
  background: var(--krds-color-primary-50);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--krds-color-border-subtle);
  background: rgba(11, 18, 32, .94);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
}

.brand-mark {
  width: 37px;
  height: 37px;
  border: 1px solid var(--krds-color-primary-30);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0;
  box-shadow: inset -7px -5px 0 rgba(36,107,235,.42);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.nav-link:hover { color: #fff; }

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--krds-color-border-gray);
  border-radius: var(--krds-radius-medium);
  background: var(--krds-color-surface-subtle);
}

.language-switch a {
  min-width: 42px;
  min-height: 44px;
  padding: 6px 10px;
  display: grid;
  place-items: center;
  border-radius: var(--krds-radius-small);
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.language-switch a[aria-current="page"] { color: #fff; background: var(--krds-color-primary-50); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -13vw;
  top: 7%;
  border: 1px solid rgba(106,149,233,.34);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(36,107,235,.04),
    0 0 0 160px rgba(36,107,235,.025),
    inset 40px -60px 120px rgba(36,107,235,.16);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 100px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--violet-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .92;
  white-space: nowrap;
}

html[lang="en"] .hero h1 { font-size: clamp(40px, 4.1vw, 58px); letter-spacing: -.045em; }

.hero h1 em { color: var(--violet-bright); font-style: normal; font-weight: 800; }
.hero-date {
  margin: 35px 0 0;
  color: #fff;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
}
.hero-copy { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 49px;
  padding: 12px 19px;
  border: 1px solid var(--krds-color-border-gray);
  border-radius: var(--krds-radius-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--krds-color-surface-raised);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: background var(--krds-transition-base), border-color var(--krds-transition-base);
}
.button:hover { background: #263548; border-color: #75808b; }
.button.primary { border-color: var(--krds-color-primary-50); color: #fff; background: var(--krds-color-primary-50); }
.button.primary:hover { border-color: var(--krds-color-primary-60); background: var(--krds-color-primary-60); }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 105px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; margin-bottom: 46px; }
.section-kicker { margin: 0 0 8px; color: var(--krds-color-primary-30); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { margin: 0; color: #fff; font-family: var(--sans); font-size: clamp(34px, 3.1vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.section-intro { align-self: end; max-width: 630px; margin: 0; color: var(--muted); font-size: 17px; }

.programme-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.programme-card {
  position: relative;
  grid-column: span 6;
  min-height: 315px;
  padding: 29px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--krds-radius-large);
  background: var(--krds-color-surface-subtle);
  text-decoration: none;
  transition: background var(--krds-transition-base), border-color var(--krds-transition-base), box-shadow var(--krds-transition-base);
}
.programme-card:hover { border-color: var(--krds-color-primary-30); background: var(--krds-color-surface-raised); box-shadow: var(--krds-shadow-raised); }
.programme-card.wide { grid-column: span 12; min-height: 260px; }
.card-number { color: var(--violet-bright); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.programme-card h3 { max-width: 100%; margin: 24px 0 14px; color: #fff; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.08; white-space: nowrap; }
html[lang="en"] .programme-card h3 { font-size: clamp(20px, 1.9vw, 27px); }
.programme-card p { max-width: 660px; margin: 0; color: var(--muted); }
.card-meta { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 15px; }
.date-chip { color: #fff; font-weight: 700; }
.card-arrow { width: 44px; height: 44px; border: 1px solid var(--krds-color-border-gray); border-radius: 50%; display: grid; place-items: center; font-size: 20px; }

.poster-section { padding-top: 0; }
.poster-layout { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(36px, 8vw, 100px); align-items: center; }
.poster-frame { width: min(100%, 350px); margin: 0 auto; padding: 12px; border: 1px solid var(--krds-color-border-gray); border-radius: var(--krds-radius-large); background: var(--krds-color-surface-subtle); box-shadow: var(--krds-shadow-raised); transform: none; }
.poster-frame img { width: 100%; height: auto; aspect-ratio: 695 / 1017; object-fit: contain; display: block; border-radius: var(--krds-radius-medium); }
.poster-button { position: relative; appearance: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.poster-button:hover { border-color: var(--krds-color-primary-30); }
.poster-hint { position: absolute; right: 22px; bottom: 22px; padding: 8px 12px; border-radius: var(--krds-radius-small); color: #fff; background: var(--krds-color-primary-50); font-size: 12px; font-weight: 800; box-shadow: var(--krds-shadow-raised); }
.poster-copy h2 { max-width: none; font-size: clamp(30px, 2.6vw, 38px); }
html[lang="en"] .poster-copy h2 { font-size: clamp(27px, 2.25vw, 32px); }
.poster-copy p { max-width: 580px; color: var(--muted); font-size: 17px; }

.poster-dialog {
  inset: 0;
  width: min(94vw, 1100px);
  max-width: 1100px;
  max-height: 94vh;
  margin: auto !important;
  padding: 12px;
  overflow: visible;
  border: 1px solid var(--krds-color-border-gray);
  border-radius: var(--krds-radius-large);
  background: var(--krds-color-surface-subtle);
  box-shadow: 0 24px 64px rgba(0,0,0,.62);
}
.poster-dialog[open] { display: grid; place-items: center; }
.poster-dialog::backdrop { background: rgba(3,2,8,.88); backdrop-filter: blur(8px); }
.poster-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94vh - 24px); object-fit: contain; border-radius: var(--krds-radius-medium); justify-self: center; }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--krds-color-border-gray); border-radius: var(--krds-radius-medium); color: #fff; background: rgba(11,18,32,.92); font: 700 25px/1 var(--sans); cursor: pointer; box-shadow: var(--krds-shadow-raised); }
body.modal-open { overflow: hidden; }

.overview { border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--krds-color-border-gray); border-radius: var(--krds-radius-large); background: var(--krds-color-surface-subtle); }
.event-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.event-table th, .event-table td { padding: 20px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.event-table th { color: #fff; background: #17365f; font-size: 13px; letter-spacing: .04em; text-transform: none; }
.event-table td { color: var(--muted); font-size: 14px; }
.event-table td:first-child { color: #fff; font-size: 16px; font-weight: 800; }
.event-table tr:last-child td { border-bottom: 0; }
.event-table a { color: inherit; text-decoration-color: var(--violet); text-underline-offset: 4px; }
.note { color: #d2bfff; font-size: 12px; }

.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.info-card { padding: 28px; border: 1px solid var(--krds-color-border-gray); border-radius: var(--krds-radius-large); background: var(--panel); }
.info-card h3 { margin: 0 0 14px; color: #fff; font-size: 22px; }
.info-card p { margin: 0 0 12px; color: var(--muted); }
.info-card p:last-child { margin-bottom: 0; }
.info-card img { width: 100%; margin-top: 18px; border-radius: 12px; }
.info-card .route-map { width: 100%; height: auto !important; aspect-ratio: 32 / 19; object-fit: contain; cursor: zoom-in; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.info-card .route-map:hover { border-color: var(--krds-color-primary-30); }
.info-card .route-map:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.info-card a { color: var(--violet-bright); text-underline-offset: 4px; }
.alert { padding-left: 15px; border-left: 3px solid var(--coral); color: #fff !important; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 34px 0 46px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-inner strong { color: #fff; }

/* Existing English detail pages: keep their wording and images, share the landing-page shell. */
.detail-page { background-color: var(--night) !important; color: var(--ink) !important; font-family: var(--sans) !important; }
.detail-page .page { padding: 72px 20px 100px !important; }
.detail-page .page > div {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: clamp(26px, 5vw, 62px) !important;
  border: 1px solid var(--line);
  border-radius: var(--krds-radius-large);
  color: var(--ink) !important;
  background: var(--krds-color-surface-subtle);
  box-shadow: var(--krds-shadow-raised);
}
.detail-page .page h1 { color: #fff !important; font-family: var(--sans) !important; font-size: clamp(27px, 2.1vw, 30px) !important; font-weight: 800 !important; letter-spacing: -.035em; line-height: 1.1 !important; white-space: nowrap; }
.detail-page .page h2, .detail-page .page h3 { white-space: nowrap; }
.detail-page .page h2 { margin-top: 44px !important; padding-bottom: 12px !important; border-color: var(--violet) !important; color: #fff !important; font-size: 24px !important; }
.detail-page .page p { color: var(--muted); }
.detail-page .page p:first-child { color: var(--violet-bright) !important; }
.detail-page .page h1 + p { color: #fff !important; }
.detail-page .page strong { color: #fff; }
.detail-page .page [style*="background:"] {
  border-color: var(--violet) !important;
  color: var(--muted) !important;
  background: #1c2a3d !important;
}
.detail-page .page [style*="background:"] * { color: var(--krds-color-text-subtle) !important; }
.detail-page .page a { color: var(--violet-bright) !important; text-underline-offset: 3px; }
.detail-page .page table { overflow: hidden; border-radius: var(--krds-radius-medium); }
.detail-page .page td, .detail-page .page th { border-color: var(--line) !important; }
.detail-page .page td { background: rgba(255,255,255,.035) !important; color: var(--krds-color-text-subtle) !important; }
.detail-page .page tr:nth-child(even) td { background: rgba(255,255,255,.065) !important; }
.detail-page .page table td p,
.detail-page .page table td span { color: var(--krds-color-text-subtle) !important; }
.detail-page .page table td strong { color: #fff !important; }
.detail-page .page table td a { color: var(--violet-bright) !important; }
.detail-page .page tr[style*="background:#171a2b"] td,
.detail-page .page tr[style*="background:#171a2b"] th { background: #17365f !important; color: #fff !important; }
.detail-page .page img { border-color: var(--line) !important; }
.detail-page .page img[alt$="poster"] { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.detail-page .page img[alt$="poster"]:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.42); }
.detail-page .page img[alt$="poster"]:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.detail-page .foot { border-color: var(--line) !important; color: var(--muted) !important; }

.workshop-completion { margin: 30px 0 42px; }
.workshop-completion-note { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--krds-color-primary-30); border-radius: 0 var(--krds-radius-medium) var(--krds-radius-medium) 0; background: rgba(142, 180, 248, .08); }
.detail-page .page .workshop-completion h2 { margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; color: #fff !important; font-size: 22px !important; line-height: 1.3 !important; white-space: normal; }
.workshop-completion-note p { margin: 0 !important; color: var(--muted) !important; }
.workshop-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.workshop-photos figure { margin: 0; }
.workshop-photo-button { width: 100%; padding: 0; border: 0; border-radius: var(--krds-radius-medium); display: block; appearance: none; color: inherit; background: transparent; font: inherit; text-align: left; cursor: zoom-in; }
.workshop-photos img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--krds-radius-medium); cursor: zoom-in; transition: border-color var(--krds-transition-base), box-shadow var(--krds-transition-base), transform var(--krds-transition-base); }
.workshop-photo-button:hover img { border-color: var(--krds-color-primary-30) !important; box-shadow: var(--krds-shadow-raised); transform: translateY(-2px); }
.workshop-photo-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.workshop-photos figcaption { margin: 7px 2px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 85px 0 80px; }
  .hero::after { width: 88vw; right: -42vw; top: 4%; }
  .section { padding: 78px 0; }
  .section-head, .poster-layout, .info-grid { grid-template-columns: 1fr; }
  .section-head { gap: 22px; }
  .programme-card, .programme-card.wide { grid-column: span 12; }
  .poster-frame { max-width: 330px; }
  .nav-actions > .nav-link { display: none; }
  .hero h1,
  .section h2,
  .programme-card h3,
  .detail-page .page h1,
  .detail-page .page h2,
  .detail-page .page h3 { white-space: normal; }
  .workshop-photos { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-shell, .hero-inner, .section, .footer-inner { width: min(100% - 28px, var(--max)); }
  .nav-shell { min-height: 64px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 33px; height: 33px; }
  .hero h1 { font-size: clamp(48px, 16vw, 74px); }
  .hero-copy { font-size: 16px; }
  .programme-card { min-height: 290px; padding: 23px; }
  .footer-inner { flex-direction: column; }
  .detail-page .page { padding: 30px 12px 70px !important; }
  .detail-page .page > div { padding: 23px 17px !important; border-radius: 18px; }
  .detail-page .page table { display: block; width: 100% !important; overflow-x: auto; }
}

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

@media (forced-colors: active) {
  .button, .programme-card, .info-card, .poster-frame, .poster-dialog, .table-wrap { border: 1px solid CanvasText; }
  a:focus-visible, button:focus-visible { outline: 3px solid Highlight; }
}
