/* Threedy Customer Portal design system mapped onto Shibuya.
   Production values (they deliberately differ from the brandbook):
   canvas #ebecef, panel #ffffff, hairline #dfe1e6, navy/ink #0d1731,
   mint #51fdc0 (fill/mark only, never text on light), accent-deep #0a7458
   (all accented text). No shadow on in-flow surfaces, no weight 500. */
@import url('./fonts/nunito-sans/NunitoSans.css');

:root {
  --cp-canvas: #ebecef;
  --cp-panel: #ffffff;
  --cp-border: #dfe1e6;
  --cp-navy: #0d1731;
  --cp-navy-soft: #141d38;
  --cp-navy-border: #243049;
  --cp-ink: #0d1731;
  --cp-ink-muted: #5d6473;
  --cp-ink-faint: #646b7a;
  --cp-on-navy: #ffffff;
  --cp-on-navy-muted: #aab3c9;
  --cp-accent: #51fdc0;
  --cp-accent-hover: #25b07f;
  --cp-accent-deep: #0a7458;
  --cp-link: #1f5fa8;
  --cp-active-bg: #effbf6;
  --cp-gray-50: #f5f5f5;
  --cp-gray-100: #ebecef;
  --cp-disabled-bg: #f4f5f7;
  --cp-disabled-fg: #646b7a;
  --cp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --cp-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --cp-t-hover: 120ms;
  --cp-t-state: 180ms;
  --cp-t-panel: 280ms;

  --sy-f-text: "Nunito Sans", system-ui, sans-serif;
  --sy-f-heading: "Nunito Sans", system-ui, sans-serif;
  --sy-f-mono: ui-monospace, SFMono-Regular, monospace;
  --sy-s-navbar-height: 64px;
}

/* ---------- Light: Shibuya + yue variables ---------- */
html.light, :root:not(.dark) {
  --sy-c-text: var(--cp-ink);
  --sy-c-heading: var(--cp-ink);
  --sy-c-bold: var(--cp-ink);
  --sy-c-light: var(--cp-ink-muted);
  --sy-c-link: var(--cp-accent-deep);
  --sy-c-link-hover: var(--cp-accent-deep);
  --sy-c-background: var(--cp-canvas);
  --sy-c-background-contrast: var(--cp-panel);
  --sy-c-surface: var(--cp-gray-50);
  --sy-c-border: var(--cp-border);
  --sy-c-divider: var(--cp-border);
  --sy-c-banner-bg: var(--cp-navy);
  --sy-c-banner: var(--cp-accent);
  --sy-c-foot-background: var(--cp-navy);
  --sy-c-foot-text: var(--cp-on-navy-muted);
  --sy-c-foot-divider: var(--cp-navy-border);
  --accent-9: var(--cp-accent-deep);
  --accent-11: var(--cp-accent-deep);
  --accent-12: var(--cp-ink);

  --yue-c-link-1: var(--cp-accent-deep);
  --yue-c-link-2: var(--cp-accent-deep);
  --yue-c-link-border: var(--cp-accent-deep);
  --yue-c-caption: var(--cp-ink-faint);
  --yue-c-code-text: var(--cp-ink);
  --yue-c-code-background: var(--cp-disabled-bg);
  --yue-c-hr: var(--cp-border);
  --yue-c-th-border: var(--cp-border);
  --yue-c-td-border: var(--cp-border);
  --yue-c-table-border: var(--cp-border);
  --yue-c-th-background: var(--cp-gray-50);
  --yue-c-row-background: transparent;
  --yue-c-ol-marker: var(--cp-ink-muted);
  --yue-c-ul-marker: var(--cp-ink-muted);
  --yue-c-quote-border: var(--cp-border);
}

