/* Site-wide stylesheet, loaded on every page after colors.css. Sections, in cascade
   order: fonts, Material overrides, utilities, components, page areas, responsive (one
   @media block per breakpoint). Page-scoped rules live in the sheets a page_features key
   loads (home.css, meet.css, platform.css, product.css, lead-form.css, splide.min.css); see
   contributing/page-composition.md. */

/* ==========================================================================
   1. Fonts
   ========================================================================== */

/* theme.font is false (main.html loads the one Google Fonts stylesheet), so Material's font
   variables are declared here instead. Body copy is Instrument Sans, code is JetBrains Mono,
   and every heading takes the display face (Bricolage Grotesque, with its optical-size axis
   so the big landing headlines get the display cut and the small headings the text cut). */
:root {
  --md-text-font: "Instrument Sans";
  --md-code-font: "JetBrains Mono";
}

body {
  font-feature-settings: "kern", "liga";
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: var(--ov-display-font);
  font-optical-sizing: auto;
  color: var(--md-default-fg-color);
  letter-spacing: -0.02em;
}

.md-typeset h1 {
  font-weight: 800;
  font-size: 2.2em;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.md-typeset h2 {
  font-weight: 700;
  font-size: 1.6em;
  line-height: 1.15;
}

.md-typeset h3 {
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1.2;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.md-typeset h5,
.md-typeset h6 {
  color: var(--md-default-fg-color--light);
  text-transform: none;
}

/* ==========================================================================
   2. Material overrides
   ========================================================================== */

/* Layout */

.md-grid {
  max-width: 70rem;
}

.md-main__inner {
  margin-bottom: 3.5rem;
}

/* Header */

.md-header__title {
  line-height: 2.6rem;
}

.md-header__topic .md-ellipsis {
  font-family: var(--ov-display-font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* The header sits on the ground with a hairline below it; on product pages product.css paints
   it in the product colour. */
.md-header {
  border-bottom: 1px solid var(--ov-border);
  position: sticky;
}

.md-header--shadow {
  box-shadow: 0 8px 24px rgba(16, 22, 24, 0.06);
}

/* Theme-paired logos: the template emits both files, the scheme shows one */
[data-md-color-scheme="default"] .ov-logo--dark,
[data-md-color-scheme="slate"] .ov-logo--light {
  display: none !important;
}

.md-header__button.md-logo {
  margin: 0 !important;
  padding: 0 !important;
}

.md-header__button.md-logo:has(> img.custom-logo) {
  margin-left: 0.6rem !important;
}

.md-header__button.md-logo > img {
  height: 1.7rem !important;
}

.md-header__button.md-logo > img.custom-logo {
  height: 1.9rem !important;
}

/* Cookie consent: the saved choice, shown when the footer link reopens the banner. */
.md-consent__current {
  font-weight: 700;
}

/* Sign-in / account controls in the header */

.log-in-div {
  margin-left: 2em;
  margin-right: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
}

.log-in-div:has(a#account-btn) {
  width: auto;
}

/* The account link is the header's solid pill, as the mockup's "Get started" is */
#sign-in-button {
  min-width: 85px;
  text-align: center;
}

.md-typeset .md-button.sign-btn-in-styles,
.md-typeset .md-button.sign-btn-out-styles {
  min-height: 36px;
  font-size: 0.68rem !important;
  padding: 0 0.9rem !important;
  white-space: nowrap;
  background-color: var(--ov-ink);
  border-color: var(--ov-ink);
  color: var(--ov-ink-fg);
}

.md-typeset .md-button.sign-btn-in-styles:hover,
.md-typeset .md-button.sign-btn-out-styles:hover,
.md-typeset .md-button.sign-btn-in-styles:focus,
.md-typeset .md-button.sign-btn-out-styles:focus {
  background-color: var(--ov-btn-primary-hover);
  border-color: var(--ov-btn-primary-hover);
  color: var(--ov-ink-fg);
}

a#account-btn {
  height: 38px;
  margin-right: 10px;
  color: var(--md-typeset-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3em;
}

a#account-btn:hover {
  color: var(--ov-accent);
}

a#account-btn span {
  font-size: 30px;
}

a#account-btn .user-name {
  font-size: 12.5px;
  white-space: nowrap;
  margin-right: 0.3em;
}

/* Navigation tabs and the dropdown menu (overrides/partials/tabs.html) */

nav .md-tabs__item {
  font-weight: 500;
}

.md-tabs {
  border-bottom: 1px solid var(--ov-border);
}

.md-tabs__link {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ov-muted);
  opacity: 1;
  margin-top: 0.75rem;
  padding-bottom: 0.52rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.md-tabs__link:hover,
.md-tabs__link:focus,
.md-tabs__item--active .md-tabs__link,
.md-tabs__link--active {
  color: var(--ov-text);
  opacity: 1;
}

.md-tabs__item--active .md-tabs__link,
.md-tabs__link--active {
  border-bottom-color: var(--ov-accent);
}

.md-tabs,
.md-tabs__list {
  overflow: visible !important;
  contain: none !important;
}

