/* Каркас сайта: одна ось - колонка 700 px по центру, как у верха главной.
   Линии вместо рамок и карточек, синий - только ссылки и выбранное, моноширинный - номера, годы и счёт.
   Подключается после style-user.css и style-dclst.css; классы dc-*. */

/* шапка закреплена сверху: переходы по якорям не прячут цель под ней */
html { height: auto; scroll-padding-top: 72px; }
body.dc { --dc-col: 700px; --dc-rule: var(--c-body-border); --dc-muted: var(--c-body-on-deemph); --dc-link: #2f5f93; --dc-accent: #2563eb;
  margin: 0; min-height: 100vh; height: auto; display: flex; flex-direction: column; overflow: visible; background: var(--c-body); color: var(--c-body-on);
  font: 17px/27px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
:root[data-theme=dark] body.dc { --dc-link: #82aed6; --dc-accent: #3b82f6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) body.dc { --dc-link: #82aed6; --dc-accent: #3b82f6; } }
.dc ::selection { background: color-mix(in srgb, var(--dc-accent) 38%, transparent); }
.dc a { color: var(--dc-link); text-decoration: none; text-underline-offset: 3px; }
.dc a:hover { color: var(--dc-link); text-decoration: underline; }
.dc :focus { outline: none; }
.dc :focus-visible { outline: 2px solid var(--dc-accent); outline-offset: 2px; border-radius: 2px; }
.dc-id, .dc-num, .dc-key { font-family: "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 12px; letter-spacing: .05em; font-variant-numeric: tabular-nums; color: var(--dc-muted); }
.dc-main { flex: 1 0 auto; }
.dc [hidden] { display: none !important; }

/* ---------- шапка: знак, тема, языки | разделы | поиск ---------- */
/* закреплена у верха окна: языки, разделы и поиск под рукой на любой глубине страницы */
.dc-top { position: sticky; top: 0; z-index: 20; flex: 0 0 auto; background: var(--c-primary); color: var(--c-primary-on); box-shadow: 0 1px 0 color-mix(in srgb, var(--c-primary-on) 14%, transparent); }
.dc-top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px; min-height: 56px; padding: 0 16px; }
.dc-top-l { display: flex; align-items: center; gap: 4px; min-width: 0; }
.dc-top-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.dc-logo { margin-right: 10px; }
.dc .dc-logo:hover { text-decoration: none; }
.dc-theme { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--c-primary-on-deemph); cursor: pointer; }
.dc-theme svg { width: 16px; height: 16px; }
.dc-theme:hover { color: var(--c-primary-on); }
.dc-langs { display: flex; align-items: center; }
.dc .dc-langs a { position: relative; padding: 9px 7px; font: 700 12px/18px "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary-on-deemph); }
.dc .dc-langs a:hover { color: var(--c-primary-on); text-decoration: none; }
.dc .dc-langs a[aria-current] { color: var(--c-primary-on); }
.dc .dc-langs a[aria-current]::after { content: ""; position: absolute; left: 7px; right: 8px; bottom: 5px; height: 2px; background: var(--dc-accent); }
.dc-nav { display: flex; align-items: stretch; align-self: stretch; }
.dc .dc-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-primary-on-deemph); white-space: nowrap; }
.dc .dc-nav a:hover { color: var(--c-primary-on); text-decoration: none; }
.dc .dc-nav a[aria-current] { color: var(--c-primary-on); }
.dc .dc-nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--dc-accent); }
.dc-search { display: inline-flex; align-items: center; gap: 9px; height: 34px; min-width: 148px; padding: 0 12px 0 10px; border: 1px solid color-mix(in srgb, var(--c-primary-on) 26%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--c-primary-on) 5%, transparent); color: var(--c-primary-on-deemph); font: 15px/1 "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; cursor: text; }
.dc-search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.dc-search:hover { border-color: color-mix(in srgb, var(--c-primary-on) 50%, transparent); color: var(--c-primary-on); }
.dc-search:disabled { opacity: .5; cursor: not-allowed; }
.dc-menu { display: none; }

/* 1024-1279: две строки - сверху знак, тема, языки и поиск, снизу разделы */
@media (max-width: 1279px) {
  html { scroll-padding-top: 110px; }
  .dc-top-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l r" "nav nav"; row-gap: 0; min-height: 0; }
  .dc-top-l { grid-area: l; min-height: 52px; } .dc-top-r { grid-area: r; }
  .dc-nav { grid-area: nav; justify-content: center; min-height: 42px; margin: 0 -16px; border-top: 1px solid color-mix(in srgb, var(--c-primary-on) 12%, transparent); }
}
/* уже 1024: разделы уходят в меню; оно открывается без скрипта */
@media (max-width: 1023px) {
  html { scroll-padding-top: 68px; }
  .dc-nav { display: none; }
  .dc-top-in { grid-template-areas: "l r"; }
  .dc-search { min-width: 0; width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; cursor: pointer; }
  .dc-search span { display: none; }
  .dc-search svg { width: 17px; height: 17px; }
  /* языки стоят сразу за выбором темы на любой ширине; на узком экране поля плотнее, чтобы строка помещалась */
  .dc-top-in { column-gap: 8px; padding: 0 12px; }
  .dc-logo { margin-right: 4px; }
  .dc-top-l { gap: 0; }
  .dc .dc-top-l .dc-langs a { padding: 11px 5px; }
  .dc .dc-top-l .dc-langs a[aria-current]::after { left: 5px; right: 6px; bottom: 7px; }
  .dc-top-r { gap: 4px; }
  .dc-menu { display: block; }
  .dc-menu > summary { list-style: none; display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--c-primary-on) 26%, transparent); border-radius: 4px; font: 15px/1 "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-primary-on); cursor: pointer; user-select: none; }
  .dc-menu > summary::-webkit-details-marker { display: none; }
  .dc-menu-close, .dc-menu[open] .dc-menu-open { display: none; }
  .dc-menu[open] .dc-menu-close { display: inline; }
  .dc-menu-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 52px); max-height: calc(100dvh - 52px); overflow-y: auto; padding: 0 16px 20px; background: var(--c-primary); border-top: 1px solid color-mix(in srgb, var(--c-primary-on) 12%, transparent); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55); }
  .dc-menu-nav { display: grid; }
  .dc .dc-menu-nav a { display: flex; align-items: center; min-height: 48px; font: 17px/24px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-primary-on); border-bottom: 1px solid color-mix(in srgb, var(--c-primary-on) 12%, transparent); }
  .dc .dc-menu-nav a[aria-current] { box-shadow: inset 2px 0 0 var(--dc-accent); padding-left: 14px; }
  .dc-menu-more { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 14px; }
  .dc .dc-menu-more a { padding: 6px 0; font-size: 15px; line-height: 20px; color: var(--c-primary-on-deemph); }
}