/* ---------- Dark: neutral greys, white text, mint allowed as text ---------- */
html.dark {
  --cp-canvas: #161618;
  --cp-panel: #1e1e21;
  --cp-border: #2f3036;
  --cp-ink: #ffffff;
  --cp-ink-muted: #b4b8c2;
  --cp-ink-faint: #a3a8b3;
  --cp-gray-50: #26272b;
  --cp-gray-100: #2f3036; /* pressed nav item; without it the light value showed in dark mode */
  --cp-active-bg: rgba(81, 253, 192, .12);
  --cp-accent-deep: #51fdc0;
  --cp-link: #8cb8ec;
  --cp-disabled-bg: #26272b;
  --cp-disabled-fg: #a3a8b3;

  --sy-c-text: #ffffff;
  --sy-c-heading: #ffffff;
  --sy-c-bold: #ffffff;
  --sy-c-light: var(--cp-ink-muted);
  --sy-c-link: var(--cp-accent);
  --sy-c-link-hover: var(--cp-accent);
  --sy-c-background: var(--cp-canvas);
  --sy-c-surface: var(--cp-gray-50);
  --sy-c-border: var(--cp-border);
  --sy-c-divider: var(--cp-border);
  --sy-c-banner-bg: var(--cp-navy);
  --sy-c-banner: var(--cp-accent);
  --sy-c-foot-background: #111113;
  --sy-c-foot-text: var(--cp-ink-muted);
  --sy-c-foot-divider: var(--cp-border);
  --accent-9: var(--cp-accent);
  --accent-11: var(--cp-accent);

  --yue-c-link-1: var(--cp-accent);
  --yue-c-link-2: var(--cp-accent);
  --yue-c-link-border: var(--cp-accent);
  --yue-c-code-text: #ffffff;
  --yue-c-code-background: var(--cp-gray-50);
  --yue-c-th-border: var(--cp-border);
  --yue-c-td-border: var(--cp-border);
  --yue-c-table-border: var(--cp-border);
  --yue-c-th-background: var(--cp-gray-50);
  --yue-c-row-background: transparent;
}

/* ---------- Base type ---------- */
body {
  background: var(--cp-canvas);
  color: var(--cp-ink);
  font-family: var(--sy-f-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}
.yue { font-size: 1rem; line-height: 1.5; }
.yue h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.075rem; }
.yue h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.06rem; }
.yue h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; }
.yue h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; }
.yue h1 strong { font-weight: 700; }
/* Lead: the first paragraph under the page title. */
.yue > section > h1 + p { font-size: 1.125rem; line-height: 1.4; color: var(--cp-ink-muted); }
.yue code, .yue kbd { font-family: var(--sy-f-mono); font-weight: 600; }
.yue figcaption, .yue table > caption { font-size: .75rem; line-height: 1.4; color: var(--cp-ink-faint); }
.yue a { text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-thickness var(--cp-t-hover) var(--cp-ease); }
.yue a:hover { text-decoration-thickness: 2px; }

/* Focus: 2px accent-deep, 2px offset, keyboard only. White on navy surfaces. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cp-accent-deep); outline-offset: 2px; }
.sy-foot :focus-visible, .announcement :focus-visible { outline-color: #ffffff; }

/* ---------- Announcement: one slim 28px strip ----------
   The text comes from the shared docs.threedy.io/announce.html in an iframe
   (conf.py), so every published version shows the current release. That page
   centres its text in a 50px body; it can't be restyled from here (other
   origin), so the iframe keeps its 50px and the strip crops it to the middle
   28px. Shibuya measures the strip and sticks the topbar right below it. */
.announcement { height: 28px; padding: 0 40px; overflow: hidden; }
.announcement-inner, .announcement-inner > p { height: 100%; margin: 0; }
.announcement iframe { display: block; width: 100%; height: 50px; margin-top: -11px; }
.announcement-close { top: 50%; right: 12px; transform: translateY(-50%); display: flex; }
.announcement-close .i-lucide { width: 16px; height: 16px; }

/* style.css (Furo era) paints all scrollbars mint; use the hairline grey. */
::-webkit-scrollbar-thumb { background-color: var(--cp-border); }
::-webkit-scrollbar-track { background-color: transparent; }
* { scrollbar-color: var(--cp-border) transparent; }