.md-tabs__item--dropdown {
  position: relative;
  display: inline-block;
}

.md-tabs__dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: var(--ov-surface);
  min-width: 180px;
  box-shadow: var(--md-shadow-z2);
  z-index: 100;
  border-radius: var(--ov-radius-sm);
  top: 100%;
  left: 0;
  padding: 6px;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.md-tabs__item--dropdown:hover .md-tabs__dropdown,
.md-tabs__item--dropdown:focus-within .md-tabs__dropdown {
  visibility: visible;
  opacity: 1;
}

/* The toggle is a real <button> (keyboard/touch operable), so it needs the UA chrome
   stripped - but only that: a `font` or `margin` reset also cancels the font-size and
   margin-top .md-tabs__link sets, which is what made this tab render smaller and higher
   than its siblings. Everything the sibling links inherit is inherited here explicitly,
   since a button inherits none of it by default. */
button.md-tabs__dropdown-toggle {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
}

.md-tabs__dropdown-link {
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 0.7rem; /* Match tab font size roughly */
  white-space: nowrap;
  color: var(--ov-muted);
  border-radius: var(--ov-radius-xs);
  transition: background-color 0.2s, color 0.2s;
}

.md-tabs__dropdown-link:hover {
  color: var(--ov-text);
  background-color: var(--ov-ground);
}

.md-tabs__dropdown-link--active {
  color: var(--ov-text);
  font-weight: 700;
}

.md-tabs__link .dropdown-caret {
  margin-left: 5px;
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.7rem;
  line-height: 1.3;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.13, 0.82, 0.49, 1);
  transform: rotate(90deg);
  background-color: currentColor;
  -webkit-mask-image: var(--md-nav-icon--next);
  mask-image: var(--md-nav-icon--next);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.md-tabs__item--dropdown:hover .dropdown-caret,
.md-tabs__item--dropdown:focus-within .dropdown-caret {
  transform: rotate(270deg);
}

/* Keep parent link highlighted while the dropdown is open */
.md-tabs__item--dropdown:hover .md-tabs__link,
.md-tabs__item--dropdown:focus-within .md-tabs__link {
  opacity: 1;
}

/* Typography and content elements */

/* Buttons are pills: outlined in the ink by default, solid for the primary one (the ink on
   the root pages, the product colour on product pages via --ov-btn-primary-*). */
.md-typeset .md-button,
.md-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.3em 1.3em;
  border: 2px solid var(--ov-text);
  border-radius: 999px;
  background-color: transparent;
  color: var(--ov-text);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.md-typeset .md-button:hover,
.md-typeset .md-button:focus,
.md-button:hover,
.md-button:focus {
  background-color: var(--ov-text);
  border-color: var(--ov-text);
  color: var(--ov-ground);
}

.md-typeset .md-button--primary,
.md-button--primary {
  background-color: var(--ov-btn-primary-bg);
  border-color: var(--ov-btn-primary-bg);
  color: var(--ov-btn-primary-fg);
}

.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus,
.md-button--primary:hover,
.md-button--primary:focus {
  background-color: var(--ov-btn-primary-hover);
  border-color: var(--ov-btn-primary-hover);
  color: var(--ov-btn-primary-fg);
}

/* Links in body copy: ink-coloured underline in the accent on hover, like the mockup */
.md-typeset a {
  text-underline-offset: 0.15em;
}

/* Rounded corners everywhere: Material's 0.1rem becomes the design's radii */
.md-typeset code {
  border-radius: 6px;
}

.md-typeset pre > code,
.md-typeset .highlight > pre > code,
.md-typeset .highlighttable {
  border-radius: var(--ov-radius-sm);
}

.md-typeset pre > code {
  border: 1px solid var(--ov-border);
}

.md-typeset .highlighttable .linenos {
  border-radius: var(--ov-radius-sm) 0 0 var(--ov-radius-sm);
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--ov-radius-sm);
  border-width: 1px;
  box-shadow: none;
  font-size: 0.72rem;
}

.md-typeset .admonition > .admonition-title,
.md-typeset details > summary {
  border-top-left-radius: calc(var(--ov-radius-sm) - 1px);
  border-top-right-radius: calc(var(--ov-radius-sm) - 1px);
}

.md-typeset table:not([class]) {
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius-sm);
  background-color: var(--ov-surface);
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background-color: var(--ov-surface-2);
  color: var(--ov-text);
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius-md);
  background-color: var(--ov-surface);
  padding: 1rem;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ul > li:focus-within {
  border-color: var(--ov-accent);
  box-shadow: 0 10px 30px rgba(16, 22, 24, 0.08);
}

.md-typeset .grid.cards > ul > li hr {
  background: var(--ov-border);
}

.md-typeset kbd {
  border-radius: 6px;
}

.md-typeset img.round-corners,
.md-typeset video.round-corners,
.round-corners {
  border-radius: var(--ov-radius-sm);
}

/* Search: a white pill in the header that opens into a card */
.md-search__form {
  background-color: var(--ov-surface);
  border: 1px solid var(--ov-border);
  border-radius: 999px;
  box-shadow: none;
}

