/* Vitreo Help (mvitec.com/Products/Vitreo/Help): SOLIDWORKS-help layout in the site style. Text sizes after the SOLIDWORKS
   online help (tree 14.5px, body 15px, h1 28px, h2 20px) with more line spacing; the hero is the site hero + search box */
:root {
    --vh-navy: #133466;
    --vh-blue: #006bb7;
    --vh-accent: #007DC5;
    --vh-ink: #212529;
    --vh-ink-2: #4a5560;
    --vh-ink-3: #6c757d;
    --vh-line: #dde3ea;
    --vh-line-2: #c9d2dc;
    --vh-tint: #eef5fb;
    --vh-amber: #8a5a00;
    --vh-amber-bg: #fff6e0;
    --vh-amber-line: #e0a72e;
}

/* Search in the hero */
.vh-search { position: relative; max-width: 640px; margin: 0 auto; text-align: left; }
.vh-search input { width: 100%; height: 46px; border-radius: 6px; border: 0; padding: 0 16px 0 44px; font-size: 16px; color: var(--vh-ink); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.vh-search input:focus { outline: 2px solid #8cc4ec; outline-offset: 1px; }
.vh-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--vh-ink-3); pointer-events: none; }
.vh-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--vh-line-2); border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.2); z-index: 30; max-height: 440px; overflow: auto; }
.vh-results a { display: block; padding: 9px 14px; border-bottom: 1px solid var(--vh-line); color: var(--vh-ink); text-decoration: none; line-height: 1.4; }
.vh-results a:hover, .vh-results a.vh-on { background: var(--vh-tint); }
.vh-results small { display: block; color: var(--vh-ink-3); font-size: 12.5px; margin-top: 2px; }
.vh-results .vh-none { padding: 12px 14px; color: var(--vh-ink-3); }

/* Tree + topic */
.vh-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.vh-toc { border-right: 1px solid var(--vh-line); position: sticky; top: 84px; align-self: start; height: calc(100vh - 84px); display: flex; flex-direction: column; background: #fff; }
.vh-toc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 10px 2px; border-bottom: 1px solid var(--vh-line); font-size: 15px; font-weight: 700; color: var(--vh-navy); }
.vh-toc-tools { display: flex; gap: 2px; }
.vh-toc-tools button { background: none; border: 1px solid transparent; border-radius: 4px; padding: 2px 6px; cursor: pointer; color: var(--vh-ink-2); font-size: 12px; font-weight: 500; }
.vh-toc-tools button:hover { border-color: var(--vh-line-2); }
.vh-toc-body { overflow: auto; padding: 8px 6px 40px 0; flex: 1; overscroll-behavior: contain; }
.vh-toc ul { list-style: none; margin: 0; padding: 0; }
.vh-toc li ul { padding-left: 16px; display: none; }
.vh-toc li.vh-open > ul { display: block; }
.vh-tn { display: flex; align-items: flex-start; gap: 2px; font-size: 14.5px; line-height: 1.45; }
.vh-tw { width: 18px; flex: 0 0 18px; height: 21px; display: grid; place-items: center; color: var(--vh-ink-3); border: 0; background: none; padding: 0; cursor: pointer; }
.vh-tw svg { width: 10px; height: 10px; transition: transform .12s; }
li.vh-open > .vh-tn > .vh-tw svg { transform: rotate(90deg); }
.vh-tw.vh-leaf { cursor: default; }
.vh-tw.vh-leaf::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #9aa5b1; }
.vh-tn a { color: var(--vh-ink); padding: 1px 4px; border-radius: 3px; flex: 1; text-decoration: none; }
.vh-tn a:hover { background: var(--vh-tint); }
.vh-tn a.vh-cur { color: var(--vh-blue); font-weight: 600; }
.vh-toc-btn { display: none; }

