/* ==========================================================================
   Help documentation — the shared class library for every help doc
   (content-service spec §H5). Doc bodies may use ONLY these lt-help-* classes;
   everything is scoped under .lt-help-doc, which wraps a doc both in the reader
   (HelpCenter) and inside the operator's rich-text editor, so authors see what
   readers see. Colours come from the --lt-* tokens in localteams-radzen-overrides.css.
   ========================================================================== */

:is(.lt-help-doc, .lt-help-editor .e-content) {
  font-family: var(--lt-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--lt-ink-2);
  max-width: 760px;
  overflow-wrap: anywhere;
}

:is(.lt-help-doc, .lt-help-editor .e-content) h1,
:is(.lt-help-doc, .lt-help-editor .e-content) h2,
:is(.lt-help-doc, .lt-help-editor .e-content) h3 {
  font-family: var(--lt-font-display);
  color: var(--lt-ink-1);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
:is(.lt-help-doc, .lt-help-editor .e-content) h1 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
:is(.lt-help-doc, .lt-help-editor .e-content) h2 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; padding-top: 6px; }
:is(.lt-help-doc, .lt-help-editor .e-content) h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
:is(.lt-help-doc, .lt-help-editor .e-content) p { margin: 0 0 12px; }
:is(.lt-help-doc, .lt-help-editor .e-content) ul,
:is(.lt-help-doc, .lt-help-editor .e-content) ol { margin: 0 0 14px; padding-left: 24px; }
:is(.lt-help-doc, .lt-help-editor .e-content) li { margin: 4px 0; }
:is(.lt-help-doc, .lt-help-editor .e-content) a { color: var(--lt-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
:is(.lt-help-doc, .lt-help-editor .e-content) a:hover { color: var(--lt-accent-hover); }
:is(.lt-help-doc, .lt-help-editor .e-content) code,
:is(.lt-help-doc, .lt-help-editor .e-content) kbd {
  font-family: var(--lt-font-mono);
  font-size: 0.88em;
  background: var(--lt-surface-sunken);
  border: 1px solid var(--lt-line-soft);
  border-radius: 5px;
  padding: 1px 5px;
}
:is(.lt-help-doc, .lt-help-editor .e-content) img { max-width: 100%; height: auto; }
:is(.lt-help-doc, .lt-help-editor .e-content) table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; }
:is(.lt-help-doc, .lt-help-editor .e-content) th,
:is(.lt-help-doc, .lt-help-editor .e-content) td { border: 1px solid var(--lt-line); padding: 7px 10px; text-align: left; vertical-align: top; }
:is(.lt-help-doc, .lt-help-editor .e-content) th { background: var(--lt-surface-sunken); font-family: var(--lt-font-display); font-weight: 700; color: var(--lt-ink-1); }

/* ---- Summary: the lead paragraph under the title ------------------------ */
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-summary {
  font-size: 17px;
  line-height: 1.55;
  color: var(--lt-ink-3);
  margin-bottom: 18px;
}

/* ---- Numbered steps ------------------------------------------------------ */
:is(.lt-help-doc, .lt-help-editor .e-content) ol.lt-help-steps {
  list-style: none;
  counter-reset: lt-help-step;
  padding-left: 0;
}
:is(.lt-help-doc, .lt-help-editor .e-content) ol.lt-help-steps > li {
  counter-increment: lt-help-step;
  position: relative;
  padding: 2px 0 10px 42px;
  margin: 0 0 6px;
}
:is(.lt-help-doc, .lt-help-editor .e-content) ol.lt-help-steps > li::before {
  content: counter(lt-help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lt-accent-tint);
  border: 1px solid var(--lt-accent-line);
  color: var(--lt-accent-ink);
  font-family: var(--lt-font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}
:is(.lt-help-doc, .lt-help-editor .e-content) ol.lt-help-steps > li > strong:first-child { color: var(--lt-ink-1); }

/* ---- Screenshots ------------------------------------------------------------ */
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-figure {
  margin: 18px 0 22px;
  padding: 0;
}
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-figure img {
  display: block;
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius-sm);
  box-shadow: var(--lt-shadow-raised);
  background: var(--lt-surface-white);
}
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--lt-ink-4);
}
/* The template's "insert a screenshot" box — authors replace it with an image. */
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-figure-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 14px 0 18px;
  border: 2px dashed var(--lt-line-strong);
  border-radius: var(--lt-radius-sm);
  background: var(--lt-surface-sunken);
  color: var(--lt-ink-5);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ---- Callouts ---------------------------------------------------------------- */
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-callout {
  border: 1px solid var(--lt-line);
  border-left-width: 4px;
  border-radius: var(--lt-radius-sm);
  padding: 12px 16px;
  margin: 16px 0 20px;
  background: var(--lt-surface);
}
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-callout p:last-child { margin-bottom: 0; }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-callout-title {
  font-family: var(--lt-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px !important;
}
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-tip { border-color: var(--lt-accent-line); border-left-color: var(--lt-accent); background: var(--lt-accent-tint); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-tip .lt-help-callout-title { color: var(--lt-accent-ink); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-note { border-color: var(--lt-trust-line); border-left-color: var(--lt-trust); background: var(--lt-trust-tint); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-note .lt-help-callout-title { color: var(--lt-trust-ink); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-warning { border-color: var(--lt-warn); border-left-color: var(--lt-warn); background: var(--lt-warn-tint); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-warning .lt-help-callout-title { color: var(--lt-warn-ink); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-danger { border-color: var(--lt-danger-line); border-left-color: var(--lt-danger); background: var(--lt-danger-tint); }
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-danger .lt-help-callout-title { color: var(--lt-danger); }

/* ---- Inline bits ------------------------------------------------------------- */
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-badge {
  display: inline-block;
  font-family: var(--lt-font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lt-surface-sunken);
  border: 1px solid var(--lt-line);
  color: var(--lt-ink-3);
  vertical-align: middle;
}
/* A menu path: <span class="lt-help-path">Team › Roster &amp; Seasons</span> */
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-path {
  font-family: var(--lt-font-display);
  font-weight: 700;
  color: var(--lt-ink-1);
  white-space: nowrap;
}
:is(.lt-help-doc, .lt-help-editor .e-content) .lt-help-related { padding-left: 20px; }

/* ==========================================================================
   The page-title help button + its topic dialog
   ========================================================================== */
.lt-help-topic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--lt-accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.lt-help-topic-btn:hover { background: var(--lt-accent-hover, var(--lt-accent-ink)); }
.lt-help-topic-btn:active { transform: translateY(1px); }
/* The side panel's header is a space-between row: keep the circle with the title, not the close X. */
.lt-side-panel-head .lt-help-topic-btn { margin-right: auto; margin-left: 8px; }

/* Labeled pill, for forms and editor dialogs where a bare circle reads as decoration. */
.lt-help-topic-btn-labeled {
  width: auto;
  height: 24px;
  gap: 6px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  font-family: var(--lt-font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  background: var(--lt-accent-tint);
  color: var(--lt-accent-ink);
}
.lt-help-topic-btn-labeled:hover { background: var(--lt-accent-line, var(--lt-accent-tint)); color: var(--lt-accent-ink); }
.lt-help-topic-btn-labeled > i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex: 0 0 auto;
  border-radius: 50%; background: var(--lt-accent); color: #fff; font-size: 9px;
}
.lt-form-help { display: flex; justify-content: flex-end; margin: -6px 0 10px; }

/* The dialog is a reader: its body scrolls, the footer stays put. */
.lt-help-topic-dialog .rz-dialog-content { display: flex; flex-direction: column; min-height: 0; padding: 18px 22px 14px; }
.lt-help-topic-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; }
.lt-help-topic-body .lt-help-doc { max-width: none; }
.lt-help-topic-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: 0 0 auto; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--lt-line);
}
.lt-help-topic-link { font-size: 13px; color: var(--lt-accent-ink); text-decoration: none; }
.lt-help-topic-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .lt-help-topic-dialog .rz-dialog-content { padding: 14px 14px 12px; }
}

/* ==========================================================================
   Help Center chrome (the reader page itself, not doc bodies)
   ========================================================================== */
/* Shell: the team drill layout (.drill-shell / .drill-nav / .drill-content) — topics column on the left,
   the scrolling article in the middle, "On this page" on the right. */
.lt-help-shell { position: relative; flex: 1; min-width: 0; }
.drill-shell.lt-help-shell > .drill-nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 256px;
  box-sizing: border-box;
  padding: 12px 8px 20px;
  transition: flex-basis 0.16s ease;
}
.lt-help-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 8px 10px;
}
.lt-help-nav-head .drill-nav-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lt-ink-5);
}
.lt-help-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 1px solid var(--lt-line);
  border-radius: 8px;
  background: var(--lt-surface-white);
  color: var(--lt-ink-3);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.lt-help-nav a.lt-help-nav-toggle { display: inline-flex; padding: 0; line-height: 1; }