@media print { .dc-top { position: static; } }

/* плашка «в разработке»: одна строка */
.dc-banner { flex: 0 0 auto; margin: 0; padding: 6px 16px; background: var(--c-body-alt-2); color: var(--c-body-on); font-size: 13px; line-height: 20px; text-align: center; }

/* ---------- страница-документ ---------- */
.dc-doc { box-sizing: content-box; max-width: var(--dc-col); margin: 0 auto; padding: 40px 16px 72px; }
.dc-crumbs { margin: 0 0 10px; font-size: 13px; line-height: 20px; color: var(--dc-muted); }
.dc-crumbs > span { margin: 0 8px; }
.dc .dc-crumbs a { color: var(--dc-muted); }
.dc .dc-crumbs a:hover { color: var(--c-body-on-emph); }
.dc-doc h1 { margin: 0 0 14px; font: 500 32px/38px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.005em; color: var(--c-body-on-emph); text-wrap: balance; }
.dc-doc h1 .dc-num { margin-left: 12px; font-size: 13px; letter-spacing: .05em; vertical-align: 6px; }
.dc-top-list { margin-top: 28px; }
.dc-lead { margin: 0; font-size: 17px; line-height: 27px; color: var(--c-body-on); hyphens: auto; }
/* сведения - обычная строка текста: переносится по словам, точка-разделитель остаётся в конце строки, а не в начале */
.dc-meta { margin: 0; font-size: 14px; line-height: 22px; color: var(--dc-muted); }
.dc-meta > span:not(:last-child)::after { content: "\00a0\00a0·\00a0"; font: 14px/22px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; }
.dc-meta--who { margin-top: 2px; }

.dc-prose { margin-top: 26px; }
.dc-prose p, .dc-proc-body p { margin: 0 0 17px; hyphens: auto; hyphenate-limit-chars: 12 5 4; }
.dc-prose p:last-child { margin-bottom: 0; }
.dc-prose ul, .dc-prose ol { margin: 0 0 17px; padding-left: 24px; }
.dc-prose li { margin-bottom: 6px; }
/* номер сноски: зона нажатия шире цифры */
.dc .scite-citeref-number sup { font-size: 12px; line-height: 0; }
.dc .scite-citeref-number a { display: inline-block; padding: 6px 4px; margin: -6px -4px; }
.dc .scite-citeref-number + .scite-citeref-number { margin-left: 3px; }

.dc-sec { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--dc-rule); }
.dc-sec h2, .dc-h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font: 500 22px/28px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }
.dc-sec h2 .dc-num { font-size: 13px; }
.dc-sec--first { margin-top: 30px; }
.dc-sec > p.dc-note { margin: -6px 0 16px; font-size: 15px; line-height: 23px; color: var(--dc-muted); }

/* ---------- строки списков: ключ (номер или годы), название, справа народ или счёт ---------- */
.dc-rows { border-top: 1px solid var(--dc-rule); }
.dc-sec > .dc-rows, .dc-sec > .dc-list > .dc-rows, .dc-sec .dc-procs { border-top: 0; }
.dc .dc-row { display: grid; grid-template-columns: 10ch minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; padding: 11px 0 10px; border-bottom: 1px solid var(--dc-rule); color: inherit; }
.dc .dc-row:hover { text-decoration: none; }
.dc-row-t { font: 16px/22px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }
.dc a.dc-row:hover .dc-row-t { text-decoration: underline; text-underline-offset: 3px; }
.dc a.dc-row:hover .dc-key { color: var(--c-body-on-emph); }
.dc-row-p { font-size: 13px; line-height: 22px; color: var(--dc-muted); white-space: nowrap; }
.dc-row-d { grid-column: 2 / -1; margin-top: 2px; font-size: 14px; line-height: 21px; color: var(--dc-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dc-row-d p { display: inline; margin: 0; }
.dc .dc-row--sub { grid-template-columns: 10ch minmax(0, 1fr) auto; padding: 8px 0 7px; }
.dc-row--sub .dc-row-t { font-size: 15px; line-height: 21px; color: var(--c-body-on); padding-left: 16px; }
.dc-row--here .dc-row-t { color: var(--dc-muted); }
.dc-rows--plain .dc-row { grid-template-columns: minmax(0, 1fr) auto; }

/* поиск и порядок - строкой, без панели */
.dc-filter { display: flex; align-items: center; gap: 16px; margin: 0 0 6px; }
.dc-find { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--dc-rule); border-radius: 4px; color: var(--dc-muted); cursor: text; }
.dc-find:focus-within { border-color: var(--dc-accent); }
.dc-find svg { width: 15px; height: 15px; flex: 0 0 auto; }
.dc-find input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0; border: 0; background: none; color: var(--c-body-on-emph); font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; caret-color: var(--dc-accent); }
.dc-find input::placeholder { color: var(--dc-muted); opacity: 1; }
.dc-find input:focus-visible { outline: none; }
.dc-find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.dc-sort { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 2px; border: 0; background: none; color: var(--dc-link); font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.dc-sort-l { color: var(--dc-muted); }
.dc-sort svg { width: 11px; height: 11px; margin-left: 2px; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.dc-sort[data-new] svg { transform: rotate(180deg); }
.dc-sort:hover .dc-sort-v { text-decoration: underline; text-underline-offset: 3px; }
.dc-empty { margin: 18px 0 0; font-size: 15px; color: var(--dc-muted); }
/* народы: один выбран */
.dc-peoples { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 2px -9px 4px; }
.dc-people { height: 36px; padding: 0 9px; border: 0; background: none; font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--dc-muted); cursor: pointer; }
.dc-people:hover { color: var(--c-body-on-emph); }
.dc-people[aria-pressed=true] { color: var(--c-body-on-emph); box-shadow: inset 0 -2px 0 var(--dc-accent); }
/* остальные фильтры - под раскрытием */
.dc-more { margin: 0 0 6px; }
.dc-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; font-size: 15px; line-height: 20px; color: var(--dc-link); cursor: pointer; }
.dc-more > summary::-webkit-details-marker { display: none; }
.dc-more > summary .dc-chev { margin: 0; align-self: center; }
.dc-more[open] > summary .dc-chev { transform: rotate(180deg); }
.dc-more-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; padding: 6px 0 14px; }
.dc-field { display: grid; gap: 4px; margin: 0; font-size: 13px; line-height: 18px; color: var(--dc-muted); }
.dc-field select, .dc-field input { height: 40px; padding: 0 10px; border: 1px solid var(--dc-rule); border-radius: 4px; background: var(--c-body); color: var(--c-body-on-emph); font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; min-width: 0; width: 100%; }
.dc-field select:focus-visible, .dc-field input:focus-visible { outline: none; border-color: var(--dc-accent); }
.dc-years { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }

