html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  color: #1f2a37;
  background: #f2f4f7;
}
.layout {
  min-height: 100%;
}
.sidebar {
  border-right: 1px solid #d7dde6;
  background: #ffffff;
  padding: 0.55rem 0.6rem 0.8rem;
  overflow: auto;
  position: fixed;
  left: 0;
  top: 0;
  width: 275px;
  height: 100%;
  box-sizing: border-box;
}
.brand-row {
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.brand {
  float: left;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 0;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hmbtnpdf {
  display: inline-block;
  float: right;
  /* sized to the brand title's line height */
  width: 20px;
  height: 20px;
  background: url('pdf_icon.png') center center no-repeat;
  background-size: contain;
  opacity: 0.85;
}
.hmbtnpdf:hover {
  opacity: 1;
}
.search-row {
  position: relative;
  margin-bottom: 0.45rem;
}
.search-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dde6;
  border-radius: 6px;
  padding: 0.34rem 0.45rem;
  font-size: 0.85rem;
  margin: 0;
}
/* Brand-blue focus ring, the same in every engine (IE11 has none by default). */
.search-row input:focus {
  outline: none;
  border-color: #2b78a8;
  box-shadow: 0 0 0 3px rgba(15, 123, 166, 0.25);
}
.js .search-row input { padding-right: 1.7rem; }
/* Own clear button (JS only) instead of the engines' native ones, which
   only some of them have (IE11's is hidden so there aren't two). */
#search-input::-ms-clear { display: none; }
.search-clear { display: none; }
.js .search-row.has-value .search-clear {
  display: block;
  position: absolute;
  right: 5px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #9aa5b1;
  cursor: pointer;
}
.js .search-row.has-value .search-clear:hover { background: #5b6777; }
.search-clear:before,
.search-clear:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 2px;
  height: 8px;
  background: #ffffff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.search-clear:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#search-results { display: none; }
#search-results ul,
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list { padding-left: 0; }
.toc-list .toc-list { padding-left: 0.62rem; }
.toc-list li {
  position: relative;
  margin: 0.08rem 0;
  padding-left: 14px;
}
/* Collapsible branches (see render_toc_html). Only active with JS. */
.toc-toggle { display: none; }
.js .toc-toggle {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.js .toc-toggle:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-right: 1.5px solid #5b6777;
  border-bottom: 1.5px solid #5b6777;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.js .toc-list li.open > .toc-toggle:after {
  margin-top: -5px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.js .toc-list li.has-children > .toc-list { display: none; }
.js .toc-list li.has-children.open > .toc-list { display: block; }
.toc-group {
  display: block;
  padding: 0.2rem 0.28rem;
  color: #223041;
  font-size: 0.8rem;
  line-height: 1.18;
}
.js .toc-group { cursor: pointer; }
.toc-list a,
#search-results a {
  display: block;
  padding: 0.2rem 0.28rem;
  border-radius: 6px;
  color: #223041;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.18;
}
.toc-list a:hover,
#search-results a:hover { background: #f2f6fa; }
.toc-list a.active,
#search-results a.active {
  background: #e8f2f8;
  color: #2b78a8;
  font-weight: 600;
}
.main {
  margin-left: 275px;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}
.content-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.content-wrap img { max-width: 100%; height: auto; }
/* Window screenshots (role=shadow) are captured without the macOS shadow; draw
   one that follows their alpha (rounded corners), matching the PDF theme's
   image_shadow_* look. */
.content-wrap .imageblock.shadow img { filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.3)); }
/* Brand-blue topic title, matching the PDF theme. In these per-topic pages
   the H1 is the topic title (blue); H2+ are the topic's inner sections /
   run-in labels, which correspond to the dark run-in labels in the PDF. */
