:root { --g: #12b76a; --g-dk: #0a7a45; --ink: #0f1410; --ink-2: #0f172a; --muted: #5a5650; --slate: #475569; --line: #ecebe4; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.lg-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.lg-top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lg-top .lg-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lg-brand { display: flex; align-items: center; gap: 10px; }
.lg-brand img { width: 34px; height: 34px; }
.lg-brand span { font-weight: 800; font-size: 18px; color: var(--ink-2); }
.lg-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--slate); transition: background .2s, color .2s; }
.lg-back:hover { background: rgba(18,183,106,.08); color: var(--g-dk); }

.lg-hero { padding: 64px 0 48px; background: #fbfaf6 url(../assets/img/doodle-texture.webp) center / cover; border-bottom: 1px solid var(--line); position: relative; }
.lg-hero::before { content: ""; position: absolute; inset: 0; background: rgba(251,250,246,.82); }
.lg-hero .lg-wrap { position: relative; max-width: 820px; text-align: center; }
.lg-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border: 1px solid rgba(18,183,106,.4); border-radius: 999px; background: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.lg-hero h1 { margin-top: 16px; font-weight: 800; font-size: 48px; line-height: 1.1; letter-spacing: -.03em; }
.lg-intro p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.lg-updated { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 8px; background: #ecfdf5; font-size: 13px; font-weight: 600; color: var(--g-dk); }

.lg-body { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 80px; }
.lg-toc { position: sticky; top: 92px; align-self: start; }
.lg-toc p { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; margin-bottom: 12px; }
.lg-toc ol { list-style: none; border-left: 2px solid #eef0f2; }
.lg-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--slate); transition: color .2s, border-color .2s; }
.lg-toc a:hover { color: var(--g-dk); border-color: var(--g); }

.lg-doc { max-width: 720px; }
.lg-doc h2 { scroll-margin-top: 92px; margin: 44px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-2); }
.lg-doc h2:first-child { margin-top: 0; }
.lg-doc h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.lg-doc p { margin: 10px 0; font-size: 16px; line-height: 1.75; color: #374151; }
.lg-doc ul { margin: 10px 0 14px; padding: 0; list-style: none; }
.lg-doc li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 16px; line-height: 1.65; color: #374151; }
.lg-doc li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.lg-doc strong { color: var(--ink-2); }
.lg-doc a { color: var(--g-dk); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.lg-foot { background: #0b0e0c; color: #94a3b8; }
.lg-foot .lg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.lg-foot nav { display: flex; gap: 24px; }
.lg-foot a { transition: color .2s; }
.lg-foot a:hover { color: #fff; }

@media (max-width: 860px) {
  .lg-body { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .lg-toc { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
  .lg-toc ol { columns: 1; }
  .lg-hero { padding: 44px 0 36px; }
  .lg-hero h1 { font-size: 34px; }
  .lg-intro p { font-size: 15.5px; }
  .lg-doc h2 { font-size: 20px; margin-top: 36px; }
  .lg-doc p, .lg-doc li { font-size: 15px; }
  .lg-foot .lg-wrap { flex-direction: column-reverse; text-align: center; }
  .lg-back span { display: none; }
}