/* ---------- Topbar: 64px, white, one hairline ---------- */
.sy-head { background: var(--cp-panel); border-bottom: 1px solid var(--cp-border); box-shadow: none; }
.sy-head-blur { display: none; }
.sy-head-brand { flex-shrink: 0; }
.sy-head-brand img { height: 40px; width: auto; }
.sy-head-brand strong { display: none; }

/* Overlays (version dropdown): the only place with a shadow. */
.nav-versions-choices {
  background: var(--cp-panel);
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  box-shadow: var(--cp-shadow-lg);
  padding: 8px;
}

/* Search field: field radius 4, hairline, white. */
.searchbox input {
  background: var(--cp-panel);
  border: 1px solid var(--cp-border);
  border-radius: 4px;
  color: var(--cp-ink);
  font-size: .875rem; line-height: 1.4;
}
.searchbox input::placeholder { color: var(--cp-ink-faint); }
.searchbox input:focus-visible { outline: 2px solid var(--cp-accent-deep); outline-offset: 2px; }
.searchbox kbd, .searchbox button { font-weight: 600; border-color: var(--cp-border); background: var(--cp-gray-50); box-shadow: none !important; color: var(--cp-ink-faint); }

/* Live results under the search field (js/search_dropdown.js): an overlay
   like the version dropdown, 8px below the field, right edge flush. */
.search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: min(520px, calc(100vw - 32px));
  max-height: min(480px, 70vh); overflow-y: auto;
  background: var(--cp-panel);
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  box-shadow: var(--cp-shadow-lg);
  padding: 8px;
}
.search-dropdown[hidden] { display: none; }
@media (max-width: 767px) {
  .search-dropdown { left: 0; width: auto; }
}
.search-dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px; border-radius: 4px;
  color: var(--cp-ink); text-decoration: none;
}
.search-dropdown a:hover, .search-dropdown a:focus-visible { background: var(--cp-active-bg); }
.search-dropdown-title { font-size: .875rem; line-height: 1.4; font-weight: 600; }
.search-dropdown-meta {
  font-size: .75rem; line-height: 1.4; color: var(--cp-ink-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Text snippet around the match, two lines at most, words highlighted
   as on the search page. */
.search-dropdown-context {
  font-size: .8125rem; line-height: 1.4; color: var(--cp-ink-muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
}
.search-dropdown-context:empty { display: none; }
.search-dropdown .highlighted { background-color: var(--accent-a4); } /* as .search .highlighted on the search page */
.search-dropdown a.search-dropdown-all {
  margin-top: 4px;
  font-size: .875rem; line-height: 1.4; font-weight: 600; color: var(--cp-accent-deep);
}
.search-dropdown-item + .search-dropdown-all { border-top: 1px solid var(--cp-border); border-radius: 0 0 4px 4px; }
.search-dropdown-status { padding: 8px; font-size: .875rem; line-height: 1.4; color: var(--cp-ink-muted); }
/* Navigation section of a search result ("For Operators", "webvis API"),
   above its title, on the search page and in the dropdown. Same small caps
   as the section labels of the left navigation. */
.search-section {
  display: block;
  font-size: .6875rem; line-height: 1.4; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cp-ink-faint);
}
.yue ul.search > li > .search-section { margin-bottom: 2px; }

/* Search page: shown when no page contains every search word (js/search_tweaks.js). */
.yue .search-partial-note { font-size: .875rem; line-height: 1.4; color: var(--cp-ink-muted); }

/* Version switcher (public builds only): quiet, mint mark on hover,
   16px clear of the search field. */
.nav-versions { margin-left: 16px; }
.nav-versions button {
  border-right: 0; padding: .5rem;
  font-size: .875rem; line-height: 1.4; font-weight: 400;
  color: var(--cp-ink-muted);
  box-shadow: inset 0 -3px 0 transparent;
  transition: box-shadow var(--cp-t-hover) var(--cp-ease), color var(--cp-t-hover) var(--cp-ease);
}
.nav-versions:hover button { box-shadow: inset 0 -3px 0 var(--cp-accent); color: var(--cp-ink); }
/* Dropdown opens 8px below the underline, right edge flush with the button. */
.nav-versions-choices { top: 3.5rem; right: 0; }
.nav-versions-choices li { display: block; }
.nav-versions-choices a { display: block; padding: 8px; color: var(--cp-ink); text-decoration: none; white-space: nowrap; border-radius: 4px; font-size: .875rem; }
.nav-versions-choices a:hover { background: var(--cp-gray-50); }

/* Light/dark toggle: pointer cursor only. */
.theme-switch { cursor: pointer; }

/* ---------- Left rail: 240px white panel with hairline edge ---------- */
@media (min-width: 768px) {
  .sy-lside.md\:w-72 { width: 240px; }
}
.sy-lside { background: var(--cp-panel); border-right: 1px solid var(--cp-border); }
/* Rail and content card form one panel: same gap below the header, same
   border, rounded only on the outer corners (see .sy-main card below). */
@media (min-width: 768px) {
  .sy-page { padding-top: 24px; }
  .sy-lside { border: 1px solid var(--cp-border); border-radius: 8px 0 0 8px; margin-bottom: 40px; }
}
/* Shibuya keeps room for the scrollbar at all times (scrollbar-gutter:
   stable); a thin scrollbar and 8px on the right keep the expand arrows
   about as far from the right edge as the text is from the left. */
.sy-lside .sy-scrollbar { padding: 24px 8px 24px 16px; scrollbar-width: thin; }
.sy-lside .sy-scrollbar::-webkit-scrollbar { width: 6px; }

/* Section label: label-caps-sm in ink-faint with a mint dot (never mint text on light). */
.globaltoc .caption {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sy-f-text);
  font-size: .66rem; line-height: 1.4; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cp-ink-faint);
  border-top: 0; border-left: 0; padding: 0 8px; margin-bottom: 8px;
}
.globaltoc .caption::before {
  content: ""; flex: none;
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--cp-accent);
}
html.dark .globaltoc .caption { color: var(--cp-accent); }