.md-search__form:hover {
  background-color: var(--ov-surface);
}

.md-search__input {
  color: var(--ov-text);
}

.md-search__input::placeholder,
.md-search__input ~ .md-search__icon {
  color: var(--ov-muted);
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__form {
  border-radius: var(--ov-radius-sm) var(--ov-radius-sm) 0 0;
  border-bottom-color: transparent;
}

.md-search__output {
  border-radius: 0 0 var(--ov-radius-sm) var(--ov-radius-sm);
  box-shadow: var(--md-shadow-z3);
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__output {
  border-radius: 0 0 var(--ov-radius-sm) var(--ov-radius-sm);
}

.md-search__scrollwrap {
  background-color: var(--ov-surface);
}

.md-search-result__meta {
  background-color: var(--ov-surface-2);
  color: var(--ov-muted);
}

/* Version selector menu and the palette toggle */
.md-version__current {
  color: var(--ov-text);
}

.md-version__list {
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius-sm);
  box-shadow: var(--md-shadow-z2);
  overflow: hidden;
}

/* Side navigation */
.md-nav__title {
  font-family: var(--ov-display-font);
  font-weight: 700;
}

.md-nav__link:hover,
.md-nav__link:focus {
  color: var(--ov-accent);
}

/* Back to top, tooltips, keyboard focus */
.md-top {
  border-radius: 999px;
}

.md-tooltip,
.md-tooltip2 {
  border-radius: var(--ov-radius-xs);
}

.md-typeset .md-clipboard {
  border-radius: 6px;
}

/* Blog listing and post pages */
.md-post--excerpt {
  background-color: var(--ov-surface);
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius-md);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}

.md-post__header,
.md-post__meta {
  color: var(--ov-muted);
}

/* Cookie consent sheet */
.md-consent__inner {
  background-color: var(--ov-surface);
  border-top: 1px solid var(--ov-border);
  box-shadow: 0 -12px 40px rgba(16, 22, 24, 0.12);
}

.md-consent__controls {
  gap: 0.6rem;
}

.md-typeset figcaption {
  max-width: 25rem;
  font-size: 0.74rem;
}

hr {
  border: none !important;
  background: var(--ov-border);
  width: 100%;
  height: 1px;
}

.inner-table th {
  font-weight: inherit !important;
}

.md-tooltip2 {
  font-family: system-ui, Roboto, "Open Sans", "Helvetica Neue", sans-serif !important;
}

video::-internal-media-controls-overlay-cast-button {
  display: none;
}

/* Content tabs (pymdownx.tabbed) */

.tabbed-labels label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.tabbed-content {
  padding: 0 12px 0 16px;
  border: 1px solid var(--ov-border);
  border-top: none;
  border-bottom-left-radius: var(--ov-radius-sm);
  border-bottom-right-radius: var(--ov-radius-sm);
  background-color: var(--ov-surface);
}

.tabbed-content .tabbed-block code {
  background-color: var(--ov-ground);
}

.tabbed-content .tabbed-block .tabbed-content {
  padding: 0;
  border: none;
  border-radius: 0;
}

/* Announce banner and the outdated-version warning */

.md-banner {
  background-color: var(--ov-ink);
  color: var(--ov-ink-fg);
}

.md-banner #announce a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

div[data-md-component="outdated"] {
  position: fixed;
  bottom: 0;
  right: 0;
  margin-right: 3em;
  margin-bottom: 3em;
  text-align: center;
  z-index: 100000;
}

div[data-md-component="outdated"] aside {
  background-color: var(--ov-yellow);
  color: var(--ov-yellow-ink);
  border-radius: var(--ov-radius-sm);
}

div[data-md-component="outdated"] aside a {
  color: inherit;
}

/* Footer (overrides/partials/footer.html) */

.md-copyright {
  padding-top: 0.6rem;
}

.md-social {
  padding: 0;
  margin-left: -0.6rem;
}

.md-social__link {
  height: 2.2rem;
  width: 2.2rem;
  line-height: 2.2;
}

.md-social__link svg {
  max-height: 1.1rem;
}

/* Icon shortcodes wrap their SVG in a .twemoji span, which sizes it from this variable
   and aligns itself rather than the SVG */
.md-social__link .twemoji {
  --md-icon-size: 1.1rem;
  vertical-align: -25%;
}

.footer-grid {
  width: 100%;
  text-align: center;
  padding: 0.8rem 0 1rem 0;
}

.grid-container.footer-grid {
  max-width: none;
}

.footer-conditions-list {
  font-size: 0.64rem;
  display: grid;
}

.md-footer-meta .footer-column {
  text-align: left;
}

.md-footer-meta .md-social {
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.md-footer-meta .footer-column h4 {
  font-family: var(--ov-display-font);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ov-muted);
}

.md-footer-meta {
  border-top: 1px solid var(--ov-border);
}

.md-footer-meta.md-typeset a {
  color: var(--ov-muted);
}

.md-footer-meta.md-typeset a:hover,
.md-footer-meta.md-typeset a:focus {
  color: var(--ov-text);
}