.lt-help-nav-toggle:hover { background: var(--lt-accent-tint); color: var(--lt-accent-ink); border-color: var(--lt-accent-line); }
.lt-help-nav-rail { display: none; flex-direction: column; align-items: center; gap: 8px; }
.lt-help-nav-mask { display: none; }

/* Collapsed to an icon rail — by the reader's choice, or automatically on narrow screens. */
.drill-shell.lt-help-shell.nav-collapsed > .drill-nav { flex-basis: 54px; padding: 12px 9px; }
.lt-help-shell.nav-collapsed .lt-help-nav-head,
.lt-help-shell.nav-collapsed .lt-help-nav-body { display: none; }
.lt-help-shell.nav-collapsed .lt-help-nav-rail { display: flex; }

@media (max-width: 900px) {
  .drill-shell.lt-help-shell.nav-auto > .drill-nav,
  .drill-shell.lt-help-shell.nav-open > .drill-nav { flex-basis: 54px; padding: 12px 9px; }
  .lt-help-shell.nav-auto .lt-help-nav-head,
  .lt-help-shell.nav-auto .lt-help-nav-body { display: none; }
  .lt-help-shell.nav-auto .lt-help-nav-rail { display: flex; }

  /* Expanded on a narrow screen = a drawer over the article (the rail's space stays reserved). */
  .drill-shell.lt-help-shell.nav-open > .drill-nav {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    z-index: 6;
    width: min(300px, 86vw);
    padding: 12px 8px 20px;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.18);
  }
  .lt-help-shell.nav-open > .drill-content { margin-left: 54px; }
  .lt-help-shell.nav-open > .lt-help-nav-mask {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(15, 23, 42, 0.28);
  }
}

