/* =================================================
   ОБЩИНСКИ СЪВЕТ – БУРГАС
   ЕДИННА ТИПОГРАФИЯ НА СРЕДНАТА КОЛОНА
   Drupal 10 / Bartik / Views
   ================================================= */

/* 1. ОСНОВНИ ЗАГЛАВИЯ НА СТРАНИЦИТЕ */

body .region-content h1.page-title,
body .region-content .block-page-title-block h1 {
  font-family: Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  color: #075ba1 !important;
  text-align: left !important;
  overflow-wrap: break-word !important;
}

/* 2. ЗАГЛАВИЯ НА ПУБЛИКАЦИИ В СПИСЪЦИ */

/* Drupal teaser */
body .region-content article.node--view-mode-teaser
.node__title,
body .region-content article.node--view-mode-teaser
.node__title a,

/* Views, които използват поле Title */
body .region-content .view-content
.views-field-title,
body .region-content .view-content
.views-field-title a,

/* Views, които извеждат стандартен teaser */
body .region-content .view-content
article.node--view-mode-teaser h2,
{
  font-family: Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  color: #075ba1 !important;
  text-transform: none !important;
  overflow-wrap: break-word !important;
}

/* 3. ПОДЗАГЛАВИЯ НА РАЗДЕЛИ В ПУБЛИКАЦИИТЕ */

