@font-face {
  font-family: 'Golos', sans-serif;
  src: url('../fonts/GolosText-Regular.ttf');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Figtree', sans-serif;
  src: url('../fonts/Figtree-Regular.ttf');
  font-weight: 400;
  font-style: normal;
}

:root {
  --md-primary-fg-color: #1D335D;
  --md-accent-fg-color: #86A0CB;

  --md-typeset-color: #1D335D;
  --md-typeset-a-color: #86A0CB;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-weight: 500;
  font-family: 'Golos', sans-serif;
  color: #1D335D;
}

.md-typeset {
  font-family: 'Figtree', sans-serif;
}

.md-typeset a {
  color: #2F54A1;
  font-weight: bold;
}

.md-typeset a:hover {
  color: #BED1ED;
  font-weight: bold;
}

/* Disable site_name as nav__title on desktop only (keep it on mobile for back navigation) */
@media screen and (min-width: 60em) {
  .md-nav__title {
    display: none;
  }
}

.subsection-title {
  color: #1D335D;
    font-size: 1.2em;
    /* font-weight: bold; */
    display: block;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Texte principal des admonitions */
.md-typeset .admonition-content {
    font-size: 1rem !important;  /* 1rem = taille standard du texte */
    line-height: 1.6 !important;
}

/* Titre de l'admonition */
.md-typeset .admonition-title {
    font-size: 16px;
}

li {
      font-size: 16px;
}

p {
    font-size: 16px;
}

.centered-figure {
  text-align: center;
}

.centered-figure img {
  display: inline-block; /* centre l’image */
}

.inline-icon {
    width: 1em;       /* taille de l'icône, proportionnelle au texte */
    height: 1em;
    vertical-align: middle; /* pour être aligné avec le texte */
}

/* Match par URL du lien dans la sidebar */
.md-nav__link[href$="section-introduction/"],
.md-nav__link[href$="section-introduction.html"],
.md-nav__link[href$="section-introduction.md"] {
  font-style: italic;
  color: #2F54A1;
}

/* .md-nav__link[href$="section-introduction/"]:hover,
.md-nav__link[href$="section-introduction.html"]:hover,
.md-nav__link[href$="section-introduction.md"]:hover {
  color: var(--md-accent-fg-color);
} */

/* Badges Avalon */
.badge { padding: 2px 8px; border-radius: 12px; font-size: 0.85em; font-weight: 500; display: inline-block; }
.badge-gray   { background-color: #f3f4f6; color: #374151; } /* Pending */
.badge-blue   { background-color: #dbeafe; color: #1e40af; } /* Ongoing */
.badge-green  { background-color: #dcfce7; color: #166534; } /* Success */
.badge-orange { background-color: #fef9c3; color: #854d0e; } /* Partial */
.badge-red    { background-color: #fee2e2; color: #991b1b; } /* Failed */

/* Header Release Badge and Language Selector */
.md-header__release-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.md-header__release-badge,
.md-header__lang-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  white-space: nowrap;
  font-family: 'Figtree', sans-serif;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  font-weight: 500;
}

[data-md-color-scheme="slate"] .md-header__release-badge,
[data-md-color-scheme="slate"] .md-header__lang-badge {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}


/* Hide badges when they interfere with search icon (keep search icon as priority) */
@media screen and (max-width: 76.25em) {
  .md-header__release-info {
    display: none;
  }
}