.cg-main { max-width: 1160px; padding-top: 56px; padding-bottom: 72px; }
.cg-hero { max-width: 800px; padding-bottom: 44px; }
.cg-eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.cg-hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.18; font-weight: 700; letter-spacing: -.045em; }
.cg-lead { max-width: 650px; margin-top: 18px; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.cg-author { display: inline-flex; align-items: center; gap: 14px; margin-top: 20px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.cg-author img { display: block; width: 54px; height: auto; }
.cg-author:hover span { text-decoration: underline; text-underline-offset: 4px; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cg-layout { display: grid; grid-template-columns: 222px minmax(0, 1fr); gap: 48px; border-top: 1px solid var(--line); }
.cg-sidebar { position: relative; min-width: 0; }
.cg-toc { position: sticky; top: 84px; padding: 32px 0; }
.cg-toc-label { color: var(--ink-3); font-size: 12px; letter-spacing: .08em; font-weight: 600; margin: 0 0 12px 10px; }
.cg-toc ol { display: grid; gap: 3px; }
.cg-toc li a { display: flex; gap: 11px; padding: 9px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 13px; line-height: 1.5; }
.cg-toc li a:hover { background: var(--card); color: var(--ink); }
.cg-toc li a span { font-family: var(--mono); color: var(--accent); font-size: 11px; padding-top: 2px; }
.cg-toc-pdf { display: flex; justify-content: space-between; align-items: center; margin: 19px 10px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; text-decoration: none; color: var(--ink-3); }
.cg-toc-pdf:hover { color: var(--ink); }
.cg-article { min-width: 0; }
.cg-section { position: relative; isolation: isolate; padding: 34px 0 38px; scroll-margin-top: 82px; }
.cg-watermark { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; align-items: center; gap: 14px; width: max-content; transform: translate(-50%, -50%) rotate(-24deg); opacity: .10; color: #686560; font-size: clamp(18px, 2.3vw, 26px); line-height: 1.3; white-space: nowrap; pointer-events: none; user-select: none; -webkit-user-select: none; }
.cg-watermark img { display: block; flex: none; width: 80px; height: auto; }
.cg-section + .cg-section { border-top: 1px solid var(--line); }
.cg-section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.cg-number { display: inline-flex; justify-content: center; align-items: center; flex: none; width: 36px; height: 36px; margin-top: 1px; background: var(--accent-soft); color: var(--accent); border-radius: 10px; font-size: 13px; font-family: var(--mono); font-weight: 650; }
.cg-section-head h2 { font-size: 25px; line-height: 1.4; letter-spacing: -.025em; }
.cg-section-head p { margin-top: 7px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.cg-section-body { font-size: 15px; line-height: 1.9; }
.cg-section-body > p + p { margin-top: 12px; }
.cg-section-body > h3 { margin-top: 26px; margin-bottom: 12px; font-size: 17px; line-height: 1.6; }
.cg-section-body > h3:first-child { margin-top: 0; }
.cg-section-body a:not(.btn):not(.cg-copy):not(.cg-back) { text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.cg-section-body a:not(.btn):hover { text-decoration-color: var(--accent); }
.cg-section-body strong { font-weight: 650; }
.cg-section-body code, .cg-section-body kbd { font-family: var(--mono); font-size: .87em; overflow-wrap: anywhere; }
.cg-section-body p code, .cg-steps code, .cg-definitions code { background: rgba(25, 24, 22, .045); border-radius: 4px; padding: 2px 5px; }
.cg-section-body kbd { border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); padding: 1px 5px; border-radius: 4px; }
.cg-steps { list-style: decimal; padding-left: 25px; margin: 20px 0; }
.cg-steps li { padding-left: 7px; }
.cg-steps li + li { margin-top: 19px; }
.cg-steps li::marker { color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.cg-steps h3 { margin-bottom: 5px; font-size: 15px; line-height: 1.7; font-weight: 650; }
.cg-steps li > div { color: var(--ink-2); }
.cg-note { margin: 22px 0; padding: 17px 20px; border-left: 3px solid var(--ink-4); background: rgba(255, 255, 255, .65); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.85; }
.cg-note > strong { display: block; margin-bottom: 5px; font-size: 14px; }
.cg-note > div { color: var(--ink-2); }
.cg-note-warm { border-left-color: var(--accent); background: rgba(200, 98, 63, .07); }
.cg-list { padding-left: 21px; margin: 12px 0 18px; list-style: disc; }
.cg-list li { padding-left: 4px; }
.cg-list li + li { margin-top: 9px; }
.cg-list li::marker { color: var(--accent); }
.cg-code { overflow: hidden; margin: 18px 0 23px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; }
.cg-code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; background: #efede7; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.cg-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.cg-copy svg { width: 14px; height: 14px; }
.cg-copy:hover { background: rgba(25, 24, 22, .06); color: var(--ink); }
.cg-copy.copied { color: var(--ok); }
.cg-code pre { margin: 0; padding: 18px; overflow-x: auto; color: #34312c; font: 13px/1.75 var(--mono); tab-size: 2; }
.cg-code code { font: inherit; overflow-wrap: normal; }
.cg-code-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.9 var(--font); }
.cg-code-download { display: block; border-top: 1px solid var(--line-2); padding: 12px 18px; color: var(--ink-2); font-size: 12px; }
.cg-figure { margin: 23px 0 26px; }
.cg-figure-portrait { max-width: 360px; }
.cg-figure a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #1c1c1c; line-height: 0; }
.cg-figure img { display: block; width: 100%; height: auto; }
.cg-figure figcaption { margin-top: 10px; color: var(--ink-3); font-size: 12px; line-height: 1.8; }
.cg-figure figcaption span { display: block; margin-top: 3px; color: var(--accent); }
.cg-check-url { margin-bottom: 12px; font-family: var(--mono); font-size: 18px; }
.cg-finish { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; }
.cg-back { color: var(--ink-3); text-decoration: none; font-size: 13px; white-space: nowrap; }

@media (max-width: 900px) {
  .cg-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
  .cg-toc li a { padding-left: 4px; padding-right: 4px; gap: 8px; font-size: 12px; }
  .cg-toc-label { margin-left: 4px; }
  .cg-toc-pdf { margin-left: 4px; margin-right: 4px; }
  .cg-section-head h2 { font-size: 23px; }
}

@media (max-width: 680px) {
  .cg-main { padding: 30px 20px 40px; }
  .cg-hero { padding-bottom: 30px; }
  .cg-eyebrow { font-size: 11px; margin-bottom: 15px; }
  .cg-hero h1 { font-size: 39px; }
  .cg-lead { margin-top: 18px; font-size: 16px; line-height: 1.85; }
  .cg-actions .btn { padding: 0 16px; font-size: 14px; }
  .cg-layout { display: block; }
  .cg-toc { position: static; padding: 23px 0; border-bottom: 1px solid var(--line); }
  .cg-toc-label { margin-bottom: 10px; margin-left: 0; }
  .cg-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
  .cg-toc li a { font-size: 11.5px; gap: 6px; padding: 8px 0; }
  .cg-toc li a span { font-size: 10px; }
  .cg-toc-pdf { display: none; }
  .cg-section { padding: 28px 0 31px; }
  .cg-section-head { gap: 11px; margin-bottom: 22px; }
  .cg-number { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
  .cg-section-head h2 { font-size: 21px; line-height: 1.45; }
  .cg-section-head p { margin-top: 6px; font-size: 13px; }
  .cg-section-body { font-size: 14px; line-height: 1.9; }
  .cg-section-body > h3 { font-size: 16px; }
  .cg-steps { padding-left: 19px; }
  .cg-steps li { padding-left: 3px; }
  .cg-steps h3 { font-size: 14px; }
  .cg-note { padding: 14px 15px; font-size: 13px; }
  .cg-note > strong { font-size: 13px; }
  .cg-code-head { padding: 8px 10px 8px 13px; }
  .cg-code pre { padding: 15px 13px; font-size: 11px; }
  .cg-code-prose pre { font-size: 13px; }
  .cg-figure figcaption { font-size: 11px; }
  .cg-finish .btn { padding: 0 15px; font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .claude-guide-page { scroll-behavior: smooth; }
}

@media print {
  .claude-guide-page .top, .claude-guide-page .notice, .claude-guide-page .foot, .cg-sidebar, .cg-actions, .cg-copy, .cg-finish { display: none; }
  .cg-main { max-width: none; padding: 0; }
  .cg-layout { display: block; }
  .cg-hero { padding-bottom: 24px; }
  .cg-hero h1 { font-size: 34px; }
  .cg-section { break-inside: auto; }
  .cg-section-head, .cg-figure, .cg-note { break-inside: avoid; }
  .cg-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
