* {
  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", "Malgun Gothic", sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }

:root {
  --brand: #1B56FF;
  --brand-deep: #13347D;
  --blue: #191F28;
  --ink: #191F28;
  --ink-2: #0F172A;
  --text: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --red: #E11D48;
  --sb-width: 260px;
}

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

.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;
  color: #191F28;
  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-logo {
  height: 13.5px;
  width: auto;
  margin-bottom: 9px;
}
.sb-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  letter-spacing: -0.35px;
}
.sb-close {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sb-close svg { width: 15px; height: 15px; }

.sb-demos {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sb-demo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.25px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sb-demo-btn.is-primary {
  background: #191F28;
  color: #FFFFFF;
}
.sb-demo-btn.is-primary:hover {
  background: #333D4B;
}
.sb-demo-btn.is-outline {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #1E293B;
}
.sb-demo-btn.is-outline:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}
.sb-demo-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sb-nav::-webkit-scrollbar { width: 4px; }
.sb-nav::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

.sb-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-group-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
  padding: 0 10px 3px;
  letter-spacing: -0.2px;
  background: none;
  border: none;
  text-align: left;
}
.sb-group-title.is-clickable {
  cursor: pointer;
}
.sb-group-title.is-clickable:hover {
  color: var(--brand);
}

.top-category-bar {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid #D1D6DB;
  padding: 14px 28px;
}
.tcb-inner {
  max-width: 1122px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tcb-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tcb-tab {
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.35px;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tcb-tab:hover {
  background: #FFFFFF;
  border-color: var(--brand);
  color: var(--brand);
}
.tcb-tab.is-active {
  background: #13347D;
  border-color: #13347D;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(19, 52, 125, 0.22);
}
.tcb-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sb-link {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  color: #64748B;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.25px;
  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: #191F28;
  font-weight: 700;
}

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

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 36px 28px 60px;
}

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

.page-inner {
  --mm: calc(1122px / 297);
  --px: calc(1122px / 1122.5);
  --fs-h1: calc(10 * var(--mm));
  --fs-lead: calc(9.5 * var(--mm));
  --fs-h3: calc(6 * var(--mm));
  --fs-body: calc(4.3 * var(--mm));
  --fs-small: calc(4 * var(--mm));
  --fs-index: calc(3.8 * var(--mm));
  width: 1122px;
  height: calc(1122px * 210 / 297);
  transform-origin: top left;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(18 * var(--mm)) calc(24 * var(--mm)) calc(15 * var(--mm));
}

.header-line {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: calc(2.8 * var(--mm));
  border-bottom: calc(.35 * var(--mm)) solid var(--line);
  margin-bottom: calc(6.5 * var(--mm));
}
.header-index { font-size: var(--fs-index); font-weight: 500; color: var(--text); letter-spacing: -.2px; }
.title-wrap { position: relative; z-index: 10; margin-bottom: calc(5.5 * var(--mm)); }
.main-title { font-size: var(--fs-h1); font-weight: 400 !important; line-height: 1.34; letter-spacing: -0.04em !important; color: var(--ink); }
.main-title strong { font-weight: 600 !important; }

/* ===== Standardized Proposal Deck Content Slide Spec (Slide 2+) ===== */
.page.is-content {
  background: #FFFFFF;
}
.page.is-content .page-inner {
  position: relative;
  background: #FFFFFF;
  padding: calc(12 * var(--mm)) calc(16 * var(--mm)) calc(12 * var(--mm));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.slide-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 30% at 22% 16%, rgba(56, 189, 248, 0.11) 0%, rgba(0, 100, 255, 0.04) 48%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(ellipse 34% 24% at 82% 84%, rgba(37, 83, 232, 0.035) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
  z-index: 1;
}
.slide-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: calc(3.2 * var(--mm));
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: calc(7.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.8 * var(--mm));
  height: calc(4.8 * var(--mm));
  border-radius: calc(1.2 * var(--mm));
  display: block;
  flex-shrink: 0;
}
.sh-kh-stamp {
  width: calc(4.4 * var(--mm));
  height: calc(5.6 * var(--mm));
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  flex-shrink: 0;
}
.sh-kh-wordmark {
  font-family: 'Kaushan Script', cursive !important;
  font-size: calc(4.8 * var(--mm));
  line-height: 1;
  color: #11151B;
  letter-spacing: -0.01em;
}
.sh-name {
  font-size: calc(3.5 * 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.4 * var(--mm));
  font-weight: 500;
  color: #475569;
  letter-spacing: -0.02em;
}
.sh-meta {
  font-size: calc(3.2 * var(--mm));
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: -0.02em;
}
.slide-title-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(6 * var(--mm));
  margin-bottom: calc(6.5 * var(--mm));
  flex-shrink: 0;
}
.slide-title {
  margin: 0;
  font-size: calc(8.6 * var(--mm));
  font-weight: 460;
  line-height: 1.34;
  letter-spacing: -0.042em;
  color: #111827;
  word-break: keep-all;
}
.slide-title-grad {
  font-weight: 580;
  background: linear-gradient(
    102deg,
    #0F172A 0%,
    #0047AB 26%,
    #0064FF 48%,
    #60A5FA 62%,
    #0052D4 78%,
    #0F172A 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ccSheen 6.5s ease-in-out infinite;
}
@keyframes ccSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.slide-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deck-next-bar {
  width: min(1122px, 100%);
  margin: 4px auto 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.deck-next-bar[hidden] {
  display: none;
}
.dnb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  border: 1px solid #191F28;
  background: #191F28;
  color: #FFFFFF;
  transition: background 0.15s ease;
}
.dnb-btn:hover { background: #0F172A; }
.dnb-btn.is-prev {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
  padding: 13px 18px;
}
.dnb-btn.is-prev:hover { background: #F8FAFC; }

@media (max-width: 1100px) {
  body {
    padding-left: 0;
    padding-top: 52px;
    overflow-x: hidden;
  }
  .top-category-bar { display: none !important; }
  .mob-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: 52px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    z-index: 900;
  }
  .mob-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.25px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mob-menu-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
  .mob-quick-links {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .mob-quick-links::-webkit-scrollbar { display: none; }
  .mob-pill {
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 9px;
    border-radius: 7px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #1E293B;
    letter-spacing: -0.25px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .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: 64px; }
}

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