/* TwinRobo docs theme on top of Material for MkDocs. */

:root {
  --tr-indigo: #4f46e5;
  --tr-teal: #0d9488;
  --tr-grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #0d9488 100%);
  --md-primary-fg-color: #312e81;
  --md-primary-fg-color--light: #4f46e5;
  --md-primary-fg-color--dark: #1e1b4b;
  --md-accent-fg-color: #0d9488;
  --md-typeset-a-color: #4f46e5;
  --tr-card-bg: #ffffff;
  --tr-card-border: rgba(79, 70, 229, 0.14);
  --tr-soft: #f5f5ff;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0f1020;
  --md-default-bg-color--light: #15172b;
  --md-code-bg-color: #16182c;
  --md-typeset-a-color: #a5b4fc;
  --md-accent-fg-color: #2dd4bf;
  --tr-card-bg: #15172b;
  --tr-card-border: rgba(165, 180, 252, 0.16);
  --tr-soft: #17193a;
}

/* header and tabs: one gradient band */
.md-header,
.md-tabs {
  background: var(--tr-grad);
}
.md-header {
  box-shadow: none;
}
.md-tabs__link {
  font-weight: 600;
  opacity: 0.85;
}
.md-tabs__item--active .md-tabs__link {
  opacity: 1;
}
.md-header__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* typography */
.md-typeset h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--md-default-fg-color);
}
.md-typeset h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.md-typeset h3 {
  font-weight: 650;
}

/* tables: rounded, zebra rows */
.md-typeset table:not([class]) {
  border: 1px solid var(--tr-card-border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.72rem;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
}
.md-typeset table:not([class]) th {
  background: var(--tr-soft);
  font-weight: 700;
}
.md-typeset table:not([class]) tr:nth-child(even) td {
  background: color-mix(in srgb, var(--tr-soft) 45%, transparent);
}

/* images: framed */
.md-typeset img {
  border-radius: 10px;
}
.md-typeset p > img:only-child,
.md-typeset figure img {
  box-shadow: 0 10px 30px rgba(49, 46, 129, 0.18);
}

/* grid cards */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  background: var(--tr-card-bg);
  border: 1px solid var(--tr-card-border);
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid > .card:hover {
  transform: translateY(-2px);
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 12px 28px rgba(49, 46, 129, 0.14);
}
.md-typeset .grid.cards .twemoji,
.md-typeset .grid.cards .lg {
  color: var(--tr-indigo);
}
[data-md-color-scheme="slate"] .md-typeset .grid.cards .twemoji {
  color: #a5b4fc;
}

/* buttons */
.md-typeset .md-button {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55em 1.5em;
}
.md-typeset .md-button--primary {
  background: var(--tr-grad);
  border: none;
  color: #fff;
}
.md-typeset .md-button--primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* ---------- landing page ---------- */
.tr-hero {
  position: relative;
  margin: -1.2rem -0.8rem 2.5rem;
  padding: 3.2rem 2rem 2.6rem;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(20, 184, 166, 0.2), transparent 60%),
    var(--tr-soft);
  text-align: center;
}
.tr-hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.tr-hero h1 .tr-grad {
  background: var(--tr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tr-hero .tr-lead {
  font-size: 1.05rem;
  max-width: 44rem;
  margin: 0 auto 1.6rem;
  opacity: 0.85;
}
.tr-hero .md-button {
  margin: 0.25rem;
}
.tr-hero img {
  margin-top: 2rem;
  width: 100%;
  max-width: 900px;
}
.tr-hero .tr-caption {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.4rem;
}
.tr-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.tr-badges span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--tr-card-border);
  background: var(--tr-card-bg);
}
.tr-cta {
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  border: 1px solid var(--tr-card-border);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    var(--tr-card-bg);
}
.tr-cta h3 {
  margin-top: 0;
}
@media screen and (max-width: 600px) {
  .tr-hero h1 {
    font-size: 1.9rem;
  }
  .tr-hero {
    padding: 2rem 1rem;
  }
}

