/* ==========================================================================
   AV.Park Online Help - custom styling
   Mirrors the color system of the AV.Park web app (see
   AveParkAngularClient/src/styles/theme.scss) so the help matches the app's
   look & feel, including a light/dark switcher driven by [data-theme] on
   <html> (see theme.js). Everything below is additive to default.css,
   which is generated by Help & Manual and should not be edited directly.
   ========================================================================== */

/* --------------------------------------------------------------------
   1) Theme tokens (light default, dark override)
   -------------------------------------------------------------------- */
:root,
[data-theme='light'] {
  color-scheme: light;

  --brand-primary: #006633;

  --color-primary-100: color-mix(in srgb, var(--brand-primary) 16%, white);
  --color-primary-300: color-mix(in srgb, var(--brand-primary) 42%, white);
  --color-primary-500: var(--brand-primary);
  --color-primary-600: color-mix(in srgb, var(--brand-primary) 85%, black);
  --color-primary-700: color-mix(in srgb, var(--brand-primary) 70%, black);

  --color-surface-page: #fafafa;
  --color-surface-muted: #f8f8f8;
  --color-surface-subtle: #f4f4f4;

  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-text-inverse: #ffffff;

  --color-border-subtle: #dee2e6;
  --color-border-strong: #ced4da;

  --color-status-danger: #d9364f;
  --color-status-success: #1f9d55;
  --color-status-info: #0d6efd;
  --color-status-warning: #b8860b;

  --color-shadow: rgba(0, 0, 0, 0.16);

  /* Semantic help-frame tokens */
  --help-header-bg: var(--color-primary-500);
  --help-header-text: var(--color-text-inverse);
  --help-nav-bg: var(--color-surface-muted);
  --help-nav-border: var(--color-border-subtle);
  --help-link-color: var(--color-primary-600);
  --help-link-hover-color: var(--color-primary-700);
  --help-highlight-bg: var(--color-primary-500);
  --help-highlight-text: var(--color-text-inverse);
  --help-code-bg: var(--color-surface-subtle);
  --help-scrollbar-thumb: color-mix(in srgb, var(--brand-primary) 45%, #adb5bd);
  --help-scrollbar-track: var(--color-surface-muted);
  --help-select-scheme: light;
}

[data-theme='dark'] {
  color-scheme: dark;

  --brand-primary: #3bb66b;

  --color-primary-100: color-mix(in srgb, var(--brand-primary) 18%, #0f1318);
  --color-primary-300: color-mix(in srgb, var(--brand-primary) 42%, white);
  --color-primary-500: var(--brand-primary);
  --color-primary-600: color-mix(in srgb, var(--brand-primary) 85%, black);
  --color-primary-700: color-mix(in srgb, var(--brand-primary) 70%, black);

  --color-surface-page: #0f1318;
  --color-surface-muted: #1a2027;
  --color-surface-subtle: #232b34;

  --color-text-primary: #e8edf2;
  --color-text-secondary: #b3bcc8;
  --color-text-inverse: #ffffff;

  --color-border-subtle: #3f4a58;
  --color-border-strong: #5c6673;

  --color-status-danger: #ff7878;
  --color-status-success: #5fd15f;
  --color-status-info: #4d94ff;
  --color-status-warning: #ffce6b;

  --color-shadow: rgba(0, 0, 0, 0.55);

  /* Semantic help-frame tokens */
  --help-header-bg: var(--color-primary-700);
  --help-header-text: var(--color-text-inverse);
  --help-nav-bg: var(--color-surface-muted);
  --help-nav-border: var(--color-border-subtle);
  --help-link-color: color-mix(in srgb, var(--brand-primary) 80%, white);
  --help-link-hover-color: color-mix(in srgb, var(--brand-primary) 55%, white);
  --help-highlight-bg: var(--color-primary-600);
  --help-highlight-text: var(--color-text-inverse);
  --help-code-bg: var(--color-surface-subtle);
  --help-scrollbar-thumb: var(--color-border-strong);
  --help-scrollbar-track: var(--color-surface-muted);
  --help-select-scheme: dark;
}

/* Smooth theme switching, without animating layout-affecting properties */
html {
  background: var(--color-surface-page);
}
body, #idcontent, #hmcontentbox, #hmnavbox, table.idxtable, #idx, .results {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* --------------------------------------------------------------------
   2) Base document text & backgrounds
   -------------------------------------------------------------------- */
body, table, tr, th, td {
  color: var(--color-text-primary);
}
::selection {
  background: var(--color-primary-500);
  color: var(--color-text-inverse);
}
/* Per-topic pages hard-code a white page background in their own inline
   <style> block, which loads after this stylesheet - !important is
   required here to win the theme override. */
html, body {
  background: var(--color-surface-page) !important;
}

/* --------------------------------------------------------------------
   3) Links
   -------------------------------------------------------------------- */
  a { color: var(--help-link-color); text-decoration: none }
  a:visited {color: var(--help-link-color) }
  a:hover {color: var(--help-link-hover-color); text-decoration: underline }
  a.weblink {color: var(--help-link-color); text-decoration: underline }
  a.weblink:visited {color: var(--help-link-color)}
  a.weblink:hover {color: var(--help-link-hover-color) }
  a.popuplink {color: var(--color-status-danger); text-decoration: none}
  a.popuplink:visited {color: var(--color-status-danger)}
  a.popuplink:hover {color: var(--color-status-danger); text-decoration: underline}
  a.filelink {color: var(--color-status-success); text-decoration: none}
  a.filelink:visited {color: var(--color-status-success)}
  a.filelink:hover {color: var(--color-status-success); text-decoration: underline}
  a.inline-toggle {color: var(--color-status-success); text-decoration: none;  font-weight: bold;  font-family: "Times New Roman", serif;     }
  a.inline-toggle:visited {color: var(--color-status-success); }
  a.inline-toggle:hover {text-decoration: underline}

#callout-table a, #overview-table a { color: var(--help-link-color); }
#callout-table a:visited, #overview-table a:visited { color: var(--help-link-color); }
p.help-url a:link, p.help-url a:visited { color: var(--color-text-secondary); }

  .fsmall {
        font-size: 10px;
	font-family: Verdana, Helvetica, sans-serif;
	text-align: center;
	margin: 10px 0px 0px 0px;
	}
  .crumbs {font-size: 8pt; margin-bottom: 3px; margin-top: 0px; color: var(--help-header-text)}
  .crumbs a {text-decoration: underline; color: var(--help-header-text)}
  .crumbs a:visited {text-decoration: underline; color: var(--help-header-text)}
  .crumbs a:hover {color: var(--color-primary-100)}

/* --------------------------------------------------------------------
   4) Header / navigation chrome (index.html frame + per-topic header bar)
   -------------------------------------------------------------------- */
#mainheader {
  background: var(--help-header-bg) !important;
}
/* #navbar sits side-by-side with #idheader (the per-topic breadcrumb bar)
   in the same row of the layout, so it must match that color exactly
   rather than the "tonal step" idea used for header hierarchy elsewhere. */