/* Article column + right-hand "On this page" column. */
.drill-shell.lt-help-shell > .drill-content { padding: 26px 30px 60px; min-width: 0; }
.lt-help-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.lt-help-page.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.lt-help-article-col { min-width: 0; }
.lt-help-toc {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 4px 0 4px 14px;
  border-left: 1px solid var(--lt-line);
  margin-top: 2px;
}
.lt-help-toc-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lt-ink-5); margin: 0 0 8px;
}
.lt-help-toc-list { list-style: none; padding: 0; margin: 0; }
.lt-help-toc-list li { margin: 0; }
.lt-help-toc-list li.lvl3 { padding-left: 12px; }
.lt-help-toc-list a {
  display: block;
  padding: 5px 8px;
  margin-left: -8px;
  border-radius: 6px;
  color: var(--lt-ink-3);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}
.lt-help-toc-list a:hover { background: var(--lt-surface-sunken); color: var(--lt-ink-1); }
.lt-help-toc-list a[data-active] { color: var(--lt-accent-ink); font-weight: 600; background: var(--lt-accent-tint); }
.lt-help-toc-inline { display: none; }
.lt-help-doc :is(h2, h3)[id] { scroll-margin-top: 16px; }

/* Too narrow for three columns: "On this page" folds into the top of the article. */
@media (max-width: 1180px) {
  .lt-help-page { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
  .lt-help-toc { display: none; }
  .lt-help-toc-inline {
    display: block;
    border: 1px solid var(--lt-line);
    border-radius: var(--lt-radius-sm);
    background: var(--lt-surface);
    padding: 8px 14px;
    margin: 0 0 18px;
  }
  .lt-help-toc-inline summary {
    cursor: pointer;
    font-family: var(--lt-font-display);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--lt-ink-2);
    padding: 2px 0;
  }
  .lt-help-toc-inline summary i { color: var(--lt-accent); margin-right: 6px; }
  .lt-help-toc-inline[open] summary { margin-bottom: 6px; }
  .lt-help-toc-inline .lt-help-toc-list a { margin-left: 0; }
}