/* API reference: calmer object headings */
.md-typeset .doc-heading code {
  font-weight: 700;
}
.md-typeset .doc-signature {
  border-radius: 10px;
}

/* secondary buttons: visible in both schemes */
.md-typeset .md-button:not(.md-button--primary) {
  color: var(--md-typeset-a-color);
  border: 1.5px solid currentColor;
  background: var(--tr-card-bg);
}
.md-typeset .md-button:not(.md-button--primary):hover {
  color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
}
.md-typeset .tr-hero h1 {
  color: var(--md-typeset-color);
}

/* two-column card grid (the feature cards) */
.md-typeset .grid.tr-2col {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
@media screen and (min-width: 60em) {
  .md-typeset .grid.tr-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* stat cards: big numbers */
.md-typeset .tr-stats > ul > li > p:first-child strong {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--tr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-md-color-scheme="slate"] .md-typeset .tr-hero h1 {
  color: #f5f5ff;
}

/* full-width tables */
.md-typeset__table {
  width: 100%;
}
.md-typeset__table table:not([class]) {
  display: table;
  width: 100%;
}

/* camera catalog: the viewer (docs/javascripts/catalog.js) */
#tr-playground {
  margin-top: 1rem;
}
.trp-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 0.8rem;
}
.trp-group {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--tr-card-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--tr-card-bg);
}
.trp-group.is-muted {
  opacity: 0.45;
}
.trp-group button {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--md-default-fg-color--light);
  cursor: pointer;
}
.trp-group button:hover {
  color: var(--md-typeset-a-color);
}
.trp-group button.is-active {
  background: var(--tr-grad);
  color: #fff;
}
.trp-group button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.trp-group button:disabled:hover {
  color: var(--md-default-fg-color--light);
}
.trp-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 60em) {
  .trp-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
.trp-frame {
  --split: 50%;
  position: relative;
  width: 100%;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 24px rgba(15, 16, 32, 0.18);
}
.trp-frame img,
.trp-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
}
.trp-over {
  position: absolute;
  inset: 0;
}
.trp-frame::after {
  /* the compare split line */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.trp-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.trp-tag {
  position: absolute;
  top: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 16, 32, 0.6);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}
