/* The class table (template-parts/technology/table.php), shared: the Technology page (before pages/technology.css, which keeps
   the section around it and its font-swap reserves) and the product pages (before product.css). Moved from technology.css
   unchanged, 2026-11-04. Every selector contains bm-tech; n = shown classes: .bm-tech-n1 ... .bm-tech-n4 on the wrapper. */
.bm-tech-seg { display: inline-flex; border: 1px solid var(--bm-border); }
.bm-tech-seg__btn { margin: 0; padding: 7px 13px; border: 0; border-radius: 0; background: #fff; font: 600 12.5px/1.4 var(--bm-fb); color: var(--bm-muted-text); cursor: pointer; }
.bm-tech-seg__btn:hover { color: var(--bm-orange); }
.bm-tech-seg__btn[aria-pressed="true"] { background: var(--bm-navy-700); font-weight: 700; color: #fff; cursor: default; }
.bm-tech-seg__btn:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--bm-orange); outline-offset: 2px; }

.bm-tech-tbl__row { display: grid; grid-template-columns: 220px repeat(3, minmax(0, 1fr)); }
.bm-tech-n1 .bm-tech-tbl__row { grid-template-columns: 220px minmax(0, 1fr); }
.bm-tech-n2 .bm-tech-tbl__row { grid-template-columns: 220px repeat(2, minmax(0, 1fr)); }
.bm-tech-n4 .bm-tech-tbl__row { grid-template-columns: 200px repeat(4, minmax(0, 1fr)); }
/* sticky class header under the site header: its 1 px top border slides under the header's bottom border */
.bm-tech-tbl__head { position: sticky; top: var(--bm-hdr-h); z-index: 30; border: 1px solid var(--bm-border); border-bottom: 2px solid var(--bm-navy-700); background: #fff; box-shadow: 0 14px 24px -20px rgba(42, 46, 71, .3); }
.admin-bar .bm-tech-tbl__head { top: calc(var(--bm-hdr-h) + var(--wp-admin--admin-bar--height, 32px)); }
.bm-tech-tbl__cap { display: flex; align-items: center; padding: 12px 16px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-tech-tbl__cls { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 16px; border-left: 1px solid var(--bm-border); }
.bm-tech-tbl__thumb { display: block; flex: none; width: 46px; height: 34px; object-fit: cover; background: var(--bm-g50); }
.bm-tech-tbl__ctxt { display: block; min-width: 0; }
.bm-tech-tbl__cname { display: flex; align-items: center; gap: 8px; font: 800 15px/1.2 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); }
.bm-tech-tbl__dot { flex: none; width: 8px; height: 8px; background: var(--bm-orange); }
.bm-tech-tbl__ctag { display: block; margin-top: 2px; overflow: hidden; font-size: 11.5px; line-height: 1.35; color: var(--bm-muted-text); text-overflow: ellipsis; white-space: nowrap; }
.bm-tech-tbl__body { border: 1px solid var(--bm-border); border-top: 0; }
.bm-tech-tbl__body > .bm-tech-tbl__row + .bm-tech-tbl__row { border-top: 1px solid var(--bm-border); }
.bm-tech-tbl__body > .bm-tech-tbl__row:hover { background: #FCFCFD; }
.bm-tech-tbl__rlab { padding: 18px 16px; border-right: 1px solid var(--bm-border); background: var(--bm-g50); }
/* a long name breaks at its soft hyphen (the copy: «Elektro-obladnannia» / «Elektro-oborudovanie», «Dopolni-telnoe»);
   Chrome hyphenates no capitalised word, so hyphens: auto would not help; overflow-wrap keeps any other long word
   inside its cell (fixer round 64) */
.bm-tech-tbl__rname { display: block; font: 700 13px/1.4 var(--bm-fd); letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; color: var(--bm-navy-700); }
.bm-tech-tbl__rsub { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--bm-muted-text); }
.bm-tech-tbl__cell { min-width: 0; padding: 16px 18px; border-left: 1px solid var(--bm-border); }
.bm-tech-tbl__rlab + .bm-tech-tbl__cell { border-left: 0; }
.bm-tech-span2 { grid-column: span 2; }
.bm-tech-span3 { grid-column: span 3; }
.bm-tech-span4 { grid-column: span 4; }
.bm-tech-tbl__clabel { display: none; padding-top: 2px; font: 800 11px/1.4 var(--bm-fd); letter-spacing: .04em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-tech-tbl__val { min-width: 0; }
.bm-tech-same { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border: 1px solid var(--bm-border); background: var(--bm-g50); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-tech-tbl__sum { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--bm-navy-700); }
.bm-tech-tbl__det { margin: 8px 0 0; font-size: 13px; line-height: 1.62; color: var(--bm-text); text-wrap: pretty; }
.bm-tech-tbl__det.is-shared { max-width: 860px; margin-top: 0; font-size: 13.5px; line-height: 1.6; }
.bm-tech-span3 .bm-tech-tbl__det, .bm-tech-span4 .bm-tech-tbl__det { max-width: 860px; }
.bm-tech-hl { font-weight: 700; color: var(--bm-orange); }
.bm-tech-n1 .bm-tech-tbl__sum { font-size: 14.5px; }
.bm-tech-n1 .bm-tech-tbl__det { max-width: 780px; font-size: 14px; }
/* «Korotko»: summaries only (rows equal for all classes keep their text) */
.bm-tech-tbl[data-view="short"] .bm-tech-tbl__det:not(.is-shared) { display: none; }
.bm-tech-note { max-width: 860px; margin: 18px 2px 0; font-size: 13px; line-height: 1.6; color: var(--bm-muted-text); }

/* <= 1199: tablet table */
@media (max-width: 1199px) {
	.bm-tech-n1 .bm-tech-tbl__row { grid-template-columns: 180px minmax(0, 1fr); }
	.bm-tech-n2 .bm-tech-tbl__row { grid-template-columns: 180px repeat(2, minmax(0, 1fr)); }
	/* 3-4 classes: the row name becomes a band across the table, the header keeps only the class cells */
	.bm-tech-n3 .bm-tech-tbl__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bm-tech-n4 .bm-tech-tbl__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	/* the first column header leaves the layout but stays in the accessibility tree: the header row keeps n + 1 column
	   headers over the body rows' row header + n cells (fixer round 64; display: none shifted every class by one) */
	.bm-tech-n3 .bm-tech-tbl__cap, .bm-tech-n4 .bm-tech-tbl__cap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
	.bm-tech-n3 .bm-tech-tbl__cap + .bm-tech-tbl__cls, .bm-tech-n4 .bm-tech-tbl__cap + .bm-tech-tbl__cls { border-left: 0; }
	.bm-tech-n3 .bm-tech-tbl__rlab, .bm-tech-n4 .bm-tech-tbl__rlab { display: flex; flex-wrap: wrap; grid-column: 1 / -1; align-items: baseline; gap: 2px 10px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--bm-border); }
	.bm-tech-n3 .bm-tech-tbl__rsub, .bm-tech-n4 .bm-tech-tbl__rsub { margin-top: 0; }
	.bm-tech-tbl__cell { padding: 14px 16px; }
}

/* <= 899: 4 classes stack */
@media (max-width: 899px) {
	.bm-tech-n4 .bm-tech-tbl__head { display: none; }
	.bm-tech-n4 .bm-tech-tbl__row { display: block; }
	.bm-tech-n4 .bm-tech-tbl__cell { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--bm-border); border-left: 0; }
	.bm-tech-n4 .bm-tech-tbl__rlab + .bm-tech-tbl__cell { border-top: 0; }
	.bm-tech-n4 .bm-tech-tbl__clabel { display: block; }
}

/* <= 767: every table stacks */
@media (max-width: 767px) {
	.bm-tech-tbl__head { display: none; }
	.bm-tech-tbl__row { display: block; }
	.bm-tech-tbl__rlab, .bm-tech-n3 .bm-tech-tbl__rlab, .bm-tech-n4 .bm-tech-tbl__rlab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--bm-border); }
	.bm-tech-tbl__rsub { margin-top: 0; }
	.bm-tech-tbl__cell, .bm-tech-n4 .bm-tech-tbl__cell { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid var(--bm-border); border-left: 0; }
	.bm-tech-tbl__rlab + .bm-tech-tbl__cell { border-top: 0; }
	.bm-tech-tbl__clabel { display: block; }
	.bm-tech-n1 .bm-tech-tbl__cell { display: block; }
	.bm-tech-n1 .bm-tech-tbl__clabel { display: none; }
}

@media print {
	.bm-tech-seg { display: none; }
	.bm-tech-tbl__head { position: static; box-shadow: none; }
	.bm-tech-tbl[data-view="short"] .bm-tech-tbl__det:not(.is-shared) { display: block; } /* a printout is the full spec */
	.bm-tech-tbl__row { break-inside: avoid; }
}
