/* PDF Combine user guide: reading column, section nav, steps, callouts and figures
 * on top of ../shared/aa.css. */

.help-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: var(--s2) var(--s5);
  border-bottom: var(--rule);
  background: var(--band);
}
.help-nav-inner { display: flex; flex-wrap: wrap; gap: 4px var(--s4); max-width: 980px; margin: 0 auto; }
.help-nav a { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink2); }
.help-nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.help-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s7); }
.help-main [id] { scroll-margin-top: 56px; }

.help-hero { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.help-hero h1 { font-size: clamp(40px, 5vw, 60px); }
.help-lead { max-width: 64ch; font-size: var(--t16); color: var(--ink2); }

.help-main h2 {
  margin: var(--s7) 0 var(--s3);
  padding-top: var(--s3);
  border-top: var(--rule);
  font-family: var(--f-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.help-main h3 { margin: var(--s5) 0 var(--s2); font-size: var(--t16); font-weight: 700; }
.help-main p,
.help-main li { color: var(--ink2); line-height: 1.55; }
.help-main p { margin-bottom: var(--s3); }
.help-main ul,
.help-main ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
.help-main li { margin-bottom: 6px; }
.help-main strong,
.help-main b { color: var(--navy); font-weight: 600; }
.help-main a:not(.tool-chip) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--ink3); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.help-main a:not(.tool-chip):hover { color: var(--navy); text-decoration-color: var(--navy); }
.help-main code { padding: 0 4px; border: var(--rule-minor); background: var(--band); font-size: 0.86em; color: var(--navy); }

.steps { margin: 0 0 var(--s5) !important; padding: 0 !important; list-style: none; counter-reset: step; border: var(--rule); background: var(--field); }
.steps > li { position: relative; margin: 0 !important; padding: var(--s3) var(--s4) var(--s3) 56px; border-bottom: var(--rule-minor); }
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  top: var(--s3);
  left: var(--s4);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--redline);
}
.steps > li strong { display: block; margin-bottom: 2px; font-size: var(--t15); }

.callout { margin: 0 0 var(--s4) !important; padding: var(--s3) var(--s4); border: var(--rule-minor); box-shadow: inset 3px 0 0 var(--navy); background: var(--field); color: var(--navy) !important; }
.callout.info { background: var(--band); }
.callout.warn { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); background: var(--warn-bg); color: var(--warn) !important; }

.figure { margin: var(--s4) 0 var(--s5); border: var(--rule); background: var(--field); }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { padding: 6px var(--s3); border-top: var(--rule-minor); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
.figure figcaption code { font-size: 11px; text-transform: none; letter-spacing: 0; }

.ref-table { margin: 0 0 var(--s5); border: var(--rule); background: var(--field); font-size: var(--t14); }
.ref-table tbody td { height: auto; padding: 6px var(--s2); vertical-align: top; color: var(--ink2); }
.ref-table tbody td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.grid-2 h3 { margin-top: 0; }

.tool-chip {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--navy);
  background: var(--field);
  font-weight: 600;
  font-size: var(--t14);
  line-height: 20px;
  color: var(--navy);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .help-nav { padding: var(--s2) var(--s4); }
  .help-main { padding: var(--s5) var(--s4) var(--s6); }
  .grid-2 { grid-template-columns: 1fr; }
  .ref-table tbody td:first-child { white-space: normal; }
}

@media print {
  .strip, .help-nav, .footer-strip { display: none; }
  .figure { break-inside: avoid; }
}