/* Nav rows: 14px, radius 4, grey hover ground, mint-tinted active row. */
.globaltoc li { margin: 2px 0; }
.globaltoc a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: .875rem; line-height: 1.4; font-weight: 400;
  color: var(--cp-ink);
  text-decoration: none;
  overflow-wrap: anywhere; /* long webvis API class names wrap instead of being cut off */
  transition: background-color var(--cp-t-hover) var(--cp-ease), color var(--cp-t-hover) var(--cp-ease);
}
.globaltoc a:hover { background: var(--cp-gray-50); color: var(--cp-ink); }
.globaltoc a:active { background: var(--cp-gray-100); }
.globaltoc li a.current.reference.internal,
.globaltoc li a.current.reference.internal:hover {
  text-decoration: none;
  background: var(--cp-active-bg);
  color: var(--cp-accent-deep);
  font-weight: 700;
}
.globaltoc li.toctree-l1 > ul { border-left: 1px solid var(--cp-border); margin-left: 12px; }
.globaltoc li.toctree-l2 { padding-left: 8px; border-left: 0; }
.globaltoc li.toctree-l2.current { border-color: transparent; }

/* Expand arrow (added by shibuya.js after the link and its sub-list): in the
   same grid cell as the link, at its right edge and centred on the link's
   height, also for titles that wrap. A 28px target with a 16px chevron. The
   link keeps 36px clear on the right, so its text wraps before the arrow;
   the hover and active ground still runs under it. The sub-list goes below. */