#navbar {
  background: var(--help-header-bg) !important;
  height: 69px !important;
  box-sizing: border-box;
}
#hmnavframe {
  top: 69px !important;
}
#hmcontentbox {
  background: var(--color-surface-page) !important;
  border-left: 1px solid var(--help-nav-border) !important;
}
#hmnavbox {
  background: var(--help-nav-bg);
}
iframe {
  background: var(--color-surface-page) !important;
}

/* Top bar layout: logo gets breathing room on its own, title/language/theme
   controls become one consistently-spaced cluster pinned to the right,
   instead of the title floating in the middle with a big empty gap. */
#mainheader {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  box-sizing: border-box;
}
#mainheader a.logo {
  margin-right: auto !important;
  display: flex;
  align-items: center;
}
#mainheader a.logo img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  display: block;
}
#mainheader span.title {
  margin: 0 !important;
  float: none;
}
#mainheader .theme-toggle {
  float: none !important;
  margin: 0 !important;
}
/* The language-switch flag link (last, unclassed <a> in the header) gets
   the same rounded hover affordance as the other header controls instead
   of sitting there as a bare, hard-edged image. */
#mainheader > a:last-child {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
#mainheader > a:last-child:hover {
  background: rgba(255, 255, 255, 0.14);
}
#mainheader > a:last-child img {
  height: 20px !important;
  width: auto !important;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Per-topic page title bar - the topic page's own inline <style> sets this
   after this stylesheet loads, so !important is required to override it. */