.trp-tag-l {
  left: 0.5rem;
}
.trp-tag-r {
  right: 0.5rem;
}
.trp-tag:empty {
  display: none;
}
/* side by side: pinhole left, camera right */
.trp-frame[data-view="side"] .trp-under {
  width: 50%;
}
.trp-frame[data-view="side"] .trp-over {
  left: 50%;
  clip-path: none !important;
}
.trp-frame[data-view="side"] .trp-over img {
  position: static;
}
.trp-frame:not([data-view="compare"])::after,
.trp-frame:not([data-view="compare"]) .trp-slider {
  display: none;
}
.trp-frame[data-view="side"]::after {
  display: block;
  left: 50%;
}
.trp-frame:not([data-view="diff"]) .trp-diff,
.trp-frame[data-view="diff"] .trp-over,
.trp-frame[data-view="depth"] .trp-over {
  display: none;
}
.md-typeset .trp-note {
  font-size: 0.68rem;
  color: var(--md-default-fg-color--light);
  margin: 0.5rem 0 0;
}
.trp-info {
  border: 1px solid var(--tr-card-border);
  border-radius: 0.6rem;
  background: var(--tr-card-bg);
  padding: 0.9rem 1rem;
  font-size: 0.7rem;
}
.md-typeset .trp-info h3 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
}
.md-typeset .trp-info dl {
  margin: 0.8rem 0;
}
.md-typeset .trp-info dt {
  font-weight: 700;
  color: var(--md-default-fg-color--light);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.md-typeset .trp-info dd {
  margin: 0 0 0.5rem;
}

/* playground: the live demo (TwinRobo Preview), embedded */
.tr-demo {
  position: relative;
  width: 100%;
  /* the window's height below the header, less the caption: the frame and its caption fill the view */
  height: calc(100vh - 7rem);
  height: calc(100dvh - 7rem);
  min-height: 520px;
  border: 1px solid var(--tr-card-border);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #141619;
  box-shadow: 0 6px 24px rgba(15, 16, 32, 0.18);
}
.tr-demo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.md-typeset .tr-demo-cap {
  font-size: 0.68rem;
  color: var(--md-default-fg-color--light);
  margin: 0.5rem 0 0;
}

/* the whole site uses the full window width */
.md-grid {
  max-width: none;
}
.md-main__inner,
.md-header__inner,
.md-tabs__list,
.md-footer-meta__inner,
.md-footer__inner {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* header: logo, name and the site nav in one row (overrides/partials/header.html) */
.md-header__title.tr-head-title {
  flex: none;
  margin-left: 0.4rem;
  margin-right: 0.8rem;
  font-weight: 700;
  line-height: 2.4rem;
}
.tr-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 0.1rem;
}
.tr-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.tr-nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.88;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.tr-nav__link:hover,
.tr-nav__item:focus-within > .tr-nav__link,
.tr-nav .is-active > .tr-nav__link,
.tr-nav > .tr-nav__link.is-active {
  opacity: 1;
}
.tr-nav .is-active > .tr-nav__link,
.tr-nav > .tr-nav__link.is-active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}
.md-header a.tr-nav__link {
  color: inherit;
}
.tr-nav__caret {
  width: 0.36rem;
  height: 0.36rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  opacity: 0.8;
}
.tr-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  border-radius: 0.5rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 10px 30px rgba(15, 16, 32, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.2rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.tr-nav__dd:hover > .tr-nav__menu,
.tr-nav__dd:focus-within > .tr-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.md-header .tr-nav__entry {
  padding: 0.45rem 0.7rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--md-default-fg-color);
  white-space: nowrap;
}
.md-header .tr-nav__entry:hover {
  background: var(--tr-soft);
  color: var(--md-typeset-a-color);
}
.md-header .tr-nav__entry.is-active {
  color: var(--md-typeset-a-color);
  font-weight: 650;
}
@media screen and (max-width: 76.2344em) {
  .tr-nav {
    display: none; /* narrow screens: the menu drawer, as usual */
  }
}
@media screen and (min-width: 60em) {
  /* room for the tabs: a compact search box that widens when used */
  .md-header .md-search__inner {
    width: 8.5rem;
  }
  .md-header [data-md-toggle="search"]:checked ~ .md-header .md-search__inner,
  .md-search__inner:focus-within {
    width: 23.4rem;
  }
  .md-header__source {
    width: auto;
    max-width: 10.5rem;
    margin-left: 0.6rem;
  }
}
@media screen and (max-width: 90em) {
  /* mid-size screens: the logo alone names the site, tighter tabs */
  .md-header__title.tr-head-title {
    display: none;
  }
  .tr-nav__link {
    padding: 0 0.42rem;
    font-size: 0.68rem;
  }
}

