/* Help page layout (used together with expera-auth.css for the header and base colors) */
body.help-page { background: #fff; }

.help-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px;
  max-width: 1120px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 48px) 80px;
}

/* Table of contents */
.help-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.help-toc h2 { margin: 0 0 10px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--left-muted); }
.help-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.help-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: .95rem; }
.help-toc a:hover { color: var(--bg-dark); border-left-color: var(--bg-light); background: var(--surface-alt); }

/* Content */
.help-content { max-width: 760px; }
.help-content h1 { margin: 0 0 8px; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.12; color: var(--bg-dark); }
.help-content .intro { margin: 0 0 28px; font-size: 1.12rem; color: var(--text); }
.help-content section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.help-content section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.help-content h2 { margin: 0 0 12px; font-size: 1.6rem; font-weight: 600; color: var(--bg-dark); }
.help-content h3 { margin: 28px 0 8px; font-size: 1.15rem; font-weight: 600; color: var(--bg-dark); }
.help-content p, .help-content li { font-size: 1rem; line-height: 1.65; color: var(--text); }
.help-content p { margin: 0 0 14px; }
.help-content ul, .help-content ol { margin: 0 0 16px; padding-left: 22px; }
.help-content li { margin-bottom: 6px; }
.help-content a { color: var(--bg-light); }

/* Names of buttons and controls */
.ui {
  display: inline-block; padding: 0 7px; font-size: .9em; font-weight: 600; line-height: 1.55;
  color: var(--bg-dark); background: var(--surface-alt); border: 1px solid var(--input-border); border-radius: 4px; white-space: nowrap;
}

/* Numbered steps */
ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps > li { position: relative; padding-left: 40px; margin-bottom: 14px; counter-increment: step; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: #fff; background: var(--bg-dark);
}

/* Callouts */
.callout { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--bg-dark); background: var(--surface-alt); border-radius: 0 6px 6px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--bg-dark); }

/* Tables */
.help-content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .95rem; }
.help-content th, .help-content td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.help-content th { font-weight: 600; color: var(--bg-dark); background: var(--surface-alt); }

.glossary dt { margin-top: 12px; font-weight: 600; color: var(--bg-dark); }
.glossary dd { margin: 2px 0 0; line-height: 1.6; }

/* Screenshots (placeholders until the images are added) */
.help-shot { margin: 20px 0 24px; }
.help-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(28, 37, 67, .12); }
.help-shot-placeholder {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; text-align: center;
  color: var(--left-muted); font-size: .95rem; background: var(--surface-alt); border: 1px dashed var(--input-border); border-radius: 8px;
}
.help-shot figcaption { margin-top: 8px; font-size: .88rem; color: var(--left-muted); }

@media (max-width: 880px) {
  .help-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .help-toc { position: static; max-height: none; }
  .help-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .help-toc a { padding-left: 0; border-left: 0; }
}