#idheader {
  background: var(--help-header-bg) !important;
}
/* Fixed height (matching #navbar exactly), rather than relying on the
   page's own JS (normHeaders()) to sync it dynamically. That JS has a
   stale-comparison bug: it only updates #idheader's height when the
   freshly-measured value differs from the *previous* page's navbar
   height, so if a new page's required height coincidentally matches the
   old one, #idheader is left at the template's static 60px default while
   #navbar keeps the old (now-larger) value - producing exactly the
   misalignment reported. Since our breadcrumb is now forced to one line
   (see .crumbs below), the header's content height is effectively
   constant across all topics, so hardcoding it here sidesteps that bug
   entirely instead of trying to out-time it. */
#idheader {
  height: 69px !important;
  box-sizing: border-box;
}
#idheader h1 span, .sync-toc, .sync-toc a {
  color: var(--help-header-text) !important;
}
/* Breadcrumb + heading: more breathing room from the icon column on the
   left, and clearer separation between the breadcrumb line and the title
   below it, instead of both being crammed into a single tight row.
   Deeper topics have longer breadcrumb trails than shallow ones - without
   constraining it to one line, this made the header's rendered height vary
   per page (2-line breadcrumb on deep topics vs 1-line on shallow ones),
   and the left/right header bars are synced dynamically by the page's own
   JS (normHeaders()) based on measured height, which doesn't always catch
   up cleanly on navigation - visible as the right side "shrinking" out of
   alignment with the left icon bar. Keeping the breadcrumb to a single,
   truncated line keeps the header height constant across all topics. */
td.topichead {
  padding: 10px 20px !important;
}
.crumbs {
  display: block;
  margin-bottom: 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
#idheader h1 {
  margin: 0 !important;
}
/* Prev/parent/next icon column: the #idnav <td> spans the full row height
   (matching the taller breadcrumb+heading cell next to it), so a pill
   background directly on it renders as an oversized block rather than a
   tight toolbar - just add consistent right padding here and rely on the
   existing per-icon hover pill for the "toolbar" affordance instead. */
#idnav {
  padding: 4px 20px !important;
}

/* Theme toggle button, shown in the main header (index.html) */
.theme-toggle {
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 18px 12px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--help-header-text);
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}
.theme-toggle:active {
  transform: scale(0.92);
}
.theme-toggle .theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}
.theme-toggle .theme-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
/* Show sun in dark mode (click to go light), moon in light mode (click to go dark) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme='dark'] .theme-toggle .icon-sun { display: inline-block; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

@media only screen and (max-width: 760px) {
  .theme-toggle {
    margin-top: 3px;
  }
}

/* --------------------------------------------------------------------
   4b) Modern header icons
   Replaces the legacy sprite-sheet icons (hm_webhelp_buttons_*.png, with
   their yellow/orange hover swap) with clean inline SVG icons rendered via
   CSS masks, so they simply inherit theme colors and get a soft tinted
   hover "pill" instead of turning orange. Icons render on a transparent
   ::before pseudo-element so the real element can carry its own hover/
   active background without fighting the mask.
   -------------------------------------------------------------------- */
