@font-face {
  font-family: CloudSans;
  src: url("assets/NotoSansKR-Regular.woff2");
}
@font-face {
  font-family: CloudSans;
  src: url("assets/NotoSansKR-Bold.woff2");
  font-weight: 700;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: CloudSans, sans-serif;
  color: #302444;
  background: #faf7f0;
}
button,
a {
  font: inherit;
}
button,
a.button {
  min-height: 52px;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 4px solid #b77a27;
  outline-offset: 5px;
}
button {
  border: 0;
}
a {
  color: #624394;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 16px 28px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  background: #eee5f7;
  color: #503572;
}
.primary {
  background: #7150a4;
  color: white;
  box-shadow: 0 5px 0 #52377e;
}
.secondary {
  background: transparent;
  border: 2px solid #d6c9e7;
}
.actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.presenter {
  height: 100vh;
  overflow: hidden;
  background: #201c2a;
}
.deck {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--deck-scale, 0.6));
  transform-origin: center;
}
.slide {
  width: 1920px;
  height: 1080px;
  padding: 64px 88px 80px;
  display: none;
  background: #faf7f0;
  position: relative;
  overflow: hidden;
}
.slide.active {
  display: flex;
  flex-direction: column;
}
.slide header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #765599;
  font-size: 27px;
  letter-spacing: 2px;
  height: 48px;
  flex-shrink: 0;
}
.slide header b {
  padding: 0 14px;
  color: #b5a1ca;
}
.slide-content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 70px;
}
.slide-copy h1 {
  font-size: 78px;
  line-height: 1.2;
  letter-spacing: -3px;
  margin: 0 0 36px;
  font-weight: 700;
  word-break: keep-all;
}
.slide-copy p {
  font-size: 50px;
  line-height: 1.55;
  word-break: keep-all;
  margin: 0;
  max-width: 800px;
}
.main-photo {
  margin: 0;
  position: relative;
}
.main-photo img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 28px;
  display: block;
}
.kind-cover {
  padding: 0;
  background: #202b38;
  color: #fff;
}
.kind-cover header {
  position: absolute;
  z-index: 2;
  top: 64px;
  left: 88px;
  right: 88px;
  color: white;
}
.kind-cover .slide-content {
  display: block;
}
.kind-cover .main-photo {
  position: absolute;
  inset: 0;
}
.kind-cover .main-photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.kind-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 24, 39, 0.72), transparent);
}
.kind-cover .slide-copy {
  position: absolute;
  left: 100px;
  bottom: 155px;
  z-index: 2;
}
.kind-cover h1 {
  font-size: 128px;
  letter-spacing: -6px;
}
.kind-cover p {
  font-size: 60px;
}
.kind-islands .slide-content,
.kind-pair-islands .slide-content,
.kind-pair-life .slide-content,
.kind-goals .slide-content,
.kind-demo .slide-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 36px;
}
.kind-islands .slide-copy,
.kind-pair-islands .slide-copy,
.kind-pair-life .slide-copy,
.kind-demo .slide-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}
.kind-islands h1,
.kind-pair-islands h1,
.kind-pair-life h1,
.kind-demo h1 {
  font-size: 74px;
  margin: 0;
  flex-shrink: 0;
}
.kind-islands .main-photo {
  align-self: center;
  width: 1350px;
}
.kind-islands .main-photo img {
  height: 570px;
  width: 100%;
  object-fit: cover;
  object-position: center 57%;
}
.island-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.island-labels span {
  position: absolute;
  top: 48%;
  font-size: 54px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 18px;
  background: #fff9e9;
  box-shadow: 0 6px 20px #1235;
}
.island-labels span:first-child {
  left: 17%;
}
.island-labels span:last-child {
  left: 70%;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.photo-pair figure {
  margin: 0;
}
.photo-pair img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  border-radius: 24px;
}
.photo-pair figcaption {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-top: 18px;
}
.geo-map {
  position: relative;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 12px 35px #19394712;
  aspect-ratio: 1.6;
}
.geo-map > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.geo-map span {
  position: absolute;
  font-size: 42px;
  font-weight: 700;
}
.map-sea {
  top: 17%;
  left: 53%;
  color: #4d838b;
  letter-spacing: 16px;
}
.map-land {
  top: 28%;
  left: 5%;
  color: #42614b;
}
.map-north {
  top: 7%;
  right: 6%;
  font-size: 36px !important;
}
.map-place {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transform: translate(-12px, -50%);
  padding: 6px 12px;
  border-radius: 12px;
  background: #fffaf0eb;
  color: #4b326b;
}
.map-place i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6e4ca3;
  box-shadow: 0 0 0 6px #b9a5d84d;
}
.ulleung {
  left: 53.7%;
  top: 50%;
}
.dokdo {
  left: 71.67%;
  top: 57.22%;
}
.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mission-cards > div {
  padding: 48px;
  border-radius: 32px;
  background: #eee6f6;
  border-bottom: 9px solid #d5c4e7;
}
.mission-cards b {
  font-size: 70px;
  color: #aa8dcb;
}
.mission-cards h2 {
  font-size: 62px;
  margin: 25px 0;
}
.mission-cards p {
  font-size: 48px;
}
.kind-goals h1 {
  font-size: 86px;
}
.kind-goals .slide-copy p {
  max-width: none;
}
.qr-panel {
  text-align: center;
  background: white;
  border-radius: 36px;
  padding: 35px;
}
.qr-panel img {
  width: 420px;
  height: 420px;
}
.qr-panel a {
  display: block;
  font-size: 26px;
  overflow-wrap: anywhere;
  margin: 15px auto;
  max-width: 640px;
}
.qr-panel .timer {
  margin-top: 18px;
}
.video-panel {
  min-width: 0;
}
.video-panel #video-slot {
  width: 100%;
  height: 500px;
  border-radius: 25px;
  background: #e7dfef;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-panel iframe {
  width: 100%;
  height: 500px;
  border-radius: 25px;
}
.video-panel p {
  font-size: 32px;
  line-height: 1.5;
}
.video-panel .button {
  font-size: 28px;
}
.video-print {
  display: none;
}
.demo-shot {
  margin: 0;
  text-align: center;
}
.demo-shot img {
  height: 570px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 24px;
  border: 3px solid #d9cee8;
}
.closing-cloud {
  width: 530px;
  justify-self: center;
}
.kind-closing {
  background: #ede5f6;
}
.kind-closing .slide-copy h1 {
  font-size: 88px;
}
.reveal {
  margin-top: 32px;
  font-size: 32px;
}
.answer {
  margin-top: 30px !important;
  padding: 28px;
  border-radius: 20px;
  background: #eee4f8;
  font-size: 48px !important;
}
.kind-quiz .slide-content {
  grid-template-columns: 1fr;
}
.kind-quiz .slide-copy {
  max-width: 1500px;
}
.kind-quiz .slide-copy p {
  max-width: 1400px;
}
.presenter-bar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
  color: white;
  background: #201c2a;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap;
}
.presenter-bar button {
  background: #453653;
  color: white;
  border-radius: 14px;
  padding: 12px 20px;
}
.presenter-bar a {
  color: #ded2ec;
}
.presenter-bar output {
  min-width: 70px;
  text-align: center;
}
#teacher-notes {
  position: fixed;
  bottom: 90px;
  left: 10%;
  right: 10%;
  background: #fffaf0;
  box-shadow: 0 0 0 100vmax #0007;
  border-radius: 20px;
  padding: 30px;
  font-size: 24px;
  z-index: 10;
}
.library main {
  max-width: 1140px;
  margin: 60px auto;
  padding: 30px;
}
.library h1 {
  font-size: 46px;
}
.library p,
.library li {
  font-size: 21px;
  line-height: 1.8;
}
.library .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.library img {
  max-width: 100%;
  border-radius: 25px;
}
.library .cards {
  display: grid;
  gap: 22px;
}
.library .card {
  background: white;
  padding: 28px;
  border-radius: 24px;
}
.grade-switch {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}
.print-mode {
  height: auto;
  overflow: visible;
  background: white;
}
.print-mode .deck {
  position: static;
  transform: none;
  width: auto;
  height: auto;
}
.print-mode .slide {
  display: flex;
  flex-direction: column;
  break-after: page;
  page-break-after: always;
}
.print-mode .presenter-bar,
.print-mode .reveal,
.print-mode .timer,
.print-mode .answer,
.print-mode .video-panel #video-slot,
.print-mode #video-status,
.print-mode .video-panel .actions {
  display: none !important;
}
.print-mode .video-print {
  display: block;
  font-size: 32px;
}
.video-print img {
  width: 250px;
}
.appendix .slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}
.appendix h1 {
  font-size: 64px;
  margin: 0;
}
.appendix p {
  font-size: 38px;
  line-height: 1.5;
  margin: 0;
}
.credits p {
  font-size: 28px;
}
.credits a {
  overflow-wrap: anywhere;
}
@page {
  size: 1920px 1080px;
  margin: 0;
}
.library .detail-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}
.library .detail-hero > img {
  max-height: 400px;
}
.library .lead {
  font-size: 27px;
}
.library .grade-select {
  margin: 30px 0;
  font-size: 22px;
}
.library select {
  font: inherit;
  padding: 10px;
  border-radius: 12px;
  margin-left: 20px;
}
.library .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px 0;
}
.library .info-grid article,
.teacher article {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  margin: 15px 0;
}
.library .catalog-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 30px;
  border-radius: 28px;
  background: white;
  text-decoration: none;
}
.library .catalog-card img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}
.library .small {
  font-size: 17px;
  color: #796d85;
}
@media (max-width: 750px) {
  .library .detail-hero,
  .library .info-grid,
  .library .catalog-card {
    grid-template-columns: 1fr;
  }
  .library main {
    margin: 20px auto;
  }
}
.kind-islands .main-photo img {
  object-position: center 20%;
}
.island-labels span {
  top: 68%;
}
.map-place {
  padding: 0;
  background: none;
  transform: none;
}
.map-place i {
  position: absolute;
  left: -7px;
  top: -7px;
}
.map-place b {
  position: absolute;
  left: 14px;
  top: -30px;
  padding: 6px 12px;
  background: #fffaf0ef;
  border-radius: 12px;
}

