/* 런즈 티쳐스 이용가이드 - 토스 스타일 디자인 시스템 */

:root {
  /* Toss 계열 그레이 스케일 */
  --grey-900: #191f28;
  --grey-800: #333d4b;
  --grey-700: #4e5968;
  --grey-600: #6b7684;
  --grey-500: #8b95a1;
  --grey-400: #b0b8c1;
  --grey-300: #d1d6db;
  --grey-200: #e5e8eb;
  --grey-100: #f2f4f6;
  --grey-50: #f9fafb;

  /* 런즈 티쳐스 브랜드 (teachers-web headless consts.ts) */
  --brand: #1cb78c;         /* MAIN_TEAL */
  --brand-hover: #159a76;
  --brand-light: #44c4a1;   /* INFO_TEAL */
  --brand-bg: #daf3ec;      /* BACKGROUND_TEAL */
  --brand-bg-soft: #ecf9f6;
  --brand-deep: #0f7a5d;

  --green: #15803d;
  --green-bg: #e5f6ec;
  --amber-bg: #fff4e0;
  --amber-text: #b45309;

  --content-width: 760px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--grey-900);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 헤더 ---------- */

.gnb {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-100);
}

.gnb-inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.gnb-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.gnb-logo span {
  color: var(--brand);
}

.gnb-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.gnb-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 0;
  border-radius: var(--radius);
  background: var(--grey-100);
  color: var(--grey-900);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.gnb-search input::placeholder {
  color: var(--grey-500);
}

.gnb-search input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

.gnb-search svg {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--grey-500);
}

.gnb-cta {
  margin-left: auto;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  background: var(--grey-100);
  color: var(--grey-800);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.gnb-cta:hover {
  background: var(--grey-200);
}

/* 검색 결과 드롭다운 */
.search-results {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(25, 31, 40, 0.16);
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
  display: none;
}

.search-results.open {
  display: block;
}

.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.search-results a:hover {
  background: var(--grey-50);
}

.search-results .sr-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.search-results .sr-path {
  font-size: 12.5px;
  color: var(--grey-500);
  margin-top: 2px;
}

.search-results .sr-empty {
  padding: 16px 12px;
  font-size: 14px;
  color: var(--grey-500);
}

/* ---------- 공통 레이아웃 ---------- */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 120px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 40px 0 0;
  font-size: 14px;
  color: var(--grey-500);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--grey-700);
}

.breadcrumb .sep {
  color: var(--grey-300);
}

/* ---------- 문서 상세 ---------- */

.doc-header {
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--grey-100);
}

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.8px;
  color: var(--grey-900);
}

.doc-lead {
  margin: 18px 0 0;
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.35px;
  color: var(--grey-700);
}

/* 새소식 페이지에서만 쓴다. 구분선은 .doc-header 가 그린다. */
.doc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--grey-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.badge-new {
  background: var(--green-bg);
  color: var(--green);
}

.badge-improved {
  background: var(--brand-bg);
  color: var(--brand-deep);
}

.badge-fixed {
  background: var(--grey-100);
  color: var(--grey-600);
}

/* 번호 스텝 */

.steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 44px 52px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* 마지막 스텝 아래 연결선 제거 */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 8px;
  width: 2px;
  background: var(--grey-100);
}

.step p {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.3px;
  color: var(--grey-800);
}

.step .shot {
  margin: 20px 0 0;
}

/* 화면 이미지 자리 */

figure.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--grey-100);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--grey-500);
}

figure.shot .shot-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

figure.shot .shot-sub {
  font-size: 12px;
  color: var(--grey-400);
}

/* 콜아웃 */

.callout {
  margin: 8px 0 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--brand-bg-soft);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.2px;
  color: var(--grey-700);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--grey-900);
  font-weight: 700;
}

.callout-tip {
  background: var(--brand-bg);
  color: var(--brand-deep);
}

.callout-tip strong {
  color: var(--brand-deep);
}

/* 피드백 */

.feedback {
  margin: 56px 0 0;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--grey-50);
  text-align: center;
}

.feedback h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--grey-900);
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.feedback-buttons button {
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--grey-700);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.feedback-buttons button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.feedback-buttons button[aria-pressed='true'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.feedback-thanks {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--grey-600);
}

/* 관련 문서 */

.related {
  margin: 56px 0 0;
}

.related h2 {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  transition: background 0.15s;
}

.related-list a:hover {
  background: var(--grey-100);
}

.related-list .rl-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.related-list .rl-sub {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--grey-500);
}

.related-list .chev {
  color: var(--grey-400);
  flex-shrink: 0;
}

/* ---------- 홈 ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 38px;
  letter-spacing: -1px;
}

.hero p {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--grey-600);
  letter-spacing: -0.3px;
}

.hero-search {
  position: relative;
  max-width: 520px;
  margin: 32px auto 0;
}

.hero-search input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 50px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--grey-100);
  font-size: 16px;
  font-family: inherit;
  color: var(--grey-900);
  outline: none;
}

.hero-search input::placeholder {
  color: var(--grey-500);
}

.hero-search input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

.hero-search svg {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--grey-500);
}

.hero-search .search-results {
  top: 64px;
  text-align: left;
}

/* 업데이트 배너 */

