/* The PDF Editor's user guide (/pdf-editor/help/), loaded via ViewData["ExtraCss"] = "editorhelp".
   Only spdf-help-* classes live here; the eyebrow, h1 and lede come from the how-to cluster's names in the core layers. */

/* ── Contents (/pdf-editor/help/<platform>/) ───────────────────────────── */
.spdf-help-hero { border-bottom: 1px solid var(--spdf-line); padding: 40px 0 48px; }
.spdf-help-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.spdf-help-hero .spdf-howto-h1 {
  font-family: var(--spdf-font-display); font-weight: var(--spdf-display-weight); letter-spacing: var(--spdf-display-letter);
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; margin: 16px 0 0; color: var(--spdf-text);
}
.spdf-help-hero .spdf-howto-lede { font-size: 18px; line-height: 1.6; color: var(--spdf-text-dim); margin: 20px 0 0; max-width: 680px; }
.spdf-help-platforms { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.spdf-help-platform {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--spdf-line-strong); color: var(--spdf-text-dim);
  text-decoration: none; font-size: 14px;
}
.spdf-help-platform.is-on { background: var(--spdf-text); color: var(--spdf-bg); border-color: var(--spdf-text); }

.spdf-help-contents {
  max-width: 1280px; margin: 0 auto; padding: 40px 32px 72px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px 40px;
}
.spdf-help-group-title {
  font-family: var(--spdf-font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--spdf-accent); margin: 0 0 10px; font-weight: 600;
}
.spdf-help-group-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--spdf-line); }
.spdf-help-group-list a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--spdf-line); text-decoration: none; color: var(--spdf-text);
}
.spdf-help-group-list a:hover .spdf-help-group-page { color: var(--spdf-accent); }
.spdf-help-group-page { display: block; font-weight: 600; font-size: 16px; }
.spdf-help-group-desc { display: block; font-size: 14px; color: var(--spdf-text-dim); margin-top: 2px; line-height: 1.45; }

/* Contents with pictures: the hero's window beside the title, and each section as a card under its picture */
.spdf-help-hero-inner.has-pic {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
}
.spdf-help-hero-pic { display: block; width: 100%; height: auto; }
.spdf-help-hero-links { margin: 24px 0 0; font-size: 15px; line-height: 1.6; color: var(--spdf-text-dim); }
.spdf-help-hero-links a { color: var(--spdf-accent); }
.spdf-help-group.has-pic {
  border: 1px solid var(--spdf-line); border-radius: 14px; background: var(--spdf-panel); overflow: hidden;
  padding: 0 20px 8px;
}
.spdf-help-group.has-pic .spdf-help-group-list { border-top: 0; }
.spdf-help-group.has-pic .spdf-help-group-list li:last-child a { border-bottom: 0; }
.spdf-help-group-pic {
  display: block; margin: 0 -20px 16px; background: var(--spdf-surface); border-bottom: 1px solid var(--spdf-line);
  padding: 0;
}
.spdf-help-group-pic img { display: block; width: 100%; height: auto; }
.spdf-help-group.has-pic:hover .spdf-help-group-pic { background: var(--spdf-chip); }
@media (max-width: 980px) {
  .spdf-help-hero-inner.has-pic { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .spdf-help-hero-inner, .spdf-help-contents { padding-left: 16px; padding-right: 16px; }
  .spdf-help-contents { grid-template-columns: minmax(0, 1fr); }
}

/* ── A page (/pdf-editor/help/<platform>/<page>/) ──────────────────────── */
.spdf-help {
  max-width: 1440px; margin: 0 auto; padding: 32px 32px 80px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; align-items: start;
}
.spdf-help-side, .spdf-help-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.spdf-help-side-box { display: none; }
.spdf-help-side-head { list-style: none; cursor: default; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--spdf-line); }
.spdf-help-side-head::-webkit-details-marker { display: none; }
.spdf-help-side-head a { color: var(--spdf-text); text-decoration: none; }
.spdf-help-side-sec {
  font-family: var(--spdf-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--spdf-text-mute); margin: 18px 0 6px;
}
.spdf-help-side ul, .spdf-help-toc ul { list-style: none; margin: 0; padding: 0; }
.spdf-help-side li a, .spdf-help-toc li a {
  display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--spdf-text-dim); text-decoration: none; line-height: 1.35;
}
.spdf-help-side li a:hover, .spdf-help-toc li a:hover { color: var(--spdf-text); background: var(--spdf-chip); }
.spdf-help-side li a.is-on { color: var(--spdf-chip-text); background: var(--spdf-chip); font-weight: 600; }
.spdf-help-toc .spdf-paramside-lbl { font-family: var(--spdf-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--spdf-text-mute); margin-bottom: 8px; }