/* процедуры строками; текст раскрывается */
.dc-proc { border-bottom: 1px solid var(--dc-rule); }
.dc-proc > summary { list-style: none; display: grid; grid-template-columns: 10ch minmax(0, 1fr) auto 12px; align-items: baseline; column-gap: 16px; padding: 12px 0 11px; cursor: pointer; }
.dc-proc > summary::-webkit-details-marker { display: none; }
.dc-proc-y { white-space: nowrap; }
.dc-proc-t { font: 16px/22px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }
.dc-proc-s { display: block; margin-top: 1px; font-size: 14px; line-height: 20px; color: var(--dc-muted); }
.dc-proc-p { font-size: 13px; line-height: 22px; color: var(--dc-muted); white-space: nowrap; }
.dc-chev { width: 12px; height: 12px; align-self: start; margin-top: 5px; color: var(--dc-muted); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.dc-proc > summary:hover .dc-proc-y, .dc-proc > summary:hover .dc-chev { color: var(--c-body-on-emph); }
.dc-proc[open] > summary .dc-chev { transform: rotate(180deg); }
.dc-proc[open] > summary .dc-proc-y { color: var(--c-body-on-emph); }
.dc-proc-body { padding: 2px 0 26px calc(10ch + 16px); }
.dc-proc-who { margin: 0 0 14px; font-size: 14px; line-height: 22px; color: var(--dc-muted); }
.dc-proc-who > span:not(:last-child)::after { content: "\00a0\00a0·\00a0"; }
.dc-proc-body .dc-proc-more { margin: 0; font-size: 15px; line-height: 22px; }
.dc-proc-more .dc-id { margin-left: 12px; }

/* источники */
.dc-refs { list-style: none; margin: 0; padding: 0; counter-reset: ref; font-size: 15px; line-height: 23px; }
.dc-refs > li { position: relative; padding: 0 0 10px 34px; counter-increment: ref; overflow-wrap: anywhere; }
.dc-refs > li::before { content: counter(ref); position: absolute; left: 0; top: 0; font: 700 12px/23px "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .05em; color: var(--dc-muted); }
.dc .dc-refs a { color: var(--c-body-on); }
.dc .dc-refs a:hover { color: var(--dc-link); }
.dc-refs .reference-link, .dc-refs .reference-basis { font-size: 13px; line-height: 20px; color: var(--dc-muted); margin-top: 0; }
.dc .dc-refs .reference-link a { color: var(--dc-muted); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.dc-refs .scite-citation:target { box-shadow: -12px 0 0 var(--c-body), -14px 0 0 var(--dc-accent); }
.dc-refs .scite-citation { display: block; }

/* соседние страницы и служебная строка */
.dc-next { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--dc-rule); }
.dc-next-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin: 0 0 8px; font-size: 13px; line-height: 20px; color: var(--dc-muted); }
.dc .dc-next-label a { color: var(--dc-muted); }
.dc .dc-next-label a:hover { color: var(--c-body-on-emph); }
.dc-next-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
.dc-nb { display: flex; gap: 9px; font-size: 16px; line-height: 23px; }
.dc-nb--next { justify-content: flex-start; text-align: right; flex-direction: row-reverse; }
.dc-also { margin: 14px 0 0; font-size: 15px; line-height: 22px; color: var(--dc-muted); }
.dc-service { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 40px 0 0; font-size: 13px; line-height: 20px; color: var(--dc-muted); }
.dc-service > * + *::before { content: "·"; display: inline-block; margin: 0 9px; color: var(--dc-muted); text-decoration: none; }
.dc-layers { margin: 14px 0 0; font-size: 14px; line-height: 22px; color: var(--dc-muted); }
.dc-layers > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--dc-link); cursor: pointer; }
.dc-layers > summary::-webkit-details-marker { display: none; }
.dc-layers > summary .dc-chev { margin: 0; align-self: center; }
.dc-layers[open] > summary .dc-chev { transform: rotate(180deg); }
.dc-layers ul { list-style: none; margin: 6px 0 0; padding: 0; }
.dc-layers li { padding: 3px 0; }
.dc-layers li > a { margin-left: 12px; }

