.guide-page {
  color: #0a0a0a;
  background: #f5f5f5;
}

.guide-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 56px) 72px;
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: #737373;
  font-size: 13px;
}

.guide-breadcrumb a,
.guide-article-toolbar a,
.guide-download-note a {
  color: #1e3a8a;
  text-decoration: none;
}

.guide-breadcrumb a:hover,
.guide-article-toolbar a:hover,
.guide-download-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-header {
  padding: 28px 0 38px;
  border-bottom: 1px solid #e5e5e5;
}

.guide-header h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.guide-header > p {
  max-width: 66ch;
  margin: 15px 0 0;
  color: #525252;
  font-size: 16px;
  line-height: 1.7;
}

.guide-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  color: #737373;
  font-size: 13px;
}

.guide-primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px;
  background: #0a0a0a;
  color: white;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.guide-primary-link:hover { background: #262626; }

.guide-index {
  padding-top: 38px;
}

.guide-index-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.guide-index-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.guide-index-heading p {
  margin: 5px 0 0;
  color: #737373;
  font-size: 14px;
}

.guide-search {
  display: flex;
  width: min(100%, 260px);
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: white;
}

.guide-search svg { width: 18px; height: 18px; flex: none; color: #737373; }
.guide-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #0a0a0a; font-size: 14px; }
.guide-search:focus-within { outline: 2px solid #1e3a8a; outline-offset: 2px; }

.guide-index-group { margin-top: 34px; }
.guide-index-group h3 { margin: 0 0 12px; color: #525252; font-size: 13px; font-weight: 700; }
.guide-index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e5e5; }
.guide-index-list li { border-bottom: 1px solid #e5e5e5; }
.guide-index-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px 8px; color: inherit; text-decoration: none; }
.guide-index-list a:hover { background: #fafafa; }
.guide-index-list strong { display: block; font-size: 16px; font-weight: 650; }
.guide-index-list small { display: block; margin-top: 3px; color: #737373; font-size: 13px; line-height: 1.5; }
.guide-index-list svg { width: 18px; height: 18px; flex: none; color: #737373; }
.guide-empty { margin-top: 36px; color: #737373; font-size: 14px; }
.guide-index-group[hidden], .guide-index-list li[hidden] { display: none; }

.guide-download-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #e5e5e5; color: #737373; font-size: 13px; line-height: 1.6; }
.guide-download-note p { margin: 0; }
.guide-download-note a { font-weight: 650; }

.guide-reading-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: clamp(32px, 5vw, 68px); }
.guide-desktop-nav { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; }
.guide-chapter-nav { display: flex; flex-direction: column; }
.guide-nav-home { padding: 10px 12px; color: #0a0a0a; font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-nav-group { margin-top: 19px; }
.guide-nav-group p { margin: 0 0 6px; padding: 0 12px; color: #737373; font-size: 12px; font-weight: 700; }
.guide-nav-group a { display: block; padding: 8px 12px; border-radius: 10px; color: #525252; font-size: 13px; line-height: 1.45; text-decoration: none; }
.guide-nav-group a:hover { background: #fafafa; color: #0a0a0a; }
.guide-nav-group a.is-current { background: #eef2ff; color: #1e3a8a; font-weight: 700; }
.guide-mobile-nav { display: none; }

.guide-article { min-width: 0; max-width: 800px; padding: 26px clamp(22px, 4vw, 54px) 38px; border: 1px solid #e5e5e5; border-radius: 24px; background: white; }
.guide-article-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #e5e5e5; color: #737373; font-size: 12px; font-weight: 650; }
.guide-article h1 { margin: 27px 0 14px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.25; font-weight: 750; letter-spacing: -0.03em; }
.guide-on-this-page { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 30px; padding: 15px 18px; border-radius: 14px; background: #f5f5f5; font-size: 13px; }
.guide-on-this-page strong { flex: none; }
.guide-on-this-page div { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.guide-on-this-page a { color: #1e3a8a; text-decoration: none; }
.guide-on-this-page a:hover { text-decoration: underline; text-underline-offset: 3px; }

.guide-prose { max-width: 72ch; color: #303030; font-size: 15px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.guide-prose h2 { scroll-margin-top: 24px; margin: 42px 0 12px; color: #0a0a0a; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.guide-prose h3 { scroll-margin-top: 24px; margin: 30px 0 10px; color: #0a0a0a; font-size: 17px; line-height: 1.45; font-weight: 700; }
.guide-prose p { margin: 0 0 17px; }
.guide-prose strong { color: #0a0a0a; font-weight: 700; }
.guide-prose a { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; }
.guide-prose ol, .guide-prose ul { margin: 8px 0 22px; padding-left: 24px; }
.guide-prose li { padding-left: 4px; margin: 5px 0; }
.guide-prose li p { margin: 0; }
.guide-prose blockquote { margin: 22px 0 28px; padding: 16px 19px; border: 1px solid #e5e5e5; border-radius: 14px; background: #fafafa; }
.guide-prose blockquote p { margin: 0; }
.guide-prose table { display: block; width: 100%; max-width: 100%; margin: 16px 0 28px; overflow-x: auto; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.guide-prose th, .guide-prose td { min-width: 110px; padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.guide-prose th { background: #fafafa; color: #0a0a0a; font-weight: 700; }
.guide-prose pre { overflow-x: auto; margin: 16px 0 26px; padding: 16px; border-radius: 12px; background: #f5f5f5; font-size: 13px; line-height: 1.65; }
.guide-prose code { font-size: .92em; }

.guide-pagination { display: flex; gap: 12px; margin-top: 46px; padding-top: 24px; border-top: 1px solid #e5e5e5; }
.guide-pagination > a, .guide-pagination > span { flex: 1; min-width: 0; }
.guide-pagination a { display: flex; min-height: 76px; flex-direction: column; justify-content: center; gap: 4px; padding: 13px 16px; border: 1px solid #e5e5e5; border-radius: 14px; background: #fafafa; color: #0a0a0a; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.guide-pagination a:last-child { text-align: right; }
.guide-pagination a:hover { border-color: #cbd5e1; background: #f5f7fb; }
.guide-pagination a:hover strong { color: #1e3a8a; }
.guide-pagination a:focus-visible { outline: 2px solid #1e3a8a; outline-offset: 3px; }
.guide-pagination small { color: #737373; font-size: 12px; font-weight: 650; }
.guide-pagination strong { font-size: 14px; line-height: 1.4; }

@media (max-width: 1180px) {
  .guide-reading-layout { display: block; }
  .guide-desktop-nav { display: none; }
  .guide-mobile-nav { display: block; margin-bottom: 20px; border: 1px solid #e5e5e5; border-radius: 14px; background: white; }
  .guide-mobile-nav summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 17px; font-size: 14px; font-weight: 650; cursor: pointer; }
  .guide-mobile-nav summary svg { width: 18px; height: 18px; }
  .guide-mobile-nav[open] summary svg { transform: rotate(180deg); }
  .guide-mobile-nav .guide-chapter-nav { max-height: 50vh; overflow-y: auto; padding: 0 9px 15px; border-top: 1px solid #e5e5e5; }
  .guide-article { max-width: none; }
}

@media (max-width: 640px) {
  .guide-shell { padding: 24px 16px 56px; }
  .guide-header { padding-top: 8px; }
  .guide-index-heading { align-items: stretch; }
  .guide-search { width: 100%; }
  .guide-article { padding: 19px 20px 28px; border-radius: 18px; }
  .guide-article h1 { margin-top: 22px; }
  .guide-prose { font-size: 14px; }
  .guide-prose h2 { font-size: 20px; }
  .guide-prose table th, .guide-prose table td { white-space: nowrap; }
}
