@font-face {
    font-family: "MonitoricaRegular";
    src: url("../vendor/Monitorica/Monitorica-Rg.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "MonitoricaBold";
    src: url("../vendor/Monitorica/Monitorica-Bd.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
  }
  @font-face {
    font-family: "RobotoBold";
    src: url("../vendor/Roboto/Roboto-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

body {
  /*font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
  font-family: calibri;
  font-size: 24px;
  color: #444;
}
p {
  line-height: 1.5;
  margin: 20px 0;
}
p a {
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
}
h2{
  margin: 20px 0 30px 0!important;
  font-family: 'RobotoBold';
  font-size: 36px;
}
a, a:focus {
  color: #ee2900;
}
a:hover{
  color: #333333;
}
a img:hover,
a img:focus {
  cursor: zoom-in;
  cursor: pointer;
}
blockquote {
  color: #263238;
  font-style: italic;
  border-left: 10px solid #455a64;

}
hr.small {
  max-width: 100px;
  margin: 15px auto;
  border-width: 4px;
  border-color: white;
}
.navbar-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;

}
.navbar-custom .navbar-brand {
  font-weight: 800;
}
.navbar-brand img{
  max-height: 20px;
  float: left;
  margin-right: 5px;
}
.navbar-custom .navbar-header .navbar-toggle {
  color: #777777;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}
.navbar-custom .nav li a {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.nav>li>a>img{
  cursor: pointer;
}
.nav>li>a>img:hover{
  background: #ccc;
}
.wp-block-image,
.wp-block-image img,
.wp-block-image .aligncenter{
  width: 100%;
} 
.pager .next>a, .pager .next>span{
  float: none;
}

@media only screen and (min-width: 768px) {
  .navbar-custom {
    background: transparent;
    border-bottom: 1px solid transparent;
  }
  .navbar-custom .navbar-brand {
    /* color: white; */
    padding: 20px;
  }
  .navbar-custom .navbar-brand:hover,
  .navbar-custom .navbar-brand:focus {
    color: #000;
  }
  .navbar-custom .nav li a {
    /* color: white; */
    padding: 20px;
  }
  .navbar-custom .nav li a:hover,
  .navbar-custom .nav li a:focus {
    color: #000;
  }

}
@media only screen and (min-width: 1170px) {
  .navbar-custom {
    transition: background-color 0.3s;
    backface-visibility: hidden;
  }
  .navbar-custom.is-fixed {
    /* when the user scrolls down, we hide the header right above the viewport */
    position: fixed;
    top: -61px;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #f2f2f2;
    transition: transform 0.3s;
  }
  .navbar-custom.is-fixed .navbar-brand {
    color: #333333;
  }
  .navbar-custom.is-fixed .navbar-brand:hover,
  .navbar-custom.is-fixed .navbar-brand:focus {
    color: #0085A1;
  }
  .navbar-custom.is-fixed .nav li a {
    color: #333333;
  }
  .navbar-custom.is-fixed .nav li a:hover,
  .navbar-custom.is-fixed .nav li a:focus {
    color: #0085A1;
  }
  .navbar-custom.is-visible {
    transform: translate3d(0, 100%, 0);
  }
}
.intro-header {
  background-color: #777777;
  background: no-repeat center center;
  background-attachment: scroll;
  background-size: cover;
}

.intro-header .site-heading,
.intro-header .post-heading,
.intro-header .page-heading {
  padding: 50px 0 10px 0px;
  border-bottom: 5px solid;
  margin: 0 0 20px 0;
  /* color: white; */
}

@media only screen and (min-width: 768px) {
  .intro-header .site-heading,
  .intro-header .post-heading,
  .intro-header .page-heading {
    /* padding: 50px 0 20px 0 ; */
  }
}
.intro-header .site-heading,
.intro-header .page-heading {
  text-align: center;
}
.intro-header .site-heading h1,
.intro-header .page-heading h1 {
  margin-top: 0;
  font-size: 50px;
}
.intro-header .site-heading .subheading,
.intro-header .page-heading .subheading {
  font-size: 24px;
  line-height: 1.1;
  display: block;
  font-weight: 300;
  margin: 10px 0 0;
}
@media only screen and (min-width: 768px) {
  .intro-header .site-heading h1,
  .intro-header .page-heading h1 {
    font-size: 80px;
  }
}
.intro-header .post-heading h1 {
  font-size: 70px;
/*   border-bottom: 1px solid #ccc; */
  padding: 0 0 0 0;
  font-family: "MonitoricaBold";
  font-family: "MonitoricaRegular";
  font-family: 'RobotoBold';
}
.intro-header .post-heading .meta{
  margin: 0 0 0px 0;
}

@media only screen and (max-width: 768px) {
  .intro-header .post-heading h1 {
    font-size: 40px;
  }
}
.wp-block-image figcaption{
  font-size: 15px;
  text-align: right;
  font-style: italic;
  font-weight: bold;
}
.single-content figure{
  max-height: 450px;
  overflow: hidden;
}
.single-content .post-excerpt{
    font-size: 30px;
    /* margin: 30px 0 0 0;
    border-bottom: 4px solid #333; */
}
.single-content .post-excerpt p{
  color: #333;
  font-weight: bold;
  line-height: 1.35;
}

a .single-content-telegram{
  border: 1px solid #ccc;
}


.single-content .expert-research,
.single-content .expert-more{
  background: #74b360;
  padding: 2%;
  box-shadow: 3px 3px 3px #ccc;
  color: #f9f9f9;
  border-left: 20px solid #333;
}
.single-content .expert-more{
  background: #d79e1ecc;
}
.single-content .expert-research a:hover,
.single-content .expert-more a:hover{
  color: #333;
  text-decoration: none;
}
.single-content .meta-tags a{
  border: 1px solid #ccc;
  padding: 1%;
}
.single-content .meta-tags a:hover{
  text-decoration: none;
  color: #333;
  background: #dadada;
}

/* first-paragraph */
.first-paragraph{
  font-weight: bold;
  font-size: 28px;
}

/* ==== POST CARDS ==== */
.post-card-container, .post-card-container-a, .post-card-title, .post-card-figure, .post-card-content, .post-card-meta{
  display: flex;
  flex-flow: row wrap;
  flex: 1 1 100%;
}

.post-card-container a{
  color: #333;
}

.post-card-container a:hover,
.post-card-container a:focus{
  text-decoration: none;
  color: #ee2900;
  transition:0.3s;
  transform: matrix(1.03, 0, 0, 1.03, 0, 0);
  border: 0px;
}

.post-card-container{
  margin-bottom: 20px;
/*   border-bottom: 1px solid #ccc; */
  padding: 0 0 30px 0;
}
.post-card-title{
  font-family: "MonitoricaRegular";
  font-family: "RobotoBold";
  font-size: 40px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.post-card-figure{
  flex: 1 1 350px;
  margin: 0 20px 0 0;
}
.post-card-figure img{
  width: 100%;
  object-fit: cover;
}
.post-card-figure img:hover{
  cursor: pointer;
}
.post-card-content{
  flex: 1 1 380px;
  font-size: 25px;
}
.post-card-meta{}



/*PAGINATION*/
.pagination {
  display: flex;
  margin: 20px 0;
  justify-content: center;
  align-items: center;
}

.pagination > li > a{
  margin: 0 3px;
  padding: 10px;
  border: none;
  line-height: 1;
  background: none;
  color: #333;
}
.pagination > li.active{
  margin: 0 3px;
  padding: 10px;
  line-height: 1;
  background: #ee2900;
  color: #fff;
}
.pagination > li > a:hover{
  color: #333;
  background: #ccc;
  border: 0;
  border-radius: 0;
}

/* Related news */
section.single-blocks.related h2{
  font-size: 3.5rem;
}
ul.related-post li{
  font-size: 2.5rem;
  padding: 10px 0;

}
.section-heading {
  font-size: 36px;
  margin-top: 60px;
  font-weight: 700;
}
.caption {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  font-style: italic;
  margin: 0;
  display: block;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}
footer {
  padding: 50px 0 65px;
}
footer .list-inline {
  margin: 0;
  padding: 0;
}
footer .copyright {
  font-size: 14px;
  text-align: center;
  margin-bottom: 0;
}
.floating-label-form-group {
  font-size: 14px;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eeeeee;
}
.floating-label-form-group input,
.floating-label-form-group textarea {
  z-index: 1;
  position: relative;
  padding-right: 0;
  padding-left: 0;
  border: none;
  border-radius: 0;
  font-size: 1.5em;
  background: none;
  box-shadow: none !important;
  resize: none;
}
.floating-label-form-group label {
  display: block;
  z-index: 0;
  position: relative;
  top: 2em;
  margin: 0;
  font-size: 0.85em;
  line-height: 1.764705882em;
  vertical-align: middle;
  vertical-align: baseline;
  opacity: 0;
  -webkit-transition: top 0.3s ease,opacity 0.3s ease;
  -moz-transition: top 0.3s ease,opacity 0.3s ease;
  -ms-transition: top 0.3s ease,opacity 0.3s ease;
  transition: top 0.3s ease,opacity 0.3s ease;
}
.floating-label-form-group::not(:first-child) {
  padding-left: 14px;
  border-left: 1px solid #eeeeee;
}
.floating-label-form-group-with-value label {
  top: 0;
  opacity: 1;
}
.floating-label-form-group-with-focus label {
  color: #0085A1;
}
form .row:first-child .floating-label-form-group {
  border-top: 1px solid #eeeeee;
}
.btn {

  text-transform: uppercase;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 0;
  padding: 15px 25px;
}
.btn-lg {
  font-size: 16px;
  padding: 25px 35px;
}
.btn-default:hover,
.btn-default:focus {
  background-color: #0085A1;
  border: 1px solid #0085A1;
  color: white;
}
.pager {
  margin: 20px 0 0;
}
.pager li > a,
.pager li > span {
  font-family: "MonitoricaRegular";
  margin: 3px 0;
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 15px 25px;
  background: #333;
  color: #fff;
  border-radius: 0;
}
.pager li > a:hover,
.pager li > a:focus {
  color: #fff;
  background: #ee2900;
  /*border: 1px solid #0085A1;*/
}
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
  color: #777777;
  background-color: #333333;
  cursor: not-allowed;
}
::selection {
  color: #fff;
  text-shadow: none;
  background: #333;
}
img::selection {
  color: white;
  background: transparent;
}
img::-moz-selection {
  color: white;
  background: transparent;
}
body {
  -webkit-tap-highlight-color: #0085A1;
}


/* ====== */

/* Основные стили меню */
.main-menu {
    list-style: none; /* Убираем маркеры списка */
    padding: 0;
    margin: 0;
    display: flex; /* Выстраиваем элементы в ряд */
    justify-content: center; /* Центрируем по горизонтали (опционально) */
}

.main-menu > li {
    position: relative; /* Важно для позиционирования выпадающего меню */
}

.main-menu > li > a {
    display: block; /* Делаем ссылку блочным элементом для удобства */
    padding: 10px 20px; /* Отступы */
    text-decoration: none;
    color: #333; /* Цвет текста */
}

.main-menu > li > a:hover {
    background-color: #f0f0f0; /* Цвет фона при наведении */
}

/* Стили для выпадающего меню */
.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute; /* Абсолютное позиционирование */
    top: 100%;         /* Позиционируем под родителем */
    left: 0;
    background-color: #fff; /* Фон выпадающего меню */
    border: 1px solid #ccc;  /* Рамка (опционально) */
    min-width: 200px;     /* Минимальная ширина (настройте по вкусу) */
    z-index: 10;         /* Убедитесь, что меню поверх других элементов */
    display: none;        /* Скрываем по умолчанию */
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1); /* Тень (опционально) */
}

.main-menu li:hover > ul {
    display: block; /* Показываем при наведении на родительский LI */
}

.main-menu ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #666;
}

