div.wy-nav-content {
  max-width: 1080px;
}

.rst-content div.wy-table-responsive table.docutils th > p,
.rst-content div.wy-table-responsive table.docutils td > p {
  line-height: 1.5rem;
  font-size: 0.9rem;
}

.rst-content div.wy-table-responsive table.docutils th,
.rst-content div.wy-table-responsive table.docutils td {
  padding: 0.5rem 0.6rem;
}

div.wy-table-responsive td:first-child ~ * {
  white-space: normal;
}

.rst-content .sensor-suite-table td:nth-child(2) {
  min-width: 15em;
}

.highlight-target {
  color: #e74c3c !important;
  font-weight: bold;
}

.wy-nav-side .wy-menu-vertical > ul:first-child + ul {
  padding-top: 1.0em;
  margin-top: 1.0em;
  border-top: 4px ridge #2980b9;
}

.rst-content figcaption > p {
  text-align: center;
}

div.wy-menu-vertical > ul > li.toctree-l1 > a:hover::first-letter {
  color: inherit;
}
div.wy-menu-vertical > ul > li.toctree-l1 > a::first-letter {
  color: rgba(0,0,0,0);
}
div.wy-menu-vertical > ul > li.toctree-l1.current > a::first-letter {
  color: inherit;
}
div.wy-menu-vertical > ul + ul > li.toctree-l1 > a::before {
  content: "» ";
  font-family: "FontAwesome";
  color: rgba(0,0,0,0);
}
div.wy-menu-vertical > ul + ul > li.toctree-l1 > a:hover::before {
  color: inherit;
}
footer > div[role="contentinfo"] > p {
  font-size: 0.7rem;
  line-height: 1.1rem;
  margin-bottom: 0;
}
footer > div[role="contentinfo"].beian a {
  color: inherit;
  margin-right: 0.7rem;
}
footer > div[role="contentinfo"].beian a:visted {
  color: inherit;
}
footer > div[role="contentinfo"].beian img {
  user-select: none;
  width: 16px;
  margin: 0 0.2rem 0.2rem 0;
}

/* Phone-viewport fix (2026-09-09): wide message-definition <pre> blocks
   pushed the whole page past the viewport (voice.html overflowed 161px at
   393px). Give every highlight container its own horizontal scroll so the
   page body never scrolls. Playwright-verified dual-viewport. */
div.highlight,
div.highlight pre {
  overflow-x: auto;
  max-width: 100%;
}

/* 2026-09-09 phone-viewport follow-up: the true document-width offenders
   are wide interface-definition tables (display:table, intrinsic width).
   Give table blocks their own horizontal scroll. */
.section table.docutils {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* 2026-09-09 phone-viewport final fix: long unbreakable inline code
   (topic paths like /aima/hds/post_proc/signal) inside admonitions pushed
   the page to 554px at 393px viewport. Allow inline literals to wrap. */
.docutils.literal.notranslate {
  overflow-wrap: anywhere;
}
