/* =====================================================================
   USBC-BOOSTER online user manual – navigation shell + unified styles
   Loaded AFTER custom5.css and idGeneratedStyles.css (overrides only).
   ===================================================================== */

:root {
	--lw-bar: #102938;
	--lw-bar-h: 60px;
	--lw-side-w: 310px;
	--lw-link: #215aae;
	--lw-line: #d3dce2;
	--lw-row-hover: #dde8f0;
	--lw-side-bg: rgba(255, 255, 255, 0.97);
	--lw-zoom: 1.5;          /* content scale = the original 150% desktop zoom */
}

html { scroll-padding-top: calc(var(--lw-bar-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body#UM { margin: 0; min-height: 100vh; font-family: Roboto, Arial, sans-serif; }

a:link, a:visited, a:hover, a:active { text-decoration: none; }

/* ---------------------------------------------------------------- top bar */
.lw-topbar {
	position: sticky; top: 0; z-index: 60;
	display: flex; align-items: center; gap: 6px;
	min-height: 60px; box-sizing: border-box;
	padding: 8px 14px;
	background: #102938; color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.lw-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto; width: 44px; height: 44px; padding: 0; margin: 0;
	border: 0; border-radius: 6px; background: transparent; cursor: pointer;
}
.lw-iconbtn:hover, .lw-iconbtn:focus-visible { background: rgba(255, 255, 255, 0.12); outline: none; }
.lw-iconbtn img { width: 40px; height: 40px; display: block; }
.lw-search { position: relative; flex: 1 1 auto; max-width: 680px; margin: 0 auto 0 14px; }
.lw-search input {
	width: 100%; height: 40px; box-sizing: border-box;
	padding: 0 40px 0 40px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 20px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23102938' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 14px center;
	color: #102938; font: 15px/40px Roboto, Arial, sans-serif;
	-webkit-appearance: none; appearance: none;
}
.lw-search input::placeholder { color: #6b7d88; opacity: 1; }
.lw-search input:focus { outline: 2px solid #5fb4e6; outline-offset: 1px; }
.lw-search input::-webkit-search-cancel-button { cursor: pointer; }
.lw-name { flex: 0 0 auto; margin-left: 14px; font: bold 14px Arial, sans-serif; color: #fff; white-space: nowrap; }

/* search results dropdown */
.lw-results {
	display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70;
	max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; color: #1b1b1b; border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-family: Roboto, Arial, sans-serif;
}
.lw-results.lw-open { display: block; }
.lw-results .lw-res-head { padding: 8px 14px; font-size: 12px; color: #5b6b75; border-bottom: 1px solid #e6ecef; position: sticky; top: 0; background: #fff; }
.lw-results a { display: block; padding: 9px 14px; border-bottom: 1px solid #eef2f4; color: inherit; }
.lw-results a:last-child { border-bottom: 0; }
.lw-results a:hover, .lw-results a.lw-active { background: #eaf2f8; }
.lw-results .lw-res-title { display: block; font-size: 14px; font-weight: bold; color: #102938; }
.lw-results .lw-res-path { display: block; font-size: 11px; color: #6b7d88; margin-bottom: 2px; }
.lw-results .lw-res-snip { display: block; font-size: 13px; line-height: 1.4; color: #333; }
.lw-results mark, mark.lw-hit { background: #ffe066; color: inherit; border-radius: 2px; padding: 0 1px; }
mark.lw-hit.lw-hit-cur { background: #ff9f1a; box-shadow: 0 0 0 2px #ff9f1a; }
.lw-results .lw-res-empty { padding: 14px; font-size: 14px; color: #5b6b75; }

/* in-page hit navigator */
.lw-hitbar {
	position: fixed; right: 16px; bottom: 16px; z-index: 55;
	display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px;
	background: #102938; color: #fff; border-radius: 22px; font: 13px Roboto, Arial, sans-serif;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.lw-hitbar button { width: 32px; height: 32px; border: 0; border-radius: 16px; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.lw-hitbar button:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------------------------------------------------------------- layout */
.lw-layout { display: flex; align-items: flex-start; }
.lw-main { flex: 1 1 auto; min-width: 0; padding: 18px 28px 56px; box-sizing: border-box; }
.lw-page { max-width: 1100px; margin: 0 auto; }

/* ---------------------------------------------------------------- bookmark bar */
.lw-sidebar {
	position: sticky; top: var(--lw-bar-h); flex: 0 0 var(--lw-side-w); width: var(--lw-side-w);
	height: calc(100vh - var(--lw-bar-h)); overflow-y: auto; overscroll-behavior: contain;
	box-sizing: border-box; background: var(--lw-side-bg); border-right: 1px solid var(--lw-line);
	font-family: Roboto, Arial, sans-serif; font-size: 14px;
}
body.lw-side-hidden .lw-sidebar { display: none; }
.lw-side-head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 4px;
	padding: 10px 10px 10px 16px; background: #eef3f6; border-bottom: 1px solid var(--lw-line);
}
.lw-side-head strong { flex: 1; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #102938; }
.lw-side-head button {
	height: 28px; padding: 0 8px; border: 1px solid #b9c7d0; border-radius: 4px; background: #fff;
	color: #102938; font: 12px Roboto, Arial, sans-serif; cursor: pointer;
}
.lw-side-head button:hover { background: #dde8f0; }
.lw-side-head .lw-side-close { display: none; width: 32px; font-size: 18px; line-height: 1; }
.lw-toc, .lw-toc ul { list-style: none; margin: 0; padding: 0; }
.lw-toc { padding: 6px 0 24px; }
.lw-toc ul { display: none; }
.lw-toc li.lw-open > ul { display: block; }
.lw-row { display: flex; align-items: flex-start; }
.lw-tw, .lw-tw-sp { flex: 0 0 26px; width: 26px; height: 30px; }
.lw-tw {
	border: 0; background: transparent; cursor: pointer; padding: 0; color: #4f6470; border-radius: 4px;
}
.lw-tw::before {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-top: -2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-45deg); transition: transform .15s ease;
}
li.lw-open > .lw-row > .lw-tw::before { transform: rotate(45deg); margin-top: -5px; }
.lw-tw:hover { background: #dde8f0; color: #102938; }
.lw-toc a {
	flex: 1 1 auto; display: flex; gap: 6px; min-height: 30px; box-sizing: border-box;
	padding: 6px 10px 6px 2px; color: #1d2b33; line-height: 1.3; border-radius: 4px;
}
.lw-toc a:hover { background: #e7eef3; color: #000; }
.lw-toc .lw-n { flex: 0 0 auto; color: #4f6470; font-variant-numeric: tabular-nums; }
.lw-toc .lw-l1 > .lw-row > a { font-weight: bold; }
.lw-toc .lw-l0 > .lw-row > a { font-weight: bold; color: #102938; }
.lw-toc .lw-l2 > .lw-row { padding-left: 14px; }
.lw-toc .lw-l3 > .lw-row { padding-left: 40px; }
.lw-toc .lw-l3 > .lw-row > a { font-size: 13px; }
.lw-toc li > .lw-row > a.lw-cur { background: #102938; color: #fff; }
.lw-toc li > .lw-row > a.lw-cur .lw-n { color: #cfe0ea; }
.lw-toc a.lw-onpage:not(.lw-cur) { background: #e3edf3; }
.lw-toc .lw-sep { height: 1px; margin: 6px 12px; background: var(--lw-line); }
.lw-backdrop { display: none; }

/* ---------------------------------------------------------------- prev / next */
.lw-pager { display: flex; margin: 0 0 18px; font-family: Roboto, Arial, sans-serif; }
.lw-pager-bottom { justify-content: flex-end; margin: 34px 0 0; }
.lw-pager a {
	display: inline-flex; align-items: center; gap: 12px; max-width: 100%; box-sizing: border-box;
	padding: 10px 16px; border: 1px solid #c3cfd7; border-radius: 8px; background: rgba(255, 255, 255, 0.92);
	color: #102938; box-shadow: 0 1px 3px rgba(16, 41, 56, 0.08);
}
.lw-pager a:hover { border-color: #102938; background: #fff; }
.lw-pager .lw-arrow { font-size: 26px; line-height: 1; color: #102938; }
.lw-pager small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5b6b75; }
.lw-pager b { display: block; font-size: 15px; line-height: 1.3; }
.lw-pager-bottom a { text-align: right; }

/* =====================================================================
   CONTENT – scaled like the original desktop view, then unified
   ===================================================================== */
.lw-content { zoom: var(--lw-zoom); border-width: 0; }

/* -- unified running-text styles (same look wherever the style is used) */
.lw-content p { text-align-last: auto; }
.lw-content p.LW-UM2-Bodytext,
.lw-content p.LW-UM2-Simple-text,
.lw-content p.LW-UM2-Bulleted-list1,
.lw-content p.LW-UM2-Steps,
.lw-content p.LW-UM2-Chapter-description,
.lw-content p.LW-UM2-Subhead-big,
.lw-content p.LW-UM2-Subhead-small,
.lw-content p.LW-UM2-LW2-table_LW-UM2-LW2-cell,
.lw-content p.Table-text-styles_LW-UM2-Table-Cell.ParaOverride-3,
.lw-content p.LW-UM2-Simple-text-center.ParaOverride-3 {
	text-align: left; line-height: 1.4;
	font-family: Roboto, Arial, sans-serif;
}
.lw-content p.LW-UM2-Bodytext { margin: 3px 0 5px 43px; }
.lw-content p.LW-UM2-Subhead-big { margin: 10px 0 3px 28px; }
.lw-content p.LW-UM2-Subhead-small { margin: 6px 0 3px 43px; }
.lw-content p.LW-UM2-Chapter-description { margin: 6px 0 9px 0; }
.lw-content p.LW-UM2-Bulleted-list1 { margin: 0 0 3px 71px; }
.lw-content p.LW-UM2-Steps { margin: 3px 0 4px 77px; }
.lw-content p.LW-UM2-Caption { margin: 4px 0 8px 0; text-align: center; line-height: 1.3; }
.lw-content p.Table-text-styles_LW-UM2-Table-Cell,
.lw-content p.Table-text-styles_LW-UM2-Table-Header,
.lw-content p.LW-UM2-Simple-text-center { line-height: 1.3; font-family: Roboto, Arial, sans-serif; }
/* the two spellings of the highlight / bold character styles look identical */
.lw-content span.LW-UM2-Hightlight,
.lw-content span.LW-UM2-Highlight { font-family: "Archivo Narrow", "Roboto Condensed", Arial, sans-serif; font-size: inherit; font-weight: bold; }
.lw-content span.LW-UM2-BOLD,
.lw-content span.LW-UM2-Bold { font-family: inherit; font-size: inherit; font-weight: bold; }
.lw-content span.LW-UM2-Hyperlink { color: var(--lw-link); }
.lw-content a:hover span.LW-UM2-Hyperlink { text-decoration: underline; }

.lw-content p.lw-left { text-align: left; text-align-last: auto; }
/* headings that wrap (narrow screens) must not be stretched by the source's justify alignment */
.lw-content p.LW-UM2-Heading0,
.lw-content p.LW-UM2-Heading1,
.lw-content p.LW-UM2-Heading2,
.lw-content p.LW-UM2-Heading3 { text-align: left; }

/* -- Heading 1 big chapter number: white number on #102938 */
.lw-content p.LW-UM2-Ligature,
.lw-content p.lw-chapnum { margin: 6px 0 8px; line-height: 1; text-align: left; }
.lw-content p.lw-chapnum a { display: inline-block; }
.lw-content p.lw-cover-title, .lw-content p.lw-cover-subtitle { text-align: center !important; }
.lw-content p.lw-cover-title span { font-weight: bold !important; }
.lw-content p.lw-cover-subtitle span { font-weight: normal !important; font-size: 14px !important; }
.lw-content span.LW-UM2-Ligature {
	display: inline-block; min-width: .72em; padding: .06em .2em .02em; box-sizing: border-box;
	background: #102938; color: #ffffff; font-size: 100px; line-height: 1; text-align: center; border-radius: 3px;
}

/* -- callouts: WARNING / ATTENTION / INFO / DIFFERENCE / DEFINITION / TIPS AND TRICKS */
.lw-content p.LW-UM2-Warning,
.lw-content p.LW-UM2-Attention,
.lw-content p.LW-UM2-Info,
.lw-content p.LW-UM2-Difference,
.lw-content p.LW-UM2-Definition,
.lw-content p.LW-UM2-Tips-and-tricks {
	margin: 6px 0 6px 43px; padding: 5px 8px 5px 9px; text-indent: 0;
	text-align: left; line-height: 1.4; font-weight: normal; border-radius: 0 3px 3px 0;
	font-family: Roboto, Arial, sans-serif; overflow-wrap: break-word;
}
.lw-content p.LW-UM2-Warning > span:first-child,
.lw-content p.LW-UM2-Attention > span:first-child,
.lw-content p.LW-UM2-Info > span:first-child,
.lw-content p.LW-UM2-Difference > span:first-child,
.lw-content p.LW-UM2-Definition > span:first-child,
.lw-content p.LW-UM2-Tips-and-tricks > span:first-child {
	display: inline; width: auto; margin-right: .45em; text-indent: 0;
	white-space: nowrap; font-weight: bold; letter-spacing: .02em;
}
.lw-content p.LW-UM2-Warning       { background: rgba(196, 22, 28, .07); }
.lw-content p.LW-UM2-Attention     { background: rgba(50, 83, 96, .08); }
.lw-content p.LW-UM2-Info          { background: rgba(0, 174, 230, .08); }
.lw-content p.LW-UM2-Difference    { background: rgba(229, 168, 18, .10); }
.lw-content p.LW-UM2-Definition    { background: rgba(39, 189, 190, .09); }
.lw-content p.LW-UM2-Tips-and-tricks { background: rgba(39, 189, 190, .09); }
.lw-content p.LW-UM2-Warning > span:first-child       { color: #c4161c; }
.lw-content p.LW-UM2-Attention > span:first-child     { color: #325360; }
.lw-content p.LW-UM2-Info > span:first-child          { color: #0089b6; }
.lw-content p.LW-UM2-Difference > span:first-child    { color: #a87900; }
.lw-content p.LW-UM2-Definition > span:first-child,
.lw-content p.LW-UM2-Tips-and-tricks > span:first-child { color: #138c8d; }
.lw-content p.LW-UM2-Warning { font-weight: bold; }   /* the warning body text is bold in the source */

/* -- tables: unified position (centred), spacing and row highlight */
.lw-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 10px; }
.lw-content table[class] { margin: 8px auto !important; max-width: 100%; }
.lw-table-wrap > table[class] { margin: 0 auto !important; }
.lw-content td table[class] { margin: 2px auto !important; }
.lw-content table:not(.lw-nohover) > tbody > tr > td,
.lw-content table:not(.lw-nohover) > tbody > tr > th { transition: background-color .12s ease; }
.lw-content table:not(.lw-nohover) > tbody > tr:hover > td,
.lw-content table:not(.lw-nohover) > tbody > tr:hover > th { background-color: var(--lw-row-hover); }
.lw-content table:not(.lw-nohover) > tbody > tr:hover > td td { background-color: transparent; }

/* -- pictures and drawings: centred, never wider than the column */
.lw-content div._idGenObjectLayout-1,
.lw-content div._idGenObjectLayout-2 { text-align: center; }
.lw-content > div._idGenObjectLayout-1,
.lw-content > div._idGenObjectLayout-2 { margin: 8px 0; }
/* picture frames keep their original (percentage) size and are centred in the column */
.lw-content div._idGenObjectLayout-1 > div,
.lw-content div._idGenObjectLayout-2 > div { margin-left: auto; margin-right: auto; max-width: 100%; }
.lw-content div._idGenObjectLayout-1 > div > img._idGenObjectAttribute-9 { display: block; margin: 0 auto; }
.lw-content img { max-width: 100%; height: auto; }
.lw-content td img._idGenObjectAttribute-9 { display: block; margin: 0 auto; }

/* bookmark page tiles */
.lw-content p.LW-UM2-Bookmark-rows,
.lw-content span.LW-UM2-Bookmark { font-family: "Helvetica LT Std Cond Light", "Roboto Condensed", "Arial Narrow", sans-serif; }
.lw-content table.lw-nohover a:hover span.LW-UM2-Bookmark { color: #215aae; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1180px) {
	:root { --lw-zoom: 1.35; --lw-side-w: 280px; }
	.lw-main { padding: 16px 20px 48px; }
}

/* ---------------------------------------------------------------- phone / small tablet: bookmark bar becomes a drawer */
@media (max-width: 899px) {
	:root { --lw-zoom: 1.4; }
	.lw-sidebar {
		position: fixed; top: var(--lw-bar-h); left: 0; bottom: 0; z-index: 58;
		width: min(86vw, 340px); height: auto; transform: translateX(-102%);
		transition: transform .2s ease; box-shadow: 4px 0 18px rgba(0, 0, 0, 0.25);
		font-size: 15px;
	}
	body.lw-side-hidden .lw-sidebar { display: block; }
	body.lw-side-open .lw-sidebar { transform: none; }
	body.lw-side-open .lw-backdrop {
		display: block; position: fixed; inset: var(--lw-bar-h) 0 0 0; z-index: 57; background: rgba(0, 0, 0, 0.45);
	}
	.lw-side-head .lw-side-close { display: inline-block; }
	.lw-toc a, .lw-tw, .lw-tw-sp { min-height: 38px; }
	.lw-toc a { padding-top: 9px; padding-bottom: 9px; }
	.lw-main { padding: 12px 12px 40px; }
}

@media (max-width: 700px) {
	.lw-topbar { flex-wrap: wrap; padding: 6px 8px 8px; gap: 2px; }
	.lw-name { order: 2; flex: 1 1 auto; margin-left: 8px; text-align: right; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
	.lw-search { order: 3; flex: 1 1 100%; max-width: none; margin: 4px 0 0; }
	.lw-search input { font-size: 16px; }   /* 16px avoids iOS auto-zoom */
	.lw-results { position: fixed; left: 8px; right: 8px; top: calc(var(--lw-bar-h) + 4px); max-height: calc(100vh - var(--lw-bar-h) - 16px); }

	/* tighter indents on narrow screens (values are in pre-zoom units) */
	.lw-content p.LW-UM2-Bodytext,
	.lw-content p.LW-UM2-Subhead-small,
	.lw-content p.LQ-QSG-Callout-number { margin-left: 4px; }
	.lw-content p.LW-UM2-Subhead-big { margin-left: 0; }
	.lw-content p.LW-UM2-Bulleted-list1 { margin-left: 18px; }
	.lw-content p.LW-UM2-Steps { margin-left: 38px; }
	.lw-content p.LW-UM2-Warning,
	.lw-content p.LW-UM2-Attention,
	.lw-content p.LW-UM2-Info,
	.lw-content p.LW-UM2-Difference,
	.lw-content p.LW-UM2-Definition,
	.lw-content p.LW-UM2-Tips-and-tricks { margin-left: 0; white-space: normal; }
	.lw-content span.LW-UM2-Ligature { font-size: 56px; }
	.lw-content p.LW-UM2-Bookmark-rows, .lw-content span.LW-UM2-Bookmark { font-size: 12px; }
	.lw-content table[class] { width: 100% !important; }
	.lw-table-wrap, .lw-content > div._idGenObjectLayout-2 { zoom: .85; }   /* wide tables: slightly smaller type, swipe if still wider */
	.lw-content table.lw-narrow { width: auto !important; }
	.lw-pager a { width: 100%; }
	.lw-pager b { font-size: 14px; }
	.lw-hitbar { right: 8px; bottom: 8px; }
}

/* ---------------------------------------------------------------- print */
@media print {
	.lw-topbar, .lw-sidebar, .lw-pager, .lw-hitbar, .lw-backdrop { display: none !important; }
	.lw-main { padding: 0; }
	.lw-content { zoom: 1; }
	body#UM { background: none !important; }
}