.md-footer-meta .md-copyright {
  margin-left: 0 !important;
  padding-top: 0 !important;
  display: inline-block;
  vertical-align: top;
}

.md-typeset #mc-embedded-subscribe {
  min-height: 38px;
  padding: 0 1.1em;
  font-size: 0.7rem;
  background-color: var(--ov-ink);
  border-color: var(--ov-ink);
  color: var(--ov-ink-fg);
}

.md-typeset #mc-embedded-subscribe:hover,
.md-typeset #mc-embedded-subscribe:focus {
  background-color: var(--ov-btn-primary-hover);
  border-color: var(--ov-btn-primary-hover);
  color: var(--ov-ink-fg);
}

#mce-EMAIL {
  min-height: 38px;
  padding: 0 14px;
  background-color: var(--ov-ground);
  border: 1px solid var(--ov-border);
  border-radius: 999px;
  color: var(--ov-text);
  font-family: var(--md-text-font-family);
  font-size: 0.7rem;
}

#mce-EMAIL:focus {
  outline: none;
  border-color: var(--ov-accent);
  box-shadow: 0 0 0 3px rgba(var(--ov-accent-rgb), 0.2);
}

#mce-EMAIL::placeholder {
  color: var(--ov-muted);
}

.acknowledgments-footer {
  filter: saturate(0.8) contrast(0.92) brightness(0.96);
}

/* ==========================================================================
   3. Utilities (replace the recurring inline style="" attributes)
   ========================================================================== */

.nowrap {
  white-space: nowrap;
}

.text-center,
.center-align {
  text-align: center;
}

.w-8em {
  width: 8em;
}

.w-10em {
  width: 10em;
}

.w-15em {
  width: 15em;
}

.w-25 {
  width: 25%;
}

.w-50 {
  width: 50%;
}

.md-typeset .my-4em {
  margin: 4em 0;
}

.flex-row-center {
  display: flex;
  align-items: center;
  flex-flow: row wrap;
  justify-content: center;
}

.md-typeset .centered-section {
  text-align: center;
  margin: 2em 0;
}

.md-typeset .centered-section-lg {
  text-align: center;
  margin: 3em 0;
}

.control-height {
  max-height: 50vh;
}

.hide {
  display: none;
}

.hide-without-display,
.hide-without-display * {
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  display: inline-block !important;
}

.not-selectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Grid cards */

.no-border,
.no-border li {
  border: none !important;
}

.no-shadow,
.no-shadow li {
  box-shadow: none !important;
}

.round-corners {
  border-radius: 8px;
}

.three-cols {
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 12rem), 1fr)
  ) !important;
}

/* Icons */

.icon {
  margin: 5px;
}

.lg-icon {
  font-size: 1.5rem;
}

.large-icon {
  --md-icon-size: 1.5em !important;
}

.card-icon {
  font-size: 1.5em;
}

.tab-icon {
  display: block !important;
}

.external-link-icon {
  font-size: 0.75em;
}

/* Product colours on arbitrary elements */

.platform-primary-color {
  background-color: var(--ov-platform-primary) !important;
  border-color: var(--ov-platform-primary) !important;
}

.meet-primary-color {
  background-color: var(--ov-meet-primary) !important;
  border-color: var(--ov-meet-primary) !important;
}

/* As buttons (the Meet vs Platform table) they are the landing's routed pills: the product's
   bright accent with its dark ink, legible in both schemes */
.md-typeset .md-button.platform-primary-color,
.md-typeset .md-button.platform-primary-color:is(:hover, :focus) {
  background-color: var(--ov-platform-accent) !important;
  border-color: var(--ov-platform-accent) !important;
  color: var(--ov-platform-ink);
}

.md-typeset .md-button.meet-primary-color,
.md-typeset .md-button.meet-primary-color:is(:hover, :focus) {
  background-color: var(--ov-meet-accent) !important;
  border-color: var(--ov-meet-accent) !important;
  color: var(--ov-meet-ink);
}

.md-typeset .md-button:is(.platform-primary-color, .meet-primary-color):is(:hover, :focus) {
  filter: brightness(1.08);
}

.meet-link-color {
  color: var(--ov-meet-accent) !important;
}

.platform-link-color {
  color: var(--ov-platform-accent) !important;
}

.accent-code {
  color: var(--ov-ink-fg) !important;
  font-weight: bold;
  background-color: var(--ov-ink);
}

/* Keep identifiers in a table's first column on one line. Material sets
   word-break: break-word on all inline code, which splits names like
   `roomConfig` mid-word in narrow cells.

   Opt a table in by wrapping it (not the table itself) in:
       <div class="nowrap-first-column" markdown>
   Material finds tables with "table:not([class])" to apply both its own styling
   and its horizontal-scroll wrapper, so putting the class on the <table> element
   would break the table instead of fixing it. Tables too wide to shrink still
   scroll inside Material's .md-typeset__scrollwrap. */
.md-typeset .nowrap-first-column th:first-child code,
.md-typeset .nowrap-first-column td:first-child code {
  white-space: nowrap;
}

