/*
 * Findy design for the Findy Developers documentation (A9).
 * Layer on top of sphinx_rtd_theme 3.1.0: only colours, fonts and the
 * header/footer chrome change; the theme's layout and behaviour stay.
 *
 * Tokens: claude/21 design tokens v1 (the same values as the findyiot.com
 * WordPress theme). #FF7300 is used only as a surface with #15191D text.
 * Light by default; dark through prefers-color-scheme.
 * Fonts: the WordPress theme's own files on findyiot.com (no external hosts).
 */

/* 1 · Fonts (same files as the findyiot WordPress theme) ---------------- */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/wp-content/themes/findyiot/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2 · Tokens (claude/21 v1, as in the WordPress theme) -------------------- */

:root {
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --color-bg: #FFFFFF; --color-surface: #F3F5F6; --color-surface-2: #F3F5F6; --color-tint: #FFF1E5;
  --color-ink: #15191D; --color-body: #3C4853; --color-muted: #5B6670;
  --color-line: #D9DFE3; --color-border-strong: #75818C;
  --color-brand: #FF7300; --color-brand-hover: #E96600; --color-on-brand: #15191D;
  --color-link: #9C3F00; --color-link-hover: #6B2B00; --color-focus: #9C3F00;
  --color-warn-bg: #FDE0DE; --color-warn-ink: #8C1D18; --color-note-bg: #FFF1D6; --color-note-ink: #7A4A00;
  --color-code-bg: #F3F5F6;
  --color-codeblock-bg: #FFFFFF;
  --color-mark: #FFE2C7;
  --radius-control: 8px; --radius-card: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111315; --color-surface: #181B1E; --color-surface-2: #202428; --color-tint: #2A1E14;
    --color-ink: #ECEEF0; --color-body: #BCC1C7; --color-muted: #8E959C;
    --color-line: #2C3136; --color-border-strong: #6B737B;
    --color-link: #FF9A57; --color-link-hover: #FFB27F; --color-focus: #FF9A57;
    --color-warn-bg: #3D1A19; --color-warn-ink: #F4A9A4; --color-note-bg: #3B3011; --color-note-ink: #F5D77A;
    --color-code-bg: #181B1E;
    --color-codeblock-bg: #181B1E;
    --color-mark: #5A3410;
    color-scheme: dark;
  }
}

/* 3 · Base: fonts, colours, links, focus ------------------------------------ */

body,
.btn,
input, textarea, select, button,
input[type="text"], input[type="search"], input[type="submit"], input[type="button"],
.wy-menu-vertical,
.rst-versions,
.wy-breadcrumbs,
footer {
  font-family: var(--font-sans);
}
h1, h2, h3, h4, h5, h6, legend,
.rst-content .toctree-wrapper > p.caption,
.rst-content .sidebar .sidebar-title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
code, kbd, pre, samp, tt,
.rst-content code, .rst-content tt, .rst-content kbd, .rst-content pre, .rst-content samp,
.rst-content pre.literal-block,
.rst-content div[class^="highlight"] pre,
.rst-content .linenodiv pre,
html.writer-html5 .rst-content dl:not(.docutils) .sig-name,
html.writer-html5 .rst-content dl:not(.docutils) .sig-prename,
html.writer-html5 .rst-content dl:not(.docutils) .descname,
html.writer-html5 .rst-content dl:not(.docutils) .descclassname,
html.writer-html5 .rst-content dl:not(.docutils) dt,
.sig {
  font-family: var(--font-mono);
}

body,
.wy-body-for-nav,
.wy-nav-content-wrap,
.wy-nav-content {
  background: var(--color-bg);
  color: var(--color-body);
}
.wy-nav-content { max-width: 960px; }