/* ---------- матрица: таблица - тактики столбцами, техники и подтехники ячейками с рамками ---------- */
.dc-wide { max-width: none; padding-left: 0; padding-right: 0; }
.dc-wide > .dc-col { box-sizing: content-box; max-width: var(--dc-col); margin: 0 auto; padding: 0 16px; }
.dc-mx-wrap { --dc-cell: color-mix(in srgb, var(--c-body-on) 34%, var(--c-body)); --dc-cell-head: color-mix(in srgb, var(--c-body-on) 7%, var(--c-body)); }
:root[data-theme=dark] .dc-mx-wrap { --dc-cell: color-mix(in srgb, var(--c-body-on) 24%, var(--c-body)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .dc-mx-wrap { --dc-cell: color-mix(in srgb, var(--c-body-on) 24%, var(--c-body)); } }
.dc-mx-box { margin-top: 30px; padding: 0 16px; overflow-x: auto; }
.dc-mx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; box-sizing: content-box; max-width: var(--dc-col); margin: 22px auto 0; padding: 0 16px; font-size: 15px; line-height: 22px; }
.dc-mx-tools button { height: 36px; padding: 0; border: 0; background: none; color: var(--dc-link); font: inherit; cursor: pointer; }
.dc-mx-tools button:hover { text-decoration: underline; text-underline-offset: 3px; }
.dc-mx { display: grid; grid-template-columns: repeat(var(--dc-mx-n, 7), minmax(156px, 1fr)); column-gap: 12px; max-width: 1560px; margin: 0 auto; padding: 1px 0 2px; align-items: start; }
.dc-mx-col { min-width: 0; }
/* шапка столбца одной высоты у всех тактик: ячейки техник начинаются на одном уровне */
/* как в матрице ATT&CK: название тактики и число под ним - по центру, названия техник - по левому краю */
.dc-mx-h { display: flex; flex-direction: column; justify-content: space-between; min-height: 82px; padding: 9px 10px 8px; border: 1px solid var(--dc-cell); background: var(--dc-cell-head); text-align: center; }
.dc .dc-mx-name { display: block; font: 500 15px/20px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); hyphens: manual; overflow-wrap: break-word; }
.dc-mx-count { display: block; margin-top: 4px; font-size: 11px; line-height: 16px; }
.dc-mx-count .dc-num { color: var(--c-body-on); }
.dc-mx-list, .dc-mx-sub { list-style: none; margin: 0; padding: 0; }
/* соседние ячейки делят одну линию */
.dc-mx-list > li, .dc-mx-sub > li { margin-top: -1px; }
.dc .dc-mx-t, .dc .dc-mx-sub a { position: relative; display: block; border: 1px solid var(--dc-cell); color: var(--c-body-on); hyphens: manual; overflow-wrap: break-word; }
.dc .dc-mx-t { padding: 7px 10px 6px; font-size: 14px; line-height: 19px; }
.dc-mx-sub { margin-left: 14px; }
.dc .dc-mx-sub a { padding: 6px 10px 5px; font-size: 14px; line-height: 19px; }
.dc .dc-mx-t:hover, .dc .dc-mx-sub a:hover { z-index: 1; border-color: var(--dc-link); background: color-mix(in srgb, var(--dc-link) 12%, transparent); color: var(--c-body-on-emph); text-decoration: none; }
.dc .dc-mx-t:focus-visible, .dc .dc-mx-sub a:focus-visible { z-index: 2; outline-offset: -2px; border-radius: 0; }
/* подтехники свёрнуты: кнопка - полоса у левого края ячейки техники, стрелка вправо - свёрнуто, вниз - раскрыто.
   Полосу и отступ под неё ставит скрипт (dc-mx-fold): без него кнопки нет */
.dc-mx-row { position: relative; }
.dc-mx-fold .dc-mx-row .dc-mx-t { padding-left: 26px; }
/* под прилипшей шапкой столбцов (z-index 3) и над закрашенной ячейкой (1); отступ 3 px оставляет видной рамку фокуса ячейки */
.dc .dc-mx-tog { position: absolute; z-index: 2; left: 3px; top: 3px; bottom: 3px; width: 20px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--c-body-on); cursor: pointer; }
.dc .dc-mx-tog[hidden] { display: none; }
.dc-mx-tog svg { width: 14px; height: 14px; transition: transform .15s ease-out; }
.dc-mx-tog[aria-expanded=true] svg { transform: rotate(90deg); }
.dc .dc-mx-tog:hover { background: color-mix(in srgb, var(--dc-link) 12%, transparent); color: var(--c-body-on-emph); }
.dc .dc-mx-tog:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .dc-mx-tog svg { transition: none; } }
/* Переносы в узких столбцах. Без скрипта слова переносит браузер: он рвёт любое слово на конце строки.
   Со скриптом (dc.js ставит класс dc-mx-words) по слогам переносится только слово, которое не помещается
   в строку целиком: оно обёрнуто в .dc-hy; остальные слова уходят на новую строку целыми */
@media (max-width: 1279px) { .dc .dc-mx-name, .dc .dc-mx-t, .dc .dc-mx-sub a { hyphens: auto; } }
.dc .dc-mx-words .dc-mx-name, .dc .dc-mx-words .dc-mx-t, .dc .dc-mx-words .dc-mx-sub a { hyphens: manual; }
.dc .dc-mx-words .dc-hy { hyphens: auto; }
/* полоса шапки столбцов работает на экране уже 1024 (ниже, в своём блоке) */
.dc-mx-hd { display: none; }
.dc-mx-title { margin: 44px auto 0; padding: 0 16px; max-width: 1560px; font: 500 18px/24px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }

/* ---------- главная: матрица под картой ---------- */
.dc-home-mx { padding: 8px 0 72px; }
.dc-home-mx .dc-col { box-sizing: content-box; max-width: var(--dc-col); margin: 0 auto; padding: 44px 16px 0; }
.dc-home-mx .dc-col-in { padding-top: 30px; border-top: 1px solid var(--dc-rule); }
.dc-home-mx h2 { margin: 0 0 8px; font: 500 22px/28px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }
.dc-home-mx p { margin: 0; font-size: 15px; line-height: 23px; color: var(--dc-muted); }
/* главная в окне от 560 px: заголовок матрицы и линия над ним - во всю ширину, как карта над ними */
@media (min-width: 560px) { .dc-home-mx .dc-col { max-width: 1560px; } .dc-home-mx .dc-col-in p { max-width: var(--dc-col); } }
body.dc #attack-jumbotron { flex: 0 0 auto; }

/* ---------- текстовые страницы: вопросы и ответы, участие ---------- */
.dc-page h2 { margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--dc-rule); font: 500 22px/28px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }
.dc-page h3, .dc-page h5 { margin: 26px 0 8px; font: 500 17px/25px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--c-body-on-emph); }
.dc-page h3 strong, .dc-page h5 strong { font-weight: inherit; }
.dc-page p { margin: 0 0 17px; hyphens: auto; }
.dc-page ul, .dc-page ol { margin: 0 0 17px; padding-left: 24px; }
.dc-page li { margin-bottom: 6px; }
.dc-page .dc-toc { list-style: none; margin: 22px 0 0; padding: 0; font-size: 15px; line-height: 22px; }
.dc-page .dc-toc li { padding: 4px 0; margin: 0; }
.dc-page h2[id] { scroll-margin-top: 16px; }

/* ---------- поиск по сайту ---------- */
.dc .overlay.search { position: fixed; inset: 0; z-index: 100; background: var(--c-body); overflow-y: auto; padding: 0; }
.dc .overlay.search .overlay-inner { box-sizing: content-box; max-width: var(--dc-col); width: auto; height: auto; margin: 0 auto; padding: 24px 16px 72px; background: none; border: 0; border-radius: 0; box-shadow: none; position: static; transform: none; top: auto; left: auto; }
.dc .overlay.search .overlay-inner .search-header { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; border-bottom: 1px solid var(--c-body-on-deemph); background: none; }
.dc .overlay.search .overlay-inner .search-header .search-input { flex: 1 1 auto; padding: 0; }
.dc .overlay.search .overlay-inner .search-header .search-input input { width: 100%; height: 56px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--c-body-on-emph); font: 22px/28px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; caret-color: var(--dc-accent); }
.dc .overlay.search .overlay-inner .search-header .search-input input:focus-visible { outline: none; }
.dc .overlay.search .overlay-inner .search-header .search-icons { display: flex; align-items: center; gap: 8px; position: static; padding: 0; }
.dc .overlay.search .overlay-inner .search-header .search-icons > div { position: static; margin: 0; }
.dc .overlay.search .close-search-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 28px; line-height: 1; color: var(--dc-muted); cursor: pointer; }
.dc .overlay.search .close-search-icon:hover { color: var(--c-body-on-emph); }
.dc .overlay.search .search-parsing-icon { width: 18px; height: 18px; border-width: 2px; color: var(--dc-muted); }
.dc .overlay.search .overlay-inner .search-body { max-height: none; overflow: visible; padding: 0; margin: 0; border: 0; background: none; }
.dc .overlay.search .search-result { margin: 0 !important; padding: 16px 0 15px; border-bottom: 1px solid var(--dc-rule); border-top: 0; }
.dc .overlay.search .search-result .title { font: 500 17px/24px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; }
.dc .overlay.search .search-result .preview { margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--dc-muted); }
.dc .search-word-found { background: none; color: var(--c-body-on-emph); box-shadow: inset 0 -2px 0 var(--dc-accent); padding: 0; }
.dc .overlay.search .load-more-results { padding: 18px 0 0; text-align: left; background: none; border: 0; }
.dc .overlay.search .load-more-results .btn { padding: 0; border: 0; background: none; color: var(--dc-link); font: 15px/22px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- подвал: две строки ---------- */
.dc-foot { flex: 0 0 auto; background: var(--c-footer, var(--c-primary)); color: var(--c-primary-on-deemph); }
.dc-foot-in { box-sizing: content-box; max-width: var(--dc-col); margin: 0 auto; padding: 26px 16px 30px; }
.dc-foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 12px; font-size: 15px; line-height: 22px; }
.dc .dc-foot a { color: var(--c-primary-on); }
.dc-foot-small { margin: 0; font-size: 13px; line-height: 20px; }
.dc .dc-foot-small a { color: inherit; text-decoration: underline; }

