/* OSDU Teal Theme — brand color #036A6E */

/* ── Base font scale (≈ 110% of Material default) ────────── */
.md-typeset {
  font-size: 0.88rem;
  line-height: 1.7;
}

.md-typeset table:not([class]) {
  font-size: 0.88rem;
}

/* ── Global variables ──────────────────────────────────────── */
:root > * {
  --md-typeset-a-color: #0199a1;
  --md-footer-fg-color: hsla(0, 0%, 100%, 1);
  --md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);
  --md-footer-fg-color--lighter: hsla(0, 0%, 100%, 0.3);
  --md-footer-bg-color: #036A6E;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #036A6E;
  --md-primary-fg-color--light: #0a8f94;
  --md-primary-fg-color--dark: #034f52;
  --md-primary-bg-color: hsla(0, 0%, 100%, 1);
  --md-accent-fg-color: #02c9d3;
  --md-footer-bg-color: #036A6E;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #034f52;
  --md-primary-fg-color--light: #0a8f94;
  --md-primary-fg-color--dark: #023638;
  --md-accent-fg-color: #02c9d3;
  --md-footer-bg-color: #034f52;
}

/* ── Header + tabs — teal background, white text ───────────── */
.md-header {
  background-color: #036A6E !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.md-tabs {
  background-color: #036A6E !important;
}

.md-header *,
.md-header .md-header__title,
.md-header .md-header__topic,
.md-header .md-header__button,
.md-header .md-source,
.md-header .md-source__repository,
.md-header .md-source__fact,
.md-header .md-icon {
  color: hsla(0, 0%, 100%, 1) !important;
}

.md-search__form {
  background-color: hsla(0, 0%, 100%, 0.12) !important;
  color: hsla(0, 0%, 100%, 0.7) !important;
}

.md-search__form:hover,
.md-search__form:focus-within {
  background-color: hsla(0, 0%, 100%, 0.22) !important;
}

.md-search__input {
  color: hsla(0, 0%, 100%, 1) !important;
  caret-color: #fff;
}

.md-search__input::placeholder {
  color: hsla(0, 0%, 100%, 0.7) !important;
}

/* Override Material's sibling selectors for search icon */
.md-search__input ~ .md-search__icon,
.md-search__input + .md-search__icon,
.md-search__icon {
  color: hsla(0, 0%, 100%, 0.7) !important;
}

.md-search__icon svg,
.md-search__icon svg path {
  fill: currentColor !important;
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__input ~ .md-search__icon,
[data-md-toggle="search"]:checked ~ .md-header .md-search__input + .md-search__icon {
  color: hsla(0, 0%, 100%, 0.7) !important;
}

.md-tabs__link {
  color: hsla(0, 0%, 100%, 0.7) !important;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: hsla(0, 0%, 100%, 1) !important;
}

/* ── Footer ────────────────────────────────────────────────── */
.md-footer-meta {
  background-color: var(--md-footer-bg-color);
}

/* ── Nav sidebar ───────────────────────────────────────────── */
li.md-nav__item--section > label.md-nav__link > span.md-ellipsis {
  color: #036A6E;
}

/* ── Hero section ──────────────────────────────────────────── */
/* Hide permalink on hero headings */
.md-typeset .no-permalink .headerlink,
.md-typeset .no-permalink a.headerlink {
  display: none !important;
}

/* Hero tagline — three-column spread */
.md-typeset .hero-tagline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #036A6E;
  margin: 1rem 0 2rem;
}

.hero-tagline__left,
.hero-tagline__center,
.hero-tagline__right {
  flex: 1 1 0;
}

.hero-tagline__left { text-align: left; }
.hero-tagline__center { text-align: center; }
.hero-tagline__right { text-align: right; }

[data-md-color-scheme="slate"] .md-typeset .hero-tagline {
  color: #10b5ba;
}

/* Product subtitle — strong, not muted */
.md-typeset h1 + h2 {
  margin-top: -0.3rem;
  font-weight: 400;
  font-size: 1.15rem;
  color: #036A6E;
  border-bottom: none;
  letter-spacing: 0.01em;
}

[data-md-color-scheme="slate"] .md-typeset h1 + h2 {
  color: #10b5ba;
  border-bottom: none;
}

/* Value proposition line */
.md-typeset h1 + h2 + p {
  font-size: 1.05rem;
  color: #444;
  max-width: 42rem;
}

[data-md-color-scheme="slate"] .md-typeset h1 + h2 + p {
  color: #bbb;
}

/* Pillar cards — force 3-column row */
.md-typeset .grid.pillars > ul {
  grid-template-columns: repeat(3, 1fr) !important;
}

.md-typeset .grid.pillars > ul > li {
  border-top: 3px solid #036A6E;
}

[data-md-color-scheme="slate"] .md-typeset .grid.pillars > ul > li {
  border-top: 3px solid #0a8f94;
}

/* ── Headings ──────────────────────────────────────────────── */
.md-typeset h1 { font-size: 2rem; }
.md-typeset h2 { font-size: 1.5rem; }
.md-typeset h3 { font-size: 1.2rem; }

.md-typeset h2 {
  color: #036A6E;
  border-bottom: 1px solid rgba(3, 106, 110, 0.2);
  padding-bottom: 0.3em;
  margin-top: 2.5rem;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  color: #10b5ba;
  border-bottom: 1px solid rgba(16, 181, 186, 0.2);
}

/* ── Layout polish ─────────────────────────────────────────── */
.md-typeset hr {
  margin: 2.5rem 0;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  padding: 1.2rem;
}

.md-typeset .grid.cards .twemoji,
.md-typeset .grid.cards .emojione {
  width: 1.5rem;
  height: 1.5rem;
}

.md-typeset .grid.steps > ul > li {
  border-top: 3px solid #036A6E;
}

[data-md-color-scheme="slate"] .md-typeset .grid.steps > ul > li {
  border-top: 3px solid #0a8f94;
}

/* ── Right-side TOC ────────────────────────────────────────── */
.md-nav--secondary .md-nav__link {
  font-weight: 400;
  color: #444;
}

.md-nav--secondary .md-nav__link--active {
  font-weight: 600;
  color: #036A6E;
}

[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__link--active {
  color: #10b5ba;
}

/* ── Admonitions ───────────────────────────────────────────── */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #036A6E;
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
  background-color: rgba(3, 106, 110, 0.1);
}

.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before {
  background-color: #036A6E;
}
