/* PRISM Style Shared CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --prism-primary: #1e3a8a;
  --prism-primary-light: #3b82f6;
  --prism-primary-dark: #172554;
  --prism-accent: #0ea5e9;
  --prism-success: #059669;
  --prism-warning: #f59e0b;
  --prism-danger: #dc2626;
  --prism-text: #111827;
  --prism-text-muted: #6b7280;
  --prism-border: #e5e7eb;
  --prism-bg: #f8fafc;
  --prism-bg-alt: #f1f5f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: keep-all;
  color: var(--prism-text);
  margin: 0;
  background: var(--prism-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Top utility bar ===== */
.prism-utility {
  background: #f8fafc;
  border-bottom: 1px solid var(--prism-border);
  font-size: 12px;
  position: relative;
  z-index: 70;
}
.prism-utility-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.prism-utility a {
  color: #64748b;
  text-decoration: none;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prism-utility a:hover { color: var(--prism-primary); }
.prism-utility .divider { color: #cbd5e1; }

/* ===== Header ===== */
.prism-header {
  background: #ffffff;
  border-bottom: 1px solid var(--prism-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.prism-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  position: relative;
}
.prism-nav-mega {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.prism-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--prism-text);
}
.prism-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--prism-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}
.prism-logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
}
.prism-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.prism-logo-text span {
  font-weight: 500;
  font-size: 13px;
  color: var(--prism-text-muted);
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid #cbd5e1;
}

.prism-nav {
  display: flex;
  gap: 4px;
}
.prism-nav a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 6px;
  position: relative;
  transition: color 0.15s;
}
.prism-nav a:hover { color: var(--prism-primary); background: #f1f5f9; }
.prism-nav a.active { color: var(--prism-primary); font-weight: 700; }
.prism-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: var(--prism-primary);
}

/* Mega menu */
.prism-nav-mega { gap: 4px; }
.prism-nav-item { position: relative; }
.prism-nav-item > a {
  display: inline-block;
  padding: 8px 18px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
}
.prism-nav-item > a:hover {
  color: var(--prism-primary);
}

/* Mega panel that drops down on hover */
.prism-mega-host { position: relative; z-index: 60; }
.prism-megapanel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 60;
  pointer-events: none;
}
.prism-mega-host.is-mega-open .prism-megapanel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.prism-megapanel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}
.prism-megapanel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.prism-megapanel-col {
  padding: 0 24px;
  border-right: 1px solid #f1f5f9;
}
.prism-megapanel-col:last-child { border-right: none; }
.prism-megapanel-col:first-child { padding-left: 0; }
.prism-megapanel-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--prism-text);
  text-decoration: none;
  padding: 4px 0 14px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--prism-primary);
  letter-spacing: -0.3px;
}
.prism-megapanel-title:hover { color: var(--prism-primary); }
.prism-megapanel-col ul { list-style: none; padding: 0; margin: 0; }
.prism-megapanel-col ul li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s, transform 0.15s;
}
.prism-megapanel-col ul li a:hover {
  color: var(--prism-primary);
  transform: translateX(4px);
}

/* Backdrop blur covering the rest of the page (starts below header) */
.prism-mega-backdrop {
  position: fixed;
  top: 120px; /* below utility bar (36px) + header (84px) */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 40;
  pointer-events: none;
}
.prism-mega-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.prism-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prism-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.prism-icon-btn:hover { background: #f1f5f9; color: var(--prism-primary); }
.prism-btn-login {
  background: var(--prism-primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.prism-btn-login:hover { background: var(--prism-primary-dark); }

/* Hamburger button (mobile) */
.prism-hamburger { display: none; }
@media (max-width: 1024px) {
  .prism-hamburger { display: inline-flex; }
}

/* Mobile slide-in drawer */
.prism-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99;
}
.prism-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.prism-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: white;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
  overflow-y: auto;
}
.prism-mobile-drawer.is-open { transform: translateX(0); }
.prism-mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.prism-mobile-drawer-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.prism-mobile-drawer-nav { padding: 8px 0 24px; flex: 1; }
.prism-mobile-section { padding: 14px 22px; border-bottom: 1px solid #f1f5f9; }
.prism-mobile-section:last-of-type { border-bottom: none; }
.prism-mobile-section-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--prism-text);
  text-decoration: none;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--prism-primary);
  letter-spacing: -0.3px;
}
.prism-mobile-section ul { list-style: none; padding: 0; margin: 0; }
.prism-mobile-section ul li a {
  display: block;
  padding: 9px 0 9px 8px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}
.prism-mobile-section ul li a:active,
.prism-mobile-section ul li a:hover {
  color: var(--prism-primary);
}
.prism-mobile-footer { padding: 18px 22px 8px; }

