/* =========================================================================
   HK Pattern Charts: modal (site design language: Nexa titles, Inter body,
   cyan accents, hairline table borders), after the Lopidesign size chart.
   ========================================================================= */

.hk-pc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 20, 24, 0.45);
	z-index: 10000;
}

.hk-pc-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10001;
	width: min(820px, 94vw);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 24px 70px rgba(17, 20, 24, 0.3);
	padding: 0 0 1.75rem;
	color: var(--hk-ink, #111418);
}

.hk-pc-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	font-size: 2rem;
	line-height: 1;
	color: var(--hk-ink, #111418);
	cursor: pointer;
	padding: 0.2rem 0.4rem;
}
.hk-pc-close:hover { color: var(--hk-brand, #15aec9); }

.hk-pc-head {
	text-align: center;
	padding: 1.4rem 3rem 0.9rem;
	border-bottom: 1px solid var(--hk-ink, #111418);
	margin-bottom: 1.25rem;
}
.hk-pc-title {
	font-family: "Nexa", var(--hk-font, sans-serif);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.2;
	margin: 0 0 0.2rem;
	color: var(--hk-ink, #111418);
}
.hk-pc-sub {
	margin: 0;
	font-size: 0.8rem;
	color: var(--hk-ink-soft, #4b4f54);
}

.hk-pc-section { padding: 0 1.5rem; }
.hk-pc-section + .hk-pc-section { margin-top: 1.75rem; }

.hk-pc-heading {
	font-family: "Nexa", var(--hk-font, sans-serif);
	font-weight: 700;
	font-size: 1rem;
	text-align: center;
	margin: 0 0 0.35rem;
	color: var(--hk-ink, #111418);
}

/* CM | INCHES */
.hk-pc-units {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}
.hk-pc-unit {
	border: 0;
	background: none;
	padding: 0.2rem 0.1rem;
	font: inherit;
	font-weight: 600;
	color: var(--hk-muted, #8b8b8b);
	cursor: pointer;
	text-transform: uppercase;
}
.hk-pc-unit.is-active { color: var(--hk-brand, #15aec9); }
.hk-pc-unit:hover { color: var(--hk-brand-dark, #109ab2); }
.hk-pc-units__sep { color: var(--hk-line, #e2e4e7); }

/* Tables */
.hk-pc-scroll { overflow-x: auto; }
.hk-pc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}
.hk-pc-table th,
.hk-pc-table td {
	border: 1px solid var(--hk-line, #e2e4e7);
	padding: 0.4rem 0.75rem;
	text-align: center;
	color: var(--hk-ink-soft, #4b4f54);
	white-space: nowrap;
}
.hk-pc-table thead th {
	font-family: "Nexa", var(--hk-font, sans-serif);
	font-weight: 700;
	color: var(--hk-ink, #111418);
	background: #fff;
}
.hk-pc-table tbody th {
	font-weight: 700;
	color: var(--hk-ink, #111418);
	text-align: center;
	width: 3.5rem;
}
.hk-pc-table tbody tr:nth-child(even) td { background: #f5f5f5; }
.hk-pc-table tbody tr:nth-child(odd) td { background: #fff; }

.hk-pc-materials td { text-align: center; }
.hk-pc-materials .hk-pc-qty-col { width: 2.6rem; padding-left: 0.4rem; padding-right: 0.4rem; }
.hk-pc-materials tr.hk-pc-group th {
	text-align: left;
	background: #fff;
	padding-top: 0.5rem;
}

/* unit switching */
.hk-pc-val--in { display: none; }
.hk-pc-sizes[data-unit="in"] .hk-pc-val--in { display: inline; }
.hk-pc-sizes[data-unit="in"] .hk-pc-val--cm { display: none; }

@media (max-width: 560px) {
	.hk-pc-section { padding: 0 0.9rem; }
	.hk-pc-head { padding: 1.2rem 2.5rem 0.75rem; }
	.hk-pc-table { font-size: 0.85rem; }
	.hk-pc-table th, .hk-pc-table td { padding: 0.35rem 0.5rem; }
}

@media print {
	.hk-pc-overlay, .hk-pc-close { display: none !important; }
	.hk-pc-modal { position: static; transform: none; box-shadow: none; max-height: none; width: auto; }
}