.content-wrap h1 { color: #286791; }
.content-wrap h2, .content-wrap h3, .content-wrap h4, .content-wrap h5, .content-wrap h6 { color: #3a3d44; }
/* Brand-blue links, matching the PDF link colour. */
.content-wrap a { color: #2b78a8; }
.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.65rem 0;
  font-size: 0.95em;
}
.content-wrap th,
.content-wrap td {
  border: 1px solid #d7dde6;
  padding: 0.18rem 0.34rem;
  vertical-align: top;
  line-height: 1.28;
}
.content-wrap table th p,
.content-wrap table td p,
.content-wrap table th .paragraph,
.content-wrap table td .paragraph {
  margin: 0;
}
.content-wrap th {
  background: #f6f8fb;
  font-weight: 600;
}
.content-wrap .admonitionblock.note {
  margin: 0.75rem 0;
  border: 1px solid #ecdfc2;
  border-left: 4px solid #b3801f;
  background: #faf3e6;
  border-radius: 4px;
  overflow: hidden;
}
.content-wrap .admonitionblock.note table {
  margin: 0;
  border: 0;
  width: 100%;
}
.content-wrap .admonitionblock.note td {
  border: 0;
  padding: 0.45rem 0.55rem;
  vertical-align: baseline;
}
.content-wrap .admonitionblock.note td.icon {
  width: 52px;
  vertical-align: middle;
  text-align: center;
  /* Info-circle glyph matching the PDF note icon (gold fas-info-circle). */
  background: #faf3e6 url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2720%27%20height%3D%2720%27%20viewBox%3D%270%200%2020%2020%27%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2710%27%20r%3D%279%27%20fill%3D%27%23b3801f%27%2F%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%275.9%27%20r%3D%271.35%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20x%3D%278.75%27%20y%3D%278.6%27%20width%3D%272.5%27%20height%3D%276.1%27%20rx%3D%271.05%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E") no-repeat center;
}
.content-wrap .admonitionblock.note td.icon .title {
  /* Hide the textual "NOTE" label; the glyph above replaces it. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.content-wrap .admonitionblock.note td.content {
  background: #faf3e6;
  color: #3a2c17;
  font-size: 0.87rem;
}
.content-wrap .admonitionblock.note td.content .paragraph,
.content-wrap .admonitionblock.note td.content p {
  margin: 0;
}
.breadcrumb {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #5b6777;
  margin: 0 0 0.3rem;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline; }
.breadcrumb li + li:before {
  content: "\203A";
  margin: 0 0.4rem;
  color: #9aa5b1;
}
.breadcrumb a {
  color: #2b78a8;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb + #header h1 { margin-top: 0.2em; }
/* Back/Forward through the viewer's history (JS only, in the app). Floated
   right, so it shares the line with the breadcrumb. Once that place scrolls
   out of view, the script docks the bar to the window's top edge (.docked);
   the outer div keeps its size, so nothing below moves. */
.history-nav { display: none; }
.history-nav-on .history-nav {
  display: block;
  float: right;
  width: 55px;
  height: 22px;
  margin: 0 0 0.3rem 0.6rem;
}
.history-nav-bar {
  display: block;
  white-space: nowrap;
  font-size: 0;
}
.history-nav.docked .history-nav-bar {
  position: fixed;
  top: 8px;
  z-index: 5; /* below the narrow layout's off-canvas sidebar */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.history-nav button {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 28px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #d7dde6;
  background: #ffffff;
  vertical-align: top;
  cursor: pointer;
}
.history-nav .history-back { border-radius: 6px 0 0 6px; }
.history-nav .history-forward { border-radius: 0 6px 6px 0; margin-left: -1px; }
.history-nav button:hover { background: #f2f6fa; }
.history-nav button[disabled] { background: #ffffff; cursor: default; }
/* chevrons, drawn like the TOC toggles */
.history-nav button:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -4px 0 0 -2px;
  border-left: 1.5px solid #223041;
  border-bottom: 1.5px solid #223041;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.history-nav .history-forward:after {
  margin-left: -6px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}
.history-nav button[disabled]:after { border-color: #c3cad3; }
.topic-nav {
  text-align: center;
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px solid #d7dde6;
}
.topic-link {
  color: #2b78a8;
  text-decoration: none;
  display: inline-block;
  margin: 0 0.7rem;
}
.topic-link.disabled { color: #5b6777; }
.page-footer {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: #8b9098;
}
.page-footer a {
  color: inherit;
}
.search-empty { color: #5b6777; font-size: 0.88rem; padding: 0.2rem 0.3rem; }
#search-results li { margin: 0 0 0.15rem; }
#search-results .sr-title { display: block; font-weight: 600; }
#search-results .sr-section { display: block; color: #2b78a8; margin-top: 0.08rem; }
#search-results .sr-snippet {
  display: block;
  margin-top: 0.1rem;
  color: #5b6777;
  font-size: 0.72rem;
  line-height: 1.3;
}
#search-results mark,
.content-wrap mark.search-hit {
  background: #fde68a;
  color: inherit;
  padding: 0;
  border-radius: 2px;
}
/* ---- Inline UI macros: button / keyboard key / value label ----
   Mirrors the PDF theme (pdf-theme.yml) so btn:, kbd: and backtick
   values read the same in HTML and PDF, and stay visually distinct:
     btn:   filled, rounded sans-serif chip \002014 a platform-neutral push button
     kbd:   monospace keycap with a raised bottom edge
     value: bold sans "ink" label, no box                                   */
.content-wrap b.button {
  display: inline-block;
  font-weight: 600;
  font-size: 0.86em;
  line-height: 1.5;
  padding: 0.14em 0.75em;
  margin: 0 0.05em;
  border: 1px solid #a3aec0;
  border-bottom-color: #8d99ad;
  border-radius: 6px;
  background: linear-gradient(#ffffff, #dde3ea);
  color: #1f2937;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 1.5px rgba(15, 23, 42, 0.16);
  white-space: nowrap;
}
.content-wrap .keyseq { white-space: nowrap; }
.content-wrap kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8em;
  line-height: 1;
  padding: 0.12em 0.45em 0.16em;
  border: 1px solid #cfd4da;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #f3f4f6;
  color: #20242b;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
/* Backtick value labels: bold sans ink, no box (matches PDF codespan). */
.content-wrap code {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  color: #20242b;
}
@media (max-width: 980px) {
  .sidebar { width: 230px; }
  .main { margin-left: 230px; }
  .main { padding: 0.55rem 0.7rem; }
}
/* Narrow-window controls, only used below 640 px with JS. */
.narrow-bar,
.sidebar-backdrop,
.sidebar-close { display: none; }
@media (max-width: 640px) {
  /* Without JS: single column, sidebar below the topic (DOM order). */
  .sidebar {
    position: static;
    height: auto;
    width: auto;
    border-right: none;
    border-top: 1px solid #d7dde6;
  }
  .main { margin-left: 0; }
  .main { padding: 0.75rem; }
  /* With JS: the sidebar is an off-canvas panel opened from the narrow bar. */
  .js .narrow-bar { display: block; margin-bottom: 0.5rem; }
  .js .toc-open {
    font: inherit;
    font-size: 0.85rem;
    color: #223041;
    background: #ffffff;
    border: 1px solid #d7dde6;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
  }
  .js .toc-open:hover { background: #f2f6fa; }
  .toc-open-icon {
    display: inline-block;
    width: 13px;
    height: 2px;
    margin: 0 0.45rem 0 0;
    vertical-align: middle;
    background: #223041;
    box-shadow: 0 -4px 0 #223041, 0 4px 0 #223041;
  }
  .js .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 85%;
    max-width: 300px;
    height: 100%;
    border-top: none;
    border-right: 1px solid #d7dde6;
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.25);
    visibility: hidden;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
    -webkit-transition: -webkit-transform 0.2s ease, visibility 0s linear 0.2s;
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .js.toc-open .sidebar {
    visibility: visible;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
  }
  .js.toc-open .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.35);
  }
  .js .sidebar-close {
    display: block;
    position: relative;
    float: right;
    width: 20px;
    height: 20px;
    margin: 0 0 0 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .js .sidebar-close:before,
  .js .sidebar-close:after {
    content: "";
    position: absolute;
    left: 9px;
    top: 3px;
    width: 2px;
    height: 14px;
    background: #5b6777;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .js .sidebar-close:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
}
