/* =========================================================================
   HK Size Guide — modal (site design language: Nexa titles, Inter body,
   cyan accents, hairline table borders)
   ========================================================================= */

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

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

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

.hk-sg-title {
	font-family: "Nexa", var(--hk-font, sans-serif);
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0 0 1.25rem;
	color: var(--hk-ink, #111418);
}

.hk-sg-diagram img {
	display: block;
	max-width: min(420px, 100%);
	height: auto;
	margin: 0 auto 1.25rem;
}

.hk-sg-legend-line {
	font-size: 0.9375rem;
	color: var(--hk-ink-soft, #4b4f54);
	margin: 0 0 1.25rem;
}
.hk-sg-legend-line strong { color: var(--hk-ink, #111418); }

/* Metric / Imperial toggle */
.hk-sg-units {
	display: inline-flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.hk-sg-unit {
	border: 1px solid var(--hk-line, #e2e4e7);
	background: #fff;
	color: var(--hk-ink, #111418);
	font-family: "Nexa", var(--hk-font, sans-serif);
	font-weight: 700;
	font-size: 0.9375rem;
	padding: 0.45rem 1.1rem;
	border-radius: 2px;
	cursor: pointer;
}
.hk-sg-unit.is-active {
	background: var(--hk-brand, #15aec9);
	border-color: var(--hk-brand, #15aec9);
	color: #fff;
}

/* Table */
.hk-sg-grid {
	width: 100%;
	border-collapse: collapse;
}
.hk-sg-grid th,
.hk-sg-grid td {
	border: 1px solid var(--hk-line, #e2e4e7);
	padding: 0.55rem 0.9rem;
	text-align: left;
	font-size: 0.9375rem;
	color: var(--hk-ink-soft, #4b4f54);
}
.hk-sg-grid thead th {
	font-family: "Nexa", var(--hk-font, sans-serif);
	font-weight: 700;
	color: var(--hk-ink, #111418);
	background: #f9f9f9;
}
.hk-sg-grid tbody th {
	font-weight: 700;
	color: var(--hk-ink, #111418);
	width: 80px;
}

/* unit switching */
.hk-sg-val--imperial { display: none; }
.hk-sg-grid[data-unit="imperial"] .hk-sg-val--imperial { display: inline; }
.hk-sg-grid[data-unit="imperial"] .hk-sg-val--metric { display: none; }

@media (max-width: 560px) {
	.hk-sg-modal { padding: 1.5rem 1.1rem; }
	.hk-sg-grid th, .hk-sg-grid td { padding: 0.45rem 0.55rem; font-size: 0.875rem; }
}