.history-document {
  background: #f0e8f6;
  border-radius: 32px;
  padding: 50px;
  box-shadow: 0 12px 0 #ddd0e7;
}
.history-document .history-year {
  font-size: 92px;
  font-weight: 800;
  color: #7952aa;
}
.history-document h2 {
  font-size: 52px;
  line-height: 1.4;
  margin: 24px 0;
}
.history-document p {
  font-size: 48px;
  line-height: 1.5;
  word-break: keep-all;
}
.history-document .record-names {
  padding: 26px 0;
  border-block: 2px solid #cbb9db;
  font-weight: 700;
}
.kind-archive-guide .main-photo,.kind-archive-task .main-photo{height:auto;aspect-ratio:955/700;position:relative;overflow:visible;background:#f8f5ec}.kind-archive-guide .main-photo img,.kind-archive-task .main-photo img{object-fit:contain;border-radius:12px}.archive-title-mark{position:absolute;right:0;top:-66px;font-size:40px;font-weight:700;color:#6c409a}.archive-title-box{position:absolute;left:92.88%;top:4.57%;width:5.14%;height:27%;outline:4px solid #8b5db5;border-radius:5px;pointer-events:none}.archive-clue-cards{position:absolute;left:90px;bottom:100px;width:740px;display:flex;gap:24px}.archive-clue-cards span{background:#eee4f4;border-radius:22px;padding:22px 30px;font-size:48px;line-height:1.5}.archive-clue-cards b{font-size:36px}.kind-archive-task .slide-copy{transform:translateY(-90px)}

.mission-cards{grid-template-columns:repeat(4,1fr)}.mission-cards>div{padding:32px}.mission-cards h2{font-size:54px}

/* Journey cover: keep the illustration intact; all lettering is live text. */
.kind-cover header{display:none}.kind-cover:after{display:none}.kind-cover .slide-copy{left:0;right:0;top:30px;bottom:auto;text-align:center;color:#39245d;text-shadow:0 3px 18px #fff9}.kind-cover h1{font-size:100px;letter-spacing:-3px;margin:0}.kind-cover p{font-size:48px;margin:8px 0 0}.cover-enter{position:absolute;z-index:3;bottom:56px;left:50%;transform:translateX(-50%);font-size:42px;padding:24px 54px;border:3px solid #e4cef9;border-radius:50px;box-shadow:0 9px 0 #4d297d,0 15px 35px #30234b44}.print-mode .cover-enter{display:none}
.library .teacher-journey{position:relative;aspect-ratio:16/9;margin:24px 0;border-radius:28px;overflow:hidden;background:#e9def8}.teacher-journey>img{display:block;width:100%;height:100%;object-fit:contain}.journey-heading{position:absolute;top:18px;left:12px;right:12px;text-align:center;color:#39245d;text-shadow:0 2px 12px #fffd}.library .journey-heading h1{font-size:clamp(30px,4.5vw,64px);margin:0;letter-spacing:-2px}.journey-heading p{font-size:22px;margin:0 0 4px}.journey-enter{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);white-space:nowrap;border:2px solid #e4cef9!important;border-radius:40px!important;box-shadow:0 7px 0 #4e2a7c,0 12px 24px #36205d44;text-decoration:none}.library .journey-enter{font-size:26px;padding:17px 32px}.lesson-preparation{display:flex;justify-content:center;gap:24px;align-items:center;flex-wrap:wrap}.library .catalog-card{grid-template-columns:1fr;padding:0;overflow:hidden;gap:0}.library .catalog-card img{height:auto;aspect-ratio:16/9;object-fit:contain}.library .catalog-card>div{padding:28px}
@media(max-width:600px){.library .teacher-journey{aspect-ratio:auto;padding-top:110px;padding-bottom:100px}.teacher-journey>img{height:auto}.journey-heading{top:20px}.library .journey-enter{font-size:22px;padding:16px 24px;bottom:26px}}
.kind-cover .slide-copy{display:flex;flex-direction:column-reverse;align-items:center;top:24px}.kind-cover .slide-copy p{width:100%;max-width:none;text-align:center;font-size:40px;margin:0 0 6px}.library .journey-heading{top:10px}.library .journey-heading h1{font-size:clamp(30px,4vw,54px)}
.kind-cover .slide-copy{top:12px}.kind-cover h1{font-size:88px}.kind-cover .slide-copy p{font-size:36px}

/* Four generated activity scenes; live captions remain readable and editable. */
.kind-goals .slide-content{gap:24px;justify-content:center}
.kind-goals .slide-copy{display:flex;align-items:baseline;justify-content:space-between;gap:30px}
.kind-goals .slide-copy h1{font-size:76px;margin:0;white-space:nowrap}
.kind-goals .slide-copy p{font-size:48px;max-width:none}
.mission-preview{margin:0;width:100%}
.mission-art{display:block;width:100%;height:auto;border-radius:28px}
.mission-preview .mission-cards{gap:0}
.mission-preview .mission-cards>div{padding:24px 6px 0;background:none;border:0;border-radius:0;text-align:center}
.mission-preview .mission-cards h2{font-size:54px;margin:0 0 12px;line-height:1.2}
.mission-preview .mission-cards p{font-size:48px;margin:0;line-height:1.4}

.kind-jurisdiction .slide-content{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:24px;align-items:stretch}.kind-jurisdiction .slide-copy{display:flex;align-items:center;justify-content:space-between;gap:40px}.kind-jurisdiction .slide-copy h1{font-size:64px;line-height:1.2;margin:0}.kind-jurisdiction .slide-copy>p{font-size:36px;line-height:1.4;margin:0}.kind-jurisdiction .jurisdiction-heading h2{font-size:44px}.kind-jurisdiction .jurisdiction-heading>span{font-size:30px}.kind-jurisdiction .jurisdiction-islands figure{grid-template-rows:minmax(0,1fr) 140px}.kind-jurisdiction .jurisdiction figcaption span,.kind-jurisdiction .jurisdiction figcaption p{font-size:34px}.kind-jurisdiction .jurisdiction h3{font-size:48px}

.kind-jurisdiction .jurisdiction-islands figure{grid-template-rows:minmax(0,1fr) auto}

/* Topic-specific closing: facts and Dokdo itself replace a generic slogan. */
.kind-closing .slide-content{grid-template-columns:1.05fr .95fr;gap:48px}.kind-closing .slide-copy h1{font-size:76px;margin-bottom:28px}.closing-facts{list-style:none;margin:0;padding:0;display:grid;gap:22px}.closing-facts li{display:grid;grid-template-columns:96px 1fr;gap:20px;align-items:start;font-size:38px;line-height:1.45;word-break:keep-all}.closing-facts strong{background:#ddc9ef;color:#593580;border-radius:14px;text-align:center;padding:5px 0}.kind-closing .main-photo{aspect-ratio:1;overflow:hidden;border-radius:28px}.kind-closing .main-photo img{position:absolute;width:300%;max-width:none;max-height:none;left:-200%;top:0;height:100%;border-radius:0}
/* H13: concept and closing content use the same 48px teaching text floor. */
.kind-jurisdiction .slide-copy>p{font-size:48px}.kind-jurisdiction .jurisdiction-heading h2{font-size:48px}.kind-jurisdiction .jurisdiction figcaption span,.kind-jurisdiction .jurisdiction figcaption p{font-size:48px}.closing-facts li{font-size:48px}.geo-map span{font-size:48px}

@media print { .print-mode .deck > .slide:last-child { break-after:auto; page-break-after:auto; } }

.main-photo .image-context{position:absolute;bottom:10px;left:12px;background:#fff9;color:#302444;padding:8px 14px;border-radius:10px;font-size:22px;line-height:1.3}