/* For a table whose third column holds identifiers, such as the permissions of the embedded commands
   table, so they stay whole instead of being split mid-word. Opt in with:
       <div class="nowrap-third-column" markdown> */
.md-typeset .nowrap-third-column th:nth-child(3) code,
.md-typeset .nowrap-third-column td:nth-child(3) code {
  white-space: nowrap;
}

/* Flow a list of short items into as many columns as the width allows, instead
   of one tall single-file column. Opt in by wrapping the list in:
       <div class="column-list" markdown>
   The column width drives the count, so it collapses to one column on phones. */
.md-typeset .column-list ul {
  column-width: 11em;
  column-gap: 1.5rem;
}

.md-typeset .column-list li {
  break-inside: avoid;
}

/* A standalone image is centred whether or not the lightbox wrapped it in an anchor
   (`skip-gallery` images never get one), and whether its parent is a paragraph or a layout
   cell: an image written into a `markdown="span"` cell has no paragraph at all, and without
   the second pair it sits hard against the neighbouring text column. */
p:has(> a.glightbox),
p:has(> img),
div[class*="grid-"]:has(> a.glightbox),
div[class*="grid-"]:has(> img) {
  text-align: center;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* COMMUNITY / PRO product tags */

/* One size everywhere: 0.8em of the surrounding text, so the badge reads as a badge in a
   paragraph, a list, a table cell or a heading alike. Never size a tag inline. */
.openvidu-tag {
  pointer-events: none;
  display: inline-block;
  margin: 0 3px 0 3px;
  color: white;
  font-weight: 700;
  padding: 0px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-size: 0.8em;
  line-height: 1.8em;
  font-family: var(--md-text-font-family);
  font-feature-settings: "kern", "liga";
  vertical-align: text-bottom;
}

.openvidu-community-tag {
  background-color: var(--ov-grey);
}

.openvidu-pro-tag {
  background-color: var(--ov-pro);
}

.openvidu-deprecated-tag {
  background-color: #e65100;
}

/* The tag inside a nav label (mkdocs.yml `nav:` entries) */
.openvidu-tag-nav {
  pointer-events: none;
  display: inline-block;
  margin: 0 3px 0 3px;
  color: white;
  font-weight: 700;
  padding: 0px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-size: 0.6em;
  line-height: 1.9em;
  font-family: var(--md-text-font-family);
  font-feature-settings: "kern", "liga";
  vertical-align: text-bottom;
}

span:has(> .openvidu-tag) {
  display: inline-block;
}

span:has(> a > .openvidu-tag) {
  display: inline-block;
}

/* Pricing table */

#pricing-table th,
#pricing-table td {
  text-align: center;
  vertical-align: middle;
  width: 22%;
  font-size: 0.7rem;
}

#pricing-table[name="big-pricing-table"] {
  width: auto;
  margin: 2vw 6vw;
}

#pricing-table th:first-child,
#pricing-table td:first-child {
  width: 13%;
}

#pricing-table .openvidu-tag {
  vertical-align: top;
}

#pricing-table .title {
  font-size: 0.74rem;
}

#pricing-table .title .openvidu-tag {
  font-size: 0.7rem;
}

#pricing-table[name="big-pricing-table"] .title {
  font-size: 0.85rem;
}

#pricing-table[name="big-pricing-table"] .title .openvidu-tag {
  font-size: 0.8rem;
}

#pricing-table .first-column {
  font-weight: 700;
}

#pricing-table .border-right {
  border-right: 0.05rem solid var(--md-typeset-table-color);
}

#pricing-table .border-left {
  border-left: 0.05rem solid var(--md-typeset-table-color);
}

.price-cell {
  font-size: 0.9rem !important;
  font-weight: 700;
  font-family: var(--ov-display-font);
  color: var(--ov-text);
  margin-left: 10px;
}

/* Comparison tables (OpenVidu vs ...) */

.compare-table-logo {
  max-height: 60px;
}

.compare-table-icon-yes {
  color: var(--ov-meet-accent);
  --md-icon-size: 1.525em !important;
}

.compare-table-icon-no {
  color: rgb(255, 0, 0);
  --md-icon-size: 1.525em !important;
}

.compare-table-icon-progress {
  color: #00a2ca;
  --md-icon-size: 1.525em !important;
}

/* Section slogans and the closing call to action */

.second-slogan {
  padding: 0 3em;
}

.second-slogan h2 {
  font-size: 2em;
  text-align: center;
  margin-top: 0;
  text-wrap: balance;
}

/* Closing call to action: a centred block set off from the content above it. The
   .md-typeset prefix outranks Material's `> :last-child { margin-bottom: 0 }` reset, which
   the block usually is. */
.md-typeset .cta-section {
  margin: 4em 0;
  text-align: center;
}

/* On the content pages the call to action is a surface card like the landing's, with the
   display type at its weight and the solid ink pill as the action */
.md-typeset .second-slogan.cta-section {
  padding: 2.6em 2em;
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius);
  background: var(--ov-surface);
}

