/* ============================================================
   Блоки внимания (вариант B – «плашка с иконкой»)
   Классы темы Reboot: info, warning, danger, check, question, quote,
   thumbs-up, thumbs-down (+ is-style-* из Гутенберга) и новый adult (18+).
   Одинаковый вид в статьях, модах, на страницах и в описаниях рубрик.
   :not(#inzoi-bq) поднимает вес селектора выше правил родителя и шаблонов.
   ============================================================ */

:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
  .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
  .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
  .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult) {
  --bq-c: #3b82f6;
  --bq-tint: #eef5ff;
  --bq-tile: #ffffff;
  --bq-fg: #2f3646;
  position: relative;
  margin: 1.6em 0;
  padding: 22px 20px 20px 72px !important;
  min-height: 70px;
  border: 0 !important;
  border-radius: 16px;
  background: var(--bq-tint) !important;
  color: var(--bq-fg);
  font-style: normal;
  font-size: inherit;
  line-height: 1.6;
  box-shadow: none;
  box-sizing: border-box;
}

/* Цвета видов */
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.info, .is-style-info)               { --bq-c: #3b82f6; --bq-tint: #eef5ff; --bq-tint-d: #152238; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.warning, .is-style-warning)         { --bq-c: #e8930c; --bq-tint: #fff6e6; --bq-tint-d: #2e2414; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.danger, .is-style-danger)           { --bq-c: #ef4444; --bq-tint: #fff0f0; --bq-tint-d: #341a1d; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.check, .is-style-check)             { --bq-c: #20a35a; --bq-tint: #ebf9f1; --bq-tint-d: #14291f; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.question, .is-style-question)       { --bq-c: #8b5cf6; --bq-tint: #f4f0ff; --bq-tint-d: #241d3a; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.quote, .is-style-quote)             { --bq-c: #64748b; --bq-tint: #f3f5f8; --bq-tint-d: #222734; font-style: italic; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.thumbs-up, .is-style-thumbs-up)     { --bq-c: #16a34a; --bq-tint: #ecf9f0; --bq-tint-d: #14281c; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.thumbs-down, .is-style-thumbs-down) { --bq-c: #f0642a; --bq-tint: #fff2ec; --bq-tint-d: #33201a; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.adult, .is-style-adult)             { --bq-c: #e11d48; --bq-tint: #fff0f3; --bq-tint-d: #3a1520; }

/* Квадрат под иконку */
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
  .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
  .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
  .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult)::before {
  content: "" !important;
  position: absolute;
  top: 16px;
  left: 18px;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 11px;
  background: var(--bq-tile);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .06);
  font-size: 0;
}

/* Сама иконка – цветная маска поверх квадрата */
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
  .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
  .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
  .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 26px;
  width: 22px;
  height: 22px;
  background: var(--bq-c);
  -webkit-mask: var(--bq-icon) center / contain no-repeat;
          mask: var(--bq-icon) center / contain no-repeat;
}

:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.info, .is-style-info) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-5M12 8h.01'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.warning, .is-style-warning) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.danger, .is-style-danger) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.check, .is-style-check) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.question, .is-style-question) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.quote, .is-style-quote) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5H3v8h4c0 3-2 5-4 5zM14 21c3 0 7-1 7-8V5h-7v8h4c0 3-2 5-4 5z'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.thumbs-up, .is-style-thumbs-up) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12M15 5.9 14 10h5.8a2 2 0 0 1 1.9 2.6l-2.3 8a2 2 0 0 1-1.9 1.4H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.8a2 2 0 0 0 1.8-1.1L12 2a3.1 3.1 0 0 1 3 3.9z'/%3E%3C/svg%3E");
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.thumbs-down, .is-style-thumbs-down) {
  --bq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(180 12 12)'%3E%3Cpath d='M7 10v12M15 5.9 14 10h5.8a2 2 0 0 1 1.9 2.6l-2.3 8a2 2 0 0 1-1.9 1.4H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.8a2 2 0 0 0 1.8-1.1L12 2a3.1 3.1 0 0 1 3 3.9z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 18+: алый квадрат с белой надписью вместо иконки */
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.adult, .is-style-adult)::before {
  background: var(--bq-c);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--bq-c) 35%, transparent);
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.adult, .is-style-adult)::after {
  content: "18+";
  top: 16px;
  left: 18px;
  width: 38px;
  height: 38px;
  background: none;
  -webkit-mask: none;
          mask: none;
  color: #fff;
  font: 800 12px/38px Montserrat, system-ui, sans-serif;
  letter-spacing: -.02em;
  text-align: center;
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.adult, .is-style-adult) {
  background: linear-gradient(120deg, var(--bq-tint) 55%, color-mix(in srgb, var(--bq-c) 14%, var(--bq-tint))) !important;
}

/* Текст внутри */
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) > :first-child { margin-top: 0; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) > :last-child  { margin-bottom: 0; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) p { margin: .6em 0; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) cite {
  display: block;
  margin-top: .6em;
  font-style: normal;
  font-size: .88em;
  opacity: .75;
}
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) a { color: inherit; text-decoration-color: var(--bq-c); text-underline-offset: 3px; }
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) strong,
:is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq) b { color: inherit; }

/* Тёмная тема: тёмный фон в цвет блока, светлый текст, тёмный квадрат */
html.dark :is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
  .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
  .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
  .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult) {
  --bq-tint: var(--bq-tint-d);
  --bq-tile: #1b1e29;
  --bq-fg: #dfe3ec;
}
html.dark :is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
  .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
  .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
  .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult)::before {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Телефон: компактнее */
@media (max-width: 640px) {
  :is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
    .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
    .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
    .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult) {
    padding: 18px 16px 16px 62px !important;
    min-height: 62px;
    border-radius: 14px;
  }
  :is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
    .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
    .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
    .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down, .adult, .is-style-adult)::before {
    top: 13px; left: 14px; width: 34px; height: 34px; border-radius: 10px;
  }
  :is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(
    .info, .is-style-info, .warning, .is-style-warning, .danger, .is-style-danger,
    .check, .is-style-check, .question, .is-style-question, .quote, .is-style-quote,
    .thumbs-up, .is-style-thumbs-up, .thumbs-down, .is-style-thumbs-down)::after {
    top: 20px; left: 21px; width: 20px; height: 20px;
  }
  :is(.entry-content, .home-text, .taxonomy-description, .inzoi-page-content) blockquote:not(.wpremark):not(#inzoi-bq):is(.adult, .is-style-adult)::after {
    top: 13px; left: 14px; width: 34px; height: 34px; line-height: 34px; font-size: 11px;
  }
}
