/* Lead Finder user guide (/manual). Uses the brand tokens from style.css. */
.man-body { background: var(--bg); color: var(--text); font-family: var(--font); margin: 0; }
.man-skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.man-skip:focus { left: 8px; }

.man-top {
  position: sticky; top: 0; z-index: 20; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.man-top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.man-top .brand-mark { width: 28px; height: 28px; }
.man-top .brand-word { font-size: 20px; }
.man-top-title { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.man-login-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.man-login-btn:hover { background: var(--accent-hover); }
.man-menu-btn { display: none; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }

.man-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; max-width: 1320px; margin: 0 auto; padding: 28px 28px 80px; }

.man-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 108px); overflow-y: auto; padding-right: 6px; }
.man-toc h2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin: 18px 0 8px; font-weight: 600; }
.man-toc h2:first-child { margin-top: 0; }
.man-toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; }
.man-toc a:hover { background: #fff; color: var(--text); }
.man-toc a.active { background: var(--accent-soft); color: var(--accent); }

.man-main { min-width: 0; }
.man-hero {
  background: var(--navy); color: #fff; border-radius: 18px; padding: 40px 44px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.man-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 91, 255, 0.55), transparent 70%); }
.man-hero h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; position: relative; z-index: 1; }
.man-hero h1 em { font-style: normal; color: var(--accent-light); }
.man-hero p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); position: relative; z-index: 1; }
.man-hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 26px; position: relative; z-index: 1; }
.man-hero-cards a { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.man-hero-cards a:hover { background: rgba(255, 255, 255, 0.15); }
.man-hero-cards strong { display: block; font-size: 15px; }
.man-hero-cards span { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }

.man-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 34px; margin-bottom: 22px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.man-sec > .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.man-sec h2 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.man-sec h3 { margin: 26px 0 8px; font-size: 17px; }
.man-lead { margin: 0 0 6px; font-size: 15.5px; line-height: 1.75; color: var(--text-dim); max-width: 760px; }
.man-sec p, .man-sec li { font-size: 15px; line-height: 1.75; }
.man-sec ol, .man-sec ul { padding-left: 22px; margin: 8px 0; }
.man-sec li { margin: 5px 0; }
.man-sec li::marker { color: var(--accent); font-weight: 700; }
.man-sec strong { color: var(--text); }
.man-sec code, .man-kbd { font-family: var(--font-mono); font-size: 13px; background: var(--accent-soft); color: var(--accent-hover); padding: 2px 7px; border-radius: 6px; }

.man-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.man-note { margin: 16px 0 4px; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.65; background: var(--accent-soft); border-left: 4px solid var(--accent); color: #1c3a8a; }
.man-note.warn { background: var(--warn-soft); border-left-color: #e08a1e; color: #7a4a0c; }
.man-note b { color: inherit; }

.man-fig { margin: 20px 0 6px; }
.man-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-md); cursor: zoom-in; background: #fff; }
.man-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--text-dim); text-align: center; }
.man-fig.small { max-width: 520px; }

.man-table { width: 100%; min-width: 0; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.man-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.man-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.man-table td:first-child { font-weight: 700; white-space: nowrap; }

.man-faq details { border: 1px solid var(--border); border-radius: 10px; margin: 8px 0; background: var(--surface-2); }
.man-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 15px; }
.man-faq details > div { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.7; color: var(--text-dim); }

.man-foot { text-align: center; color: var(--text-dim); font-size: 13px; padding: 10px 0 0; }

.man-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(13, 27, 62, 0.88); display: none; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; }
.man-lightbox.open { display: flex; }
.man-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #fff; }

@media (max-width: 1000px) {
  .man-layout { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 60px; }
  .man-menu-btn { display: inline-block; }
  .man-toc { display: none; position: static; max-height: none; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
  .man-toc.open { display: block; }
  .man-two { grid-template-columns: 1fr; }
  .man-sec { padding: 22px 18px; }
  .man-table { display: block; overflow-x: auto; }
  .man-table td:first-child { white-space: normal; }
  .man-hero { padding: 28px 22px; }
  .man-hero h1 { font-size: 27px; }
  .man-top { padding: 0 14px; }
  .man-top-title { display: none; }
}