.md-typeset .cta-section h2 {
  margin-bottom: 1em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.md-typeset .cta-section .md-button.home-secondary-button {
  padding: 0.75em 1.6em;
  background-color: var(--ov-ink);
  border-color: var(--ov-ink);
  color: var(--ov-ink-fg);
  font-size: 0.85rem;
}

.md-typeset .cta-section .md-button.home-secondary-button:is(:hover, :focus) {
  background-color: var(--ov-btn-primary-hover);
  border-color: var(--ov-btn-primary-hover);
  color: var(--ov-ink-fg);
}

/* Pricing: the per-core price is the landing's yellow price panel */
.md-typeset .pricing-text {
  margin: 1.5em 0 2em;
  padding: 1.8em 1.5em 2em;
  border-radius: var(--ov-radius);
  background: var(--ov-yellow);
  color: var(--ov-yellow-ink);
  font-size: 1.3em;
  line-height: 1.4;
  text-align: center;
}

.md-typeset .pricing-quant {
  margin-bottom: 0.15em;
  font-family: var(--ov-display-font);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: 3.2em;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-cell__pro {
  font-weight: 700;
}

.price-cell__amount {
  font-family: var(--ov-display-font);
  font-weight: 800;
  font-size: 1.3em;
  letter-spacing: -0.02em;
}

.md-typeset .cta-section .cta-title {
  margin-bottom: 0.5em;
}

.md-typeset .cta-section .cta-lead {
  margin-bottom: 1.5em;
}

.logo-header {
  text-align: center;
  margin-bottom: 0.6em;
}

h1.meetplatform-slogan,
h2.meetplatform-slogan {
  text-align: center;
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 1.6em;
}

/* Match the h2 slogans' look: Material gives h1 a lighter color by default */
h1.meetplatform-slogan {
  color: var(--md-default-fg-color);
}

/* Lead paragraph under a product slogan: the one-sentence definition of the
   product, above the feature cards (Meet landing page). */
.md-typeset p.meetplatform-intro {
  text-align: center;
  max-width: 44em;
  margin: -0.8em auto 2.2em;
}

/* Deploy buttons (self-hosting install pages) */

.deploy-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  max-width: fit-content;
  margin: auto;
}

.deploy-button.deploy-to-aws-btn {
  background-color: var(--ov-aws-orange);
  border: none;
  border-radius: 999px;
  color: var(--ov-aws-navy) !important;
  padding: 8px 24px;
  font-size: 1.2em;
  transition: all 0.125s ease;
  margin-top: 2em;
  margin-bottom: 2em;
}

.deploy-button.deploy-to-aws-btn:hover {
  background-color: var(--ov-aws-orange) !important;
  filter: saturate(50%) brightness(130%);
}

.deploy-button-icon {
  font-size: 36px;
  margin-right: 14px;
}

.deploy-to-azure-btn img {
  min-width: 250px;
  transition: all 0.125s ease;
}

.deploy-to-azure-btn img:hover {
  filter: saturate(50%) brightness(130%);
}

/* Tutorial cards, provider buttons and chips */

.tutorials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  text-align: center;
}

.tutorial-link {
  flex: 1;
  height: 100px;
  width: 162px;
  padding: 10px !important;
}

.no-width {
  width: inherit;
}

.provider-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.provider-buttons p {
  margin: 0;
}

.provider-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 16px !important;
  min-height: 88px;
  max-height: 103px;
  border-radius: var(--ov-radius-sm);
  border: 1px solid var(--ov-border);
  background-color: var(--ov-surface);
  box-shadow: none;
  font-size: 1.04rem;
  text-align: left;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.provider-link:hover {
  transform: translateY(-1px);
  border-color: var(--ov-accent);
  box-shadow: 0 10px 30px rgba(16, 22, 24, 0.08);
}

.provider-link .provider-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 2.55rem;
  line-height: 1;
  flex-shrink: 0;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--ov-ink);
  border-radius: 999px;
  background-color: var(--ov-ink);
  color: var(--ov-ink-fg);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  user-select: none;
}

.provider-chip p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.provider-chip-icon {
  font-size: 1.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
}

/* Lightbox (mkdocs-glightbox) */

.gslide-image {
  max-width: 1500px;
}

.gslide-image img {
  background: transparent !important;
}

.glightbox-clean .gslide-video {
  background: transparent !important;
}

.glightbox-clean .gslide-video video {
  background: transparent !important;
}

.gzoomIn {
  animation: gzoomIn 0.4s ease !important;
}

.gzoomOut {
  animation: gzoomOut 0.2s ease !important;
}

.gfadeOut {
  animation: gfadeOut 0.2s ease !important;
}

/* Research page: publication badges, the index table and the metadata line */

.pub-badge {
  display: inline-block;
  padding: 0.1em 0.65em;
  border-radius: 1em;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}

.pub-phdthesis {
  background: #ede7f6;
  color: #4527a0;
}

.pub-journal {
  background: #e3f2fd;
  color: #0d47a1;
}

.pub-conference {
  background: #e8f5e9;
  color: #1b5e20;
}

[data-md-color-scheme="slate"] .pub-phdthesis {
  background: rgba(124, 77, 255, 0.22);
  color: #d1c4e9;
}