/* ===== Page chrome ===== */
.prism-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Breadcrumb ===== */
.prism-breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid var(--prism-border);
}
.prism-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 13px;
  color: var(--prism-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prism-breadcrumb-inner a {
  color: var(--prism-text-muted);
  text-decoration: none;
}
.prism-breadcrumb-inner a:hover { color: var(--prism-primary); }
.prism-breadcrumb-inner .sep { color: #cbd5e1; font-size: 11px; }
.prism-breadcrumb-inner .current { color: var(--prism-text); font-weight: 500; }

/* ===== Page title block ===== */
.prism-page-title {
  background: #ffffff;
  border-bottom: 1px solid var(--prism-border);
  padding: 32px 0;
}
.prism-page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.prism-page-title p {
  color: var(--prism-text-muted);
  margin: 0;
  font-size: 14px;
}

/* ===== Cards ===== */
.prism-card {
  background: white;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
}
.prism-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prism-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prism-card-head h3::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--prism-primary);
  border-radius: 2px;
}
.prism-card-body { padding: 20px; }

/* ===== Buttons ===== */
.prism-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}
.prism-btn-primary {
  background: var(--prism-primary);
  color: white;
}
.prism-btn-primary:hover { background: var(--prism-primary-dark); }
.prism-btn-outline {
  background: white;
  color: var(--prism-text);
  border-color: var(--prism-border);
}
.prism-btn-outline:hover { border-color: var(--prism-primary); color: var(--prism-primary); }
.prism-btn-ghost {
  background: transparent;
  color: var(--prism-text-muted);
}
.prism-btn-ghost:hover { background: #f1f5f9; color: var(--prism-text); }

/* ===== Footer ===== */
.prism-footer {
  background: #1f2937;
  color: #cbd5e1;
  padding: 40px 0 30px;
  margin-top: 80px;
  font-size: 13px;
}
.prism-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.prism-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #374151;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
}
.prism-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.prism-footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 0 16px;
  border-right: 1px solid #374151;
  font-weight: 500;
}
.prism-footer-links a:first-child { padding-left: 0; }
.prism-footer-links a:last-child { border-right: none; }
.prism-footer-links a.highlight { color: white; font-weight: 700; }
.prism-footer-links a:hover { color: white; }

.prism-footer select {
  background: #111827;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  min-width: 200px;
}

.prism-footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.prism-footer-info p { margin: 4px 0; line-height: 1.7; }
.prism-footer-info .addr { font-weight: 700; color: #e5e7eb; }
.prism-footer-info .copy { margin-top: 16px; color: #9ca3af; font-size: 12px; }

.prism-footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}
.prism-footer-badge {
  width: 60px;
  height: 60px;
  background: white;
  color: #1f2937;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
  padding: 4px;
}

/* ===== Utility ===== */
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Policy modal */
.policy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: policy-fade 0.2s ease;
}
@keyframes policy-fade { from { opacity: 0; } to { opacity: 1; } }
.policy-modal {
  background: white;
  border-radius: 14px;
  width: min(760px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  animation: policy-pop 0.22s ease;
}
@keyframes policy-pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.policy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--prism-border);
  position: sticky;
  top: 0;
  background: white;
}
.policy-modal-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: var(--prism-text); }
.policy-close {
  width: 36px; height: 36px;
  border: none; background: #f1f5f9;
  border-radius: 8px; cursor: pointer;
  color: #475569; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.policy-close:hover { background: #e2e8f0; color: var(--prism-text); }
.policy-modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}
.policy-modal-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--prism-primary);
  margin: 26px 0 10px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
.policy-modal-body h4:first-of-type { border-top: none; padding-top: 0; margin-top: 20px; }
.policy-modal-body p { margin: 0 0 12px; }
.policy-modal-body ul { margin: 0 0 14px; padding-left: 20px; }
.policy-modal-body ul li { padding: 3px 0; }
.policy-modal-body strong { color: var(--prism-text); font-weight: 700; }
.policy-modal-body .policy-meta {
  margin-top: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--prism-text-muted);
  line-height: 1.7;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13px;
}
.policy-table th, .policy-table td {
  border: 1px solid var(--prism-border);
  padding: 10px 14px;
  text-align: left;
}
.policy-table th { background: #f8fafc; font-weight: 700; color: #374151; white-space: nowrap; }
.policy-table thead th { text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .prism-nav { display: none; }
}
@media (max-width: 768px) {
  .prism-utility { display: none; }
  .prism-logo-text span { display: none; }
  .prism-container { padding: 0 16px; }
  .prism-header-inner { padding: 0 16px; }
}
