/* Site chrome for the EmbroideryStudio help. Loaded AFTER the RoboHelp HelpStyleMapping.css,
   so it modernises topic typography and styles the new layout. */
:root {
  --red: #d6001c;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e5e8;
  --bg: #ffffff;
  --panel: #f6f7f9;
  --link: #0b63ce;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --top: 56px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--link); font: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px;
  padding: 0 16px; background: #fff; border-bottom: 3px solid var(--red); }
.top .logo { display: flex; flex: none; }
.top .logo img { display: block; height: 32px; width: auto; }
.top .logo + .brand { padding-left: 12px; border-left: 1px solid var(--line); }
.top .brand { color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand strong { color: var(--red); margin-right: 6px; }
.top .lang { margin-left: auto; }
.top select { font: 14px var(--font); padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.navtoggle { display: none; font-size: 22px; background: none; border: 0; cursor: pointer; padding: 4px 8px; }

/* layout */
.wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1400px; margin: 0 auto; }
.toc { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; padding: 16px 12px 32px;
  border-right: 1px solid var(--line); background: var(--panel); font-size: 14px; line-height: 1.4; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul { padding-left: 14px; border-left: 1px solid var(--line); margin: 2px 0 4px 6px; }
.toc li { margin: 0; }
.toc a, .toc span { display: block; padding: 4px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-family: var(--font); }
.toc a:hover { background: #e9ecf0; }
.toc li.book > a { font-weight: 600; }
.toc a[aria-current="page"] { background: #fde7ea; color: var(--red); font-weight: 600; }
.toc .all { margin: 16px 8px 0; }
.toc .all a { display: inline; padding: 0; color: var(--link); }

main { padding: 24px 40px 48px; min-width: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); font-size: 13px; }

/* topic content: tame the RoboHelp/FrameMaker styles */
.topic { max-width: 860px; }
.topic, .topic p, .topic li, .topic td, .topic th, .topic a, .topic span:not(.Webdings):not(.Symbol) { font-family: var(--font) !important; }
.topic p, .topic li, .topic td { font-size: 16px !important; line-height: 1.6; }
.topic p, .topic li { text-align: left !important; word-spacing: normal !important; }
.topic a, .topic span.WebJump, .topic span.glosstext, .topic a.glossterm { font-size: inherit !important; }
.topic a { color: var(--link); }
.topic a:hover { text-decoration: underline; }
.topic h1 { font: 700 30px/1.25 var(--font) !important; letter-spacing: -0.01em !important; word-spacing: normal !important; margin: 0 0 16px !important; color: var(--ink) !important; }
.topic h2 { font: 700 22px/1.3 var(--font) !important; letter-spacing: 0 !important; word-spacing: normal !important; margin: 32px 0 8px !important; color: var(--ink) !important; }
.topic h3 { font: 600 18px/1.35 var(--font) !important; word-spacing: normal !important; margin: 24px 0 6px !important; }
.topic h4 { font: 600 16px/1.4 var(--font) !important; word-spacing: normal !important; margin: 20px 0 4px !important; }
.topic img { max-width: 100%; height: auto; }
.topic table { border-collapse: collapse; margin: 16px 0; }
.topic td, .topic th { padding: 6px 8px; }
.topic p.Gap { margin: 0; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 860px; }
.pager a { display: block; max-width: 48%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 15px; }
.pager a:hover { border-color: var(--link); }
.pager .next { margin-left: auto; text-align: right; }

.fulltoc ul { list-style: none; padding-left: 18px; margin: 4px 0; }
.fulltoc > ul { padding-left: 0; }
.fulltoc summary { cursor: pointer; }
.fulltoc summary a { font-weight: 600; }
.fulltoc li { margin: 4px 0; }

.foot { border-top: 1px solid var(--line); padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.foot a { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .wrap { display: block; }
  .toc { position: fixed; left: 0; top: var(--top); width: min(320px, 85vw); z-index: 15; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 2px 0 12px rgba(0,0,0,.12); }
  body.nav-open .toc { transform: none; }
  main { padding: 16px; }
  .topic h1 { font-size: 24px !important; }
  .topic img[align]:not([src*="PDF-download"]):not(.columnTopContent img), .topic img[style*="float"] { float: none !important; display: block; margin: 8px auto !important; }
  .top .brand { font-size: 15px; }
  .top .logo img { height: 26px; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
}
@media print { .top, .toc, .pager, .foot { display: none; } .wrap { display: block; } }

/* ---------- Home page (RoboHelp "bodyContent" landing layout) ----------
   The original relied on floats from the RoboHelp template and viewport media queries.
   Rebuilt as a grid that responds to the content column's width. */
.topic { container-type: inline-size; display: flow-root; }
.topic:has(.bodyContent) { max-width: 1100px; }
.topic .bodyContent { width: auto; padding: 0; }
.topic .bodyContent div { float: none !important; }
.topic .topBodyContent { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; width: auto; }
.topic .topLeftContent, .topic .topRightContent, .topic .bottomLeftContent, .topic .bottomRightContent,
.topic .bottomLeftTopContent, .topic .bottomLeftBottomContent, .topic .rightColumnContent,
.topic .columnContent, .topic .columnTopContent, .topic .columnBottomContent { width: auto !important; padding-left: 0; padding-right: 0; }
.topic .topRightContent img { float: none !important; display: block; width: 100%; max-width: 420px !important; border-radius: 8px; }
.topic .bottomBodyContent { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; width: auto; margin-top: 32px; }
.topic .bottomRightContent { padding-top: 0 !important; }
.topic .bottomLeftTopContent { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.topic .bottomLeftBottomContent { display: block; margin-top: 32px; }
.topic .bottomLeftBottomContent ul { padding-left: 20px; margin: 8px 0 24px; }
.topic .bottomLeftBottomContent li p { margin: 0 0 8px !important; }
.topic .columnContent { padding: 0 !important; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.topic .columnTopContent { display: flex; align-items: center; gap: 10px; padding: 10px 14px !important; background: var(--panel); border-bottom: 1px solid var(--line); }
.topic .columnTopContent img { float: none !important; width: 24px !important; height: 24px; padding: 0; margin: 0 !important; }
.topic .columnTopContent p, .topic p.tabTitle { margin: 0 !important; font-weight: 600; font-size: 16px !important; color: var(--ink); }
.topic .columnBottomContent { padding: 8px 14px 12px !important; }
.topic .columnBottomContent p { margin: 6px 0 !important; font-size: 15px !important; line-height: 1.4 !important; }
.topic .rightColumnContent { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.topic .greyBG { background: #fff; }
.topic .columnBottomContent img[src*="PDF-download"] { float: right !important; width: 20px !important; height: auto; margin: 0 0 0 8px !important; display: inline; }
.topic .desktopHide { display: none !important; }
.topic .mobileHide { display: block !important; }

@container (max-width: 720px) {
  .topic .topBodyContent, .topic .bottomBodyContent { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .topic .desktopHide { display: block !important; margin-top: 16px; }
  .topic .mobileHide { display: none !important; }
}
.topic .topBodyContent > br, .topic .bottomBodyContent > br, .topic .bottomLeftTopContent > br { display: none; }
/* HelpStyleMapping.css floats .wrap and .bodyContent; undo so the footer stays below the page. */
body > .wrap { float: none !important; width: auto !important; }
.topic .bodyContent { float: none !important; }
main:has(.bodyContent) .pager { max-width: 1100px; }