[data-md-color-scheme="slate"] .pub-journal {
  background: rgba(33, 150, 243, 0.22);
  color: #90caf9;
}

[data-md-color-scheme="slate"] .pub-conference {
  background: rgba(76, 175, 80, 0.22);
  color: #a5d6a7;
}

.research-index table {
  font-size: 0.85rem;
}

.research-index td:first-child,
.research-index td:nth-child(2) {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.research-index td:first-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.research-index td small {
  color: var(--md-default-fg-color--light);
}

.pub-meta {
  font-size: 0.85rem;
  margin-top: -0.4rem;
}

.pub-meta .pub-sep {
  color: var(--md-default-fg-color--lighter);
  margin: 0 0.4em;
}

/* ==========================================================================
   5. Page areas
   ========================================================================== */

/* Hero-adjacent classes the content pages share (the landing's own hero is in home.css) */

.home-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em 0.6em;
  width: 100%;
  text-align: center;
}

.home-buttons a {
  margin: 0;
}

.home-under-cta {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.8em;
}

.home-under-cta a {
  text-decoration: underline;
  cursor: pointer;
}

.home-under-cta-sep {
  margin: 0 0.5em;
}

/* About us */

/* Constrains the width, not the height: the portraits carry width/height attributes, so
   their width is definite, and a max-height would clamp the two axes independently and
   stretch them. 376px is the intended display width - half the 752px source, so the
   portraits stay sharp on a 2x display. Needs the `.md-typeset` prefix to outrank the
   theme's own `.md-typeset img { max-width: 100% }`. */
.md-typeset .about-us-img {
  max-width: 376px;
}

/* Account page */

.register-container {
  margin: 0 6vw 0 6vw;
}

/* The account app (openvidu-register) is an Angular Material web component in a shadow
   root. It still declares the old theme on its :host (Tomorrow, Material teal, white
   surfaces); declarations on the host element from the page win over :host rules, and
   custom properties inherit into the shadow tree, so the design's tokens go here: type
   families, ink as the primary (solid ink pill buttons), the scheme's surfaces and outlines,
   and the design's radii. Declared on the element so var() resolves per scheme. */
[data-md-color-scheme] openvidu-register {
  --ov-reg-body: "Instrument Sans", system-ui, sans-serif;
  --ov-reg-display: "Lexend", "Instrument Sans", system-ui, sans-serif;
  --mat-sys-body-large-font: var(--ov-reg-body);
  --mat-sys-body-medium-font: var(--ov-reg-body);
  --mat-sys-body-small-font: var(--ov-reg-body);
  --mat-sys-label-large-font: var(--ov-reg-body);
  --mat-sys-label-medium-font: var(--ov-reg-body);
  --mat-sys-label-small-font: var(--ov-reg-body);
  --mat-sys-title-large-font: var(--ov-reg-display);
  --mat-sys-title-medium-font: var(--ov-reg-body);
  --mat-sys-title-small-font: var(--ov-reg-body);
  --mat-sys-headline-large-font: var(--ov-reg-display);
  --mat-sys-headline-medium-font: var(--ov-reg-display);
  --mat-sys-headline-small-font: var(--ov-reg-display);
  --mat-sys-display-large-font: var(--ov-reg-display);
  --mat-sys-display-medium-font: var(--ov-reg-display);
  --mat-sys-display-small-font: var(--ov-reg-display);
  --mat-sys-body-large: 400 1rem / 1.5rem var(--ov-reg-body);
  --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--ov-reg-body);
  --mat-sys-body-small: 400 0.75rem / 1rem var(--ov-reg-body);
  --mat-sys-label-large: 600 0.9375rem / 1.25rem var(--ov-reg-body);
  --mat-sys-label-medium: 500 0.75rem / 1rem var(--ov-reg-body);
  --mat-sys-label-small: 500 0.6875rem / 1rem var(--ov-reg-body);
  --mat-sys-title-large: 700 1.375rem / 1.75rem var(--ov-reg-display);
  --mat-sys-title-medium: 600 1rem / 1.5rem var(--ov-reg-body);
  --mat-sys-title-small: 600 0.875rem / 1.25rem var(--ov-reg-body);
  --mat-sys-headline-large: 800 2rem / 2.4rem var(--ov-reg-display);
  --mat-sys-headline-medium: 800 1.75rem / 2.1rem var(--ov-reg-display);
  --mat-sys-headline-small: 800 1.5rem / 1.9rem var(--ov-reg-display);
  --mat-sys-display-large: 800 3.5rem / 3.8rem var(--ov-reg-display);
  --mat-sys-display-medium: 800 2.8rem / 3.1rem var(--ov-reg-display);
  --mat-sys-display-small: 800 2.25rem / 2.6rem var(--ov-reg-display);
  --mat-sys-primary: var(--ov-ink);
  --mat-sys-on-primary: var(--ov-ink-fg);
  --mat-sys-surface-tint: var(--ov-ink);
  --mat-sys-primary-container: var(--ov-surface-2);
  --mat-sys-on-primary-container: var(--ov-text);
  --mat-sys-secondary: var(--ov-muted);
  --mat-sys-secondary-container: var(--ov-surface-2);
  --mat-sys-on-secondary-container: var(--ov-text);
  --mat-sys-background: var(--ov-ground);
  --mat-sys-on-background: var(--ov-text);
  --mat-sys-surface: var(--ov-surface);
  --mat-sys-surface-bright: var(--ov-surface);
  --mat-sys-surface-dim: var(--ov-surface-2);
  --mat-sys-surface-variant: var(--ov-surface-2);
  --mat-sys-surface-container-lowest: var(--ov-surface);
  --mat-sys-surface-container-low: var(--ov-surface);
  --mat-sys-surface-container: var(--ov-surface-2);
  --mat-sys-surface-container-high: var(--ov-surface-2);
  --mat-sys-surface-container-highest: var(--ov-surface-2);
  --mat-sys-on-surface: var(--ov-text);
  --mat-sys-on-surface-variant: var(--ov-muted);
  --mat-sys-outline: var(--ov-muted);
  --mat-sys-outline-variant: var(--ov-border);
  --mat-sys-inverse-surface: var(--ov-ink);
  --mat-sys-inverse-on-surface: var(--ov-ink-fg);
  --mat-sys-corner-extra-small: 10px;
  --mat-sys-corner-small: 12px;
  --mat-sys-corner-medium: 14px;
  --mat-sys-corner-large: 20px;
  --mat-sys-corner-extra-large: 28px;
  --mat-button-filled-container-shape: 999px;
  --mat-button-outlined-container-shape: 999px;
  --mat-button-text-container-shape: 999px;
  --mat-button-protected-container-shape: 999px;
  --mat-button-tonal-container-shape: 999px;
  --mat-form-field-outlined-container-shape: 14px;
  --mat-form-field-filled-container-shape: 14px;
}

