/* clearxx brand — pulled exactly from clearxx.ai's styles.css design tokens */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700;800&family=Varela+Round&family=Fira+Code:wght@400;500&display=swap');

html {
  overflow-y: scroll;
}

:root {
  --av-ice-2:   #F8F9FF;
  --av-ice-4:   #E0E4FF;
  --av-ice-6:   #C0C8FF;
  --av-ice-7:   #8890DD;
  --av-ice-10:  #44488A;
  --av-ice-11:  #14163A;
  --av-slate-6: #6E6E90;
  --av-slate-7: #4A4A6A;

  /* Material theme custom palette overrides */
  --md-primary-fg-color:        var(--av-ice-10);
  --md-primary-fg-color--light: var(--av-ice-7);
  --md-primary-fg-color--dark:  var(--av-ice-11);
  --md-accent-fg-color:         var(--av-ice-10);
}

/* Header: white background only, matching the live clearxx.ai nav bar */

.md-header {
  background-color: #ffffff;
  color: var(--av-ice-11);
  box-shadow: none;
  border-bottom: 1px solid var(--av-ice-4);
}

.md-header__title,
.md-header__topic {
  color: var(--av-ice-11) !important;
}

.md-header__button svg,
.md-header__button.md-icon svg {
  fill: var(--av-ice-11) !important;
}

.md-search__input {
  background-color: var(--av-ice-4);
  color: var(--av-ice-11);
}

.md-search__input::placeholder {
  color: var(--av-slate-6) !important;
}

.md-search__icon svg {
  fill: var(--av-slate-6);
}

/* Tab bar (top-level sections): always fully visible, dark enough to read
   on white without needing hover — fixes both low contrast and the
   "invisible until hover" issue caused by Material's default 0.7 opacity */

.md-tabs {
  background-color: #ffffff;
  border-bottom: 1px solid var(--av-ice-4);
}

.md-tabs__link {
  opacity: 1 !important;
  color: var(--av-ice-11) !important;
  font-weight: 500;
}

.md-tabs__link--active {
  color: var(--av-ice-10) !important;
  font-weight: 700;
}

.md-tabs__link:hover {
  color: var(--av-ice-7) !important;
}

/* Left sidebar: darker, readable link colors instead of pale lavender */

.md-nav__link {
  color: var(--av-ice-11);
}

.md-nav__link--active,
.md-nav__item--active > .md-nav__link,
.md-nav__link:focus,
.md-nav__link:hover {
  color: var(--av-ice-10) !important;
}

/* Logo wordmark font, matching the marketing site's nav logo styling */

.md-header__title {
  font-family: 'Varela Round', sans-serif;
  letter-spacing: 0.05em;
}

/* Add visible border + shadow to content images (screenshots) so they
   don't blend into the white page background */

.md-content img {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- clearxx footer bar — Buddha icon + "may all beings be happy" in 21
   languages, replaces the "Made with Material" line via
   overrides/partials/copyright.html. Light lavender background (not
   black, not white) with dark navy icon/text for contrast. --- */

.md-footer,
.md-footer-meta {
  background-color: var(--av-ice-4) !important;
}

.clearxx-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.clearxx-footer-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  color: var(--av-ice-11);
}

.clearxx-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.clearxx-marquee__track {
  display: inline-block;
  animation: clearxx-marquee-scroll 60s linear infinite;
}

.clearxx-marquee__track span {
  display: inline-block;
  padding: 0 2rem;
  font-size: .65rem;
  color: var(--av-ice-11);
}

@keyframes clearxx-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- clearxx footer bar: fixed at the bottom of the viewport.
   Keep normal page scrolling and reserve enough scroll space at the
   bottom so the final page content can clear the gap and footer. --- */

.md-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

/* Fixed opaque buffer between scrolling page content and the marquee */

.md-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 50px;
  background: #ffffff;
  z-index: -1;
}

/* Extra scrollable space so the very end of the page can be brought
   completely above the fixed buffer and footer. */

.md-main {
  padding-bottom: 120px;
}

/* Horizontal rule (---): default Material styling is too faint to see
   against the light theme — darken it to match the brand palette */
.md-typeset hr {
  border-bottom: 1px solid var(--av-ice-6);
  height: 2px;
}