* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }

:root {
  --brand: #0052D4;
  --brand-bright: #0064FF;
  --ink: #0F172A;
  --ink-2: #191F28;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-soft: #EEF1F6;
  --sb-width: 248px;
}

body {
  background: #F1F5F9;
  min-height: 100vh;
  padding-left: var(--sb-width);
  color: var(--ink);
}

/* ================= Sidebar ================= */
.doc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sb-width);
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  user-select: none;
}

.sb-head {
  padding: 22px 20px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sb-brand-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.sb-hanumul-logo {
  height: 19px;
  width: auto;
  display: block;
}

.sb-title {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #0F172A;
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.sb-close {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #64748B;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease;
}

.sb-link:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.sb-link.active {
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 700;
}

.sb-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #94A3B8;
  width: 16px;
  flex-shrink: 0;
}

.sb-link.active .sb-num {
  color: #0052D4;
}

.mob-topbar { display: none; }
.sidebar-backdrop { display: none; }

/* ================= Strict Fixed A4 Landscape Deck (297:210, non-responsive) ================= */
.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 32px 28px 64px;
}

.page {
  width: min(1122px, 100%);
  aspect-ratio: 297 / 210;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.075);
  scroll-margin-top: 24px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.page-inner {
  --mm: calc(1122px / 297);
  width: 1122px;
  height: calc(1122px * 210 / 297);
  transform-origin: top left;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  padding: calc(12 * var(--mm)) calc(16 * var(--mm)) calc(12 * var(--mm));
  overflow: hidden;
}

/* Subtle executive light aura (roort-intro signature) */
.slide-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 30% at 22% 14%, rgba(56, 189, 248, 0.10) 0%, rgba(0, 100, 255, 0.035) 48%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(ellipse 34% 24% at 84% 86%, rgba(37, 83, 232, 0.035) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
  z-index: 1;
}

/* Standardized Executive Top Header */
.slide-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: calc(3.0 * var(--mm));
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: calc(6.2 * var(--mm));
  flex-shrink: 0;
}

.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: calc(2.4 * var(--mm));
}

.sh-mark {
  width: calc(4.6 * var(--mm));
  height: calc(4.6 * var(--mm));
  border-radius: calc(1.1 * var(--mm));
  display: block;
  flex-shrink: 0;
}

.sh-name {
  font-size: calc(3.45 * var(--mm));
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.03em;
}

.sh-sep {
  width: 1px;
  height: calc(3.2 * var(--mm));
  background: #CBD5E1;
  margin: 0 calc(0.6 * var(--mm));
}

.sh-section {
  font-size: calc(3.3 * var(--mm));
  font-weight: 500;
  color: #475569;
  letter-spacing: -0.02em;
}

.sh-meta {
  font-size: calc(3.15 * var(--mm));
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: -0.02em;
}

/* Single Crisp Display Headline — ZERO small eyebrow or pill badge above */
.slide-title-row {
  position: relative;
  z-index: 3;
  margin-bottom: calc(6.5 * var(--mm));
  flex-shrink: 0;
}

.slide-title {
  margin: 0;
  font-size: calc(8.2 * var(--mm));
  font-weight: 440;
  line-height: 1.32;
  letter-spacing: -0.042em;
  color: #111827;
  word-break: keep-all;
}

.slide-title-grad {
  font-weight: 660;
  background: linear-gradient(
    102deg,
    #0F172A 0%,
    #0047AB 28%,
    #0064FF 52%,
    #3B82F6 68%,
    #0052D4 84%,
    #0F172A 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slide-title strong {
  font-weight: 700;
  color: #0F172A;
}

.slide-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ================= Narrow Viewport Drawer Only (Slides Stay Strict Fixed A4 Ratio) ================= */
@media (max-width: 1100px) {
  body {
    padding-left: 0;
    padding-top: 50px;
    overflow-x: hidden;
  }

  .mob-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 900;
  }

  .mob-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
  }

  .mob-menu-btn svg { width: 15px; height: 15px; }

  .doc-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.14);
  }

  .doc-sidebar.is-open { transform: translateX(0); }
  .sb-close { display: inline-flex; }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: block;
  }

  .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .deck { gap: 14px; padding: 14px 8px 36px; }
  .page { scroll-margin-top: 62px; }
}

@page { size: 297mm 210mm; margin: 0; }
@media print {
  body { background: none; padding: 0 !important; }
  .doc-sidebar, .mob-topbar, .sidebar-backdrop { display: none !important; }
  .deck { display: block; padding: 0; }
  .page {
    display: block !important;
    width: 297mm;
    height: 210mm;
    aspect-ratio: auto;
    box-shadow: none;
    border: none;
    break-after: page;
  }
  .page:last-child { break-after: auto; }
  .page-inner {
    width: 297mm;
    height: 210mm;
    transform: none !important;
    --mm: 1mm;
  }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