:root {
  --icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3C/svg%3E");
  --icon-index: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10.5V6a2 2 0 0 0-2-2h-4.5a2 2 0 0 0-1.4.6L4 12.7a2 2 0 0 0 0 2.8l4.5 4.5a2 2 0 0 0 2.8 0l8.1-8.1a2 2 0 0 0 .6-1.4Z'/%3E%3Ccircle cx='15.5' cy='8.5' r='1.15' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E");
  --icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 5 8 12 15 19'/%3E%3C/svg%3E");
  --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E");
  --icon-chevron-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 15 12 8 19 15'/%3E%3C/svg%3E");
  --icon-printer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Crect x='4' y='9' width='16' height='7' rx='1.5'/%3E%3Cpath d='M6 16h12v5H6z'/%3E%3C/svg%3E");
  --icon-toggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 8 12 3 17 8'/%3E%3Cpolyline points='7 16 12 21 17 16'/%3E%3C/svg%3E");
}

/* Small icon bar above TOC/Index/Search (hamburger, tag, magnifier) */
#navbar a {
  background-image: none !important;
  background-position: 0 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  margin: 0 6px !important;
  border-radius: 50%;
  background-color: transparent;
  opacity: 1 !important;
  transition: background-color 0.15s ease;
}
#navbar a::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: var(--help-header-text);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
#navbar a.hmbtntoc::before { -webkit-mask-image: var(--icon-menu); mask-image: var(--icon-menu); }
#navbar a.hmbtnindex::before { -webkit-mask-image: var(--icon-index); mask-image: var(--icon-index); }
#navbar a.hmbtnsearch::before { -webkit-mask-image: var(--icon-search); mask-image: var(--icon-search); }
/* The page's own inline <style> block (frame template) defines
   "#navbar a:hover"/"#navbar a.current:hover" using the "background"
   shorthand, which resets background-color to transparent - it loads
   after custom.css, so at equal specificity it would otherwise win and
   silently wipe out the pill/ring below. !important is required to beat it. */
#navbar a:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
}
/* Active section (TOC/Index/Search): a persistent ring, like the theme
   toggle button, so "selected" stays visible and reads differently from
   the plain hover-only pill above. */
#navbar a.current {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
#navbar a.current:hover {
  background-color: rgba(255, 255, 255, 0.24) !important;
}

/* Mobile hamburger menu toggle */
a.mobilemenu {
  background-image: none !important;
  position: relative;
  border-radius: 4px;
}
a.mobilemenu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--help-header-text);
  -webkit-mask-image: var(--icon-menu);
  mask-image: var(--icon-menu);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Per-topic header nav icons: prev / parent chapter / next / print / toggle-all
   Uses the exact same mechanism as the #navbar icons on the left: the hover
   "pill" background lives on the interactive <a> itself (not a descendant),
   so both sides behave identically on hover. */
#idnav span, #idnav a span, #idnav a span:hover {
  background-image: none !important;
}
#idnav span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  margin-left: 4px !important;
  border-radius: 50%;
  background-color: transparent !important;
}
#idnav a {
  display: inline-flex !important;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.15s ease;
}
#idnav a span {
  margin-left: 0 !important;
}
#idnav span::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--help-header-text);
  opacity: 0.45;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
#idnav a span::before {
  opacity: 1;
}
#idnav a:hover {
  background-color: rgba(255, 255, 255, 0.16);
}
#idnav span.hmbtnprev::before   { -webkit-mask-image: var(--icon-chevron-left);  mask-image: var(--icon-chevron-left); }
#idnav span.hmbtnnext::before   { -webkit-mask-image: var(--icon-chevron-right); mask-image: var(--icon-chevron-right); }
#idnav span.hmbtntop::before    { -webkit-mask-image: var(--icon-chevron-up);    mask-image: var(--icon-chevron-up); }
#idnav span.hmbtnprint::before  { -webkit-mask-image: var(--icon-printer);       mask-image: var(--icon-printer); }
#idnav span.hmbtntoggle::before {
  -webkit-mask-image: var(--icon-toggle);
  mask-image: var(--icon-toggle);
  width: 15px;
  height: 15px;
}