.main-menu ul li a:hover {
    background-color: #eee;
}

/* Стили для стрелочки (опционально) */
.main-menu > li:has(ul)::after {  /* Использует :has() чтобы не показывать стрелку если нет дочерних элементов */
    content: "\25BE"; /* Unicode символ стрелки вниз */
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #999;
    pointer-events: none; /* Чтобы стрелка не мешала наведению */
}

/* Если у вас несколько уровней вложенности */
.main-menu ul ul {
    left: 100%; /* Позиционируем справа от родителя */
    top: 0;
}

/* Добавляем класс "menu-align-right" к тем выпадающим меню, которые нужно выровнять вправо */
.main-menu li:last-child > ul {
    right: 0; /* Выравниваем по правому краю родителя */
    left: auto; /* Отменяем левое выравнивание */
}

/* Стили для мобильной версии (скрываем выпадающие блоки и выстраиваем меню вертикально) */
@media (max-width: 768px) { /* Или другой брейкпоинт для мобильных */

    /* Скрываем выпадающие блоки */
    .main-menu ul {
        display: none !important; /* Важно использовать !important, чтобы переопределить другие стили */
    }

    /* Выстраиваем пункты меню вертикально */
    .main-menu {
        flex-direction: column; /* Вертикальное направление */
        align-items: flex-start; /* Выравниваем по левому краю */
    }

    /* Убираем стрелочку */
     .main-menu > li:has(ul)::after {
        display: none; /* Скрываем стрелку */
    }

    /* Убираем выравнивание */
    .main-menu > li {
        text-align: left;
    }

    .main-menu > li > a {
        width: 100%; /* Делаем ссылку на всю ширину */
        padding: 10px;
    }
}