@media (max-width: 640px) {
  .drill-shell.lt-help-shell > .drill-content { padding: 16px 12px 44px; }
  .lt-help-shell .lt-page-header h1 { font-size: 22px; }
  .lt-help-doc table { display: block; overflow-x: auto; }
}

.lt-help-search {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 760px;
}
.lt-help-search .rz-textbox { flex: 1; min-width: 0; font-size: 15px; }
.lt-help-search .rz-button { flex: 0 0 auto; }
.lt-help-nav-body { min-height: 0; }
.lt-help-nav-group { margin-bottom: 8px; }
.lt-help-nav-group-title {
  font-family: var(--lt-font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lt-ink-4);
  padding: 8px 10px 4px;
}
.lt-help-nav-sub { padding-left: 10px; }
.lt-help-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--lt-ink-2);
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.35;
}
.lt-help-nav a:hover { background: var(--lt-surface-sunken); }
.lt-help-nav a.active { background: var(--lt-accent-tint); color: var(--lt-accent-ink); font-weight: 600; }
.lt-help-main {
  background: var(--lt-surface-white);
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius-xl);
  padding: 28px 32px 36px;
  min-height: 320px;
}
@media (max-width: 640px) {
  .lt-help-main { padding: 18px 14px 26px; }
}
.lt-help-breadcrumb { font-size: 12.5px; color: var(--lt-ink-5); margin-bottom: 6px; }
.lt-help-updated { font-size: 12.5px; color: var(--lt-ink-5); margin: -4px 0 20px; }
.lt-help-draft-banner {
  background: var(--lt-warn-tint);
  border: 1px solid var(--lt-warn);
  color: var(--lt-warn-ink);
  border-radius: var(--lt-radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.lt-help-results { list-style: none; padding: 0; margin: 0; }
.lt-help-results li { padding: 14px 0; border-bottom: 1px solid var(--lt-line-faint); }
.lt-help-results li:last-child { border-bottom: none; }
.lt-help-results a.lt-help-result-title {
  font-family: var(--lt-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--lt-accent-ink);
  text-decoration: none;
}
.lt-help-results a.lt-help-result-title:hover { text-decoration: underline; }
.lt-help-result-crumb { font-size: 12px; color: var(--lt-ink-5); margin: 2px 0 4px; }
.lt-help-result-excerpt { font-size: 14px; color: var(--lt-ink-3); margin: 0; }
.lt-help-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.lt-help-home-card {
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius-sm);
  padding: 14px 16px;
  background: var(--lt-surface);
}
.lt-help-home-card h3 { font-family: var(--lt-font-display); font-size: 15px; font-weight: 800; margin: 0 0 8px; color: var(--lt-ink-1); }
.lt-help-home-card ul { list-style: none; padding: 0; margin: 0; }
.lt-help-home-card li { margin: 5px 0; font-size: 13.5px; }
.lt-help-home-card a { color: var(--lt-accent-ink); text-decoration: none; }
.lt-help-home-card a:hover { text-decoration: underline; }

/* Operator editor: the RTE content area wears the doc scope so authors see reader styling. */
.lt-help-editor .e-rte-content .e-content { padding: 20px 24px; max-width: none; }
