/* OpenWorld Radio Twin documentation styling on top of pydata-sphinx-theme. */

html {
  --pst-font-size-base: 15px;
  --owrt-accent: #1f6feb;
  --owrt-accent-soft: rgba(31, 111, 235, 0.10);
}

html[data-theme="light"] {
  --pst-color-primary: #1f6feb;
  --pst-color-secondary: #0e7c86;
  --pst-color-link: #1f6feb;
  --pst-color-link-hover: #0b4fb8;
}

html[data-theme="dark"] {
  --pst-color-primary: #6ea8fe;
  --pst-color-secondary: #3ec1d3;
  --pst-color-link: #6ea8fe;
  --pst-color-link-hover: #9ec5fe;
}

/* Landing page hero. */
.owrt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin: 1rem 0 2rem;
}
.owrt-hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.owrt-hero p.lead {
  font-size: 1.15rem;
  color: var(--pst-color-text-muted);
}
.owrt-hero img {
  border-radius: 0.6rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
@media (max-width: 900px) {
  .owrt-hero {
    grid-template-columns: 1fr;
  }
}

/* Card grid on the landing page and section indexes. */
.sd-card {
  border-radius: 0.6rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.sd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.sd-card .sd-card-title {
  font-weight: 600;
}
.owrt-card-icon {
  font-size: 1.6rem;
  color: var(--owrt-accent);
}

/* Compact figure captions. */
figure.align-center figcaption p,
.figure figcaption p {
  font-size: 0.9rem;
  color: var(--pst-color-text-muted);
}

/* Tables in contracts read better left-aligned and slightly denser. */
table.table td,
table.table th {
  padding: 0.35rem 0.6rem;
  vertical-align: top;
}

/* Inline "API" badges. */
.owrt-badge {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--owrt-accent-soft);
  color: var(--owrt-accent);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}