/* ============= */

/* Общие стили */
.related-post {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.related-post:hover,
.related-post-link:hover{
  text-decoration: none;
}

/* Ссылка на всю карточку */
.related-post-link {
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    color: inherit; /* Наследуем цвет текста от родителя */
    display: block;
}

/* Стили для элемента */
.related-post-item {
    display: flex; /* Используем flexbox для удобного расположения элементов */
    margin-bottom: 0; /* Убираем отступ между элементами, т.к. он задан в .related-post */
    /* border-bottom: 1px solid #eee;  */
    padding-bottom: 15px;
}

.related-post-item:hover{
  transform: scale(1.05);
  transition: .5s;
}

/* Стили для картинки */
.related-post-image {
    width: 100px; /* Фиксированная ширина для изображений */
    margin-right: 15px;
    flex-shrink: 0; /* Запрещаем сжиматься */
}

.related-post-image img {
    width: 100%; /* Картинка занимает всю ширину контейнера */
    height: auto;
    display: block; /* Убираем лишний отступ снизу */
    border-radius: 5px; /* Закругление углов (опционально) */
}

/* Стили для контента */
.related-post-content {
    flex-grow: 1; /* Занимает все оставшееся пространство */
}

/* Стили для заголовка */
h3.related-post-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    margin-top: 0;
}

