:root {
  --tt-heading-color: rgb(51, 51, 51);
  --tt-h5-border-color: rgb(75, 75, 75);
}

[data-md-color-scheme="slate"] {
  --tt-heading-color: rgba(235, 240, 248, 0.95);
  --tt-h5-border-color: rgba(173, 189, 209, 0.45);
}

.md-header {
  background-color: #ffffff;
  color: #1f2937;
}

.md-tabs {
  background-color: #ffffff;
  color: #1f2937;
}

.md-tabs .md-tabs__link {
  color: #1f2937;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: #232a33;
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: #232a33;
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-tabs .md-tabs__link {
  color: #ffffff;
}

.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 {
  color: var(--tt-heading-color);
  font-weight: 700;
}
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 {
  margin-bottom: 10px;
}

.md-typeset h3 {
  margin-top: 10px;
}

.md-typeset h5 {
  margin-bottom: 2px;
  color: var(--tt-heading-color);
  border-bottom: 1px solid var(--tt-h5-border-color);
  display: inline-block;
}

.md-typeset p, .md-typeset li {
  font-size: 0.7rem;
  margin-top: 2px;
}

img {
  inset: 0;
  width: 100%;
  max-width: 800px;
  object-fit: cover;
  display: block;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--ts-border-subtle);
  box-shadow: 0 6px 18px -6px rgba(var(--ts-shadow-color, 0 0 0) / 0.35);
  margin: 0 auto;
}

.md-logo img{
  border-radius: 0;
  border: none;
  box-shadow: none;
}

img.medium {
  max-width: 400px;
}

img.small {
  max-width: 200px;
}

img.icon {
  max-width: 25px;
  border-radius: 5px;
}

.md-typeset figure.right {
  margin: 0;
  margin-left: auto;
}

.md-typeset figure.left {
  margin: 0;
  margin-right: auto;
}

video, .video-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--ts-border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px -6px rgba(var(--ts-shadow-color, 0 0 0) / 0.35);
  margin: 1.25rem auto;
}

video, .video-container:hover {
  box-shadow: 0 10px 28px -10px rgba(var(--ts-shadow-color, 0 0 0) / 0.55);
}

.md-typeset a {
  font-weight: 700;
  color: #30afff;
  background-color: #fff0;
  transition: all .2s;
}

.md-typeset a:hover {
  outline: 0;
}

svg.ax {
  fill: none;
  stroke: #000;
  stroke-width: 2px;
  stroke-linecap: round;
  overflow: visible;
  width: 100px;
}

/* Homepage landing layout */
.tt-home {
  --tt-home-accent: #0b7fc6;
  --tt-home-accent-strong: #085d92;
  --tt-home-surface: #ffffff;
  --tt-home-muted-surface: #f3f8fc;
  --tt-home-border: rgba(12, 44, 77, 0.14);
  --tt-home-shadow: 0 16px 40px -26px rgba(12, 36, 67, 0.5);
  --tt-home-hero-bg:
    radial-gradient(800px 340px at 0% -10%, rgba(45, 150, 223, 0.2), transparent 62%),
    radial-gradient(760px 320px at 100% 0%, rgba(14, 177, 145, 0.14), transparent 64%),
    linear-gradient(135deg, #f9fcff 0%, #eef6fd 100%);
  margin: 0 auto;
  max-width: 1120px;
  padding-bottom: 2rem;
}

[data-md-color-scheme="slate"] .tt-home {
  --tt-home-accent: #5ab7f2;
  --tt-home-accent-strong: #3b94cf;
  --tt-home-surface: #151a23;
  --tt-home-muted-surface: #101720;
  --tt-home-border: rgba(140, 176, 210, 0.2);
  --tt-home-shadow: 0 18px 45px -28px rgba(0, 0, 0, 0.75);
  --tt-home-hero-bg:
    radial-gradient(880px 380px at 0% -10%, rgba(49, 147, 214, 0.28), transparent 62%),
    radial-gradient(740px 320px at 100% 0%, rgba(37, 154, 128, 0.16), transparent 64%),
    linear-gradient(135deg, #1a2230 0%, #131c28 100%);
}

.tt-home p,
.tt-home li {
  font-size: 0.88rem;
  line-height: 1.55;
}

.tt-home section + section {
  margin-top: 1rem;
}

.tt-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tt-home-border);
  border-radius: 18px;
  background: var(--tt-home-hero-bg);
  box-shadow: var(--tt-home-shadow);
  padding: clamp(1.1rem, 3vw, 2rem);
  animation: tt-home-rise 500ms ease both;
}

.tt-kicker {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tt-home-accent);
  margin: 0;
}

.tt-hero h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.1;
}

.tt-hero p {
  max-width: 72ch;
}

.tt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.tt-home .md-button {
  margin: 0;
}

.tt-home .md-button--primary {
  border-color: var(--tt-home-accent-strong);
  background-color: var(--tt-home-accent);
}

.tt-panel {
  border: 1px solid var(--tt-home-border);
  border-radius: 16px;
  background: var(--tt-home-surface);
  box-shadow: var(--tt-home-shadow);
  padding: clamp(0.95rem, 2.4vw, 1.4rem);
  animation: tt-home-rise 560ms ease both;
}

.tt-panel:nth-of-type(2) {
  animation-delay: 80ms;
}

.tt-panel:nth-of-type(3) {
  animation-delay: 140ms;
}

.tt-panel:nth-of-type(4) {
  animation-delay: 190ms;
}

.tt-panel h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.tt-steps {
  margin: 0;
  padding-left: 1.1rem;
}

.tt-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.3rem 1.1rem;
  margin: 0;
  padding-left: 1.1rem;
}

.tt-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-top: 0.55rem;
}

.tt-card {
  background: var(--tt-home-muted-surface);
  border: 1px solid var(--tt-home-border);
  border-radius: 13px;
  padding: 0.8rem 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: tt-home-rise 600ms ease both;
}

.tt-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tt-home-border), var(--tt-home-accent) 34%);
  box-shadow: 0 14px 28px -20px rgba(12, 33, 60, 0.52);
}

.tt-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.tt-card ul {
  margin: 0;
  padding-left: 1.05rem;
}

.tt-card li + li {
  margin-top: 0.12rem;
}

.tt-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--tt-home-border);
}

.tt-footer-links a {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes tt-home-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .tt-home {
    max-width: 100%;
  }

  .tt-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tt-doc-grid {
    grid-template-columns: 1fr;
  }
}