/* Subtle separators between header bars instead of a flat, dated block look */
#mainheader {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}
#navbar {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}
#idheader {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------
   5) Table of contents (hmcontent.html loaded in the navigation pane)
   Modern flat tree, modeled after the app's sidebar navigation: no
   folder/page icons, full-width rows, tinted hover state, and a colored
   left accent bar + tint for the current topic.
   -------------------------------------------------------------------- */
#toc {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  padding: 6px 0 !important;
}

#toc ul {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Kill the legacy book/page sprite icons - rows get an inline chevron instead */
#toc li {
  background-image: none !important;
  list-style: none;
}

#toc li[style*="padding-left:20px"] {
  padding-left: 14px !important;
}

/* Every level's link becomes a full-width flex row */
#toc a[class^="heading"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 6px 1px 0;
  padding: 7px 8px 7px 4px;
  color: var(--color-text-primary) !important;
  font-size: 13.5px;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

#toc li.heading1>a[class^="heading"] {
  font-weight: 600;
}

#toc a[class^="heading"]:hover {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

/* Chevron: pointing right when collapsed, down when expanded (H&M toggles
   the child <ul> to display:none when collapsed). Extra left margin here
   (vs. the invisible leaf placeholder below) so the chevron doesn't sit
   right on top of the green left accent bar when this row is also the
   current topic. */
#toc li:has(> ul)>a[class^="heading"]::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

#toc li:has(> ul[style*="display: none"])>a[class^="heading"]::before {
  transform: rotate(-45deg);
}

#toc li:not(:has(> ul))>a[class^="heading"]::before {
  content: "";
  flex: none;
  width: 7px;
  margin-left: 2px;
}

.heading1,
.heading2,
.heading3,
.heading4,
.heading5,
.heading6 {
  color: inherit !important;
}

/* Current topic: tinted row + left accent bar, like the app's active nav item */
#toc a[class^="heading"]:has(> span[class^="hilight"]) {
  background: color-mix(in srgb, var(--brand-primary) 16%, transparent) !important;
  box-shadow: inset 3px 0 0 var(--brand-primary);
  color: var(--color-text-primary) !important;
}

.hilight1,
.hilight2,
.hilight3,
.hilight4,
.hilight5,
.hilight6 {
  color: inherit !important;
  background: transparent !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------
   6) Keyword index (hmkwindex.html)
   Same flat, full-width-row treatment as the TOC tree: rounded hover
   rows and a tinted background + left accent bar for the selected
   keyword, instead of the old solid-grey highlight block.
   -------------------------------------------------------------------- */
#idx {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  padding: 4px 6px !important;
}
.idxsection {
  color: var(--help-link-color) !important;
  font-size: 1.05em !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 18px 4px 6px 4px !important;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--help-nav-border);
}
#idx p.idxkeyword, #idx p.idxkeyword2 {
  margin: 1px 0 !important;
}
#idx a, .idxkeyword, .idxkeyword2, .idxlink {
  color: var(--color-text-primary) !important;
}
#idx p > a {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  text-decoration: none !important;
  font-size: 13.5px;
  transition: background-color 0.12s ease, color 0.12s ease;
}
#idx p > a:hover {
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}
/* Current/selected keyword: tinted row + left accent bar (matches the TOC) */
#idx p.hilite {
  background: transparent !important;
  padding: 0 !important;
  padding-left: 0 !important;
}
#idx p.hilite > a {
  background: color-mix(in srgb, var(--brand-primary) 16%, transparent) !important;
  box-shadow: inset 3px 0 0 var(--brand-primary);
}
#idx p.hilite span {
  color: var(--color-text-primary) !important;
  font-weight: 600;
}
table.idxtable, td.idxtable {
  background: var(--color-surface-subtle) !important;
  border-color: var(--help-nav-border) !important;
  color: var(--color-text-primary);
  box-shadow: 2px 2px 4px var(--color-shadow) !important;
}