@media (max-width: 767px) {
  .dc-doc { padding: 24px 16px 56px; }
  .dc-wide { padding-left: 0; padding-right: 0; }
  .dc-doc h1 { font-size: 26px; line-height: 32px; margin-bottom: 12px; }
  .dc-prose { margin-top: 20px; }
  .dc-sec { margin-top: 36px; padding-top: 24px; }
  .dc-filter { flex-wrap: wrap; gap: 0 16px; }
  .dc-find { flex: 1 1 100%; }
  .dc-more-in { grid-template-columns: minmax(0, 1fr); }
  /* строка списка: ключ и народ - мелкой строкой над названием */
  .dc .dc-row { grid-template-columns: minmax(0, 1fr); row-gap: 1px; padding: 10px 0; }
  .dc-row .dc-key { order: -1; }
  .dc-row-p { display: none; }
  .dc-row .dc-key[data-people]::after { content: " · " attr(data-people); font: 13px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; }
  .dc-row-d { grid-column: 1; }
  .dc .dc-row--sub { grid-template-columns: minmax(0, 1fr); padding: 7px 0 7px 16px; }
  .dc-row--sub .dc-row-t { padding-left: 0; }
  .dc-proc > summary { grid-template-columns: minmax(0, 1fr) 12px; grid-template-areas: "y c" "t c"; row-gap: 1px; column-gap: 12px; padding: 11px 0; }
  .dc-proc-y { grid-area: y; } .dc-proc-t { grid-area: t; } .dc-proc > summary > .dc-chev { grid-area: c; }
  .dc-proc-p { display: none; }
  .dc-proc-y[data-people]::after { content: " · " attr(data-people); font: 13px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; }
  .dc-meta--who .dc-who { display: block; }
  .dc .dc-meta--who > span.dc-who::after { content: none; }
  .dc-proc-body { padding-left: 0; }
  .dc-next-row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .dc-nb--next { justify-content: flex-start; text-align: left; flex-direction: row; }
  .dc-nb--next span { order: 2; }
  .dc .overlay.search .overlay-inner { padding-top: 8px; }
  .dc .overlay.search .overlay-inner .search-header .search-input input { font-size: 18px; height: 52px; }
}
/* ---------- матрица на экране уже 1024 (телефон, планшет): та же таблица - тактики столбцами, техники ячейками ---------- */
@media (max-width: 1023px) {
  /* Ширина столбца (--dc-mx-w).
     Все столбцы помещаются на экране при ширине не меньше 109px - делят экран поровну, видна вся матрица
     (телефон горизонтально, планшет). Не помещаются (телефон вертикально) - таблица листается вбок, на экране
     целое число столбцов и ещё половина: обрезанный краем столбец показывает, что дальше есть ещё.
     Столбцов два с половиной; с 484px - три с половиной, с 620px - четыре с половиной (столбец не уже 128px).
     109px - ширина, при которой самое длинное слово в названиях тактик («доминирования») ещё стоит без переноса.
     Условие записано без @media, чтобы работать при любом числе тактик: множитель 9999 делает из разности
     «да или нет» (ширина поровну меньше 109px - побеждает ширина «два с половиной»).
     100cqw - ширина блока матрицы без полосы прокрутки окна */
  .dc-mx-pair { container-type: inline-size; --dc-mx-gap: 8px; --dc-mx-pad: 12px; }
  .dc-mx, .dc-mx-hd-in {
    --dc-mx-fit: calc((100cqw - 2 * var(--dc-mx-pad) - (var(--dc-mx-n, 6) - 1) * var(--dc-mx-gap)) / var(--dc-mx-n, 6));
    --dc-mx-see: 2.5;
    --dc-mx-part: calc((100cqw - var(--dc-mx-pad) - (var(--dc-mx-see) - 0.5) * var(--dc-mx-gap)) / var(--dc-mx-see));
    --dc-mx-w: max(var(--dc-mx-fit), min(var(--dc-mx-part), calc((109px - var(--dc-mx-fit)) * 9999)));
    display: grid; grid-template-columns: repeat(var(--dc-mx-n, 6), var(--dc-mx-w)); column-gap: var(--dc-mx-gap);
    width: max-content; max-width: none; margin: 0; padding: 1px var(--dc-mx-pad) 2px;
  }
  @container (min-width: 484px) { .dc-mx, .dc-mx-hd-in { --dc-mx-see: 3.5; } }
  @container (min-width: 620px) { .dc-mx, .dc-mx-hd-in { --dc-mx-see: 4.5; } }
  /* при листании столбец встаёт к левому краю; у краёв таблица не отскакивает (иначе отскакивала бы без шапки) */
  .dc-mx-box { margin-top: 22px; padding: 0; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: var(--dc-mx-pad); overscroll-behavior-x: none; }
  .dc-mx-col { scroll-snap-align: start; }
  /* нажимается вся ячейка тактики, а не только её название */
  .dc-mx-h { position: relative; min-height: 62px; padding: 7px 4px 6px; }
  .dc .dc-mx-name { font-size: 13px; line-height: 17px; }
  .dc .dc-mx-name::after { content: ""; position: absolute; inset: 0; }
  .dc-mx-count { margin-top: 2px; }
  /* scroll-margin: ячейка, на которую перешли с клавиатуры, не прячется под прилипшей полосой шапки */
  .dc .dc-mx-t, .dc .dc-mx-sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px 5px; font-size: 13px; line-height: 17px; scroll-margin-top: 72px; }
  .dc-mx-sub { margin-left: 10px; }
  /* Шапка столбцов отдельной полосой: прилипает под шапкой сайта и едет вбок вместе с таблицей.
     Прилипнуть внутри окна таблицы шапка не может (окно листается вбок и для неё само становится областью прокрутки),
     поэтому она стоит над окном. Включается ниже: там, где её сдвиг можно привязать к прокрутке таблицы */
  .dc-mx-hd { position: sticky; top: 52px; z-index: 3; margin-top: 22px; overflow: hidden; background: var(--c-body); container-type: inline-size; }
  .dc-mx-hd-in { padding-top: 0; padding-bottom: 0; }
  /* запасной путь: браузер не умеет привязать сдвиг к прокрутке, шапку двигает dc.js и ставит этот класс */
  .dc-mx-sync > .dc-mx-hd { display: block; }
  .dc-mx-sync > .dc-mx-hd + .dc-mx-box { margin-top: -1px; }
  .dc-mx-sync .dc-mx-col > .dc-mx-h { display: none; }
  .dc-mx-sync .dc-mx-hd-in { will-change: transform; }
}
/* Сдвиг полосы шапки привязан к прокрутке окна таблицы самим браузером (scroll-driven animation), поэтому шапка
   не отстаёт от ячеек. 100cqw - видимая ширина полосы, 100% - вся её ширина: разность равна наибольшей прокрутке
   таблицы. Начальный кадр записан через transform: кадр translate: none Safari на iOS 27 рисует неверно */