a, a:visited,
.rst-content a, .rst-content a:visited { color: var(--color-link); }
a:hover, .rst-content a:hover { color: var(--color-link-hover); }
.rst-content p a, .rst-content li a, .rst-content dd a, .rst-content td a,
footer .findy-legal-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.rst-content a.headerlink, .rst-content .toctree-wrapper li a,
.rst-content a.reference.internal code, .rst-content a .pre { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

hr, .rst-content hr { border-top-color: var(--color-line); }
::selection { background: var(--color-mark); color: var(--color-ink); }

/* 4 · Sidebar: logo header, search, navigation ------------------------------ */

.wy-nav-side {
  background: var(--color-surface);
  border-right: 1px solid var(--color-line);
}
.wy-side-nav-search {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  padding: 20px 16px 16px;
  text-align: left;
  color: var(--color-ink);
}
.wy-side-nav-search > a.findy-logo,
.wy-nav-top a.findy-logo {
  display: inline-block;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: none;
}
.wy-side-nav-search img,
.wy-side-nav-search > a.findy-logo img {
  width: 94px;
  height: 40px;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.wy-nav-top img,
.wy-nav-top a.findy-logo img {
  width: 80px;
  height: 34px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.wy-side-nav-search > a.findy-doctitle {
  display: block;
  margin: 12px 0 14px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
  background: none;
}
.wy-side-nav-search > a.findy-doctitle:hover { color: var(--color-link); }
.wy-side-nav-search input[type="text"] {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-bg);
  color: var(--color-ink);
  box-shadow: none;
  padding: 8px 12px;
  font-size: 15px;
}
.wy-side-nav-search input[type="text"]::placeholder { color: var(--color-muted); opacity: 1; }
.wy-side-nav-search input[type="text"]:focus { border-color: var(--color-focus); }

.wy-menu-vertical { width: 300px; }
.wy-menu-vertical p.caption,
.wy-menu-vertical header {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 16px;
  padding: 4px 16px;
  height: auto;
  white-space: normal;
}
.wy-menu-vertical a,
.wy-menu-vertical a:visited {
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.45;
}
.wy-menu-vertical a:hover,
.wy-menu-vertical li.current a:hover,
.wy-menu-vertical li.toctree-l2.current > a:hover,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:hover {
  background: var(--color-surface-2);
  color: var(--color-ink);
}
@media (prefers-color-scheme: light) {
  .wy-menu-vertical a:hover,
  .wy-menu-vertical li.current a:hover,
  .wy-menu-vertical li.toctree-l2.current > a:hover,
  .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:hover { background: #E8ECEE; }
}
.wy-menu-vertical li.current { background: transparent; }
.wy-menu-vertical li.current a,
.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
.wy-menu-vertical li.toctree-l3.current > a,
.wy-menu-vertical li.toctree-l3.current li.toctree-l4 > a {
  background: transparent;
  color: var(--color-body);
  border: 0;
}
.wy-menu-vertical li.current > a,
.wy-menu-vertical li.on a,
.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l3.current > a,
.wy-menu-vertical li.toctree-l4.current > a {
  background: var(--color-tint);
  color: var(--color-ink);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--color-brand);
}
.wy-menu-vertical li.current > a:hover,
.wy-menu-vertical li.on a:hover { background: var(--color-tint); }
.wy-menu-vertical li.toctree-l1.current > a { border-top: 0; border-bottom: 0; }
.wy-menu-vertical li button.toctree-expand {
  width: 24px;
  height: 24px;
  line-height: 24px;
  margin: -3px 2px 0 -26px;
  text-align: center;
  border-radius: 4px;
}
.wy-menu-vertical li button.toctree-expand,
.wy-menu-vertical li.current > a button.toctree-expand,
.wy-menu-vertical li.on a button.toctree-expand,
.wy-menu-vertical li.toctree-l2 button.toctree-expand,
.wy-menu-vertical li.toctree-l3 button.toctree-expand { color: var(--color-muted); }
.wy-menu-vertical li a:hover button.toctree-expand,
.wy-menu-vertical li.current > a:hover button.toctree-expand,
.wy-menu-vertical li.on a:hover button.toctree-expand,
.wy-menu-vertical a:active button.toctree-expand { color: var(--color-ink); }
.wy-menu-vertical code, .wy-menu-vertical .literal { color: inherit; background: none; border: 0; font-size: 13px; }

/* Mobile top bar */
.wy-nav-top {
  background: var(--color-bg);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-align: left;
  line-height: 1.2;
}
@media screen and (max-width: 768px) {
  .wy-nav-top { display: flex; }
  /* The off-canvas menu is out of the tab order until it is opened. */
  .wy-nav-side:not(.shift) { visibility: hidden; }
}
.wy-nav-top button.findy-menu {
  appearance: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-ink);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  flex: none;
}
.wy-nav-top a.findy-doctitle {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
}
.wy-nav-content-wrap.shift { background: var(--color-bg); }

/* Link back to findyiot.com (claude/50 WP2): visible text link, same tab. */
.wy-side-nav-search > a.findy-back,
.wy-nav-top a.findy-back {
  display: inline-block;
  color: var(--color-link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wy-side-nav-search > a.findy-back { vertical-align: middle; margin: 0 0 0 16px; }
.wy-side-nav-search > a.findy-logo { vertical-align: middle; }
.wy-nav-top a.findy-doctitle { flex: 1 1 auto; min-width: 0; }
.wy-nav-top a.findy-back { flex: none; margin-left: auto; }
.wy-side-nav-search > a.findy-back:hover,
.wy-nav-top a.findy-back:hover { color: var(--color-link-hover); }

/* Links to other hosts open in a new tab (findy-newtab.js): inline SVG icon, no font glyph. */
a.findy-newtab { position: relative; } /* keeps the hidden text inside the link (scrolling tables) */
.findy-newtab-icon { display: inline-block; width: .8em; height: .8em; margin-left: .2em; vertical-align: -.05em; }
.findy-sr {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; white-space: nowrap;
}

/* 5 · Content: headings, text, breadcrumbs ---------------------------------- */

.rst-content h1 { font-size: 32px; line-height: 1.2; font-weight: 800; }
.rst-content h2 { font-size: 24px; line-height: 1.25; }
.rst-content h3 { font-size: 19px; line-height: 1.3; }
.rst-content h4, .rst-content h5, .rst-content h6 { font-size: 16px; }
.rst-content p, .rst-content li, .rst-content dd { line-height: 1.65; }
.rst-content .headerlink, .rst-content a.headerlink { color: var(--color-muted); }

.wy-breadcrumbs li, .wy-breadcrumbs a { font-size: 14px; }
.wy-breadcrumbs-aside a { color: var(--color-link); }

/* 6 · Code ------------------------------------------------------------------- */

.rst-content code.literal,
.rst-content tt.literal,
.rst-content code,
.rst-content tt {
  color: var(--color-ink);
  background: var(--color-code-bg);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 85%;
  padding: 1px 5px;
}
.rst-content a code.literal, .rst-content a tt.literal,
.rst-content a code, .rst-content a tt { color: var(--color-link); }
.rst-content code.xref, .rst-content tt.xref,
a .rst-content code, a .rst-content tt { font-weight: 600; color: var(--color-ink); }
.rst-content a code.xref, .rst-content a tt.xref { color: var(--color-link); }
.rst-content div[class^="highlight"],
.rst-content pre.literal-block {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  background: var(--color-codeblock-bg);
  color: var(--color-ink);
}
.rst-content div[class^="highlight"] pre,
.rst-content pre.literal-block { font-size: 13.5px; line-height: 1.55; }
.highlight { background: var(--color-codeblock-bg); }
.rst-content div[class^="highlight"] div[class^="highlight"] { border: 0; }

/* Dark code colours: Pygments "github-dark" rules, generated with
   pygments.formatters.HtmlFormatter(style="github-dark"); light keeps the
   theme's own pygments.css. */
@media (prefers-color-scheme: dark) {
  .highlight { color: #E6EDF3; }
  .highlight .hll { background-color: #2B3036; }
  .highlight .c { color: #8B949E; font-style: italic }
  .highlight .err { color: #F85149 }
  .highlight .esc { color: #E6EDF3 }
  .highlight .g { color: #E6EDF3 }
  .highlight .k { color: #FF7B72 }
  .highlight .l { color: #A5D6FF }
  .highlight .n { color: #E6EDF3 }
  .highlight .o { color: #FF7B72; font-weight: bold }
  .highlight .x { color: #E6EDF3 }
  .highlight .p { color: #E6EDF3 }
  .highlight .ch { color: #8B949E; font-style: italic }
  .highlight .cm { color: #8B949E; font-style: italic }
  .highlight .cp { color: #8B949E; font-weight: bold; font-style: italic }
  .highlight .cpf { color: #8B949E; font-style: italic }
  .highlight .c1 { color: #8B949E; font-style: italic }
  .highlight .cs { color: #8B949E; font-weight: bold; font-style: italic }
  .highlight .gd { color: #FFA198; background-color: #490202 }
  .highlight .ge { color: #E6EDF3; font-style: italic }
  .highlight .ges { color: #E6EDF3; font-weight: bold; font-style: italic }
  .highlight .gr { color: #FFA198 }
  .highlight .gh { color: #79C0FF; font-weight: bold }
  .highlight .gi { color: #56D364; background-color: #0F5323 }
  .highlight .go { color: #8B949E }
  .highlight .gp { color: #8B949E }
  .highlight .gs { color: #E6EDF3; font-weight: bold }
  .highlight .gu { color: #79C0FF }
  .highlight .gt { color: #FF7B72 }
  .highlight .g-Underline { color: #E6EDF3; text-decoration: underline }
  .highlight .kc { color: #79C0FF }
  .highlight .kd { color: #FF7B72 }
  .highlight .kn { color: #FF7B72 }
  .highlight .kp { color: #79C0FF }
  .highlight .kr { color: #FF7B72 }
  .highlight .kt { color: #FF7B72 }
  .highlight .ld { color: #79C0FF }
  .highlight .m { color: #A5D6FF }
  .highlight .s { color: #A5D6FF }
  .highlight .na { color: #E6EDF3 }
  .highlight .nb { color: #E6EDF3 }
  .highlight .nc { color: #F0883E; font-weight: bold }
  .highlight .no { color: #79C0FF; font-weight: bold }
  .highlight .nd { color: #D2A8FF; font-weight: bold }
  .highlight .ni { color: #FFA657 }
  .highlight .ne { color: #F0883E; font-weight: bold }
  .highlight .nf { color: #D2A8FF; font-weight: bold }
  .highlight .nl { color: #79C0FF; font-weight: bold }
  .highlight .nn { color: #FF7B72 }
  .highlight .nx { color: #E6EDF3 }
  .highlight .py { color: #79C0FF }
  .highlight .nt { color: #7EE787 }
  .highlight .nv { color: #79C0FF }
  .highlight .ow { color: #FF7B72; font-weight: bold }
  .highlight .pm { color: #E6EDF3 }
  .highlight .w { color: #6E7681 }
  .highlight .mb { color: #A5D6FF }
  .highlight .mf { color: #A5D6FF }
  .highlight .mh { color: #A5D6FF }
  .highlight .mi { color: #A5D6FF }
  .highlight .mo { color: #A5D6FF }
  .highlight .sa { color: #79C0FF }
  .highlight .sb { color: #A5D6FF }
  .highlight .sc { color: #A5D6FF }
  .highlight .dl { color: #79C0FF }
  .highlight .sd { color: #A5D6FF }
  .highlight .s2 { color: #A5D6FF }
  .highlight .se { color: #79C0FF }
  .highlight .sh { color: #79C0FF }
  .highlight .si { color: #A5D6FF }
  .highlight .sx { color: #A5D6FF }
  .highlight .sr { color: #79C0FF }
  .highlight .s1 { color: #A5D6FF }
  .highlight .ss { color: #A5D6FF }
  .highlight .bp { color: #E6EDF3 }
  .highlight .fm { color: #D2A8FF; font-weight: bold }
  .highlight .vc { color: #79C0FF }
  .highlight .vg { color: #79C0FF }
  .highlight .vi { color: #79C0FF }
  .highlight .vm { color: #79C0FF }
  .highlight .il { color: #A5D6FF }
}

/* 7 · API signatures (autodoc) ---------------------------------------------- */

html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt {
  background: var(--color-surface);
  color: var(--color-ink);
  border-top: 3px solid var(--color-brand);
  border-radius: 0 0 4px 4px;
}
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt {
  background: var(--color-surface);
  color: var(--color-ink);
  border-top: 0;
  border-left: 3px solid var(--color-border-strong);
  border-radius: 0;
}
.rst-content .sig-name, .rst-content .descname,
html.writer-html5 .rst-content dl:not(.docutils) .sig-name,
html.writer-html5 .rst-content dl:not(.docutils) .descname { color: var(--color-ink); }
.rst-content .sig-prename, .rst-content .descclassname,
html.writer-html5 .rst-content dl:not(.docutils) .sig-prename,
html.writer-html5 .rst-content dl:not(.docutils) .descclassname,
.rst-content .sig-paren, .rst-content em.property,
html.writer-html5 .rst-content dl:not(.docutils) .property { color: var(--color-body); }
.rst-content .viewcode-link, .rst-content .viewcode-back { color: var(--color-link); }
.rst-content dl dt .headerlink { color: var(--color-muted); }
html.writer-html5 .rst-content dl.field-list > dt { color: var(--color-ink); }

/* Long identifiers and field lists wrap instead of widening the page. */
.rst-content p, .rst-content li, .rst-content dd, .rst-content dt { overflow-wrap: anywhere; }
html.writer-html5 .rst-content dl.field-list > dd { min-width: 0; }
@media screen and (max-width: 768px) {
  html.writer-html5 .rst-content dl.field-list { grid-template-columns: 1fr; }
  html.writer-html5 .rst-content dl.field-list > dd { margin-left: 0; }
}

html.writer-html4 .rst-content dl:not(.docutils) .descclassname,
html.writer-html4 .rst-content dl:not(.docutils) .descname,
html.writer-html4 .rst-content dl:not(.docutils) .sig-name,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-prename,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .optional {
  color: var(--color-ink);
  background: transparent;
}

/* 8 · Tables ----------------------------------------------------------------- */

.wy-table-responsive table td, .wy-table-responsive table th,
.rst-content table.docutils td, .rst-content table.docutils th,
.rst-content table.field-list td, .rst-content table.field-list th,
.wy-table-bordered-all td, .wy-table-bordered-all th,
.rst-content table.docutils, .wy-table-bordered-all {
  border-color: var(--color-line);
  color: var(--color-body);
}
.rst-content table.docutils thead th, .wy-table thead th,
.rst-content table.docutils thead, .rst-content table.field-list thead { color: var(--color-ink); background: var(--color-surface); }
.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,
.wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td { background-color: var(--color-surface); }
.rst-content table.docutils:not(.field-list) tr:nth-child(2n) td { background-color: var(--color-bg); }
.wy-table-responsive table td, .wy-table-responsive table th { white-space: normal; }

/* 9 · Admonitions ------------------------------------------------------------ */

.rst-content .admonition, .rst-content .note, .rst-content .hint, .rst-content .tip,
.rst-content .important, .rst-content .seealso, .rst-content .admonition-todo,
.wy-alert, .wy-alert.wy-alert-info {
  background: var(--color-surface);
  color: var(--color-body);
  border-left: 4px solid var(--color-border-strong);
  border-radius: 4px;
}
.rst-content .admonition .admonition-title, .rst-content .note .admonition-title,
.rst-content .hint .admonition-title, .rst-content .tip .admonition-title,
.rst-content .important .admonition-title, .rst-content .seealso .admonition-title,
.rst-content .admonition-todo .admonition-title,
.wy-alert .wy-alert-title, .wy-alert.wy-alert-info .wy-alert-title {
  background: transparent;
  color: var(--color-ink);
  font-weight: 700;
}
.rst-content .note { background: var(--color-note-bg); border-left-color: var(--color-note-ink); }
.rst-content .note .admonition-title { color: var(--color-note-ink); }
.rst-content .warning, .rst-content .attention, .rst-content .caution,
.rst-content .danger, .rst-content .error, .wy-alert.wy-alert-warning, .wy-alert.wy-alert-danger {
  background: var(--color-warn-bg);
  color: var(--color-warn-ink);
  border-left: 4px solid var(--color-warn-ink);
  border-radius: 4px;
}
.rst-content .warning .admonition-title, .rst-content .attention .admonition-title,
.rst-content .caution .admonition-title, .rst-content .danger .admonition-title,
.rst-content .error .admonition-title,
.wy-alert.wy-alert-warning .wy-alert-title, .wy-alert.wy-alert-danger .wy-alert-title {
  background: transparent;
  color: var(--color-warn-ink);
  font-weight: 700;
}
.rst-content .warning code, .rst-content .danger code, .rst-content .error code { color: var(--color-ink); }

/* 10 · Buttons: Findy primary style (#FF7300 surface, #15191D text) ---------- */

.btn, .btn-neutral, .btn.btn-neutral, .btn-neutral:visited {
  background: var(--color-brand) !important;
  color: var(--color-on-brand) !important;
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
}
.btn:hover, .btn-neutral:hover { background: var(--color-brand-hover) !important; color: var(--color-on-brand) !important; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* 11 · Search results ------------------------------------------------------- */

#search-results h2 { color: var(--color-ink); }
#search-results .search-summary, .rst-content .search-summary { color: var(--color-body); }
ul.search li, #search-results ul.search li, #search-results .search li { border-color: var(--color-line); }
ul.search li p.context, #search-results .context { color: var(--color-body); }
span.highlighted, .rst-content .highlighted { background: var(--color-mark); color: var(--color-ink); box-shadow: none; }
.wy-form input[type="text"], .rst-content input[type="text"], input[type="text"] {
  background: var(--color-bg);
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}
input[type="submit"], .rst-content input[type="submit"] {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border: 0;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 8px 16px;
}

/* 12 · Footer --------------------------------------------------------------- */

footer, .rst-content footer { color: var(--color-muted); font-size: 14px; }
footer hr { border-top-color: var(--color-line); }
footer .findy-legal { margin: 0 0 8px; color: var(--color-muted); }
footer .findy-legal-links { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer .findy-legal-links li { margin: 0; list-style: none; }
footer .findy-legal-links a { color: var(--color-link); }

/* 13 · Dark-mode details ------------------------------------------------------ */

@media (prefers-color-scheme: dark) {
  .wy-nav-side { background: var(--color-surface); }
  .wy-menu-vertical li.current > a,
  .wy-menu-vertical li.on a,
  .wy-menu-vertical li.toctree-l2.current > a,
  .wy-menu-vertical li.toctree-l3.current > a,
  .wy-menu-vertical li.toctree-l4.current > a { background: var(--color-tint); color: var(--color-ink); }
  .rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,
  .wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td { background-color: var(--color-surface); }
  .wy-nav-content-wrap.shift { box-shadow: none; }
  img { opacity: .95; }
}
