/*
Theme Name: stomzhongsin
Theme URI: 
Author: Elena Ageeva
Author URI: 
Description: a simple block theme
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stomzhongsin
Tags: 
*/

/* Подключаем Regular (обычный) */
@font-face {
    font-family: 'Jost';
    src: url('/wp-content/uploads/fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Подключаем SemiBold (полужирный) */
@font-face {
    font-family: 'Jost';
    src: url('/wp-content/uploads/fonts/Jost-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Подключаем Bold (жирный) */
@font-face {
    font-family: 'Jost';
    src: url('/wp-content/uploads/fonts/Jost-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Принудительно задаем Jost для всего сайта и редактора */
/* Принудительно красим абсолютно все ссылки, элементы меню и телефон в Jost */
:root, body, p, h1, h2, h3, h4, h5, h6, .wp-block-heading,
:root a, 
:root .wp-block-site-title a, 
:root .wp-block-navigation-item__content,
:root .wp-block-navigation-item a,
:root input, 
:root button {
    font-family: 'Jost', 'Jost *', 'Jost Variable', sans-serif !important;
}
/* Намертво прописываем Jost для кнопок WordPress и их вложенных ссылок (для сайта и админки) */
.wp-block-buttons .wp-block-button,
.wp-block-button__link,
.wp-block-button a,
:root .is-style-fill .wp-block-button__link {
    font-family: 'Jost', sans-serif !important;
}

/* Полностью убираем любые автоматические нижние зазоры перед футером */
:root .wp-block-post-content,
:root .site-content,
:root .entry-content {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
    padding-bottom: 0 !important;
}

/* На всякий случай убираем верхний отступ у самого футера, если он поджимает снизу */
:root .wp-block-template-part[slug="footer"], 
:root footer {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}


:root .inline-width {
    width: auto;
}

:root .header-navigation-item:hover,
:root .header-navigation-item:target {
    text-decoration: underline;
}

/* Для карточек в Контактах*/
.clickable-card {
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer;
}

.clickable-card * {
  position: static !important;
}

/* Заставляем ссылку внутри карточки выглядеть как обычный текст */
.clickable-card a {
  font-size: inherit !important;    /* Наследует размер шрифта */
  font-weight: inherit !important;  /* Наследует жирность */
  text-decoration: none !important; /* Убирает подчеркивание */
}

.clickable-card p a::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10 !important;
}