@keyframes dc-mx-hd { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 100%)); } }
@supports (timeline-scope: --a) and (animation-timeline: --a) {
  @media (max-width: 1023px) {
    .dc-mx-pair { timeline-scope: --dc-mx-x; }
    .dc-mx-pair > .dc-mx-box { scroll-timeline: --dc-mx-x x; }
    .dc-mx-pair > .dc-mx-hd { display: block; }
    .dc-mx-pair > .dc-mx-hd + .dc-mx-box { margin-top: -1px; }
    .dc-mx-col > .dc-mx-h { display: none; }
    .dc-mx-hd-in { animation: dc-mx-hd linear both; animation-timeline: --dc-mx-x; }
  }
}
@media (max-width: 379px) {
  .dc-top .dclst-line { font-size: 11px; }
  .dc-theme { width: 32px; }
  .dc-search { width: 36px; }
  .dc-menu > summary { padding: 0 9px; }
}
@media (max-width: 339px) {
  .dc-top .dclst-line { font-size: 10px; }
  .dc .dc-top-l .dc-langs a { padding: 11px 3px; }
  .dc .dc-top-l .dc-langs a[aria-current]::after { left: 3px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .dc-chev, .dc-sort svg { transition: none; } }

/* реквизиты и коды на текстовых страницах; страница 404 */
.dc-code { font: 700 13px/20px "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace; color: var(--c-body-on-emph); overflow-wrap: anywhere; }
.not-found h1 { font: 700 56px/60px "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.dc-page .dc-h2 { margin: 0 0 12px; padding: 0; border: 0; }
.dc-page .faq-question p:last-child { margin-bottom: 0; }

/* ---------- подсказки экскурсии: поверхность, шрифты и кнопки сайта вместо стандартного вида библиотеки ---------- */
/* приподнятая поверхность: в светлой теме белая с тенью, в тёмной светлее страницы, иначе подсказка с ней сливается */
body.dc { --dc-raise: var(--c-body); --dc-raise-line: color-mix(in srgb, var(--c-body-on) 22%, var(--c-body)); --dc-raise-shadow: 0 12px 32px rgba(15, 23, 32, .16), 0 2px 6px rgba(15, 23, 32, .1); }
:root[data-theme=dark] body.dc { --dc-raise: color-mix(in srgb, var(--c-body-on) 12%, var(--c-body)); --dc-raise-line: color-mix(in srgb, var(--c-body-on) 38%, var(--c-body)); --dc-raise-shadow: 0 14px 36px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) body.dc { --dc-raise: color-mix(in srgb, var(--c-body-on) 12%, var(--c-body)); --dc-raise-line: color-mix(in srgb, var(--c-body-on) 38%, var(--c-body)); --dc-raise-shadow: 0 14px 36px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4); } }
.dc .popover.dc-tour { max-width: min(384px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--dc-raise-line); border-radius: 6px; background: var(--dc-raise); color: var(--c-body-on); box-shadow: var(--dc-raise-shadow); font: 15px/23px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
/* у края окна подсказка держит поле сайта 16 px: библиотека оставляет 5 px, остальное добирают поля */
.dc .dc-tour.bs-popover-top, .dc .dc-tour.bs-popover-bottom, .dc .dc-tour.orphan { margin-left: 11px; margin-right: 11px; }
.dc .dc-tour .popover-header { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 16px 48px 0 18px; border: 0; border-radius: 0; background: none; color: var(--c-body-on-emph); font: 500 17px/24px "Roboto-Medium", system-ui, -apple-system, "Segoe UI", sans-serif; text-wrap: balance; }
.dc .dc-tour .popover-header::before { display: none; }
.dc .dc-tour-n { margin-left: auto; font: 700 12px/24px "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .05em; font-variant-numeric: tabular-nums; color: var(--dc-muted); white-space: nowrap; }
.dc .dc-tour .popover-body { padding: 8px 18px 0; color: var(--c-body-on); font: inherit; }
.dc .dc-tour .popover-navigation { display: flex; align-items: center; gap: 16px; padding: 16px 18px 18px; overflow: visible; }
.dc .dc-tour-x { position: absolute; top: 6px; right: 6px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--dc-muted); cursor: pointer; }
.dc .dc-tour-x::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.dc .dc-tour-x:hover { color: var(--c-body-on-emph); }
.dc .dc-tour-prev { height: 36px; padding: 0 2px; border: 0; background: none; color: var(--dc-muted); font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.dc .dc-tour-prev:hover { color: var(--c-body-on-emph); }
/* «Далее» - контурная кнопка тех же размеров и со стрелкой, как кнопка экскурсии на главной; цвет текста, а не ссылки */
.dc .dc-tour-next { display: inline-flex; align-items: center; gap: 9px; height: 36px; margin-left: auto; padding: 0 12px 0 14px; border: 1px solid var(--c-body-on-deemph); border-radius: 4px; background: none; color: var(--c-body-on-emph); font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; transition: background-color .15s, border-color .15s; }
.dc .dc-tour-next::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.dc .dc-tour-next:hover { border-color: var(--c-body-on-emph); background: color-mix(in srgb, var(--c-body-on) 8%, transparent); }
.dc .dc-tour-next:hover::after { transform: translateX(3px); }
/* шага назад или вперёд нет - кнопки тоже нет; на последнем шаге место «Далее» занимает кнопка, которая закрывает экскурсию */
.dc .dc-tour [data-role].disabled { display: none; }
.dc .dc-tour-end { display: none; height: 36px; margin-left: auto; padding: 0 14px; border: 1px solid var(--c-body-on-deemph); border-radius: 4px; background: none; color: var(--c-body-on-emph); font: 15px/20px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; transition: background-color .15s, border-color .15s; }
.dc .dc-tour-end:hover { border-color: var(--c-body-on-emph); background: color-mix(in srgb, var(--c-body-on) 8%, transparent); }
.dc .dc-tour-next.disabled ~ .dc-tour-end { display: inline-flex; align-items: center; }
/* стрелка подсказки: линия и заливка той же поверхности */
.dc .dc-tour.bs-popover-top > .arrow::before, .dc .dc-tour.bs-popover-auto[x-placement^=top] > .arrow::before { border-top-color: var(--dc-raise-line); }
.dc .dc-tour.bs-popover-top > .arrow::after, .dc .dc-tour.bs-popover-auto[x-placement^=top] > .arrow::after { border-top-color: var(--dc-raise); }
.dc .dc-tour.bs-popover-bottom > .arrow::before, .dc .dc-tour.bs-popover-auto[x-placement^=bottom] > .arrow::before { border-bottom-color: var(--dc-raise-line); }
.dc .dc-tour.bs-popover-bottom > .arrow::after, .dc .dc-tour.bs-popover-auto[x-placement^=bottom] > .arrow::after { border-bottom-color: var(--dc-raise); }
.dc .dc-tour.bs-popover-left > .arrow::before, .dc .dc-tour.bs-popover-auto[x-placement^=left] > .arrow::before { border-left-color: var(--dc-raise-line); }
.dc .dc-tour.bs-popover-left > .arrow::after, .dc .dc-tour.bs-popover-auto[x-placement^=left] > .arrow::after { border-left-color: var(--dc-raise); }
.dc .dc-tour.bs-popover-right > .arrow::before, .dc .dc-tour.bs-popover-auto[x-placement^=right] > .arrow::before { border-right-color: var(--dc-raise-line); }
.dc .dc-tour.bs-popover-right > .arrow::after, .dc .dc-tour.bs-popover-auto[x-placement^=right] > .arrow::after { border-right-color: var(--dc-raise); }
@media (max-width: 1023px) { .dc .dc-tour-prev, .dc .dc-tour-next, .dc .dc-tour-end { height: 44px; } .dc .dc-tour-x { width: 44px; height: 44px; top: 4px; right: 4px; } }
/* Низкое окно (телефон в повороте): рядом с целью подсказка не помещается и уезжает за край окна.
   Здесь она прижата к правому нижнему углу окна; заголовок и кнопки всегда видны, длинный текст листается внутри */
@media (max-height: 480px) {
  .dc .popover.dc-tour { position: fixed !important; top: auto !important; left: auto !important; right: 12px !important; bottom: 12px !important; transform: none !important; display: flex; flex-direction: column; width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); margin: 0; }
  .dc .popover.dc-tour > .arrow { display: none; }
  .dc .popover.dc-tour .popover-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .dc .popover.dc-tour .popover-header, .dc .popover.dc-tour .popover-navigation { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .dc .dc-tour-next, .dc .dc-tour-next::after, .dc .dc-tour-end { transition: none; } }

/* Шапка: за знаком - подпись «база знаний о российском колониализме» размером знака, через тире. */
/* в строку: знак - подпись, тема, языки | разделы | поиск. Так от 1440 и в 720-1279 (там разделы второй строкой или в меню) */
.dc-brand { display: flex; align-items: baseline; column-gap: .35em; flex-shrink: 0; margin-right: 28px; }
.dc-brand .dc-logo { margin-right: 0; }
.dc .dc-tag { margin: 0; font: 17px/24px "Roboto-Regular", system-ui, -apple-system, "Segoe UI", sans-serif; color: color-mix(in srgb, var(--c-primary-on) 62%, var(--c-primary)); white-space: nowrap; }
@media (max-width: 1279px) { .dc .dc-tag { font-size: 15px; line-height: 20px; } }
@media (max-width: 1023px) { .dc .dc-tag { font-size: 13px; line-height: 16px; } .dc-brand { margin-right: 16px; } }
@media (max-width: 379px) { .dc .dc-tag { font-size: 12px; } }
@media (min-width: 1280px) { .dc-top-in { grid-template-columns: auto 1fr auto; } .dc-nav { justify-self: end; } }
@media (min-width: 1440px) { .dc .dc-nav a { padding: 0 10px; } .dc .dc-nav a[aria-current]::after { left: 10px; right: 10px; } }
@media (min-width: 1440px) and (max-width: 1679px) { .dc .dc-search { width: 40px; min-width: 0; padding: 0; justify-content: center; } .dc .dc-search span { display: none; } }
/* подпись под знаком - только где в строке тесно: 1280-1439 (разделы в той же строке) и уже 720 */
@media (min-width: 1280px) and (max-width: 1439px), (max-width: 719px) {
  .dc-top-l { display: grid; grid-template-columns: auto auto auto; grid-template-rows: 40px auto; grid-template-areas: "logo theme langs" "tag tag tag"; justify-content: start; align-items: center; column-gap: 4px; min-height: 0; }
  .dc-brand { display: contents; }
  .dc-top-l .dc-logo { grid-area: logo; margin-right: 10px; } .dc-top-l .dc-theme { grid-area: theme; } .dc-top-l .dc-langs { grid-area: langs; }
  .dc-brand .dclst-line { margin: 0; }
  .dc .dc-tag { grid-area: tag; align-self: start; width: 0; overflow: visible; }
  .dc-tag .dash { display: none; }
  .dc-top-in { align-items: start; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .dc-top-l { padding: 8px 0 8px; } .dc .dc-tag { margin-top: -8px; }
  .dc-top-r { margin-top: 11px; }
  .dc-nav { align-self: stretch; } .dc .dc-nav a { align-items: flex-start; padding-top: 18px; }
}
@media (max-width: 719px) {
  .dc-top-l { padding: 6px 0 10px; column-gap: 0; } .dc .dc-tag { margin-top: -8px; }
  .dc-top-l .dc-logo { margin-right: 4px; }
  .dc-top-r { margin-top: 6px; }
}
@media (max-width: 339px) { .dc-top-l .dc-theme { width: 18px; } .dc-top-l { grid-template-columns: auto auto minmax(0, 1fr); } .dc-top-l .dc-langs { justify-self: start; } .dc .dc-tag { width: 228px; white-space: normal; text-wrap: balance; } }
