/*
 Theme Name: Astra Child
 Template: astra
 Text Domain: astra-child
 Description: Child theme for Astra
 Version: 1.0.0
 Author: You
*/
/* Картинки в карточках-сетках (если нужно) */
.cards-h img { border-radius: 8px; }

/* ===== Карточка сотрудника (в контенте записи) ===== */
.emp-card{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.emp-left{flex:0 0 220px}
.emp-left img,.emp-photo{width:100%;height:auto;border-radius:12px;display:block}
.emp-right{flex:1;min-width:260px}
.emp-name{margin:0 0 .5rem}
.emp-contacts{list-style:none;margin:0 0 1rem;padding:0}
.emp-contacts li{margin:.25rem 0}
details{margin:.5rem 0;padding:.5rem;border:1px solid #e5e7eb;border-radius:8px}
details>summary{cursor:pointer;font-weight:600}

/* ===== Навигация "пред/след запись" — скрыть глобально ===== */
.post-navigation,
.ast-post-navigation{display:none !important;}

/* (опционально) скрыть страницы из результатов поиска */
.search .type-page{display:none !important;}

/* По умолчанию везде показываем (на случай старых правил) */
.entry-title,
.entry-meta,
.posted-on { display:block !important; visibility:visible !important; }


body.single-in-sotrudniki time.published,
body.single-in-sotrudniki time.updated,
body.single-in-sotrudniki [itemprop="datePublished"] {
  display:none !important;
}




/* Меньший отступ между шапкой и контентом ТОЛЬКО на страницах сотрудников */
body.single-in-sotrudniki.ast-separate-container .site-content .ast-container,
body.single-in-sotrudniki.ast-plain-container .site-content .ast-container,
body.single-in-sotrudniki .site-content .ast-container {
  padding-top: -150px !important;   /* подбери число: 8–24px */
}

/* На всякий случай убираем возможный верхний margin первого блока в статье */
body.single-in-sotrudniki article .entry-content > *:first-child {
  margin-top: 0 !important;
}

/* Если вдруг тема даёт верхний margin самому #primary */
body.single-in-sotrudniki #primary { margin-top: 0 !important; }


/* В поиске скрыть дату только у записей из рубрики sotrudniki */
.search .category-sotrudniki .entry-meta,
.search .category-sotrudniki .posted-on,
.search .category-sotrudniki .ast-date-meta {
  display: none !important;
}
.archive .category-sotrudniki .entry-meta,
.single-post.category-sotrudniki .entry-meta { display:none !important; }

.my-bc{margin:6px 0 18px; font-size:14px; line-height:1.4; opacity:.95}
.my-bc a{text-decoration:none}
.my-bc .current{font-weight:600}
.my-bc a:hover{ text-decoration:underline }



a[onclick*="print"],a[href*="window.print"]{color:#000!important;font-size:inherit!important;text-indent:0!important}
a[onclick*="print"] svg,a[href*="window.print"] svg{fill:currentColor!important;stroke:currentColor!important}


/* Иконка и бейдж у ссылок на PDF внутри текстового виджета Elementor */
.elementor-widget-text-editor a[href*=".pdf" i]{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  font-weight:600;
}

/* маленькая иконка PDF слева */
.elementor-widget-text-editor a[href*=".pdf" i]::before{
  content:"";
  width:1.1em; height:1.3em;
  background: no-repeat center / contain;
  /* встроенная SVG-иконка (красная страничка с "PDF") */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e53935' d='M6 2h8l6 6v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath fill='%23fff' d='M7 16h10v2H7zm3.5-8H13a3 3 0 0 1 0 6h-2.5V8zm2.4 4a1.5 1.5 0 0 0 0-3H11v3h1.9z'/%3E%3C/svg%3E");
}

/* бейджик PDF справа */
.elementor-widget-text-editor a[href*=".pdf" i]::after{
  content:"PDF";
  font-size:.8em;
  padding:.12em .45em;
  border-radius:.4em;
  background:#fff1f0;
  color:#b00020;
  border:1px solid #f5c2c0;
}

/* немного акцента при наведении */
.elementor-widget-text-editor a[href*=".pdf" i]:hover::after{ filter: contrast(1.15); }



/* Ссылки на PPTX внутри текстового виджета Elementor */
.elementor-widget-text-editor a[href*=".pptx" i]{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  font-weight:600;
}

/* Иконка слайдов слева */
.elementor-widget-text-editor a[href*=".pptx" i]::before{
  content:"";
  width:1.1em; height:1.3em;
  background:no-repeat center/contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d24726' d='M6 2h8l6 6v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Crect x='7' y='8' width='10' height='8' rx='1' fill='%23ffffff'/%3E%3Crect x='7' y='8' width='3' height='8' fill='%23f3c5b6'/%3E%3C/svg%3E");
}

/* Бейдж PPTX справа */
.elementor-widget-text-editor a[href*=".pptx" i]::after{
  content:"PPTX";
  font-size:.8em;
  padding:.12em .45em;
  border-radius:.4em;
  background:#fff4ec;
  color:#b23c18;
  border:1px solid #f6c6ae;
}

/* Ховер-акцент */
.elementor-widget-text-editor a[href*=".pptx" i]:hover::after{ filter: contrast(1.15); }