.globaltoc li:has(> button) { display: grid; grid-template-columns: minmax(0, 1fr); }
.globaltoc li:has(> button) > a { grid-area: 1 / 1; padding-right: 36px; }
.globaltoc li:has(> button) > ul { grid-row: 2; }
.globaltoc li > button {
  position: static;
  grid-area: 1 / 1;
  justify-self: end; align-self: center;
  width: 28px; height: 28px;
  border-radius: 4px;
  color: var(--cp-ink-muted);
  transition: background-color var(--cp-t-hover) var(--cp-ease), color var(--cp-t-hover) var(--cp-ease);
}
.globaltoc li > button > i { width: 16px; height: 16px; }
.globaltoc li > button:hover { background: var(--cp-gray-50); color: var(--cp-ink); } /* as the nav item hover */

/* ---------- Main column: white card on the grey canvas ----------
   Page slightly wider than Shibuya's 1440px cap (still centred). The card
   joins the left rail directly: no gap, and the rail's hairline is the only
   divider between them. Both start 24px below the header. */
.sy-page.sy-container,
.sy-head-inner.sy-container,
.sy-foot-inner.sy-container { max-width: 1536px; }
.sy-main > div:not(.sy-breadcrumbs) {
  background: var(--cp-panel);
  border: 1px solid var(--cp-border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  margin: 0 24px 40px 0;
}
@media (max-width: 767px) {
  .sy-main > div:not(.sy-breadcrumbs) { margin: 0 0 24px; border-radius: 0; border-left: 0; border-right: 0; }
}
/* Centre the content card on screen: the main column fills the space between
   the rails, and the right rail ("On this page", gap included) is exactly as
   wide as the 240px left rail. */
.sy-main { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }
/* On short pages the card grows to the rail's height, so both end on one line. */
.sy-main > div:not(.sy-breadcrumbs) { flex-grow: 1; }
@media (min-width: 1280px) {
  .sy-rside { width: 240px; }
  .sy-rside .sy-rside-inner { padding-left: 24px; }
  .sy-main > div:not(.sy-breadcrumbs) { margin-right: 0; }
}
.sy-breadcrumbs { background: var(--cp-canvas); padding: 0 24px; }
.sy-breadcrumbs-inner { border-bottom: 0; padding: 16px 0 8px; }
.sy-breadcrumbs ol { font-size: .875rem; line-height: 1.4; color: var(--cp-ink-faint); }
.sy-breadcrumbs ol a { color: var(--cp-link); }
.sy-breadcrumbs ol a:hover { color: var(--cp-link); text-decoration: underline; }

/* Right "On this page" column sits on the canvas. */
.localtoc h3 { font-size: .75rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cp-ink-faint); }
.localtoc > ul li > a { font-size: .875rem; line-height: 1.4; color: var(--cp-ink-muted); }
.localtoc > ul li > a:hover, .localtoc > ul li.active > a { color: var(--cp-accent-deep); }

/* Prev / next */
.navigation a { color: var(--cp-ink); }
.navigation .page-info span { font-size: .75rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cp-ink-faint); }
.navigation .page-info .title { color: var(--cp-accent-deep); font-weight: 600; }

/* ---------- sphinx-design cards: flat, hairline turns accent-deep on hover ---------- */
.yue .sd-card {
  background: var(--cp-panel);
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  box-shadow: none !important;
  transition: border-color 400ms var(--cp-ease);
}
.yue .sd-card:hover { border-color: var(--cp-accent-deep); }
.yue .sd-card-hover:hover { transform: none; }
.yue .sd-card-hover:hover .sd-card-title { color: var(--cp-ink); }
.yue .sd-card-title { color: var(--cp-ink); font-weight: 700; }
.yue .sd-card-body { color: var(--cp-ink-muted); }