.vh-topic { min-width: 0; padding: 18px 0 80px 40px; font-size: 15px; line-height: 1.7; color: var(--vh-ink); }
.vh-crumb { font-size: 13px; color: var(--vh-ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vh-crumb svg { width: 14px; height: 14px; color: var(--vh-accent); vertical-align: -2px; }
.vh-crumb a { color: var(--vh-blue); text-decoration: none; }
.vh-crumb a:hover { text-decoration: underline; }
.vh-topic h1 { font-size: 28px; line-height: 1.3; font-weight: 700; margin: 10px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--vh-line); text-wrap: balance; }
.vh-topic h2 { font-size: 20px; font-weight: 600; color: var(--vh-navy); margin: 34px 0 10px; text-wrap: balance; }
.vh-topic h3 { font-size: 16px; font-weight: 600; margin: 24px 0 6px; }
.vh-topic p, .vh-topic li { max-width: 72ch; }
.vh-topic p { margin: 0 0 14px; }
.vh-topic ol, .vh-topic ul { margin: 0 0 16px; padding-left: 24px; }
.vh-topic li { margin-bottom: 6px; }
.vh-topic li > ul, .vh-topic li > ol { margin: 6px 0 0; }
.vh-topic a { color: var(--vh-blue); }
.vh-topic p.vh-lead { font-size: 16.5px; color: var(--vh-ink-2); }
.vh-topic strong { font-weight: 600; }
.vh-topic kbd { font: 600 12.5px 'Segoe UI', 'Inter', sans-serif; color: var(--vh-ink); background: #f1f3f5; border: 1px solid var(--vh-line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; }
.vh-topic code { color: var(--vh-ink); background: #f1f3f5; border-radius: 3px; padding: 1px 5px; font-size: 13.5px; }
.vh-body table, .vh-children { border-collapse: collapse; width: 100%; max-width: 900px; margin: 6px 0 20px; font-size: 14.5px; }
.vh-body th, .vh-body td, .vh-children td { border-top: 1px solid var(--vh-line); padding: 10px 12px; vertical-align: top; text-align: left; line-height: 1.55; }
.vh-body th { font-size: 13px; font-weight: 600; color: var(--vh-ink-3); border-top: 0; }
.vh-body tr:last-child td, .vh-children tr:last-child td { border-bottom: 1px solid var(--vh-line); }
.vh-children td:first-child { width: 34%; font-weight: 500; }
.vh-table-wrap { overflow-x: auto; }
.vh-body td, .vh-children td { overflow-wrap: break-word; }
.vh-note { background: var(--vh-tint); border-left: 3px solid var(--vh-accent); padding: 10px 14px; margin: 18px 0; max-width: 72ch; border-radius: 0 4px 4px 0; }
.vh-note p { margin: 0 0 6px; }
.vh-note p:last-child { margin-bottom: 0; }
.vh-note > p:first-child > strong:first-child { display: block; margin-bottom: 2px; }
.vh-note-important { background: var(--vh-amber-bg); border-left-color: var(--vh-amber-line); }
.vh-figure { margin: 18px 0 24px; }
.vh-figure img { max-width: 100%; height: auto; box-shadow: 0 0 0 1px var(--vh-line-2); }
.vh-figure figcaption { font-size: 13px; color: var(--vh-ink-3); margin-top: 8px; max-width: 72ch; line-height: 1.5; }
.vh-diagram { overflow-x: auto; max-width: 100%; }
.vh-missing { border: 1px dashed var(--vh-line-2); border-radius: 6px; padding: 18px; color: var(--vh-ink-3); font-size: 13.5px; background: #f6f8fa; max-width: 640px; }
.vh-next { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--vh-line); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.vh-next a { color: var(--vh-blue); }
.vh-problems { margin-top: 30px; font-size: 13px; color: var(--vh-amber); }

/* Diagrams (VitreoHelp\diagrams\*.html): Vitreo dark theme colors from Theme.Dark.xaml */
.vh-dg-dark { background: #1A1A1A; color: #E0E0E0; padding: 22px; border-radius: 6px; width: fit-content; max-width: 100%; box-sizing: border-box; font: 12.5px 'Segoe UI', 'Inter', sans-serif; line-height: 1.4; }
.vh-dg-row { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.vh-dg-card { position: relative; width: 150px; }
.vh-dg-card img { width: 150px; height: auto; display: block; box-shadow: 0 0 0 1px #B3B3B3; }
.vh-dg-clicked img { box-shadow: 0 0 0 2px #0078D4; }
.vh-dg-check { position: absolute; left: 4px; top: 7px; width: 13px; height: 13px; background: #5B9BD5; border: 1px solid #5B9BD5; display: grid; place-items: center; }
.vh-dg-check svg { width: 10px; height: 10px; }
.vh-dg-cap { color: #AAAAAA; margin-top: 6px; text-align: center; }
.vh-dg-menu { background: #484848; border: 1px solid #5a5a5a; box-shadow: 0 6px 18px rgba(0,0,0,.5); font-size: 12px; min-width: 260px; padding: 4px 0; }
.vh-dg-mr { display: flex; align-items: center; height: 26px; padding-right: 16px; white-space: nowrap; }
.vh-dg-mi { width: 28px; display: grid; place-items: center; }
.vh-dg-hl { background: #1A3A5C; color: #4DA3FF; }
.vh-dg-sep { height: 1px; background: #5a5a5a; margin: 4px 0 4px 28px; }

.vh-dg-cols { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.vh-dg-col { min-width: 0; }
.vh-dg-h { color: #AAAAAA; font-weight: 600; font-size: 12px; margin: 0 0 8px; letter-spacing: .02em; }
.vh-dg-arrow { align-self: center; color: #AAAAAA; font-size: 22px; padding: 0 2px; }
.vh-dg-arrow small { display: block; font-size: 11px; text-align: center; }
.vh-dg-tree, .vh-dg-tree ul { list-style: none; margin: 0; padding: 0; }
.vh-dg-tree ul { padding-left: 18px; border-left: 1px solid #444; margin-left: 9px; }
.vh-dg-tree li { display: block; padding: 2px 0; white-space: nowrap; }
.vh-dg-tree img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.vh-dg-tree .q { color: #888888; margin-left: 6px; }
.vh-dg-grid { border-collapse: collapse; background: #242424; font-size: 12px; }
.vh-dg-grid th { background: #1E1E1E; color: #AAAAAA; font-weight: 600; text-align: left; padding: 4px 10px; border: 1px solid #444; white-space: nowrap; }
.vh-dg-grid td { padding: 4px 10px; border: 1px solid #444; color: #E0E0E0; white-space: nowrap; }
.vh-dg-grid img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.vh-dg-grid td.n { text-align: right; font-variant-numeric: tabular-nums; }
.vh-dg-added td { background: rgba(46,160,67,.19); }
.vh-dg-removed td { background: rgba(248,81,73,.19); }
.vh-dg-changed td { background: rgba(56,139,253,.16); }
.vh-dg-changed td.box { background: rgba(56,139,253,.44); }
.vh-dg-mark-added { color: #2EA043; font-weight: 600; }
.vh-dg-mark-removed { color: #F85149; font-weight: 600; }
.vh-dg-mark-changed { color: #388BFD; font-weight: 600; }
.vh-dg-box { background: #242424; border: 1px solid #444; border-radius: 4px; padding: 10px 12px; }
.vh-dg-note { color: #AAAAAA; font-size: 11.5px; margin: 8px 0 0; max-width: 260px; white-space: normal; }
.vh-dg-folder { display: inline-block; width: 14px; height: 11px; background: #D6BE21; border-radius: 1px 3px 1px 1px; margin-right: 6px; vertical-align: -1px; }
.vh-dg-ask { max-width: 300px; }
.vh-dg-branch { margin-top: 6px; }
.vh-dg-branch b { margin-right: 6px; }
.vh-dg-cb { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid #888; margin-right: 6px; vertical-align: -2px; }
.vh-dg-cb.on { background: #5B9BD5; border-color: #5B9BD5; }
.vh-dg-cb svg { width: 10px; height: 10px; }
.vh-dg-proj { display: inline-block; width: 13px; height: 11px; background: #0078D4; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.vh-dg-page { display: inline-block; width: 10px; height: 13px; border: 1.5px solid #0078D4; border-radius: 1px; margin-right: 7px; vertical-align: -2px; }
.vh-dg-browser { width: 260px; border: 1px solid #555; border-radius: 6px; overflow: hidden; background: #fff; }
.vh-dg-browser-bar { background: #e9ecef; padding: 5px 8px; display: flex; align-items: center; gap: 4px; color: #555; font-size: 11px; }
.vh-dg-browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c4c8cc; }
.vh-dg-browser-bar span { margin-left: 8px; }
.vh-dg-browser-body { display: flex; min-height: 120px; }
.vh-dg-browser-side { width: 92px; background: #f3f3f3; color: #333; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.vh-dg-browser-side span { padding-left: 8px; }
.vh-dg-browser-cards { flex: 1; display: flex; gap: 6px; padding: 8px; align-items: flex-start; }
.vh-dg-browser-cards img { width: 70px; box-shadow: 0 0 0 1px #B3B3B3; }
.vh-dg-blank { width: 70px; height: 53px; box-shadow: 0 0 0 1px #B3B3B3; background: #fff; }
.vh-dg-cyl { width: 120px; text-align: center; color: #E0E0E0; }
.vh-dg-cyl i { display: block; height: 62px; border: 1.5px solid #0078D4; border-radius: 50% / 14px; background: #1A3A5C; margin-bottom: 6px; position: relative; }
.vh-dg-cyl i::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; height: 26px; border: 1.5px solid #0078D4; border-radius: 50%; background: #1E4A73; }
.vh-dg-step { background: #242424; border: 1px solid #444; border-radius: 4px; padding: 10px 12px; max-width: 220px; white-space: normal; }
.vh-dg-step b { display: block; color: #4DA3FF; margin-bottom: 4px; }
.vh-dg-dim { opacity: .45; }
.vh-dg-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.vh-dg-tabgroup { background: #1E1E1E; border: 1px solid #383838; border-radius: 4px; padding: 6px 10px 8px; text-align: center; }
.vh-dg-tabgroup span { display: block; color: #0078D4; font-weight: 600; font-size: 13px; }
.vh-dg-tabgroup small { color: #AAAAAA; }
.vh-dg-crumb { font-size: 13px; color: #AAAAAA; }
.vh-dg-crumb a { color: #4DA3FF; text-decoration: none; }
.vh-dg-crumb b { color: #E0E0E0; text-decoration: underline; }
.vh-dg-crumb u { color: #E0E0E0; }
.vh-dg-pc { background: #242424; border: 1px solid #444; border-radius: 6px; padding: 10px 14px; width: 170px; text-align: center; white-space: normal; }
.vh-dg-pc b { display: block; margin-bottom: 4px; }
.vh-dg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.vh-dg-strike { color: #F85149; text-decoration: line-through; }
.vh-dg-up { display: inline-block; vertical-align: -2px; margin-left: 6px; }
.vh-dg-code { background: #242424; border: 1px solid #444; padding: 10px 12px; font: 12px Consolas, 'Cascadia Mono', monospace; white-space: pre; color: #E0E0E0; margin: 0; overflow-x: auto; }
.vh-dg-code .k { color: #66AAFF; }
.vh-dg-code .t { color: #E0A72E; }
.vh-dg-code .m { background: #1A3A5C; color: #4DA3FF; }

@media (max-width: 991.98px) {
    .vh-wrap { grid-template-columns: minmax(0, 1fr); }
    .vh-toc { position: fixed; inset: 0 auto 0 0; top: 0; height: 100%; width: min(320px, 88vw); z-index: 1040; transform: translateX(-102%); transition: transform .2s; box-shadow: 4px 0 24px rgba(0,0,0,.25); padding-left: 10px; }
    .vh-toc.vh-show { transform: none; }
    .vh-topic { padding: 14px 0 60px; }
    .vh-toc-btn { display: inline-flex; margin: 0 0 8px; font-size: 14px; font-weight: 600; background: var(--vh-tint); border: 1px solid #b9dbf2; color: var(--vh-blue); border-radius: 5px; padding: 4px 12px; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .vh-toc, .vh-tw svg { transition: none; } }
