/* =========================================================
   RoboHelp CSS — cleaned v3 (final)
   - Ubuntu Light base @ 10.5pt (body)
   - Headings light (300), H1 @ 400 + explicit top margins
   - Softer bold (500) without synthetic emboldening (except where needed)
   - Compact tables (keeps left indents for lists)
   - Code blocks unified (codesample2/3, codenormal) incl. CxSp/CX5
   - Bullets/numbering: use RH’s original hanging indents
   - Duplicates & conflicting rules removed
   ========================================================= */

/* ========== 1) Fonts ========== */
@font-face { font-family:"Ubuntu"; src:url("Ubuntu-L.ttf") format("truetype"); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Ubuntu"; src:url("Ubuntu-R.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Ubuntu"; src:url("Ubuntu-M.ttf") format("truetype"); font-weight:500; font-style:normal; font-display:swap; } /* optional */
@font-face { font-family:"Ubuntu"; src:url("Ubuntu-B.ttf") format("truetype"); font-weight:700; font-style:normal; font-display:swap; } /* optional */

/* ========== 2) Global/base ========== */
html, body{
  color:#3a3a3a;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-synthesis-weight:none; /* avoid fake bolding globally */
}

/* Body text only — exclude headings & code-like paragraphs */
p:not([class*="Heading" i]):not([class*="fakehead" i]):not([class*="code" i]):not([class*="Code" i]),
li, td, th{
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight:300;
  font-size:10.5pt !important;
  line-height:1.5;
}

/* Default paragraph gap (smaller to tame blank lines) */
p{ margin:2pt 0 6pt 0; }

/* Links */
span.Hyperlink{ color:#0a66c2; text-decoration:underline; }

/* ========== 3) Headings ========== */
h1, h2, h3, h4, h5, h6,
p.Heading3, p.Heading4, p.Heading5{
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight:300;
  line-height:1.25;
  color:#077ca3;
  margin:0 0 10pt 0;
}

/* explicit sizes + top space to avoid “jammed” headings */
h1{ font-size:16pt; color:#087EA5; text-transform:uppercase; font-weight:400; margin:20pt 0 12pt 0 !important; }
h2{ font-size:22pt; margin:24pt 0 12pt 0 !important; }
h3, p.Heading3{ font-size:18pt; margin:20pt 0 12pt 0 !important; }
h4, p.Heading4{ font-size:15pt; margin:16pt 0 12pt 0 !important; }
h5, p.Heading5{ font-size:16pt; margin:14pt 0 10pt 0 !important; }
h6{ font-size:14pt; font-weight:500; color:#333; margin:12pt 0 8pt 0 !important; }

/* Fake heading paragraphs (force Ubuntu + spacing) */
p.fakehead3, p.fakeHead3{
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:17pt; font-weight:400; color:#077ca3; margin:14pt 0 10pt 0;
}
p.fakehead4, p.fakeHead4{
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:14pt; font-weight:400; line-height:1.25; margin:16pt 0 12pt 0 !important;
}
p.fakehead5{ font-size:11pt; font-weight:500; margin:30pt 0 14pt 0; }
p.fakehead6, p.fakehead6outdent{
  font-size:9pt; font-weight:500; font-style:italic; color:#077ca3; margin:14pt 0 14pt 0;
}
p.fakehead6{ margin-left:25pt; }
p.fakehead6outdent{ margin-left:15pt; }

/* Additional heading-like classes */
p.Heading7{ margin:12pt 0 3pt .75in; text-indent:-.75in; font-weight:500; }
p.Heading8{ margin:3pt 0 3pt 69.1pt; text-indent:-69.1pt; font-weight:500; }
p.Heading9{ margin:12pt 0 3pt 1.1in; text-indent:-1.1in; }

/* ========== 4) Tables (compact, but keep left indents) ========== */
table{ border-collapse:collapse; border-spacing:0; }
table th, table td{ padding:6px 8px; vertical-align:top; line-height:1.4; }

/* Tighten only vertical margins so bullet/number gutters survive */
table p{ margin-top:0 !important; margin-bottom:0 !important; font-size:10.5pt !important; line-height:1.4; }
table li{ margin-top:0; margin-bottom:0; }
table ul, table ol{ margin:0; padding-left:1.2em; }

/* ========== 5) Lists & bullets (use RH’s original hanging indents) ========== */
p.Bullet1, p.Bullet11{ margin:12pt 0 12pt .2in;  text-indent:-.17in; }
p.Bullet2{              margin:12pt 0 12pt .42in; text-indent:-.17in; }
p.Bullet3{              margin:3pt  0 3pt  .75in; text-indent:-.25in; line-height:1.4; }
p.Bullet4{              margin:3pt  0 0    2in;   text-indent:-.25in; font-size:10pt; }

/* Numbered paragraph lists */
p.ListFirstLevel { margin:7.5pt 0 7.5pt .25in; text-indent:-.25in; counter-reset:Numbering2242; }
p.ListSecondLevel{ margin:3pt   0 3pt   .5in;  text-indent:-.28in; }
p.ListThirdLevel { margin:3pt   0 3pt   .75in; text-indent:-.25in; }
p.ListFourthLevel{ margin:3pt   0 3pt   1in;   text-indent:-.25in; font-size:10pt; line-height:1.4; }

/* Ensure the left margins survive inside tables too */
table p.ListFirstLevel  { margin-left:.25in !important; }
table p.ListSecondLevel { margin-left:.5in  !important; }
table p.ListThirdLevel  { margin-left:.75in !important; }
table p.ListFourthLevel { margin-left:1in   !important; }

/* We are NOT generating pseudo-bullets */
p.Bullet1::before, p.Bullet11::before, p.bullet1forprog::before,
p.Bullet2::before, p.Bullet3::before, p.Bullet4::before{ content:none !important; }

/* ========== 6) Notes / parameters / callouts ========== */
p.Note{ margin:6pt 0 6pt .5in; text-indent:-.5in; }
p.NoteSecond, p.NoteSecondLevel{ margin:3pt 0 6pt .97in; text-indent:-.72in; }
p.NoteThirdLevel{ margin:3pt 0 3pt 1in; text-indent:-.5in; }

p.parameterdescription{ margin:15pt 0 6pt .5in; }
p.parameterdescritionoutdent{ margin:15pt 0 6pt .1in; }

p.ParameterName{ font-weight:700 !important; line-height:1.4; }
p.Parameter{ margin:3pt 0 3pt .25in; }

p.ProcedureHeader{ margin:9pt 0 9pt 18pt; font-weight:500; }

/* ========== 7) TOC / Index / misc text ========== */
p.Toc1{ margin:9pt 0 0 0; text-transform:uppercase; font-weight:500; font-size:10pt; }
p.Toc2{ margin:3pt 0 0 .25in; font-size:10pt; }
p.Toc3{ margin:0 0 0 10pt; font-size:9pt; }
p.Toc4{ margin:3pt 0 0 .5in; font-size:12pt; }
p.Toc5{ margin:3pt 0 3pt 32pt; font-size:9pt; }
p.Toc6{ margin:3pt 0 3pt 40pt; font-size:9pt; }
p.Toc7{ margin:3pt 0 3pt 48pt; font-size:9pt; }
p.Toc8{ margin:3pt 0 3pt 70pt; font-size:10pt; }
p.Toc9{ margin:3pt 0 3pt 80pt; font-size:10pt; }

p.Index1{ margin:3pt 0; font-style:italic; }
p.Index2{ margin:3pt 0 0 22pt; text-indent:-12pt; }

p.Caption{ margin:3pt 0 12pt 0; text-align:center; line-height:1.4; font-size:9pt; color:#737373; }
p.Figure{  margin:12pt 0;        text-align:center; line-height:1.4; font-size:10pt; }

p.Warning{ margin:3pt 0 3pt .25in; text-indent:-.25in; font-size:10pt; }

/* ========== 8) Tabs / body variants ========== */
p.Tab{  margin:3pt 0 3pt .25in; line-height:1.4; }
p.Tab2{ margin:3pt 0 3pt .5in;  line-height:1.4; }
p.Tab3{ margin:3pt 0 3pt .75in; line-height:1.4; }

p.BodyText{ margin:1.5pt 0 3pt 0; text-align:justify; }

/* ========== 9) Code / preformatted ========== */
/* Baseline monospace for known code paragraph classes */
:where(p.Code1, p.code2, p.code2outdent, p.code3, p.code, p.codekeepcolor,
       p.codeSG, p.couriernewten, p.codetab, p.codenormal,
       p.Codeexample, p.CodeFirstLine, p.CodeSubsequentLines,
       p.codesample, p.codesample2, p.codesample3){
  font-family: Menlo, Consolas, "Courier New", monospace;
}

/* Default shading + compact leading for common code paragraphs */
p.Code1,
p.code2, p.code2outdent, p.code3,
p.code, p.codekeepcolor,
p.codenormal,
p.codesample, p.codesample2, p.codesample3{
  background:#F2F2F2; padding:0; border:none; line-height:1.25;
}

/* Specific tweaks */
p.Code1{ margin:6pt 0; font-size:10.5pt; color:#4D4D4C; }
p.code2{ margin:6pt 0 6pt .5in; font-size:10.5pt; color:#4D4D4C; }
p.code2outdent{ margin:6pt 0 6pt .1in; font-size:10.5pt; color:#4D4D4C; }
p.code3{ margin:6pt 0 6pt .8in; font-size:10.5pt; color:#4D4D4C; }

p.code{ margin:6pt 0 6pt .9in; font-size:10.5pt; }
p.codekeepcolor{ margin:6pt 0 6pt .1in; font-size:10.5pt; }

p.Codeexample{ margin:4pt 0 3pt 0; font-size:9pt; background:#f9f9ff; line-height:1.3; }
p.CodeFirstLine, p.CodeSubsequentLines{ font-style:italic; }
p.CodeFirstLine{ margin:3pt 0; }
p.CodeSubsequentLines{ margin:3pt 0 3pt 1in; text-indent:.5in; }

p.codeSG{ margin:2pt 0 0 0; font-size:10pt; }
p.couriernewten{ margin:0; font-size:8pt; line-height:1.2; background:#F2F2F2; padding:0 8px; }
p.codetab{ margin:0; font-size:9pt; font-weight:500; }

/* --- Codesample 2/3: enforce font, size, spacing (incl. Word variants) --- */
p[class*="codesample" i]{
  background:#F2F2F2 !important;
  font-family: Menlo, Consolas, "Courier New", monospace !important;
  line-height:1.25 !important;
  margin:0 !important;
  padding:0 8px !important;
  border:0;
}

/* Sizes */
p[class*="codesample2" i],
p[class*="codesample3" i]{ font-size:10pt !important; }

/* Word's split chunks (CxSpFirst/Middle/Last) + odd CX5 labels */
p[class*="codesample" i][class*="CxSp" i],
p[class*="codesample" i][class*="CX5" i]{
  line-height:1.2 !important;
  margin:0 !important;
}

/* Only pad outer edges so padding doesn't stack line-to-line */
p[class*="codesample" i][class*="CxSpFirst" i]{ padding:6px 8px 0 8px !important; border-radius:3px 3px 0 0; }
p[class*="codesample" i][class*="CxSpMiddle" i]{ padding:0 8px !important; }
p[class*="codesample" i][class*="CxSpLast" i]{  padding:0 8px 6px 8px !important; border-radius:0 0 3px 3px; }

/* If the content uses <pre>/<code> inside, inherit the same typography */
p[class*="codesample" i] pre,
p[class*="codesample" i] code{ font:inherit !important; }

/* Inside tables: keep the tighter leading & size */
table p[class*="codesample" i]{ line-height:1.2 !important; }
table p[class*="codesample2" i],
table p[class*="codesample3" i]{ font-size:10pt !important; }

/* Tight codenormal + its CxSp variants */
p[class*="codenormal" i]{
  background:#F2F2F2 !important;
  font-family: Menlo, Consolas, "Courier New", monospace !important;
  line-height:1.2 !important;
  margin:0 !important; padding:0 8px !important;
}
p[class*="codenormal" i][class*="CxSpFirst" i]{ padding:6px 8px 0 8px !important; border-radius:3px 3px 0 0; }
p[class*="codenormal" i][class*="CxSpMiddle" i]{ padding:0 8px !important; }
p[class*="codenormal" i][class*="CxSpLast" i]{  padding:0 8px 6px 8px !important; border-radius:0 0 3px 3px; }
table p[class*="codenormal" i]{ line-height:1.2 !important; }

/* Respect *explicit* bold inside couriernewten only (not by default) */
p.couriernewten b,
p.couriernewten strong,
p.couriernewten [style*="font-weight:bold" i],
p.couriernewten [style*="font-weight:700" i],
p.couriernewten [style*="font-weight: 700" i],
p.couriernewten [style*="font-weight:600" i]{ font-weight:700 !important; }

/* ========== 10) Softer bold (medium weight) ========== */
strong, b{ font-weight:500; }                 /* gentler bold for body text */
p.ProcedureHeader{ font-weight:500; }
p.fakehead5, p.fakehead6, p.fakehead6outdent{ font-weight:500; }

/* ========== 11) Print tweaks (optional) ========== */
@media print{
  table th, table td{ padding:4px 6px; }
}
/* ===== Stop long URLs from blowing out the layout ===== */

/* 1) Let long tokens wrap everywhere in content */
.RH-LAYOUT-CENTERPANEL-topic-box :where(p, .RH-LAYOUT-FOOTER-container :where(p,.RH-LAYOUT-CENTERPANEL-topic-box  li, .RH-LAYOUT-FOOTER-container  li,.RH-LAYOUT-CENTERPANEL-topic-box  td, .RH-LAYOUT-FOOTER-container  td,.RH-LAYOUT-CENTERPANEL-topic-box  th, .RH-LAYOUT-FOOTER-container  th,.RH-LAYOUT-CENTERPANEL-topic-box  code, .RH-LAYOUT-FOOTER-container  code,.RH-LAYOUT-CENTERPANEL-topic-box  pre, .RH-LAYOUT-FOOTER-container  pre,.RH-LAYOUT-CENTERPANEL-topic-box  span, .RH-LAYOUT-FOOTER-container  span,.RH-LAYOUT-CENTERPANEL-topic-box  a), .RH-LAYOUT-FOOTER-container  a){
  overflow-wrap: anywhere !important;   /* modern */
  word-break: break-word !important;    /* legacy */
  white-space: normal !important;       /* cancel any inline nowrap */
}

/* 2) Links inside tables are the usual offenders — break harder there */
.RH-LAYOUT-CENTERPANEL-topic-box table td a, .RH-LAYOUT-FOOTER-container table td a,.RH-LAYOUT-CENTERPANEL-topic-box  table th a, .RH-LAYOUT-FOOTER-container  table th a{
  word-break: break-all !important;     /* allow breaks between ANY characters */
  display: inline !important;           /* avoid inline-block preventing wraps */
  max-width: 100%;
}

/* 3) Pre/code blocks should also wrap instead of forcing a scrollbar */
.RH-LAYOUT-CENTERPANEL-topic-box pre, .RH-LAYOUT-FOOTER-container pre,.RH-LAYOUT-CENTERPANEL-topic-box  code, .RH-LAYOUT-FOOTER-container  code{
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* 4) Make tables cooperate with wrapping instead of expanding the page */
.RH-LAYOUT-CENTERPANEL-topic-box table, .RH-LAYOUT-FOOTER-container table{
  table-layout: fixed;                  /* columns share available width */
  width: 100%;
}
.RH-LAYOUT-CENTERPANEL-topic-box table td, .RH-LAYOUT-FOOTER-container table td,.RH-LAYOUT-CENTERPANEL-topic-box  table th, .RH-LAYOUT-FOOTER-container  table th{
  min-width: 0;                         /* allow shrinking inside flex/auto layouts */
}

/* 5) In case a flex container is causing overflow, allow it to shrink */
.RH-LAYOUT-CENTERPANEL-topic-box main, .RH-LAYOUT-FOOTER-container main,.RH-LAYOUT-CENTERPANEL-topic-box  section, .RH-LAYOUT-FOOTER-container  section,.RH-LAYOUT-CENTERPANEL-topic-box  article, .RH-LAYOUT-FOOTER-container  article,.RH-LAYOUT-CENTERPANEL-topic-box  .container, .RH-LAYOUT-FOOTER-container  .container,.RH-LAYOUT-CENTERPANEL-topic-box  .content, .RH-LAYOUT-FOOTER-container  .content,.RH-LAYOUT-CENTERPANEL-topic-box  .topic, .RH-LAYOUT-FOOTER-container  .topic,.RH-LAYOUT-CENTERPANEL-topic-box  .rh-layout, .RH-LAYOUT-FOOTER-container  .rh-layout,.RH-LAYOUT-CENTERPANEL-topic-box  .row, .RH-LAYOUT-FOOTER-container  .row,.RH-LAYOUT-CENTERPANEL-topic-box  .col, .RH-LAYOUT-FOOTER-container  .col{
  min-width: 0 !important;              /* prevents flex min-width:auto overflow */
}

/* (Optional fallback) If a residual long string still causes scroll:
body{ overflow-x: hidden; }  // hides leftover 1–2px overflow without affecting content
*/
/* --- Keep “parameter/description” tables from overflowing --- */
.RH-LAYOUT-CENTERPANEL-topic-box table[width="96%"], .RH-LAYOUT-FOOTER-container table[width="96%"]{
  table-layout: fixed !important;     /* columns share width; don't grow with content */
  width: 100% !important;             /* ignore inline 96% */
  margin-left: 0 !important;          /* cancel inline 25.1pt */
}

/* Cells must be allowed to shrink and wrap */
.RH-LAYOUT-CENTERPANEL-topic-box table[width="96%"] td, .RH-LAYOUT-FOOTER-container table[width="96%"] td,.RH-LAYOUT-CENTERPANEL-topic-box  table[width="96%"] th, .RH-LAYOUT-FOOTER-container  table[width="96%"] th{
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;  /* modern wrap */
  word-break: break-word !important;   /* legacy wrap */
}

/* Links inside those cells: break even between any characters if needed */
.RH-LAYOUT-CENTERPANEL-topic-box table[width="96%"] td a, .RH-LAYOUT-FOOTER-container table[width="96%"] td a,.RH-LAYOUT-CENTERPANEL-topic-box  table[width="96%"] th a, .RH-LAYOUT-FOOTER-container  table[width="96%"] th a{
  display: inline !important;          /* avoid inline-block */
  word-break: break-all !important;    /* most aggressive */
  overflow-wrap: anywhere !important;
  max-width: 100%;
}
/* Hide TOC Collapse All button */
button[title="Collapse All"],
button[aria-label="Collapse All"],
a[title="Collapse All"],
a[aria-label="Collapse All"],
.rh-collapsible-toc-header,
.rh-toc-collapse-all,
.rh-collapse-all {
    display: none !important;
}
/* Hide Expand All / Collapse All button */
button[title="Expand All"],
button[title="Collapse All"],
button[aria-label="Expand All"],
button[aria-label="Collapse All"],
a[title="Expand All"],
a[title="Collapse All"],
a[aria-label="Expand All"],
a[aria-label="Collapse All"] {
    display: none !important;
}
/* Move Favorites tab left */
.rh-layout-FAVORITES-tab,
[data-tab="favorites"],
button[title="Favorites"],
a[title="Favorites"] {
    margin-right: 80px !important;
}
/* Position Favorites button above the Favorites panel */
button[title="Favorites"].RH-LAYOUT-TOOLBAR-button-1 {
    position: fixed !important;
    top: 5.2rem !important;
    right: 12.5rem !important;
    z-index: 50 !important;
    margin: 0 !important;
}

/* Hide Index tab */
button#index.RH-LAYOUT-LEFTPANEL-tab {
    display: none !important;
}
/* Align Contents tab with navigation panel */
button#contents.RH-LAYOUT-LEFTPANEL-tab {
    margin-left: 0 !important;
}
/* Position Contents tab flush left */
button#contents.RH-LAYOUT-LEFTPANEL-tab {
    position: relative !important;
    left: -5rem !important;
    margin-left: 0 !important;
}
/* Hide Contents and Favorites headings */
.RH-LAYOUT-LEFTPANEL-tab-list,
.RH-LAYOUT-FAVORITE-header {
    display: none !important;
}

/* Pull the left TOC up after removing the tab row */
.RH-LAYOUT-LEFTPANEL-tree-view {
    height: calc(100% - 1rem) !important;
}

/* Pull the right panel content up slightly */
.RH-LAYOUT-RIGHTPANEL-container {
    top: 5.5rem !important;
    height: calc(100vh - 7.5rem) !important;
}

/* Remove pencil / highlight icon */
.RH-LAYOUT-RIGHTPANEL-highlight-remove-button {
    display: none !important;
}

/* Mini TOC font */
.RH-LAYOUT-MINITOC-item,
.RH-LAYOUT-MINITOC-item:link,
.RH-LAYOUT-MINITOC-item:visited,
.RH-LAYOUT-MINITOC-item:hover,
.RH-LAYOUT-MINITOC-item:active {
    font-family: Ubuntu, sans-serif !important;
    font-weight: 300;
}

/* Lighter-looking code examples */
p[class*="code" i],
p[class*="codesample" i],
p[class*="codenormal" i],
p[class*="Code" i],
p[class*="code" i] span,
p[class*="codesample" i] span,
p[class*="codenormal" i] span,
p[class*="Code" i] span {
  font-family: "Calibri", "Courier New", monospace !important;
  font-weight: 300 !important;
}