.update-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-bg);
  transition: filter 0.15s;
}

.update-banner:hover {
  filter: brightness(0.97);
}

.update-banner .ub-tag {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.update-banner .ub-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: -0.3px;
}

.update-banner .chev {
  margin-left: auto;
  color: var(--brand);
}

/* 카테고리 그리드 */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--grey-50);
  transition: background 0.15s;
}

.cat-card:hover {
  background: var(--grey-100);
}

.cat-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.cat-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cat-card li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--grey-600);
  letter-spacing: -0.2px;
}

.cat-card li a:hover {
  color: var(--brand);
}

.dot-new {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.section-title {
  margin: 56px 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ---------- 새소식 ---------- */

.release-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-100);
}

.release-item:last-child {
  border-bottom: 0;
}

.release-item h3 {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.release-item p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-700);
  letter-spacing: -0.2px;
}

.release-item .rl-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.release-item .rl-link:hover {
  color: var(--brand-hover);
}

/* ---------- 푸터 ---------- */

footer {
  border-top: 1px solid var(--grey-100);
  padding: 40px 24px 64px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 13.5px;
  color: var(--grey-500);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  font-weight: 600;
  color: var(--grey-600);
}

.footer-links a:hover {
  color: var(--grey-900);
}

/* ---------- 구조화 데이터 ---------- */

.schema-block {
  margin: 40px 0 0;
  border-radius: var(--radius);
  background: var(--grey-50);
  overflow: hidden;
}

.schema-block summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey-600);
  list-style: none;
}

.schema-block summary::-webkit-details-marker {
  display: none;
}

.schema-block summary::before {
  content: '▸ ';
  color: var(--grey-400);
}

.schema-block[open] summary::before {
  content: '▾ ';
}

.schema-block pre {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--grey-600);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- 반응형 ---------- */

/* ---------- 헤더 검색 아이콘 (모바일) ---------- */

.gnb-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--grey-700);
  cursor: pointer;
}

.gnb-search-toggle:hover {
  background: var(--grey-100);
}

.gnb-search-toggle-close {
  display: none;
}

@media (max-width: 720px) {
  h1 {
    font-size: 27px;
    letter-spacing: -0.6px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.6px;
  }

  .hero p {
    font-size: 15.5px;
  }

  .hero-search {
    margin-top: 24px;
  }

  .hero-search input {
    height: 50px;
    font-size: 15px;
  }

  .doc-lead {
    font-size: 16.5px;
  }

  .doc-header {
    padding-bottom: 24px;
  }

  .step {
    padding-left: 44px;
  }

  .step p {
    font-size: 16px;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-card {
    padding: 20px;
  }

  /* 좁은 화면에서 목록 항목을 두 손가락 크기(44px)에 가깝게 키운다 */
  .cat-card li a {
    padding: 9px 2px;
    margin: -9px -2px;
    font-size: 15px;
  }

  .related-list a {
    padding: 16px 18px;
  }

  .feedback {
    padding: 22px 18px;
  }

  .update-banner {
    padding: 14px 16px;
    gap: 10px;
  }

  .update-banner .ub-text {
    font-size: 14.5px;
  }

  .release-item h3 {
    font-size: 18px;
  }

  /* 데스크톱 검색창 대신 아이콘 버튼을 쓴다. 문서 페이지에도 검색 입구를 남긴다. */
  .gnb-inner {
    gap: 8px;
    padding: 0 16px;
  }

  .gnb-logo {
    font-size: 15.5px;
  }

  .gnb-search {
    display: none;
  }

  .gnb-search-toggle {
    display: flex;
  }

  .gnb-cta {
    padding: 0 13px;
    font-size: 13.5px;
  }

  /* 검색 아이콘을 누르면 헤더가 통째로 검색창이 된다 */
  .gnb-inner.search-open .gnb-logo,
  .gnb-inner.search-open .gnb-cta {
    display: none;
  }

  .gnb-inner.search-open .gnb-search {
    display: flex;
    flex: 1;
    max-width: none;
  }

  .gnb-inner.search-open .gnb-search-toggle-open {
    display: none;
  }

  .gnb-inner.search-open .gnb-search-toggle-close {
    display: flex;
  }

  main {
    padding: 0 16px 80px;
  }

  footer {
    padding: 32px 16px 48px;
  }
}

@media (max-width: 380px) {
  /* iPhone SE 폭. 자간을 더 좁혀 줄바꿈을 줄인다. */
  h1 {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 23px;
  }

  main {
    padding: 0 14px 72px;
  }
}

/* ---------- 본문 프로즈 ---------- */

.prose {
  margin-top: 40px;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 68px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.7px;
  color: var(--grey-900);
}

.prose h3 {
  margin: 44px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.45px;
  color: var(--grey-900);
}

.prose p {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.3px;
  color: var(--grey-800);
}

.prose ul {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.3px;
  color: var(--grey-800);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-light);
}

