/* Блок «Документы» в карточке товара zhbi77.ru — задача #132, вариант A (список с раскрытием).
   Основа — прототип #96 (owners-inbox/zhbi77-docs/block-prototype/src/docs-block.css), только вариант A.
   Префикс zd-. Шрифт НЕ задаётся нигде: font-family наследуется от колонки карточки.
   Раскрытие — нативные <details>/<summary>, JS не нужен. */

.zd { margin: 20px 0 0; color: #000; text-align: left; max-width: 100%; }
.zd *, .zd *::before, .zd *::after { box-sizing: border-box; }
.zd .introtext-inner-heading { margin-bottom: 10px; }
.zd h3, .zd p, .zd ul { margin: 0; padding: 0; text-align: left; }
.zd ul { list-style: none; }
.zd li { margin: 0; padding: 0; }
.zd a { color: #1b78b0; }

.zd-caption { margin: 0 0 12px !important; }
.zd-group + .zd-group { margin-top: 16px; }
.zd-group__title { font-size: inherit; font-weight: 700; line-height: inherit; }
.zd-list { margin-top: 6px !important; border-top: 1px solid #e6e9eb; }
.zd-list > li { border-bottom: 1px solid #e6e9eb; }

/* Статус: точка + текст, как .indicator «Товар в наличии» */
.zd-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.zd-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #919191; flex: none; }
.zd-status--ok::before { background: #008000; }
.zd-status--old::before { background: #fff; border: 1px solid #919191; }
.zd-muted { color: #666; }

.zd-row__sum {
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; column-gap: 8px; align-items: center;
  min-height: 44px; padding: 8px 6px; cursor: pointer; list-style: none;
}
.zd-row__sum::-webkit-details-marker { display: none; }
.zd-row__sum::marker { content: ""; }
.zd-row__line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 0; min-width: 0; }
.zd-row__code { font-weight: 700; }
.zd-row__sub { grid-column: 1; color: #666; min-width: 0; overflow-wrap: anywhere; }
.zd-chev { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; color: #1b78b0; }
.zd-row[open] > .zd-row__sum .zd-chev { transform: rotate(180deg); }
.zd-row__sum:hover { background: #eaf4fb; color: #0f5d8c; }
.zd-row__sum:hover .zd-row__sub { color: #0f5d8c; }
.zd-row__body { padding: 0 6px 12px; overflow-wrap: anywhere; }
.zd-row__body > * + * { margin-top: 6px !important; }

/* Ссылка на карточку стандарта — цель касания не меньше 44 px */
.zd-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; margin-left: -10px;
  max-width: 100%; text-decoration: underline; text-underline-offset: 3px;
}
.zd-link:hover { background: #eaf4fb; color: #0f5d8c; text-decoration: none; }
.zd-link svg { width: 14px; height: 14px; flex: none; }

/* Нейтральный компактный вариант (товары вне привязки): без групп, одним списком */
.zd--neutral .zd-caption { margin-bottom: 8px !important; }

/* Сканы, оставшиеся у категории (кроме трёх истёкших), — миниатюры */
.zd-scans { display: flex; flex-wrap: wrap; gap: 10px; }
.zd-scans a { display: block; border: 1px solid #e6e9eb; line-height: 0; }
.zd-scans a:hover { border-color: #2696d9; }
.zd-scans img { display: block; width: 120px; height: auto; max-width: 100%; }
@media (max-width: 480px) { .zd-scans { gap: 8px; } .zd-scans img { width: 96px; } }

/* Реквизиты документа (сертификат): номер, срок, держатель, продукция */
.zd .zd-facts { list-style: none; }
.zd-facts > li + li { margin-top: 2px; }

.zd summary:focus-visible, .zd a:focus-visible { outline: 2px solid #1b78b0; outline-offset: 2px; }
.zd-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