/* camera catalog: browser (left) and viewer (right) */
.trc-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
@media (max-width: 60em) {
  .trc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.trc-browser {
  position: sticky;
  top: 3.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: calc(100vh - 4.4rem);
  border: 1px solid var(--tr-card-border);
  border-radius: 0.6rem;
  background: var(--tr-card-bg);
  padding: 0.7rem;
}
@media (max-width: 60em) {
  .trc-browser {
    position: static;
    max-height: 26rem;
  }
}
.trc-search {
  display: flex;
  gap: 0.4rem;
}
.trc-search input,
.trc-browser select,
.trc-browser input[type="number"] {
  font: inherit;
  font-size: 0.66rem;
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color);
  border: 1px solid var(--tr-card-border);
  border-radius: 0.4rem;
  padding: 0.3rem 0.45rem;
  min-width: 0;
}
.trc-search input {
  flex: 1;
}
.trc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.64rem;
  color: var(--md-default-fg-color--light);
}
.trc-filters select {
  flex: 1 1 7rem;
}
.trc-check,
.trc-num {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.trc-num input {
  width: 3.4rem;
}
.trc-count {
  font-size: 0.62rem;
  color: var(--md-default-fg-color--light);
}
.trc-list {
  flex: 1;
  min-height: 8rem;
  overflow-y: auto;
  margin: 0 -0.3rem;
  padding: 0 0.3rem;
}
.trc-group {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--tr-card-bg);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--md-default-fg-color--light);
  padding: 0.45rem 0.2rem 0.2rem;
}
.trc-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  padding: 0.3rem;
  cursor: pointer;
}
.trc-item:hover {
  background: var(--tr-soft);
}
.trc-item.is-active {
  border-color: var(--tr-indigo);
  background: var(--tr-soft);
}
.trc-item img,
.trc-nothumb {
  flex: none;
  width: 3.6rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 0.3rem;
  background: repeating-linear-gradient(45deg, var(--tr-soft), var(--tr-soft) 4px, transparent 4px, transparent 8px);
}
.trc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.66rem;
  line-height: 1.3;
}
.trc-text b,
.trc-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trc-text small {
  color: var(--md-default-fg-color--light);
}
.trc-badge {
  margin-left: auto;
  font-size: 0.55rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--tr-teal);
  color: #fff;
}
.trc-empty {
  font-size: 0.66rem;
  color: var(--md-default-fg-color--light);
}
.trp-bar.is-muted {
  opacity: 0.45;
  pointer-events: none;
}
.trp-none {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab0b8;
  font-size: 0.72rem;
}
.md-typeset .trp-info pre {
  margin: 0.6rem 0 0.4rem;
  font-size: 0.6rem;
}
.md-typeset .trp-links {
  margin: 0.3rem 0 0;
  font-size: 0.66rem;
}
.trp-none[hidden] {
  display: none;
}
/* catalog: the views take the column's width, the specs sit below them */
.trc-view .trp-main {
  grid-template-columns: minmax(0, 1fr);
}
.md-typeset .trc-view .trp-info dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.4rem 1.2rem;
  margin: 0.6rem 0;
}
.md-typeset .trc-view .trp-fact dd {
  margin: 0;
}
/* catalog: a fixed-height stage (the image fits inside), then the specs */
.trc-view .trp-box {
  height: clamp(16rem, 46vh, 30rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trc-view .trp-frame {
  flex: none;
}
.md-typeset .trc-view .trp-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* "Use this camera" */
.trp-use {
  position: relative;
  margin-left: auto;
  align-self: center;
}
.trp-usebtn {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  color: #fff;
  background: var(--tr-grad);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.trp-usepop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 5;
  width: min(30rem, 90vw);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--tr-card-border);
  border-radius: 0.6rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 12px 32px rgba(15, 16, 32, 0.22);
}
.md-typeset .trp-usetitle {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.trp-snip {
  position: relative;
  margin-bottom: 0.5rem;
}
.md-typeset .trp-snip pre {
  margin: 0;
}
.md-typeset .trp-snip code {
  display: block;
  padding: 0.6rem 4.2rem 0.6rem 0.7rem;
  font-size: 0.64rem;
  white-space: pre;
  overflow-x: auto;
}
.trp-copy {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font: inherit;
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--tr-card-border);
  border-radius: 0.3rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  cursor: pointer;
}
.md-typeset .trp-usenote {
  margin: 0.2rem 0 0;
  font-size: 0.64rem;
}
/* catalog: groups keep their buttons on one line; the bar wraps between groups, and
   "Use this camera" stays at the right end */
.trc-view .trp-bar {
  gap: 0.5rem;
}
.trc-view .trp-group {
  flex: none;
  flex-wrap: nowrap;
}
.trc-view .trp-group button {
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
}
.trp-snip .md-clipboard {
  display: none; /* our own Copy button */
}
/* header: the site name links home; dropdown entries with an icon stand out */
.md-header a.tr-head-title {
  color: inherit;
}
.md-header .tr-nav__entry--icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  color: var(--md-typeset-a-color);
}
.tr-nav__icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0.18rem;
  border-radius: 0.3rem;
  background: var(--tr-grad);
}
.tr-nav__icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}
/* a heading for screen readers and search only */
.md-typeset .tr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* catalog table: "Show in browser" (greyed out without a preview) */
.md-typeset .trc-show {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 650;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--tr-grad);
}
.md-typeset a.trc-show:hover {
  color: #fff;
  filter: brightness(1.08);
}
.md-typeset .trc-show.is-off {
  color: var(--md-default-fg-color--lighter);
  background: var(--md-default-fg-color--lightest);
  cursor: not-allowed;
}
/* Why TwinRobo: the episode videos */
.md-typeset .tr-why-video {
  margin: 1.2rem 0;
}
.tr-why-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  background: #12131c;
}
.md-typeset .tr-why-video figcaption {
  max-width: none;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
  text-align: left;
}
.md-typeset .tr-why-link {
  font-weight: 650;
  white-space: nowrap;
}
.md-typeset .tr-why-link::after {
  content: " \2192";
}
.trc-badge.is-ir {
  background: var(--tr-indigo);
}
.md-typeset .trp-irnote {
  margin: 0.4rem 0 0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.64rem;
  color: var(--md-default-fg-color--light);
  background: var(--tr-soft);
}