body .region-content article.node--view-mode-full
.node__content h3,
body .region-content article.node--view-mode-full
.node__content h4 {
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* 4. МОБИЛНА ВЕРСИЯ */

@media (max-width: 767px) {

  body .region-content h1.page-title,
  body .region-content .block-page-title-block h1 {
    font-size: 18px !important;
  }

  body .region-content article.node--view-mode-teaser
  .node__title,
  body .region-content article.node--view-mode-teaser
  .node__title a,
  body .region-content .view-content
  .views-field-title,
  body .region-content .view-content
  .views-field-title a,
  body .region-content .view-content
  article.node--view-mode-teaser h2,
  body .region-content .view-content
  article.node--view-mode-teaser h2 a {
    font-size: 17px !important;
  }
}

/* ===============================================
   ПИТАНИЯ – ОФОРМЛЕНИЕ НА ОПИСАНИЕТО
   Drupal 10 / Bartik / Views
   =============================================== */

/* Описание под заглавието и датата */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > p.text-align-justify {
  margin: 12px 0 18px !important;
  padding: 0 !important;

  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;

  color: #334155 !important;

  text-align: left !important;
  text-align-last: left !important;
  hyphens: none !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
  overflow-wrap: break-word !important;
}

/* Удебелен текст – само умерен акцент */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > p.text-align-justify strong {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  color: #334155 !important;
}

/* Думата "относно" остава курсив */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > p.text-align-justify em {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #475569 !important;
}

/* Телефон */
@media (max-width: 767px) {
  body .region-content
  .views-field-title
  article.node--view-mode-teaser
  header > p.text-align-justify {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* ==========================================
   ФАЙЛОВЕ И РЕСУРСИ – КОМПАКТНО ЗАГЛАВИЕ
   Views / Drupal 10 / Bartik
   ========================================== */

/* Надпис над прикачените файлове */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > b {
  display: block !important;

  margin: 12px 0 8px !important;
  padding: 0 !important;

  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;

  color: #075ba1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

/* Прикачените файлове остават с досегашния дизайн */

/* ==========================================
   ФАЙЛОВЕ И РЕСУРСИ – КОМПАКТНО ЗАГЛАВИЕ
   Views / Drupal 10 / Bartik
   ========================================== */

/* Надпис над прикачените файлове */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > b {
  display: block !important;

  margin: 12px 0 8px !important;
  padding: 0 !important;

  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;

  color: #075ba1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

/* Прикачените файлове остават с досегашния дизайн */

/* Икона пред "ФАЙЛОВЕ И РЕСУРСИ" във Views */

body .region-content
.views-field-title
article.node--view-mode-teaser
header > b::before {
  content: "" !important;
  display: inline-block !important;
  width: 19px !important;
  height: 19px !important;
  margin-right: 10px !important;
  vertical-align: -4px !important;

  background-color: #075ba1 !important;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l5 5v15H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zM14 2v6h6M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l5 5v15H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zM14 2v6h6M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* ===============================================
   ПИТАНИЯ – КОМПАКТНИ ОТСТОЯНИЯ
   Drupal 10 / Bartik / Views
   =============================================== */

/* Описание */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > p.text-align-justify {
  margin: 10px 0 12px !important;
  padding: 0 !important;
}

/* Надпис "ФАЙЛОВЕ И РЕСУРСИ" */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > b {
  display: block !important;
  margin: 8px 0 8px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Премахване на излишните празни редове */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > br {
  display: none !important;
}

/* Подреждане на PDF / DOCX файловете */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > .file {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

/* Без излишно пространство след последния файл */
body .region-content
.views-field-title
article.node--view-mode-teaser
header > .file:last-child {
  margin-bottom: 0 !important;
}

/* ==================================================
   ОБЩИНСКИ СЪВЕТ – БУРГАС

   ЦВЕТОВИ АКЦЕНТИ ЗА ТИПОВЕ ФАЙЛОВЕ
   (ФИКСИРАН ПРИОРИТЕТ)
================================================== */


/* ==================================================
   1. PDF – ЧЕРВЕН АКЦЕНТ
================================================== */



/* Бадж PDF */
body .region-content .node__content .field--type-file .file--application-pdf > a::before,
body .region-content .node__content .field--type-file .file > a[href$=".pdf" i]::before,
body .region-content .view .views-field .file--application-pdf > a::before,
body .region-content .view .views-field a[href$=".pdf" i]::before {
    content: "PDF" !important;
    background: #fdf2f2 !important;
    color: #b91c1c !important;
    border-color: #f3c6c6 !important;
}

/* Ефект при посочване */
body .region-content .node__content .field--type-file .file--application-pdf > a:hover,
body .region-content .node__content .field--type-file .file > a[href$=".pdf" i]:hover,
body .region-content .view .views-field .file--application-pdf > a:hover,
body .region-content .view .views-field a[href$=".pdf" i]:hover {
    background: #fdf6f6 !important;
    border-color: #e5b3b3 !important;
    border-left-color: #b91c1c !important;
    color: #991b1b !important;
}


/* ==================================================
   2. DOC / DOCX / ODT – СИН АКЦЕНТ
================================================== */

/* Бадж DOCX */
body .region-content .node__content .field--type-file .file--x-office-document > a::before,
body .region-content .node__content .field--type-file .file > a[href$=".docx" i]::before,
body .region-content .view .views-field .file--x-office-document > a::before,
body .region-content .view .views-field a[href$=".docx" i]::before {
    content: "DOCX" !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

/* Бадж DOC */
body .region-content .node__content .field--type-file .file--mime-application-msword > a::before,
body .region-content .node__content .field--type-file .file > a[href$=".doc" i]::before,
body .region-content .view .views-field .file--mime-application-msword > a::before,
body .region-content .view .views-field a[href$=".doc" i]::before {
    content: "DOC" !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}


/* ==================================================
   3. XLS / XLSX – ЗЕЛЕН АКЦЕНТ
================================================== */

/* Лява цветна лента */
body .region-content .node__content .field--type-file .file--x-office-spreadsheet > a,
body .region-content .node__content .field--type-file .file--mime-application-vnd-ms-excel > a,
body .region-content .node__content .field--type-file .file > a[href$=".xlsx" i],
body .region-content .node__content .field--type-file .file > a[href$=".xls" i],
body .region-content .view .views-field .file--x-office-spreadsheet > a,
body .region-content .view .views-field a[href$=".xlsx" i],
body .region-content .view .views-field a[href$=".xls" i] {
    border-left: 4px solid #237a50 !important;
}

/* Бадж XLSX */
body .region-content .node__content .field--type-file .file--x-office-spreadsheet > a::before,
body .region-content .node__content .field--type-file .file > a[href$=".xlsx" i]::before,
body .region-content .view .views-field .file--x-office-spreadsheet > a::before,
body .region-content .view .views-field a[href$=".xlsx" i]::before {
    content: "XLSX" !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

/* Бадж XLS */
body .region-content .node__content .field--type-file .file--mime-application-vnd-ms-excel > a::before,
body .region-content .node__content .field--type-file .file > a[href$=".xls" i]::before,
body .region-content .view .views-field a[href$=".xls" i]::before {
    content: "XLS" !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

/* Ефект при посочване */
body .region-content .node__content .field--type-file .file--x-office-spreadsheet > a:hover,
body .region-content .node__content .field--type-file .file > a[href$=".xlsx" i]:hover,
body .region-content .node__content .field--type-file .file > a[href$=".xls" i]:hover,
body .region-content .view .views-field a[href$=".xlsx" i]:hover,
body .region-content .view .views-field a[href$=".xls" i]:hover {
    background: #f3faf6 !important;
    border-color: #b7dfc9 !important;
    border-left-color: #15803d !important;
    color: #14532d !important;
}


/* ==================================================
   4. ZIP / RAR – ЗЛАТИСТ АКЦЕНТ
================================================== */

/* Лява цветна лента */
body .region-content .node__content .field--type-file .file > a[href$=".zip" i],
body .region-content .node__content .field--type-file .file > a[href$=".rar" i],
body .region-content .view .views-field a[href$=".zip" i],
body .region-content .view .views-field a[href$=".rar" i] {
    border-left: 4px solid #d97706 !important;
}

/* Бадж ZIP / RAR */
body .region-content .node__content .field--type-file .file > a[href$=".zip" i]::before,
body .region-content .node__content .field--type-file .file > a[href$=".rar" i]::before,
body .region-content .view .views-field a[href$=".zip" i]::before,
body .region-content .view .views-field a[href$=".rar" i]::before {
    content: "ZIP" !important;
    background: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}


/* ==================================================
   5. P7S – ЕЛЕКТРОНЕН ПОДПИС
   ЛИЛАВ АКЦЕНТ
================================================== */

/* Лява цветна лента */
body .region-content .node__content .field--type-file .file > a[href$=".p7s" i],
body .region-content .view .views-field a[href$=".p7s" i] {
    border-left: 4px solid #6d28d9 !important;
}

/* Бадж P7S */
body .region-content .node__content .field--type-file .file > a[href$=".p7s" i]::before,
body .region-content .view .views-field a[href$=".p7s" i]::before {
    content: "P7S" !important;
    background: #f5f3ff !important;
    color: #5b21b6 !important;
    border-color: #ddd6fe !important;
}


/* ==================================================
   6. УКАЗАНИЯ – ЧЕРВЕН АКЦЕНТ
================================================== */

/* Запазваме червения дизайн с 4px лява лента */
body .region-content .node__content .field--name-field-ukazaniya.field--type-file .file > a {
    border-left: 4px solid #b21f2d !important;
}

