/* Dimensions section on the product page (inc/drawings.php). The section head is the page's own (rule + title + text,
   the PDF on the right like a section link); below it the dimensioned views, four across on a desktop, two on a tablet,
   a sideways strip on a phone. Every file is drawn at the same mm-to-px scale in equal columns, so the numbers read the
   same size in each; the drawings stand on the page's paper in currentColor, with no frame. */
.kv-pdp__olcu { margin-top: var(--block); scroll-margin-top: calc(var(--header-h) + 8px); }
.kv-olcu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); align-items: end; }
.kv-olcu__view { margin: 0; min-width: 0; }
.kv-olcu__view a { display: block; color: inherit; }
.kv-olcu__view svg { display: block; width: 100%; height: auto; }
.kv-olcu__view figcaption { margin-top: 10px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.kv-olcu__view a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (hover: hover) {
	.kv-olcu__view a { transition: opacity 200ms var(--e-io); }
	.kv-olcu__view a:hover { opacity: .7; }
}

/* several drawings (a size or layout each): page chips over the drawings, switched by radios without script */
.kv-olcu__radio { position: absolute; opacity: 0; pointer-events: none; }
.kv-olcu__chips { justify-content: flex-start; gap: 8px 12px; margin: 0 0 28px; }
.kv-olcu__chips .kv-chip { cursor: pointer; }
.kv-olcu__set { display: none; }
.kv-olcu__pdf { margin: 28px 0 0; }
.kv-olcu__radio:nth-of-type(1):checked ~ .kv-olcu__set:nth-of-type(1), .kv-olcu__radio:nth-of-type(2):checked ~ .kv-olcu__set:nth-of-type(2),
.kv-olcu__radio:nth-of-type(3):checked ~ .kv-olcu__set:nth-of-type(3), .kv-olcu__radio:nth-of-type(4):checked ~ .kv-olcu__set:nth-of-type(4),
.kv-olcu__radio:nth-of-type(5):checked ~ .kv-olcu__set:nth-of-type(5), .kv-olcu__radio:nth-of-type(6):checked ~ .kv-olcu__set:nth-of-type(6) { display: block; }
.kv-olcu__radio:nth-of-type(1):checked ~ .kv-olcu__chips .kv-chip:nth-of-type(1), .kv-olcu__radio:nth-of-type(2):checked ~ .kv-olcu__chips .kv-chip:nth-of-type(2),
.kv-olcu__radio:nth-of-type(3):checked ~ .kv-olcu__chips .kv-chip:nth-of-type(3), .kv-olcu__radio:nth-of-type(4):checked ~ .kv-olcu__chips .kv-chip:nth-of-type(4),
.kv-olcu__radio:nth-of-type(5):checked ~ .kv-olcu__chips .kv-chip:nth-of-type(5), .kv-olcu__radio:nth-of-type(6):checked ~ .kv-olcu__chips .kv-chip:nth-of-type(6) { background: var(--ink); color: var(--paper); cursor: default; }
.kv-olcu__radio:nth-of-type(1):focus-visible ~ .kv-olcu__chips .kv-chip:nth-of-type(1), .kv-olcu__radio:nth-of-type(2):focus-visible ~ .kv-olcu__chips .kv-chip:nth-of-type(2),
.kv-olcu__radio:nth-of-type(3):focus-visible ~ .kv-olcu__chips .kv-chip:nth-of-type(3), .kv-olcu__radio:nth-of-type(4):focus-visible ~ .kv-olcu__chips .kv-chip:nth-of-type(4),
.kv-olcu__radio:nth-of-type(5):focus-visible ~ .kv-olcu__chips .kv-chip:nth-of-type(5), .kv-olcu__radio:nth-of-type(6):focus-visible ~ .kv-olcu__chips .kv-chip:nth-of-type(6) { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 1023px) {
	.kv-pdp > .kv-pdp__olcu { order: 2; }   /* after the 3D section, before the accordion (product.css orders the column) */
	.kv-olcu { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 599px) {
	.kv-olcu { display: flex; align-items: flex-end; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); scroll-padding-inline: var(--margin); scrollbar-width: none; }
	.kv-olcu::-webkit-scrollbar { display: none; }
	.kv-olcu__view { flex: 0 0 78%; scroll-snap-align: start; }
}