/* ---------- landing page: hero video, compare slider, benchmark teaser ---------- */
.tr-hero-video {
  margin: 2rem auto 0;
  max-width: 760px;
}
.tr-hero-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 808 / 400;
  border-radius: 14px;
  border: 1px solid var(--tr-card-border);
  background: #16161a;
}
.md-typeset .tr-center {
  text-align: center;
}
.tr-compare {
  --pos: 50%;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 640 / 400;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tr-card-border);
  user-select: none;
}
.md-typeset .tr-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}
.md-typeset .tr-compare img.tr-compare__top {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.tr-compare::after {  /* the divider */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tr-compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.tr-compare:focus-within {
  outline: 2px solid var(--tr-indigo);
  outline-offset: 2px;
}
.tr-compare__tag {
  position: absolute;
  bottom: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.15em 0.6em;
  border-radius: 6px;
  pointer-events: none;
}
.tr-compare__tag--left {
  left: 0.6rem;
}
.tr-compare__tag--right {
  right: 0.6rem;
}
.md-typeset .tr-teaser img {
  border-radius: 8px;
  margin: 0.2rem 0 0.4rem;
}

/* the hero's compare slider, and the "why it matters" band */
.tr-hero .tr-compare--hero {
  margin-top: 2rem;
  max-width: 820px;
}
.md-typeset .tr-hero .tr-compare img {
  margin-top: 0;
  max-width: none;
}
.tr-why {
  margin: 3rem -0.8rem 2.5rem;
  padding: 2.4rem 2rem 2rem;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(900px 300px at 90% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    var(--tr-soft);
}
.md-typeset .tr-why h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.tr-why h2 .tr-grad {
  background: var(--tr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tr-why .tr-lead {
  font-size: 1rem;
  max-width: 42rem;
  margin: 0 auto 1rem;
  opacity: 0.85;
}
.tr-why .tr-caption {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.4rem;
}
@media screen and (max-width: 600px) {
  .tr-why {
    padding: 1.6rem 1rem;
  }
  .md-typeset .tr-why h2 {
    font-size: 1.4rem;
  }
}