.spdf-help-main { min-width: 0; max-width: 860px; }
.spdf-help-main nav.spdf-eyebrow a { color: inherit; text-decoration: none; }
.spdf-help-h1 {
  font-family: var(--spdf-font-display); font-weight: var(--spdf-display-weight); letter-spacing: -0.03em;
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; margin: 14px 0 0; color: var(--spdf-text);
}
.spdf-help-lede { font-size: 18px; line-height: 1.6; color: var(--spdf-text-dim); margin: 16px 0 0; }

.spdf-help-body { font-size: 16.5px; line-height: 1.7; color: var(--spdf-text); margin-top: 28px; }
.spdf-help-body h2 {
  font-family: var(--spdf-font-display); font-weight: var(--spdf-display-weight); letter-spacing: -0.02em;
  font-size: 28px; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: 96px;
}
.spdf-help-body h3 { font-size: 19px; margin: 32px 0 8px; scroll-margin-top: 96px; }
.spdf-help-body p { margin: 12px 0; }
.spdf-help-body ol, .spdf-help-body ul { margin: 12px 0; padding-left: 26px; }
.spdf-help-body li { margin: 6px 0; }
.spdf-help-body li::marker { color: var(--spdf-accent); font-weight: 700; }
.spdf-help-body strong { font-weight: 650; }
.spdf-help-body a { color: var(--spdf-chip-text); text-underline-offset: 3px; }
.spdf-help-body kbd {
  font-family: var(--spdf-font-mono); font-size: 0.82em; padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--spdf-line-strong); border-bottom-width: 2px; background: var(--spdf-panel); white-space: nowrap;
}
.spdf-help-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.spdf-help-body th, .spdf-help-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--spdf-line); vertical-align: top; }
.spdf-help-body th { font-weight: 650; background: var(--spdf-surface); }

/* Pictures: the framed screenshots carry their own shadow (a transparent margin), so no border here. */
.spdf-help-fig { margin: 22px 0 28px; }
.spdf-help-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.spdf-help-fig figcaption { text-align: center; font-size: 13.5px; color: var(--spdf-text-mute); margin-top: 2px; }

/* Tips and notes: ::: tip / ::: note / ::: pro blocks in the Markdown */
.spdf-help-body .tip, .spdf-help-body .note, .spdf-help-body .pro {
  margin: 20px 0; padding: 14px 18px 14px 48px; border-radius: 12px; position: relative; font-size: 15.5px;
  background: var(--spdf-panel); border: 1px solid var(--spdf-line);
}
.spdf-help-body .tip::before, .spdf-help-body .note::before, .spdf-help-body .pro::before {
  position: absolute; left: 16px; top: 14px; font-weight: 700;
}
.spdf-help-body .tip::before { content: "✓"; color: var(--spdf-ok, #15803D); }
.spdf-help-body .note::before { content: "i"; color: var(--spdf-accent); font-family: var(--spdf-font-mono); }
.spdf-help-body .pro { background: var(--spdf-chip); border-color: transparent; }
.spdf-help-body .pro::before { content: "PRO"; font-family: var(--spdf-font-mono); font-size: 10px; letter-spacing: 0.06em; left: 12px; top: 18px; color: var(--spdf-chip-text); }
.spdf-help-body .tip p, .spdf-help-body .note p, .spdf-help-body .pro p { margin: 4px 0; }

.spdf-help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.spdf-help-pager a {
  display: block; padding: 14px 18px; border: 1px solid var(--spdf-line-strong); border-radius: 12px;
  color: var(--spdf-text); text-decoration: none; font-weight: 600;
}
.spdf-help-pager a:hover { border-color: var(--spdf-accent); }
.spdf-help-pager span { display: block; font-size: 12px; font-weight: 400; color: var(--spdf-text-mute); font-family: var(--spdf-font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.spdf-help-pager-next { grid-column: 2; text-align: right; }

@media (max-width: 1180px) {
  .spdf-help { grid-template-columns: 230px minmax(0, 1fr); }
  .spdf-help-toc { display: none; }
}
@media (max-width: 860px) {
  .spdf-help { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 64px; gap: 20px; }
  .spdf-help-side { position: static; max-height: none; }
  .spdf-help-side-full { display: none; }
  .spdf-help-side-box { display: block; }
  .spdf-help-side-box:not([open]) { border-bottom: 1px solid var(--spdf-line); }
  .spdf-help-side-head { cursor: pointer; }
  .spdf-help-side-head::after { content: " ▾"; color: var(--spdf-text-mute); }
  .spdf-help-hero-inner, .spdf-help-contents { padding-left: 16px; padding-right: 16px; }
  .spdf-help-contents { grid-template-columns: minmax(0, 1fr); }
  .spdf-help-pager { grid-template-columns: 1fr; }
  .spdf-help-pager-next { grid-column: 1; }
}
