@import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --bg: #EFF1F4;
  --text: #171C24;
  --primary: #1E3A8A;
  --secondary: #98A2B3;
  --font-display: 'Do Hyeon', sans-serif;
  --font-body: 'Noto Sans KR', sans-serif;
}

.toc-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1080px;
  margin: 8px auto 56px;
  padding: 0 20px;
}
.toc {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.toc a {
  white-space: nowrap;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--secondary);
  color: var(--text);
  opacity: 0.7;
}
.toc a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  opacity: 1;
}
.toc-body article { margin-bottom: 34px; scroll-margin-top: 90px; }
.toc-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.toc-body p { font-size: 0.97rem; }

.strip-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  margin-top: 8px;
}
.strip-photos img { border-radius: 6px; width: 220px; height: 150px; object-fit: cover; flex: 0 0 auto; }
.strip-photos figcaption { width: 100%; text-align: center; font-size: 0.85rem; opacity: 0.6; margin-top: 8px; }

@media (min-width: 1024px) {
  .toc-layout { flex-direction: row; align-items: flex-start; gap: 44px; }
  .toc {
    flex-direction: column;
    flex: 0 0 190px;
    position: sticky;
    top: 84px;
    overflow-x: visible;
  }
  .toc a { text-align: left; }
  .toc-body { flex: 1; }
}
