* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.deck {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #e9eef6;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

:root {
  --slide-title-color: #2b2bb0;
  --hero-title-color: #ffffff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #10233f;
  background: #e9eef6;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.center-left {
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.h3-blue {
  color: blue;
}

.line-shift {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

.center ul,
.center ol {
  display: inline-block;
  margin: 0.5rem auto;
  padding-left: 1.2em;
  text-align: left;
  list-style-position: outside;
}

.center li {
  text-align: left;
}

.center.dash-list {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.dash-list {
  display: table;
  margin: 0.5rem auto;
  padding: 0;
  text-align: left;
  list-style: none;
  white-space: pre-line;
}

.dash-list > p {
  margin: 0;
}

.dash-list li {
  position: relative;
  padding-left: 1.1em;
}

.dash-list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.slide {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.slide-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border-radius: 24px;
  padding: 10px 32px;
  box-shadow: 0 18px 50px rgba(16, 35, 63, 0.14);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slide-frame--hero {
  background: linear-gradient(135deg, #10233f, #295a9b);
  color: #ffffff;
  position: relative;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
}

.slide-hero-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.slide-frame--hero .eyebrow {
  position: absolute;
  top: 24px;
  left: 32px;
  margin: 0;
}

.slide-frame--content {
  background: #f0f2f5;
  color: #10233f;
}

.slide-frame--content .slide-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.slide-frame--content .slide-title {
  margin-top: 16vh;
  text-align: center;
}

.slide-frame--content .slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.slide-frame--content .slide-body ul,
.slide-frame--content .slide-body ol {
  width: fit-content;
  margin: 0 auto;
  text-align: left;
  list-style-position: outside;
}

.slide-frame--literature {
  background: #f2f3f5;
  color: #10233f;
}

.slide-frame--learning-outcomes {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  color: #10233f;
}

.slide-frame--learning-outcomes .slide-title {
  margin-top: 1rem;
  text-align: center;
}

.slide-frame--learning-outcomes .slide-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.08);
  text-align: left;
  line-height: 1.55;
}

.slide-frame--learning-outcomes .slide-body > p:first-child {
  font-size: 1.08rem;
  margin-top: 0;
}

.slide-frame--learning-outcomes .slide-body ul,
.slide-frame--learning-outcomes .slide-body ol {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.slide-frame--literature .slide-title {
  text-align: center;
  margin-top: 1rem;
}

.slide-frame--literature .slide-body {
  font-size: 1.08rem;
  line-height: 1.55;
}

.literature-meta {
  background: #e7ebf2;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.literature-meta__item {
  margin: 0.2rem 0;
}

.literature-meta__label {
  font-weight: 700;
}

.literature-meta__tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.45rem;
  border-radius: 0.45rem;
  background: #10233f;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.literature-meta__link {
  color: #143f7a;
}

.slide-content {
  flex: 1;
}

.slide-title {
  margin-top: 0;
  font-size: 2.5rem;
  text-align: center;
  color: var(--slide-title-color);
}

.slide-body {
  font-size: 1.2rem;
  line-height: 1.6;
}

.code-block {
  margin: 0.75rem auto;
  padding: 0.75rem 1rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45;
}

.code-block code.hljs {
  padding: 0;
  background: transparent;
  font-family: Consolas, "Courier New", monospace;
}

.theorem-box {
  margin: 1rem 0;
  border: 2px solid #222222;
  background: #ffffff;
  color: #111111;
}

.theorem-box__title {
  padding: 0.2rem 1rem;
  background: #d2d2ff;
  color: #1717b8;
  font-size: 1.35rem;
  font-weight: 700;
}

.theorem-box__content {
  padding: 0.65rem 1rem;
  line-height: 1.5;
}

.slide-frame--theorem {
  background: #ffffff;
}

.slide-frame--theorem .slide-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.slide-frame--theorem .slide-title {
  margin-top: 1.5rem;
  font-weight: 400;
}

.slide-frame--theorem .theorem-intro,
.slide-frame--theorem .theorem-after {
  text-align: left;
}

.slide-frame--theorem .theorem-after > :first-child {
  margin-top: 0;
}

.slide-frame--theorem .theorem-intro > :first-child {
  margin-top: 0;
}

.theorem-box__content > :first-child {
  margin-top: 0;
}

.theorem-box__content > :last-child {
  margin-bottom: 0;
}

.slide-frame--hero .slide-title {
  margin: 0;
  font-size: 3rem;
  text-align: center;
  color: var(--hero-title-color);
}

.slide-subtitle {
  margin: 0;
  font-size: 1.5rem;
  opacity: 0.9;
  text-align: center;
}

.slide-nav-hint {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  opacity: 0.9;
  text-align: center;
}

.slide-actions {
  display: flex;
  justify-content: center;
}

.slide-export-button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
}

.slide-export-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.slide-frame--hero .slide-body {
  max-width: none;
  margin: 0;
}

.slide-frame--hero .slide-footer {
  font-size: 0.5rem;
  gap: 8px;
  padding-top: 4px;
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, 0.35);
}

.slide-frame--hero .slide-footer__brand-logo {
  width: 40px;
}

.slide-frame--hero .slide-footer__seal {
  width: 48px;
}

.slide-frame--hero .slide-footer__divider {
  height: 14px;
}

.slide-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid #d2d7df;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.slide-footer__left,
.slide-footer__center,
.slide-footer__right {
  display: flex;
  align-items: center;
}

.slide-footer__left {
  gap: 8px;
  justify-self: start;
}

.slide-footer__center {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  justify-self: center;
}

.slide-footer__right {
  justify-content: flex-end;
  justify-self: end;
}

.slide-footer__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.slide-footer__brand-logo {
  width: 52px;
  height: auto;
  display: block;
}

.slide-footer__organization,
.slide-footer__date,
.slide-footer__presenter-name {
  font-weight: 600;
}

.slide-footer__organization {
  line-height: 1;
}

.slide-footer__department,
.slide-footer__presenter-role {
  font-size: 0.42rem;
  line-height: 1.15;
}

.slide-footer__presenter {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.slide-footer__divider {
  width: 1px;
  height: 18px;
  background: #8f97a2;
}

.slide-footer__seal {
  width: 62px;
  height: auto;
  display: block;
  object-fit: contain;
}

.eyebrow,
.generated {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

@page {
  size: 13.333in 7.5in;
  margin: 0;
}

@media print {
  html,
  body {
    height: auto;
    overflow: visible;
    background: #ffffff;
  }

  .deck {
    display: block;
    height: auto;
    overflow: visible;
    background: #ffffff;
  }

  .slide {
    width: 13.333in;
    height: 7.5in;
    min-height: 7.5in;
    page-break-after: always;
    break-after: page;
  }

  .slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .slide-frame {
    border-radius: 0;
    box-shadow: none;
  }

  .slide-nav-hint,
  .slide-export-button,
  .generated {
    display: none !important;
  }
}
