/* ================================================================ */
/* -------------------- настройка шрифта ---------------------------*/

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat_ttf/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat_ttf/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body, button, input, select, textarea {
  font-family: 'Montserrat', sans-serif;
}

/* жёстко переопределяем шрифт заголовоков h1–h6 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif !important;
}

/* ================================================================ */
/* ================================================================ */
/* Фирменный темно-синий цвет шапки сайдбара */
.wy-side-nav-search,
.wy-nav-top {
  background: #0C3446 !important;
}

/* ================================================================ */
/* ------------ вертикальный отступ под рисунками ----------------- */
figure {
  margin-bottom: 12px;
}

/* ================================================================ */
/* ----- обертка подписи рисунков для нормальной генерации пдф ----*/
.fig-caption {
    text-align: center;
    margin-top: 0.5em;   
    font-style: italic;  
}

/* ============================================== */
/* растянуть белое полотно во всю ширину */
.wy-nav-content {
    max-width: 100% !important;
    background-color: #ffffff;
}

/* ============================================== */
/* закраска классов, методов в терракотовый цвет */
/* все роли :blue: заменить на :code: */
.blue {
    color: #a31515;
    background: transparent;
    border: none;
    padding: 0;
    color: #a31515 !important;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1em;
}
/* ============================================== */
/* закраска классов, методов в терракотовый цвет */
.code {
    color: #a31515;
    background: transparent;
    border: none;
    padding: 0;
    color: #a31515 !important;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1em;
}

/* ============================================== */

/* ============================================== */
/* выравнивание по обоим краям */
section p {
    text-align: justify;
    hyphens: auto;
}

figure p.caption,
figcaption,
figcaption p {
    text-align: center !important;
    hyphens: manual !important;
}

/* ============================================== */
.rst-content .figure {
  margin-bottom: 2em !important;
}

/* ============================================== */
/* жирный курсив */
.bfit {
  font-style: italic;
  font-weight: bold;
}

/* ============================================== */
/* выделение наименований модулей в панели навигации */
.module {
  font-weight: bold;
  font-size: 18px;
}

/* ============================================== */
/* иконка в заголовке сайдбара */
.wy-side-nav-search > a img.logo,
.wy-side-nav-search .wy-dropdown > a img.logo {
  width: 300px;
  height: auto;
}
/* ============================================== */
/* убрать домик перед заголовком */
.wy-side-nav-search > a.icon::before {
  content: none;
}
/* ============================================== */
.menu-section-title {
  list-style: none;
  color: #2f8edc;
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 10px 24px;
}
/* ============================================== */
/* подчёркивание при наведении курсора на слово со ссылкой */
.rst-content a:hover {
    text-decoration: underline;
}
/* ============================================== */
/* блоки кода .. code-block:: cpp */

.rst-content pre,
.rst-content div[class^="highlight"] pre,
.rst-content .highlight pre {
    font-family: "Cascadia Code", "Consolas", "Courier New", monospace !important;
    font-size: 16px !important;
    line-height: 1.5;
}



