/* ==========================================================
   영국 의대/약대 파운데이션 프로그램 리서치 리포트 — 공용 스타일
   흰색 라이트 테마 · 인디고 액센트 · 01~04 리포트와 동일 계열
   ========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }

/* ---------------- HERO ---------------- */
.hero {
  background: linear-gradient(135deg, #f5f7ff 0%, #faf5ff 100%);
  border-radius: 20px; padding: 56px 48px; margin-bottom: 32px;
  border: 1px solid #e5e7eb; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block; padding: 6px 14px; background: rgba(99,102,241,0.1);
  color: #4f46e5; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(99,102,241,0.2);
}
.hero h1 { font-size: 42px; font-weight: 800; color: #111827; margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.02em; }
.hero-sub { font-size: 17px; color: #4b5563; max-width: 860px; }
.hero-meta { display: flex; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6b7280; }
.hero-meta-item strong { color: #4f46e5; }

/* ---------------- NAV ---------------- */
.topnav {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 28px; font-size: 13px;
}
.topnav a {
  text-decoration: none; color: #6b7280; padding: 6px 12px;
  border: 1px solid #e5e7eb; border-radius: 100px; background: #fff; transition: all .15s;
}
.topnav a:hover { color: #4f46e5; border-color: #a5b4fc; }
.topnav .cur { color: #fff; background: #4f46e5; border-color: #4f46e5; font-weight: 600; }
.topnav .sep { color: #d1d5db; }

/* ---------------- SECTION ---------------- */
.section { margin-bottom: 56px; }
.section-label { font-size: 13px; color: #4f46e5; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 8px; text-transform: uppercase; }
.section-title { font-size: 30px; font-weight: 700; color: #111827; margin-bottom: 12px; letter-spacing: -0.01em; }
.section-desc { color: #6b7280; margin-bottom: 28px; max-width: 880px; }
.sub-title { font-size: 18px; font-weight: 700; color: #111827; margin: 32px 0 14px; }

/* ---------------- METRICS ---------------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.metric {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px;
  transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.metric:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.4); box-shadow: 0 8px 24px rgba(99,102,241,0.08); }
.metric-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
.metric-value { font-size: 34px; font-weight: 800; color: #111827; line-height: 1.05; margin-bottom: 6px; }
.metric-value .unit { font-size: 17px; color: #4f46e5; font-weight: 600; }
.metric-label { color: #4b5563; font-size: 13px; margin-bottom: 4px; }
.metric-source { color: #9ca3af; font-size: 11px; }

.ico-blue   { background: rgba(99,102,241,0.1);  color: #4f46e5; }
.ico-green  { background: rgba(34,197,94,0.1);   color: #15803d; }
.ico-amber  { background: rgba(245,158,11,0.1);  color: #b45309; }
.ico-rose   { background: rgba(244,63,94,0.1);   color: #be123c; }
.ico-purple { background: rgba(168,85,247,0.1);  color: #7e22ce; }
.ico-sky    { background: rgba(14,165,233,0.11); color: #0369a1; }
.ico-slate  { background: rgba(100,116,139,0.12);color: #475569; }

/* ---------------- INSIGHTS ---------------- */
.insights { display: grid; gap: 14px; }
.insight {
  background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #6366f1;
  border-radius: 10px; padding: 24px 28px; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.insight-num {
  display: inline-block; background: #6366f1; color: #fff;
  width: 24px; height: 24px; border-radius: 6px; text-align: center;
  line-height: 24px; font-size: 12px; font-weight: 700; margin-right: 10px;
}
.insight-headline { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; display: inline; }
.insight-body { color: #4b5563; font-size: 14px; margin-top: 10px; }
.insight-body strong { color: #4f46e5; }

/* ---------------- TABLE ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
thead th {
  background: #f9fafb; color: #374151; font-weight: 700; text-align: left;
  padding: 13px 16px; border-bottom: 2px solid #e5e7eb; white-space: nowrap; font-size: 12.5px;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; color: #4b5563; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }
tbody td strong { color: #111827; }
td .yes { color: #15803d; font-weight: 700; }
td .no  { color: #be123c; font-weight: 700; }
td .na  { color: #9ca3af; }

/* ---------------- COMPARE ---------------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.compare-card.medicine { border-top: 4px solid #6366f1; }
.compare-card.pharmacy { border-top: 4px solid #10b981; }
.compare-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.medicine .compare-tag { color: #4f46e5; }
.pharmacy .compare-tag { color: #047857; }
.compare-card h3 { font-size: 19px; font-weight: 700; color: #111827; margin-bottom: 14px; }
.compare-list { list-style: none; }
.compare-list li { font-size: 13.5px; color: #4b5563; padding: 9px 0 9px 20px; position: relative; border-bottom: 1px solid #f3f4f6; }
.compare-list li:last-child { border-bottom: none; }
.compare-list li::before { content: "▸"; position: absolute; left: 0; top: 9px; font-size: 11px; }
.medicine .compare-list li::before { color: #a5b4fc; }
.pharmacy .compare-list li::before { color: #6ee7b7; }
.compare-list b { color: #111827; }

/* ---------------- CALLOUT ---------------- */
.callout { border-radius: 12px; padding: 20px 24px; margin: 20px 0; font-size: 14px; border: 1px solid; }
.callout h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.callout ul { padding-left: 18px; margin-top: 6px; }
.callout li { margin-bottom: 4px; }
.callout.warn   { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.callout.warn h4 { color: #92400e; }
.callout.info   { background: #eff6ff; border-color: #bfdbfe; color: #1e3a5f; }
.callout.info h4 { color: #1d4ed8; }
.callout.ok     { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.callout.ok h4  { color: #047857; }
.callout.stop   { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.callout.stop h4 { color: #b91c1c; }

/* ---------------- TIMELINE ---------------- */
.timeline { position: relative; padding-left: 4px; }
.timeline-item { display: grid; grid-template-columns: 108px 26px 1fr; gap: 14px; align-items: start; padding-bottom: 22px; position: relative; }
.timeline-item::after {
  content: ""; position: absolute; left: 120px; top: 22px; bottom: 0; width: 2px; background: #e5e7eb;
}
.timeline-item:last-child::after { display: none; }
.timeline-date { font-size: 12.5px; font-weight: 700; color: #4f46e5; text-align: right; padding-top: 2px; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: #6366f1; margin: 6px auto 0; border: 3px solid #e0e7ff; box-sizing: content-box; z-index: 1; position: relative; }
.timeline-dot.hot { background: #f43f5e; border-color: #fee2e2; }
.timeline-body { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 15px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.timeline-name { font-size: 14.5px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: #6b7280; }

/* ---------------- LEVELS / STEPS ---------------- */
.levels { display: grid; gap: 12px; }
.level { display: grid; grid-template-columns: 46px 1fr; gap: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.level-num { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.level-num.l1 { background: rgba(16,185,129,.12); color: #047857; }
.level-num.l2 { background: rgba(245,158,11,.14); color: #b45309; }
.level-num.l3 { background: rgba(244,63,94,.11); color: #be123c; }
.level-num.l4 { background: rgba(99,102,241,.11); color: #4338ca; }
.level h4 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 5px; }
.level-def { font-size: 13.5px; color: #4b5563; margin-bottom: 7px; }
.level-eg { font-size: 12.5px; color: #9ca3af; }
.level-eg b { color: #6b7280; }

/* ---------------- BARS ---------------- */
.bar-chart { display: grid; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.bar-row { display: grid; grid-template-columns: 210px 1fr 96px; gap: 14px; align-items: center; }
.bar-label { font-size: 13px; color: #374151; font-weight: 600; }
.bar-track { height: 22px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6366f1, #a855f7); }
.bar-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-fill.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-fill.rose  { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.bar-fill.slate { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.bar-value { font-size: 13px; font-weight: 700; color: #4f46e5; text-align: right; }

/* ---------------- CARD GRID ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 13px; padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all .18s;
}
.card:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: 0 8px 22px rgba(99,102,241,0.07); }
.card-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #4f46e5; margin-bottom: 9px; display: block; }
.card h4 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 7px; }
.card p { font-size: 13.3px; color: #6b7280; }
.card ul { list-style: none; margin-top: 9px; }
.card li { font-size: 13px; color: #4b5563; padding: 5px 0 5px 16px; position: relative; }
.card li::before { content: "·"; position: absolute; left: 4px; color: #a5b4fc; font-weight: 700; }

/* ---------------- PILL / TAGS ---------------- */
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.pill.p-blue   { background: rgba(99,102,241,.1);  color: #4338ca; }
.pill.p-green  { background: rgba(16,185,129,.13); color: #047857; }
.pill.p-amber  { background: rgba(245,158,11,.14); color: #b45309; }
.pill.p-rose   { background: rgba(244,63,94,.11);  color: #be123c; }
.pill.p-slate  { background: rgba(100,116,139,.12);color: #475569; }

/* ---------------- RISKS ---------------- */
.risks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.risk-item { background: #fff; border: 1px solid #fecaca; border-left: 4px solid #f43f5e; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.risk-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #be123c; background: rgba(244,63,94,.1); padding: 3px 9px; border-radius: 100px; margin-bottom: 10px; }
.risk-title { color: #111827; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.risk-body { color: #6b7280; font-size: 13px; }
.risk-body b { color: #7f1d1d; }

/* ---------------- ACTIONS ---------------- */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.action-card { background: #fff; border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.action-card h4 { color: #4f46e5; margin-bottom: 12px; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.action-list { list-style: none; }
.action-list li { color: #374151; font-size: 13px; padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid #f3f4f6; line-height: 1.5; }
.action-list li:last-child { border-bottom: none; }
.action-list li::before { content: "▸"; color: #6366f1; position: absolute; left: 0; top: 8px; }
.action-list b { color: #111827; }

/* ---------------- FOOTER ---------------- */
.footer { margin-top: 64px; padding-top: 32px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 13px; text-align: center; }
.footer code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #4f46e5; }
.footer a { color: #4f46e5; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 820px) {
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 31px; }
  .compare-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 84px 22px 1fr; }
  .timeline-item::after { left: 95px; }
  .bar-row { grid-template-columns: 130px 1fr 76px; }
  .level { grid-template-columns: 40px 1fr; gap: 12px; }
  .level-num { width: 40px; height: 40px; }
}