.prose blockquote {
  margin: 24px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--brand);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: -0.3px;
  color: var(--grey-700);
}

.prose .steps {
  margin: 28px 0 0;
}

.prose .step p {
  margin: 0;
}

.prose figure.shot {
  margin: 28px 0 0;
  aspect-ratio: auto;
  background: transparent;
  display: block;
}

.prose figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-100);
}

.prose .callout {
  margin: 24px 0 0;
}

.prose .callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16.5px;
  color: var(--grey-900);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.prose .callout-bullet {
  position: relative;
  padding-left: 18px;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-700);
}

.prose .callout-bullet::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey-400);
}

.release-list {
  margin-top: 8px;
}

/* ---------- 제목 앞 번호 배지 ---------- */
/* Notion 원문의 키캡 이모지(1️⃣)를 브랜드 컬러 배지로 대체한다. */

.prose h2:has(.h-num),
.prose h3:has(.h-num) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1;
}

.prose h3 .h-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 14px;
}

/* ---------- 좌측 가이드 네비게이션 ---------- */
/* details/summary로 만들어 JS 없이도 접기·펼치기와 크롤링이 된다. */

main.with-nav {
  max-width: 1160px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  padding: 40px 0 24px;
  font-size: 14px;
}

.guide-nav::-webkit-scrollbar {
  width: 6px;
}

.guide-nav::-webkit-scrollbar-thumb {
  background: var(--grey-200);
  border-radius: 3px;
}

.nav-sec,
.nav-grp {
  margin-bottom: 2px;
}

.guide-nav summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--grey-900);
  letter-spacing: -0.2px;
}

.guide-nav summary::-webkit-details-marker {
  display: none;
}

.guide-nav summary:hover {
  background: var(--grey-50);
}

.caret {
  flex-shrink: 0;
  font-size: 9px;
  color: var(--grey-400);
  transition: transform 0.15s;
}

details[open] > summary > .caret {
  transform: rotate(90deg);
}

.nav-grp > summary {
  padding-left: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-800);
}

.nav-doc {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 30px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--grey-600);
  letter-spacing: -0.2px;
  transition: background 0.12s;
}

.nav-grp .nav-doc {
  padding-left: 49px;
}

.nav-doc:hover {
  background: var(--grey-50);
}

.nav-doc.on {
  background: var(--brand-bg);
  color: var(--brand);
  font-weight: 600;
}

.nav-doc.on:hover {
  background: var(--brand-bg);
}

.nav-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-light);
}

.nav-home {
  display: block;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500);
}

.nav-home:hover {
  background: var(--grey-50);
  color: var(--grey-800);
}

@media (max-width: 1000px) {
  /* 좁은 화면에서는 본문을 먼저 보여주고 목차를 아래로 내린다.
     목차가 위에 있으면 본문까지 한참 스크롤해야 한다. */
  main.with-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--content-width);
  }

  main.with-nav > div {
    order: 1;
  }

  .guide-nav {
    order: 2;
    position: static;
    max-height: none;
    padding: 28px 0 0;
    margin-top: 32px;
    border-top: 1px solid var(--grey-100);
  }
}

@media (max-width: 720px) {
  /* 터치로 누르는 목차이므로 항목을 손가락 크기에 가깝게 키운다 */
  .guide-nav summary {
    padding: 12px;
  }

  .nav-grp > summary {
    padding: 12px 12px 12px 30px;
  }

  .nav-doc {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ---------- 이미지 크기 ---------- */

.prose figure.shot.shot-medium {
  max-width: 72%;
  margin-left: auto;
  margin-right: auto;
}

.prose figure.shot.shot-small {
  max-width: 46%;
  margin-left: auto;
  margin-right: auto;
}

.prose figure.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: -0.2px;
  color: var(--grey-500);
}

@media (max-width: 720px) {
  /* 좁은 화면에서는 줄여봐야 읽기 어렵다 */
  .prose figure.shot.shot-medium,
  .prose figure.shot.shot-small {
    max-width: 100%;
  }
}

/* ---------- 네비 계층 강화 ---------- */

.guide-nav summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-900);
}

/* 세로 안내선 없이 들여쓰기만으로 계층을 보인다 */
.nav-sec > .nav-doc,
.nav-grp > .nav-doc {
  margin-left: 17px;
  padding-left: 12px;
}

.nav-grp > summary {
  margin-left: 17px;
  padding-left: 12px;
}

/* ---------- 새소식 아카이브 ---------- */

.release-block {
  margin-top: 44px;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grey-100);
}

.release-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--grey-900);
}

.release-ver {
  font-size: 13px;
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
}

/* 초록 점이 무엇인지 알려주는 범례 */
.nav-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 12px;
  border-top: 1px solid var(--grey-100);
  font-size: 12.5px;
  color: var(--grey-500);
}

.nav-legend:hover {
  color: var(--brand);
}