/* --------------------------------------------------------------------
   7) Full text search (hmftsearch.html)
   The search form/results markup is generated at runtime by zoom_search.js,
   so everything here targets its fixed "zoom_" and "result_" class names.
   -------------------------------------------------------------------- */

/* Loading indicator shown while the search index/results load - replace the
   old animated GIF with a themed CSS spinner. No !important on display: the
   plain "display: flex" here only needs to beat default.css/UA defaults;
   zoom_search.js hides this element via inline style="display:none" once
   loading finishes, and !important here would defeat that. */
#loadingmsg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}
#loadingmsg img {
  display: none;
}
#loadingmsg::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border: 3px solid var(--help-nav-border);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: help-spin 0.8s linear infinite;
}
#loadingmsg::after {
  content: "Suche läuft…";
}
@keyframes help-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #loadingmsg::before {
    animation: none;
  }
}
#idcontent, body { font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; }

/* Keep ordinary help prose comfortable to read without constraining tables,
   images, or other wide content blocks. */
#innerdiv > h3 {
  max-width: 96ch;
  margin: 0 0 16px !important;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
#innerdiv > h3 > span {
  font-size: inherit;
  line-height: inherit;
}
#innerdiv > p {
  max-width: 70%;
  margin: 0 0 12px !important;
  line-height: 1.55;
}
#innerdiv > p[style*="padding-left"] {
  padding-left: 13px !important;
  margin: 0 0 8px 27px !important;
}
#innerdiv > p[style*="padding-left"] > span:first-child {
  width: 13px !important;
  margin-left: -13px !important;
  margin-right: 0;
}
#innerdiv > p[style*="padding-left"]:not(:has(+ p[style*="padding-left"])) {
  margin-bottom: 20px !important;
}
#innerdiv > p:has(> span[style*="width:35px"]) {
  margin-left: 27px !important;
  padding-left: 13px !important;
  text-indent: 0 !important;
}
#innerdiv > p:has(> span[style*="width:35px"]) > span[style*="width:35px"] {
  display: none !important;
}
#innerdiv > p:has(> span[style*="width:35px"]) > span.f_BodyText {
  display: block;
}
#innerdiv > p[style*="text-indent: -13px"] {
  text-indent: 0 !important;
}
/* #innerdiv > p:has(> a.hmanchor) {
  width: 100% !important;
  max-width: 120ch !important;
  text-align: center !important;   */
}
#innerdiv div:has(> img) {
  width: auto !important;
  max-width: 70% !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#innerdiv > .p_BodyText:has(> div > img) {
  margin-bottom: 24px !important;
}
#innerdiv > .p_BodyText:has(> div > img) + p:has(+ h2),
#innerdiv > .p_BodyText:has(> div > img) + p + h2:has(+ p),
#innerdiv > .p_BodyText:has(> div > img) + p + h2 + p,
#innerdiv > .p_BodyText:has(> div > img) + p + h2 + p + p {
  display: none !important;
}

p.submit {
  color: var(--color-text-primary);
  margin: 4px 0 14px 0 !important;
}

