/* latin-ext (French accented characters, etc.) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.wy-nav-content-wrap {
  background: #fff !important;
}

.wy-nav-content {
  background: #fff !important;
}

/* Breadcrumb aside — flex row with gap so buttons are spaced and equal height */
.wy-breadcrumbs-aside {
    display: inline-flex !important;
    align-items: stretch !important;
    gap: 8px;
    vertical-align: middle;
}

/* Center MkDocs credit text (bare text node directly in <footer>) */
footer {
    text-align: center !important;
}

/* Shared action button — used for language switcher, training, and libreqda CTA */
.site-btn {
    background-color: #3a3a3a;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 0.82em;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    text-align: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.site-btn span {
    display: block;
    text-align: center;
}

.site-btn:hover {
    background-color: #4e4a4a;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

@media screen and (max-width: 768px) {
    .site-btn {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

/* Permissions table */
table.permissions-table {
  border-collapse: collapse;
  width: auto;
  margin: 1em 0;
  font-size: 0.8em;
}
table.permissions-table th,
table.permissions-table td {
  border: 1px solid #c8d0c8;
  padding: 8px 14px;
  vertical-align: middle;
}
table.permissions-table thead th {
  background-color: #4f9b4b;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
table.permissions-table thead th:first-child {
  background-color: #3a7a37;
}
table.permissions-table tbody th {
  background-color: #4f9b4b;
  color: #fff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
table.permissions-table tbody tr:nth-child(even) td {
  background-color: #f4faf4;
}
table.permissions-table tbody td {
  text-align: center;
  color: #2a7a27;
  font-size: 1.1em;
}

/* Partner logos constellation */
.partner-logos a {
    transition: transform 0.2s ease;
    display: inline-flex;
}

.partner-logos a:hover {
    transform: scale(1.06);
}

/* Collapsible nav section headers */
.wy-menu-vertical p.caption:hover {
    background-color: #4e4a4a;
    color: #d9d9d9;
}

body,
.wy-nav-content,
.wy-menu,
.wy-nav-side,
h1, h2, h3, h4, h5, h6,
p, a, li, td, th,
.rst-content {
  font-family: 'Montserrat', sans-serif !important;
}
