@charset "UTF-8";
/* =========================================================================
   제27회 서울아산병원 내과 개원의 연수강좌
   디자인 방향 A — "학술 신뢰형" (Academic Trust)
   공통 스타일시트 / Design Tokens
   ========================================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Primary - Deep Navy */
  --navy-900: #0B2447;
  --navy-800: #112C5A;
  --navy-700: #19376D;
  --navy-600: #234584;

  /* Accent - Teal */
  --teal-700: #155C5C;
  --teal-600: #1C6E6E;
  --teal-500: #2C8C8C;
  --teal-050: #E8F2F2;

  /* Neutrals */
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --line: #E1E6ED;
  --line-strong: #C9D2DE;
  --text: #1A2233;
  --text-soft: #4A5568;
  --text-mute: #748098;

  /* Semantic */
  --gold: #C8A95C;
  --danger: #C0392B;
  --danger-bg: #FCEDEB;
  --success: #1C6E6E;
  --warn-bg: #FBF6E9;

  /* Layout */
  --maxw: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 71, .06);
  --shadow-md: 0 6px 20px rgba(11, 36, 71, .08);
  --shadow-lg: 0 16px 40px rgba(11, 36, 71, .12);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer: 내용이 짧아도 footer가 화면 맨 아래에 붙도록 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Accessibility: focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 3. Top Identity Band ---------- */
.idbar {
  background: var(--navy-900);
  color: #DCE4F0;
  font-size: 13px;
  letter-spacing: .01em;
}
.idbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: 16px;
}
.idbar__host { font-weight: 600; color: #fff; }
.idbar__contact { color: #AFC0DC; display: flex; gap: 16px; flex-wrap: wrap; }
.idbar__contact a:hover { color: #fff; text-decoration: underline; }

/* ---------- 4. Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 6px; }
.brand__logo {
  height: 44px; width: auto; max-width: 180px; flex-shrink: 0;
  display: block; object-fit: contain;
}
.brand__txt { line-height: 1.25; }
.brand__sup { font-size: 11px; color: var(--teal-600); font-weight: 700; letter-spacing: .04em; }
.brand__name { font-size: 17px; font-weight: 800; color: var(--navy-900); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-soft);
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--navy-900); background: var(--bg); }
.nav a.is-active { color: var(--navy-900); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--teal-600); border-radius: 2px;
}
.nav__cta {
  margin-left: 8px; padding: 10px 18px !important;
  background: var(--teal-600); color: #fff !important; border-radius: 8px;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--teal-700); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 8px; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--navy-900); border-radius: 2px; position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1;
  transition: background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--teal { background: var(--teal-600); color: #fff; }
.btn--teal:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--surface); color: var(--navy-800); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn[disabled], .btn.is-disabled {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}

/* ---------- 6. Section scaffold (numbered) ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 36px; }
.sec-num {
  font-size: 14px; font-weight: 800; letter-spacing: .12em;
  color: var(--teal-600); background: var(--teal-050);
  padding: 6px 12px; border-radius: 6px; flex-shrink: 0;
}
.sec-titles { flex: 1; }
.sec-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--text-mute); text-transform: uppercase; }
.sec-title { font-size: 28px; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; margin-top: 4px; }
.sec-rule { height: 1px; background: var(--line); margin: 0 0 36px; }

/* ---------- 7. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 8. Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.badge--navy { background: rgba(255,255,255,.12); color: #fff; }
.badge--teal { background: var(--teal-050); color: var(--teal-700); }
.badge--gold { background: rgba(200,169,92,.14); color: #8A6D1E; }
.badge--line { background: var(--surface); color: var(--text-soft); border: 1px solid var(--line-strong); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status--todo { background: #EFF2F7; color: var(--text-mute); }
.status--todo::before { background: var(--text-mute); }
.status--doing { background: var(--warn-bg); color: #9A7A12; }
.status--doing::before { background: var(--gold); }
.status--done { background: var(--teal-050); color: var(--teal-700); }
.status--done::before { background: var(--teal-600); }

/* ---------- 9. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.doc { width: 100%; border-collapse: collapse; min-width: 520px; }
table.doc caption { text-align: left; font-weight: 700; color: var(--navy-900); padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.doc th, table.doc td { padding: 14px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
table.doc thead th { background: var(--navy-900); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
table.doc tbody tr:last-child td { border-bottom: none; }
table.doc tbody tr:nth-child(even) { background: #FAFBFD; }
table.doc th[scope="row"] { background: #F7F9FC; font-weight: 700; color: var(--navy-800); }
.fee { font-weight: 800; color: var(--navy-900); white-space: nowrap; }

/* ---------- 10. Footer ---------- */
.footer { background: var(--navy-900); color: #C2CEE2; padding: 56px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .06em; margin-bottom: 14px; text-transform: uppercase; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { font-size: 14px; color: #C2CEE2; transition: color .2s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #8DA0C2; }

/* ---------- 11. Utility ---------- */
.req { color: var(--danger); font-weight: 700; }
.muted { color: var(--text-mute); }
.center { text-align: center; }
.notice-line { background: var(--warn-bg); border: 1px solid #EADFC0; color: #7A6212; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.danger-box { background: var(--danger-bg); border: 1px solid #F1C9C3; color: #9A2B1E; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 8px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--bg); }
  .nav__cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .header { position: relative; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .sec-title { font-size: 23px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .idbar .container { justify-content: center; text-align: center; }
  .idbar__contact { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
