/* ============================================================
   СТРАНИЦЫ СИДБАНКОВ: блок под товарами (история, генетика, награды, вопросы)
   Разметка вставляется в описание категории; образцы лежат в elenabong-seo/seedbank-pages/
   ============================================================ */
.eb-sb { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #d5d9cf; color: #141414; }
.eb-sb > h2 { margin: 22px 0 0; font-size: 26px; line-height: 1.2; scroll-margin-top: 90px; }
.eb-sb > p { margin: 0; font-size: 16px; line-height: 1.6; }
.eb-sb a { color: #141414; text-decoration: underline; text-decoration-color: #b01e2b; text-underline-offset: 3px; }
.eb-sb-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-sb-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid #d5d9cf; border-radius: 999px; background: #fff; font-size: 14px; text-decoration: none; }
.eb-sb-nav a:hover, .eb-sb-nav a:focus-visible { border-color: #141414; text-decoration: none; }
.eb-sb-note { font-size: 14px !important; color: #5b6258; }
/* цифры каталога: плитки с серой меткой, как в паспорте сорта на странице «Родовід» */
.eb-sb-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.eb-sb-nums > div { min-width: 0; padding: 12px 14px 14px; border-radius: 12px; background: #fff; border: 1px solid #dfe2d9; }
.eb-sb-nums dt { display: inline-block; margin: 0; padding: 2px 8px; border-radius: 6px; background: #999999; color: #fff; font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.eb-sb-nums dd { margin: 8px 0 0; font-size: 26px; line-height: 1.1; font-weight: 700; }
.eb-sb-nums dd.eb-sb-sub { margin-top: 6px; font-size: 13px; line-height: 1.4; font-weight: 400; color: #5b6258; }
.eb-sb-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; }
/* хронология */
.eb-sb-time { margin: 0; padding: 0; list-style: none; border-left: 2px solid #b01e2b; }
.eb-sb-time li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 9px 0 9px 16px; border-bottom: 1px solid #e6e8e1; font-size: 16px; line-height: 1.5; }
.eb-sb-time li:last-child { border-bottom: 0; }
.eb-sb-time b { font-weight: 700; white-space: nowrap; }
/* таблица наград: год жирным, место медалью с кубком, источник меткой */
.eb-sb-table { overflow-x: auto; border: 1px solid #d5d9cf; border-radius: 16px; background: #fff; }
.eb-sb .eb-sb-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; margin: 0; }
.eb-sb .eb-sb-table th, .eb-sb .eb-sb-table td { padding: 14px 16px !important; border-bottom: 1px solid #e6e8e1; text-align: left; vertical-align: middle; }
.eb-sb .eb-sb-table th:first-child, .eb-sb .eb-sb-table td:first-child { padding-left: 22px !important; }
.eb-sb .eb-sb-table th:last-child, .eb-sb .eb-sb-table td:last-child { padding-right: 22px !important; }
.eb-sb .eb-sb-table th { padding-top: 12px !important; padding-bottom: 12px !important; background: #f4f5f1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5b6258; font-weight: 700; white-space: nowrap; }
.eb-sb .eb-sb-table tr:last-child td { border-bottom: 0; }
.eb-sb .eb-sb-table tbody tr:hover td { background: #fafbf8; }
.eb-sb-year { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eb-sb-strain { font-weight: 600; }
/* победитель есть у нас: ссылка на карточку каталога или на статью «Родоводу» */
.eb-sb .eb-sb-table td small.eb-sb-in { display: block; width: max-content; margin-top: 4px; padding: 1px 8px; border-radius: 6px; font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .02em; }
.eb-sb .eb-sb-table td small.eb-in-cat { background: #141414; color: #fff; }
.eb-sb .eb-sb-table td small.eb-in-atlas { background: #eceee7; color: #141414; font-weight: 400; }
.eb-sb-table td small { display: block; margin-top: 2px; font-size: 13px; color: #5b6258; }
.eb-sb-place { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; }
.eb-sb-place::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--eb-cup) center / contain no-repeat; mask: var(--eb-cup) center / contain no-repeat; }
.eb-sb { --eb-cup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v2h3v3a4 4 0 0 1-4 4h-.3A5 5 0 0 1 13 14.9V18h3v3H8v-3h3v-3.1A5 5 0 0 1 8.3 12H8a4 4 0 0 1-4-4V5h3V3Zm0 4H6v1a2 2 0 0 0 1 1.7V7Zm10 0v2.7A2 2 0 0 0 18 8V7h-1Z'/%3E%3C/svg%3E"); }
/* медали: золото, серебро, бронза; места ниже третьего — нейтральная плашка без блеска */
.eb-sb-place { background: #f4f5f1; color: #141414; box-shadow: inset 0 0 0 1px #d5d9cf; }
.eb-p1 { background: linear-gradient(135deg, #f7dc6f 0%, #e6b422 55%, #c9971a 100%); color: #3b2a00; box-shadow: inset 0 0 0 1px #b98a12; }
.eb-p2 { background: linear-gradient(135deg, #f1f3f5 0%, #c9ced3 55%, #a9b0b7 100%); color: #20262c; box-shadow: inset 0 0 0 1px #98a0a8; }
.eb-p3 { background: linear-gradient(135deg, #e6b48a 0%, #cd7f32 55%, #a8641f 100%); color: #2e1703; box-shadow: inset 0 0 0 1px #955617; }
.eb-sb-ev { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.eb-ev-org { background: #141414; color: #fff; }
.eb-ev-arch { background: #eceee7; color: #141414; }
.eb-ev-brand { background: #fff; color: #141414; box-shadow: inset 0 0 0 1px #999999; }
.eb-sb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 13px !important; color: #5b6258; }
/* вопросы и источники */
.eb-sb-faq { border: 1px solid #d5d9cf; border-radius: 14px; background: #fff; }
.eb-sb-faq summary, .eb-sb-src summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eb-sb-faq summary { padding: 14px 18px; }
.eb-sb-faq summary::-webkit-details-marker, .eb-sb-src summary::-webkit-details-marker { display: none; }
.eb-sb-faq summary::after, .eb-sb-src summary::after { content: "+"; font-size: 22px; line-height: 1; color: #b01e2b; flex: 0 0 auto; }
.eb-sb-faq[open] summary::after, .eb-sb-src[open] summary::after { content: "−"; }
.eb-sb-faq summary h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.eb-sb-faq > div { padding: 0 18px 16px; font-size: 16px; line-height: 1.55; }
.eb-sb-faq > div p { margin: 0; }
.eb-sb-src { margin-top: 10px; padding-top: 14px; border-top: 1px solid #d5d9cf; }
.eb-sb-src summary { justify-content: flex-start; font-size: 20px; font-weight: 600; }
.eb-sb-src summary span { font-size: 14px; font-weight: 400; color: #5b6258; }
.eb-sb-src summary::after { margin-left: auto; }
.eb-sb-src ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.eb-sb-by { font-size: 14px !important; color: #5b6258; }
@media (max-width: 799px) {
    .eb-sb > h2 { font-size: 22px; }
    .eb-sb-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eb-sb-nums dd { font-size: 22px; }
    .eb-sb-time li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