/* Search box + submit button row */
form.zoom_searchform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
input.zoom_searchbox {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--help-nav-border);
  border-radius: 6px;
  background: var(--color-surface-page);
  color: var(--color-text-primary);
  font-size: 14px;
}
input.zoom_searchbox:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 25%, transparent);
}
input.zoom_button, input[type="submit"] {
  flex: none;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: var(--brand-primary);
  color: var(--color-text-inverse);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
input.zoom_button:hover, input[type="submit"]:hover {
  background: var(--color-primary-600);
}

/* Options row: results-per-page, categories, match type */
.zoom_results_per_page, .zoom_categories, .zoom_match, .zoom_metaform {
  display: inline-block;
  color: var(--color-text-primary);
  font-size: 13px;
  margin: 4px 16px 8px 0;
}
/* "Match:" label + its two radio options, stacked instead of wrapping
   awkwardly mid-sentence on narrow panels */
.zoom_match {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.zoom_categories ul { display: inline; }
.zoom_categories li {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
}
.zoom_categories input[type="checkbox"] {
  margin: 0;
}
.zoom_and_label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
  cursor: pointer;
}
.zoom_and_label input[type="radio"] {
  margin: 0;
}
select, input.zoom_metaform_numeric, input.zoom_metaform_money, input.zoom_metaform_text {
  border: 1px solid var(--help-nav-border);
  border-radius: 6px;
  background: var(--color-surface-page);
  color: var(--color-text-primary);
  padding: 3px 6px;
  font-size: 13px;
  accent-color: var(--brand-primary);
  color-scheme: var(--help-select-scheme, light);
}
/* Native <select> dropdown popups are normally rendered by the OS/browser,
   outside the reach of this stylesheet - color-scheme at least makes the
   popup itself follow light/dark. Chromium's "Customizable Select" API
   (appearance: base-select) lets us fully theme the popup there; browsers
   without it simply ignore these declarations and fall back to the
   option:hover/:checked rules below (fully supported in Firefox). */
select {
  appearance: base-select;
}
select::picker(select) {
  background: var(--color-surface-page);
  border: 1px solid var(--help-nav-border);
  border-radius: 6px;
  padding: 4px;
}
select option {
  background: var(--color-surface-page);
  color: var(--color-text-primary);
  border-radius: 4px;
  padding: 6px 10px;
}
select option:checked,
select option:hover,
select option:focus,
select option:focus-visible,
select option:active {
  background: var(--brand-primary) !important;
  color: var(--color-text-inverse) !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Chromium's own default hover affordance for the popup list draws using
   the system "Highlight" color, layered on top of author styles - override
   the system color keywords too so nothing blue can show through. */
select::picker(select) {
  accent-color: var(--brand-primary) !important;
}
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--brand-primary);
  vertical-align: middle;
}

.searchheading {
  color: var(--color-text-primary) !important;
  font-size: 1.1em !important;
  margin: 14px 0 4px 0 !important;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--help-nav-border);
}
.summary, .searchtime { color: var(--color-text-secondary) !important; }
.sorting { color: var(--color-text-secondary); }
.sorting a { color: var(--help-link-color); }

/* Result cards */
div.results { margin-top: 6px; }
.result_block, .result_altblock {
  padding: 10px 0;
  border-bottom: 1px solid var(--help-nav-border);
}
.result_title, a.result_title { color: var(--color-text-primary) !important; }
.result_title a, a.result_title {
  color: var(--help-link-color) !important;
  font-weight: 600;
  text-decoration: none;
}
.result_title a:hover, a.result_title:hover { color: var(--help-link-hover-color) !important; text-decoration: underline; }
.category { color: var(--color-text-secondary) !important; }
.description, .context { color: var(--color-text-secondary) !important; }
.infoline { color: var(--color-text-secondary); font-size: 0.85em; word-break: break-all; }
.result_image img { border-radius: 6px; }

/* Search term highlight - kept distinct (amber) from the brand-green selection accent */
.highlight {
  background: color-mix(in srgb, var(--color-status-warning) 45%, transparent) !important;
  color: var(--color-text-primary) !important;
  border-radius: 3px;
  padding: 0 2px;
}

/* Pagination */
.result_pages a, .result_pagescount { color: var(--color-text-secondary); }
.result_pages a {
  display: inline-block;
  padding: 3px 9px;
  margin: 0 2px;
  border: 1px solid var(--help-nav-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--help-link-color);
}
.result_pages a:hover { background: color-mix(in srgb, var(--brand-primary) 12%, transparent); }