/* Стили для описания */
.related-post-excerpt {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Убираем полосу при ховере на контейнер */
.related-post-link:hover .related-post-item {
        /* background-color: #f9f9f9; */
        text-decoration: none;
}

/* ===== */

/* Общие стили для всех карточек */
.index-card-large,
.index-card-small,
.index-card-category,
.index-card-experiment {
    margin-bottom: 20px;
}

.index-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Стили для изображения */
.index-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.index-card-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.index-card-link:hover .index-card-image img {
    transform: scale(1.05);
}

/* Стили для контента */
.index-card-content {
    padding: 15px 0;
}

/* Стили для заголовка */
.index-card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Стили для описания */
.index-card-excerpt {
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Стили для даты */
.index-card-date {
    font-size: 0.8em;
    color: #888;
}

/* Стили для большой карточки */
.index-card-large {
    display: flex;
    flex-direction: column;
}

.index-card-large .index-card-image {
    height: 400px;
}

.index-card-large .index-card-image img {
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.index-card-large .index-card-content {
    flex-grow: 1;
}

/* Стили для маленькой карточки */
.index-card-small {
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: flex-start; */
     width: 33.33%; /* Каждая карточка занимает 1/3 ширины контейнера */
     padding: 5px; /* Добавляем отступы вокруг каждой карточки */
     box-sizing: border-box; /* Учитываем padding и border в общей ширине */
}

/* Стили для изображения */
.index-card-small .index-card-image {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
}

.index-card-small .index-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Стили для контента */
.index-card-small .index-card-content {
    padding-left: 0;
    padding: 5px;
    margin-top: -10px;
}

/* Стили для заголовка */
.index-card-small .index-card-title {
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* Стили для категории */
.category-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.index-card-category .index-card-image {
    height: 200px;
}

.index-card-category .index-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Стили для экспериментов */
.experiment-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.index-card-experiment .index-card-image {
    height: 150px;
}

.index-card-experiment .index-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {

        /*стили для index-card-small на мобильных */
        .index-card-small {
            width: 100%; /* Каждая карточка занимает всю ширину */
        }
    .category-section, .experiment-section {
            grid-template-columns: 1fr; /* Одна колонка на мобильных */
        }

        .index-card-large .index-card-image {
        height: 250px; /* Адаптивная высота на мобильных */
    }
}

/*Убрали подчёркивание у ссылок*/
.index-card-link {
        text-decoration: none !important;
}

/* Добавляем стили к контейнеру section-2 */
.section-2 {
        display: flex; /* используем flexbox */
        flex-wrap: wrap; /* переносим на новую строку */
        justify-content: space-between; /* распределяем пространство */
}

/* ==== */
/* Стили для блока "Блог" */
.blog-title {
    font-size: 1.5em; /* Увеличиваем размер слова "Блог" */
    font-weight: bold;
    color: #333; /* Цвет текста */
}

.blog-description {
    font-size: 1.1em;
    line-height: 1.4;
    color: #666;
    margin-top: 10px;
}
/* ======== */

/* Стили для навигации в футере */
.footer-nav {
    background-color: #f9f9f9;
    padding: 20px;
    border-top: 1px solid #eee;
}

.footer-nav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around; /* Равномерное распределение элементов */
    flex-wrap: wrap; /* Перенос элементов на новую строку при необходимости */
}

.footer-nav nav ul li {
    margin: 5px; /* Отступы между элементами */
}

.footer-nav nav ul li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-nav nav ul li a:hover {
    background-color: #eee;
}

/* Стили для формы поиска */
.footer-nav li.nav-search form {
    display: flex;
}

.footer-nav li.nav-search input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px;
    width: 150px; /* Ширина поля ввода */
}

.footer-nav li.nav-search button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-nav li.nav-search button:hover {
    background-color: #3e8e41;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-nav nav ul {
        flex-direction: column; /* Вертикальное расположение элементов на мобильных */
        align-items: center; /* Центрирование элементов */
    }

    .footer-nav nav ul li {
        margin: 10px 0; /* Увеличиваем отступы на мобильных */
    }
}


/* === Spoiler */
.sp-title{
    display: flex;
    background: #263238;
    background: #009688;
    font-family: var(--bold-font);
    font-size: 1.4rem;
    color: #009688;
    color: #fff;
    padding: 1%;
    width: 98%;
    cursor: pointer;
    align-self: center;
}
/* Кнопка плюс при клике на спойлер */
.sp-title:before{
  /* content: " [+] "; */
  width: 32px;
  display: flex;
}
/* Кнопка минус при клике на спойлер */
.sp-title.sp-title-changed:before{
  /* content: " [–] "; */
}
/* Скрываем по умолчанию спойлер и блоки-индикаторы */
.sp-block, .sp-start, .sp-end{
  display: none;
}

.post-block .prev{
    flex:1 1 50%;
    text-align: left;
}
.post-block .next{
    flex:1 1 50%;
    text-align: right;
}

/* ======== */
.post-cover{
    background: #009688;
    color: #eceff1;
    padding: 1% 2% 1% 2%;
    /* box-shadow: 3px 3px 3px #b0bec5; */
    /* font-family: MonitoricaBold;
    font-size: 1.5rem; */
    width: 95%;
    /* display: flex; */
    /* float: left; */
    /* margin: 1% 0; */
}
.post-cover a{
    color: rgba(193,31,0,1);
    color: #fff !important;
    margin-left: 0.5%;
}
.post-cover a:hover{
    text-decoration: none;
}
/* DEVARTSPRO: responsive editorial refresh, November 2026. */
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px; color: #252b34; background: #fff; }
h1,h2,h3,h4,h5,h6 { font-family: inherit; line-height: 1.22; }
h2 { font-family: inherit; font-size: 28px; }
a:focus-visible,button:focus-visible { outline: 3px solid #ee2900; outline-offset: 4px; }
.intro-header .site-heading,.intro-header .page-heading,.intro-header .post-heading { padding-top: 90px; border-bottom: 1px solid #e3e6eb; padding-bottom: 24px; margin-bottom: 32px; }
.intro-header .site-heading h1,.intro-header .page-heading h1 { font-size: clamp(28px,4vw,42px); margin: 0; }
.intro-header .post-heading h1 { font-family: inherit; font-size: clamp(30px,4.2vw,48px); line-height: 1.17; overflow-wrap: anywhere; }
.site-heading .small,.site-heading + hr { display: none; }
.blog-description { font-size: 17px; font-weight: 400; margin: 12px 0 0; }
.navbar-custom { z-index: 1030; background: rgba(255,255,255,.97); border-bottom: 1px solid #e3e6eb; }
.main-menu li:focus-within > ul { display: block; }
.meta { font-size: 14px; color: #697381; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dev-home-content { max-width: 1080px; float: none; margin: 0 auto; }
.dev-home-content > h2 { font-size: 25px; margin: 38px 0 20px !important; padding-left: 14px; border-left: 4px solid #ee2900; }
.section-1 { margin-bottom: 30px; }
.section-2 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.section-2.category-section,.section-2.experiment-section { grid-template-columns: repeat(2,minmax(0,1fr)); }
.index-card-large,.index-card-small,.index-card-category,.index-card-experiment { width: auto; min-width: 0; margin: 0; padding: 0; }
.index-card-large .index-card-link { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: #f5f6f8; border: 1px solid #e7e9ed; border-radius: 12px; padding: 20px; }
.index-card-large .index-card-image { height: 280px; }
.index-card-large .index-card-content { padding: 0; }
h2.index-card-title { font-size: 30px; margin: 0 0 14px !important; }
.index-card-image { border-radius: 8px; }
.index-card-content,.index-card-small .index-card-content { margin: 0; padding: 14px 0 0; }
.index-card-small .index-card-image,.index-card-category .index-card-image,.index-card-experiment .index-card-image { height: auto; aspect-ratio: 16/9; margin: 0; }
.index-card-image img { height: 100%; object-fit: cover; }
.index-card-title,.index-card-small .index-card-title { font-size: 20px; line-height: 1.3; margin: 0 0 9px; overflow-wrap: anywhere; }
.index-card-excerpt { font-size: 16px; color: #626c79; margin: 0 0 10px; line-height: 1.55; }
.index-card-date { font-size: 13px; color: #747d89; }
.index-card-link:hover { color: inherit; }
.index-card-link:hover .index-card-title { color: #d82a0b; }
.post-card-container { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid #e7e9ed; }
.post-card-container-a { display: grid; grid-template-columns: 180px minmax(0,1fr); column-gap: 24px; align-items: start; }
.post-card-title { grid-column: 2; font-family: inherit; font-size: 25px; margin: 0 0 12px; display: block; }
.post-card-figure { grid-column: 1; grid-row: 1 / 3; margin: 0; display: block; }
.post-card-figure img { aspect-ratio: 16/10; border-radius: 8px; }
.post-card-content { display: block; font-size: 17px; line-height: 1.6; }
.post-card-container a:hover,.post-card-container a:focus,.related-post-item:hover { transform: none; }
.single-content { line-height: 1.75; }
.single-content .post-excerpt { font-size: 22px; }
.single-content figure { max-height: none; overflow: visible; }
.single-content img,.single-content video { max-width: 100%; height: auto; }
.single-content .post-thumbnail img { max-height: 480px; object-fit: contain !important; }
.single-content :is(p,li,dd,blockquote,h2,h3,h4) { overflow-wrap: anywhere; }
.single-content :is(pre,.wp-block-code,.wp-block-preformatted),.page-content pre { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; padding: 18px; border: 1px solid #dce1e8; border-radius: 8px; background: #f5f6f8; font-size: 14px; line-height: 1.65; -webkit-overflow-scrolling: touch; }
.single-content pre code { display: inline; padding: 0; border: 0; white-space: inherit; overflow-wrap: normal; word-break: normal; background: transparent; color: inherit; }
.single-content :not(pre) > code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.single-content :is(table,.wp-block-table) { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.single-content table { display: block; width: 100%; }
.single-content .wp-block-table { display: block; }
.single-content .wp-block-table table { display: table; }
.single-content :is(.wp-block-columns,.wp-block-column,.wp-block-group),.related-post-content { min-width: 0; }
.single-content :is(input,textarea,select) { max-width: 100%; }
.single-content blockquote { font-style: normal; font-size: 18px; background: #f5f6f8; border-left: 4px solid #ee2900; padding: 16px 20px; }
.single-content .meta-tags a { display: inline-block; font-size: 14px; padding: 4px 10px; margin: 4px; border-radius: 4px; }
/* Only horizontal image banners: rotation scripts and advertising iframes are unchanged. */
.ban_h_hd,.ban_h_fs,.ban_h_ft { max-width: 100%; margin: 24px auto; }
:is(.ban_h_hd,.ban_h_fs,.ban_h_ft) a { display: inline-block; max-width: 100%; }
:is(.ban_h_hd,.ban_h_fs,.ban_h_ft) img { display: block; max-width: 100% !important; height: auto !important; margin: 0 auto; }
.related-post-title { overflow-wrap: anywhere; }
@media (max-width: 767px) {
 .intro-header .site-heading,.intro-header .page-heading,.intro-header .post-heading { padding-top: 72px; padding-bottom: 20px; margin-bottom: 24px; }
 .section-2 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
 .index-card-large .index-card-link { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
 .index-card-large .index-card-image { height: auto; aspect-ratio: 16/9; }
 h2.index-card-title { font-size: 25px; }
 .index-card-title,.index-card-small .index-card-title { font-size: 18px; }
 .index-card-excerpt { font-size: 15px; }
 .section-2.category-section,.section-2.experiment-section { grid-template-columns: 1fr; }
 .index-card-category .index-card-link,.index-card-experiment .index-card-link { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; align-items: start; }
 .index-card-category .index-card-content,.index-card-experiment .index-card-content { padding: 0; }
 .index-card-category .index-card-excerpt,.index-card-experiment .index-card-excerpt { display: none; }
 .post-card-container-a { grid-template-columns: 100px minmax(0,1fr); gap: 12px; }
 .post-card-title { font-size: 21px; margin: 0; }
 .post-card-content { grid-column: 1 / -1; font-size: 16px; }
 .post-card-figure { grid-row: 1; }
 .single-content .post-excerpt { font-size: 20px; }
 .navbar-custom .navbar-collapse { max-height: 75vh; overflow-y: auto; background: white; }
 .main-menu li { width: 100%; }
 .main-menu ul { display: block !important; position: static; min-width: 0; border: 0; box-shadow: none; padding-left: 16px; }
 .navbar-custom .main-menu ul a { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 359px) { .section-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .index-card-image img,.navbar-custom { transition: none; } }

/* Publication dates in archive cards and home previews. */
.index-card-date { display: block; line-height: 1.5; }
.post-card-content .index-card-date { margin-top: 10px; font-weight: 400; }

.home-more-posts { text-align: center; margin: 28px 0 40px; }
.home-more-posts a { display: inline-block; border: 1px solid #ee2900; border-radius: 6px; padding: 10px 24px; font-size: 16px; font-weight: 600; text-decoration: none; }
.home-more-posts a:hover { background: #ee2900; color: white; }
.navigation.pagination { display: block; text-align: center; }
.navigation.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.navigation.pagination .page-numbers { display: inline-block; padding: 8px 12px; border-radius: 4px; font-size: 16px; }
.navigation.pagination .current { background: #ee2900; color: white; }