[data-md-color-scheme="slate"] openvidu-register {
  --mat-sys-error: #ff8a80;
  --mat-sys-on-error: #3b0906;
  --mat-sys-error-container: #5c1712;
  --mat-sys-on-error-container: #ffdad6;
}

/* Platform docs: use cases, basic concepts, AI services */

.use-case-img {
  padding: 1.5em;
}

.basic-concepts-img-1 {
  width: 82%;
}

.basic-concepts-img-2 {
  width: 100%;
}

/* The left diagram is the narrower of the pair, so its caption has to drop to
   line up with the caption of the one beside it */
.basic-concepts-caption figcaption {
  margin-top: 3em;
}

.ai-service-icon {
  font-size: 2em;
  margin-right: 0.3em;
}

.ai-agent-link {
  display: block;
  margin-left: 3em;
}

.ai-provider-icon {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   6. Responsive: one block per breakpoint, widest first
   ========================================================================== */

@media (min-width: 1220px) {
  .grid-20.footer-products-gap {
    margin-left: 1.2rem;
    width: calc(20% - 1.2rem);
  }
}

@media (max-width: 959px) {
  .register-container {
    margin: 0;
  }

  #account-btn .user-name {
    display: none;
  }

  .second-slogan h2 {
    font-size: 1.5em !important;
  }

  .log-in-div {
    width: 7rem !important;
    font-size: 0.7rem !important;
    margin-left: 1em !important;
    margin-right: 0.7em !important;
  }

  /* The account pill wraps to two lines rather than overflowing the narrow header */
  .md-typeset .md-button.sign-btn-in-styles,
  .md-typeset .md-button.sign-btn-out-styles {
    min-height: 0;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.58rem !important;
    line-height: 1.15;
    white-space: normal;
  }

  [dir="ltr"] .md-header__title {
    margin-left: 0.7rem !important;
  }

  [dir="ltr"] .md-version__current {
    margin-left: 0.8rem !important;
  }

  /* Outdated warning */
  .outdated-warning-text {
    display: none;
  }

  div[data-md-component="outdated"] {
    margin-right: 2em !important;
    margin-bottom: 2em !important;
  }

  div[data-md-component="outdated"] aside div.md-banner__inner {
    margin: 0.3rem auto;
    padding: 0 0.5rem;
    font-size: 0.6rem;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .provider-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  /* Only the breadcrumbs may scroll sideways. A bare `nav` selector would catch
     the header too, and overflow-x: auto makes it a clip container that traps
     the version dropdown inside the header bar. */
  .md-path {
    overflow-x: auto;
  }

  /* Room for the version button's full "X.Y latest" beside the palette toggle. */
  [dir="ltr"] .md-version__current {
    margin-left: 0.2rem !important;
  }

  .log-in-div {
    width: 6rem !important;
    margin-left: 0.2em !important;
    margin-right: 0.4em !important;
  }
}

@media screen and (max-width: 480px) {
  .provider-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .md-header__button.md-icon {
    margin-left: 0.1rem;
    margin-right: 0.1rem;
  }

  [dir="ltr"] .md-version__current {
    margin-left: 0.1rem !important;
  }

  .log-in-div {
    width: 5.2rem !important;
  }
}