/* Recommended block */
.recommended {
  background: var(--color-surface-subtle) !important;
  border: 1px solid var(--help-nav-border) !important;
  border-radius: 8px;
  padding: 10px 14px !important;
}
.recommended_heading { color: var(--color-text-secondary); }
.recommend_title { color: var(--help-link-color) !important; font-weight: 600; }
.recommend_description { color: var(--color-status-success) !important; }
.recommend_infoline { color: var(--color-text-secondary) !important; }

/* --------------------------------------------------------------------
   8) Content boxes: callouts, code blocks, popups, lightbox
   -------------------------------------------------------------------- */
#hmpopupdiv {
  background-color: var(--color-surface-page) !important;
  color: var(--color-text-primary);
  border-color: var(--help-nav-border) !important;
  box-shadow: 4px 4px 10px var(--color-shadow) !important;
}
#hmlightbox {
  background: var(--color-surface-page) !important;
  color: var(--color-text-secondary) !important;
}
span.f_CodeExample, span.f_T_Code, span.f_T_Entry, span.f_T_Entry10pt {
  background: var(--help-code-bg);
  border-radius: 3px;
}

/* --------------------------------------------------------------------
   8b) Content data tables (exported from Word/H&M editor)
   These topic tables hard-code an inline light-blue Word theme (border,
   header and alternating-row colors, fixed pixel column widths), which
   clashes with the app palette and breaks in dark mode / narrow panes.
   Overriding generically here fixes every such table across all topics.
   -------------------------------------------------------------------- */
#idcontent table {
  width: 100% !important;
  max-width: 120ch !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border: 1px solid var(--help-nav-border) !important;
  margin: 10px 0 !important;
}
#idcontent th, #idcontent td {
  width: auto !important;
  max-width: none !important;
  border: 1px solid var(--help-nav-border) !important;
  background: transparent !important;
  color: var(--color-text-primary);
  padding: 8px 10px !important;
  vertical-align: top;
}
#idcontent thead th, #idcontent tr:first-child th {
  background: var(--color-surface-subtle) !important;
  font-weight: 600;
}
#idcontent tbody tr:nth-child(even) td {
  background: var(--color-surface-muted) !important;
}
#idcontent table p {
  margin: 0 !important;
}

/* Avchecktable without visible boarder */
#idcontent table#avcheck {
    border: none !important;
}

#idcontent table#avcheck th,
#idcontent table#avcheck td {
    border: none !important;
}


/* --------------------------------------------------------------------
   9) Scrollbars (WebKit/Blink + Firefox)
   -------------------------------------------------------------------- */
* {
  scrollbar-color: var(--help-scrollbar-thumb) var(--help-scrollbar-track);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--help-scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background-color: var(--help-scrollbar-thumb);
  border-radius: 6px;
}

/* --------------------------------------------------------------------
   10) Layout tweaks carried over from the original custom.css
   -------------------------------------------------------------------- */
@media screen{
  #idcontent {    
    width: 100%;
    padding: 24px 20px 40px !important;
    box-sizing: border-box;
    position: relative;
   } 
  #innerdiv {
    padding: 0 !important;
   } 
   
    .topichead {
       padding: 5px;
    }
    
    .navlinks {
      font-size: 10pt;
    }
    .navlinks a {
      text-decoration: none;
      color: var(--help-link-color);
    }
    .navlinks a:visited {
      text-decoration: none;
      color: var(--help-link-color);
    }
    .navlinks a:hover {
      text-decoration: underline;
      color: var(--help-link-hover-color);
    }
    
   html.nonscroll { 
      overflow:hidden; 
   } 
   body.nonscroll {    
      overflow:hidden; 
      height:100%; 
   } 
   div.nonscroll { 
      overflow-x:auto;
      overflow-y:scroll; 
   } 
}








