/* AMD brand overrides for sphinx_rtd_theme.

   This file collects the small set of color tweaks that take the
   stock sphinx_rtd_theme chrome and align it with AMD brand
   styling. It is intentionally narrow: we stay on live upstream
   sphinx_rtd_theme and apply only the overrides we need, rather
   than vendoring a forked theme.

   Loaded after custom.css in conf.py so these rules win where
   they overlap. */

/* Chrome-frame backgrounds: match amd.com.

   The sphinx_rtd_theme ships three different background colors for
   the three chrome surfaces that frame the content: the top-left
   search / boards header (.wy-side-nav-search) is bright blue
   (#2980b9), the sidebar ToC (.wy-nav-side) is near-black
   (#343131), and the breadcrumb bar (.breadcrumb-bar in
   breadcrumb_bar.css) was originally dark slate (#2c3e50). Three
   different darks framing the content read as accidental rather
   than intentional.

   Pin the search / boards header (and its rounded logo plate, and
   the mobile-collapsed top bar / its logo plate) to pure black
   (#000), which is the background-color amd.com itself uses on its
   primary navbar (header.common-header .navbar). The breadcrumb
   bar is pinned to the same color in breadcrumb_bar.css. The
   result is one continuous black frame around the content area
   that visually anchors the docs to the parent brand.

   The translucent-white overlays inside the search header (board
   selector widget, search input border, etc.) keep enough contrast
   against pure black, and the AMD-red header logo pops against it
   just as well as it did against the previous theme blue. */
.wy-side-nav-search,
.wy-side-nav-search img,
.wy-nav-side,
.wy-nav-top,
.wy-nav-top img {
    background-color: #000;
}

/* Sidebar section captions: AMD teal.

   sphinx_rtd_theme renders ``.. rubric::``-style caption text in
   the left navigation (the labels that group toctree entries) in
   a pale blue (#55a5d9) that was chosen to contrast against the
   theme's default near-black sidebar. Against our pure-black
   chrome it still works, but the legal-reviewed AMD palette uses
   teal (#007C97) for the same accent role, so adopt it here to
   keep the sidebar consistent with the rest of the brand. */
.wy-menu-vertical header,
.wy-menu-vertical p.caption {
    color: #007C97;
}