/* ---------- Admonitions: tint + hairline + dark text ---------- */
.yue .admonition {
  --ad-bg: #eef4fb; --ad-bd: #c5d8ee; --ad-fg: #1f5fa8;
  background: var(--ad-bg);
  border: 1px solid var(--ad-bd);
  border-radius: 8px;
  color: var(--cp-ink);
  padding: 16px 16px 16px 24px;
}
.yue .admonition:before { background-color: var(--ad-fg); }
.yue .admonition p.admonition-title {
  background: transparent;
  color: var(--ad-fg);
  font-size: .875rem; line-height: 1.4; font-weight: 700;
  margin: 0 0 8px; padding: 0;
}
.yue .admonition.tip, .yue .admonition.hint, .yue .admonition.important {
  --ad-bg: #effbf6; --ad-bd: #bfe8d8; --ad-fg: #0a7458;
}
.yue .admonition.warning, .yue .admonition.caution, .yue .admonition.attention {
  --ad-bg: #fdf3ee; --ad-bd: #e8c4b4; --ad-fg: #8f3409;
}
.yue .admonition.danger, .yue .admonition.error {
  --ad-bg: #fdf0f0; --ad-bd: #f0c6c6; --ad-fg: #c80000;
}
html.dark .yue .admonition { --ad-bg: rgba(140, 184, 236, .10); --ad-bd: rgba(140, 184, 236, .35); --ad-fg: #8cb8ec; }
html.dark .yue .admonition.tip, html.dark .yue .admonition.hint, html.dark .yue .admonition.important { --ad-bg: rgba(81, 253, 192, .10); --ad-bd: rgba(81, 253, 192, .35); --ad-fg: #51fdc0; }
html.dark .yue .admonition.warning, html.dark .yue .admonition.caution, html.dark .yue .admonition.attention { --ad-bg: rgba(240, 160, 120, .10); --ad-bd: rgba(240, 160, 120, .35); --ad-fg: #f0a078; }
html.dark .yue .admonition.danger, html.dark .yue .admonition.error { --ad-bg: rgba(255, 120, 120, .10); --ad-bd: rgba(255, 120, 120, .35); --ad-fg: #ff8a8a; }

/* ---------- Footer: navy band ---------- */
.sy-foot { background: var(--sy-c-foot-background); border-top: 1px solid var(--sy-c-foot-divider); color: var(--sy-c-foot-text); }
.sy-foot-copyright { font-size: .75rem; line-height: 1.4; }
.sy-foot a, .sy-foot-copyright a { color: var(--cp-on-navy); font-weight: 600; }
/* Footer content as in the Furo design (components/foot-copyright.html). */
.threedy-foot p { margin: 0 0 8px; }
.threedy-foot-copyright { display: flex; align-items: center; gap: 8px; }
.threedy-foot .threedy-wordmark { width: 100px; height: auto; color: var(--cp-on-navy); }
.threedy-foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.threedy-foot-links a { text-decoration: none; }
.threedy-foot-links a:hover { text-decoration: underline; }

/* ---------- Feedback buttons ---------- */
.feedback-btn {
  font: inherit;
  font-size: .875rem; line-height: 1.4; font-weight: 600;
  color: var(--cp-accent-deep);
  background: transparent;
  border: 1px solid var(--cp-accent-deep);
  border-radius: 8px;
  padding: 8px 16px;
  margin-right: 8px;
  cursor: pointer;
  transition: background-color var(--cp-t-hover) var(--cp-ease), border-color var(--cp-t-hover) var(--cp-ease);
}
.feedback-btn:hover:not(:disabled) { background: var(--cp-active-bg); }
/* Chosen answer: primary fill (mint) with ink text. */
.feedback-btn.clicked { background: var(--cp-accent); border-color: var(--cp-accent); color: #0d1731; }
.feedback-btn.clicked:hover { background: var(--cp-accent-hover); }
/* Disabled: own colours, never faded with opacity. */
.feedback-btn:disabled { cursor: default; }
.feedback-btn:disabled:not(.clicked) { background: var(--cp-disabled-bg); border-color: var(--cp-border); color: var(--cp-disabled-fg); opacity: 1; }

/* ---------- Leftovers ---------- */
/* Furo's only-light / only-dark image classes (landing-page cards). */
html.dark .only-light, html:not(.dark) .only-dark { display: none !important; }
blockquote:has(rapi-doc) { background: none; border: 0; padding: 0; margin: 0; }

/* ---------- Light/dark switch ---------- */
/* No colour fades while the mode switches (set by partials/extra-head.html). */
html.cp-theme-switching *, html.cp-theme-switching *::before, html.cp-theme-switching *::after { transition: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* No weight 500 anywhere: catch the places Shibuya and style.css set it. */
.sy-rside .localtoc h3, .localtoc > h3 { font-weight: 700; }
.yue code span, .yue code .pre { font-weight: inherit; }

/* Feedback block: one hairline above, Lucide icons in the buttons. */
.feedback { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cp-border); }
.feedback p { font-size: .875rem; line-height: 1.4; color: var(--cp-ink-muted); margin: 0 0 8px; }
.feedback-btn { display: inline-flex; align-items: center; gap: 8px; }
.feedback-icon { flex: none; }

/* ---------- Cards, Customer Portal style ----------
   role-card (86 cards): left-aligned, icon directly on the card (no tile),
   title 700 ink, 14px muted description, arrow-up-right only on cards
   that link to another site.
   matrix-card (36 cards): stays centred and dense; "Experimental" as a pill.
   Choices not in the design brief: arrow placement top-right, pill colours
   reuse the warning admonition tokens. */
.yue .sd-card .sd-card-body { padding: 24px; }

/* sphinx-design's sd-text-center (set by :text-align: center in the RST) is !important. */
.yue .role-card.sd-text-center,
.yue .role-card.sd-text-center .sd-card-title,
.yue .role-card.sd-text-center .sd-card-text { text-align: left !important; }
.yue .role-card .sd-card-body { display: flex; flex-direction: column; align-items: flex-start; }
.yue .role-card img.role-card-icon {
  order: -1;
  width: 24px; height: 24px; max-width: none; max-height: none;
  padding: 0;
  margin: 0 0 12px;
  background: none;
  object-fit: contain;
}
.yue .role-card .sd-card-title {
  font-size: 1.125rem; line-height: 1.4; font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cp-ink);
  margin: 0 0 4px;
}
.yue .role-card:has(> a.sd-stretched-link[href^="http"]) .sd-card-title {
  padding-right: 24px; /* room for the external-link arrow */
}
.yue .role-card .sd-card-text { font-size: .875rem; line-height: 1.4; color: var(--cp-ink-muted); margin: 0; }

/* Lucide arrow-up-right (stroke 1.5) only on cards that leave the docs
   (design system: arrow-up-right = opens another site). Internal cards
   get no arrow; the hover hairline already marks them as clickable. */
.yue .role-card:has(> a.sd-stretched-link[href^="http"])::after {
  content: "";
  position: absolute; top: 24px; right: 24px;
  width: 18px; height: 18px;
  background-color: var(--cp-ink-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: background-color 400ms var(--cp-ease), transform var(--cp-t-state) var(--cp-ease);
}
.yue .role-card:has(> a.sd-stretched-link[href^="http"]):hover::after {
  background-color: var(--cp-accent-deep);
  transform: translate(1px, -1px);
}

/* Feature matrix: compact, centred. */
.yue .matrix-card .sd-card-body { padding: 16px 8px; }
.yue .matrix-card .sd-card-title { font-size: .875rem; line-height: 1.4; font-weight: 700; color: var(--cp-ink); }
.yue .matrix-card .sd-badge,
.yue .sd-badge.sd-bg-warning {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #e8c4b4;
  /* sphinx-design sets sd-bg-warning / sd-bg-text-warning with !important. */
  background: #fdf3ee !important;
  color: #8f3409 !important;
  font-size: .66rem; line-height: 1.4; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
html.dark .yue .matrix-card .sd-badge,
html.dark .yue .sd-badge.sd-bg-warning { background: rgba(240, 160, 120, .10) !important; border-color: rgba(240, 160, 120, .35); color: #f0a078 !important; }
