/* ============================================================
   DLC Department Categories - v1.2.0
   Full-width background image section with circle tiles
   Heights and breakpoints match corsetmaking.css
   Tokens: --font-accent, --font-primary, --font-size-14/20/25/30,
   --brand-gold-on-dark, --color-white, --text-halo-dark,
   --brand-charcoal, --focus-ring
   Department colors (mobile) are the documented exception.
   ============================================================ */

/* -- Section wrapper ----------------------------------------- */
.dlc-dept-cat {
	/* Crisp halo: a 1px outline on all sides (no blur) plus a light
	   2px glow. Counts as the text background for contrast, so the
	   text passes AA over any photo or department color. */
	--dc-halo-color: var(--text-halo-dark);
	--dc-halo:
		-1px -1px 0 var(--dc-halo-color),
		 1px -1px 0 var(--dc-halo-color),
		-1px  1px 0 var(--dc-halo-color),
		 1px  1px 0 var(--dc-halo-color),
		 0   -1px 0 var(--dc-halo-color),
		 0    1px 0 var(--dc-halo-color),
		-1px  0   0 var(--dc-halo-color),
		 1px  0   0 var(--dc-halo-color),
		 0    0   2px var(--dc-halo-color);

	width: 100%;
	background-color: var(--brand-charcoal);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 500px;
	padding: 15px 0;
	box-sizing: border-box;
	margin-bottom: 1.5em;
}

/* -- Inner container ----------------------------------------- */
.dlc-dept-cat__inner {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
	text-align: center;
}

/* -- Section heading ----------------------------------------- */
.dlc-dept-cat__heading {
	font-family: var(--font-accent);
	font-style: italic;
	font-weight: 600;
	font-size: var(--font-size-30);
	line-height: 1.2;
	color: var(--brand-gold-on-dark);
	text-align: center;
	margin: 0 0 0.8em;
	text-shadow: var(--dc-halo);
}

/* -- Grid ---------------------------------------------------- */
.dlc-dept-cat__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* -- Tile ---------------------------------------------------- */
.dlc-dept-cat__tile {
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0 10px;
	box-sizing: border-box;
	text-align: center;
	margin-bottom: 1.5em;
}

/* -- Circle -------------------------------------------------- */
.dlc-dept-cat__circle-link {
	display: block;
	width: max-content;
	margin: 0 auto;
	border-radius: 50%;
	text-decoration: none;
}

.dlc-dept-cat__circle {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 0.75em;
}

.dlc-dept-cat__circle-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -- Title --------------------------------------------------- */
.dlc-dept-cat__title {
	font-family: var(--font-accent);
	font-size: var(--font-size-25);
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-white);
	margin: 0 0 0.4em;
	text-shadow: var(--dc-halo);
}

.dlc-dept-cat__title a {
	color: var(--color-white);
	text-decoration: none;
	text-shadow: var(--dc-halo);
}

.dlc-dept-cat__title a:hover {
	color: var(--brand-gold-on-dark);
}

/* -- Sub-category links -------------------------------------- */
.dlc-dept-cat__subcats {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.dlc-dept-cat__subcat {
	font-family: var(--font-primary);
	font-size: var(--font-size-14);
	font-weight: 500;
	line-height: 1.4;
	color: var(--brand-gold-on-dark);
	text-decoration: none;
	display: inline-block;
	text-shadow: var(--dc-halo);
}

a.dlc-dept-cat__subcat:hover {
	color: var(--color-white);
	text-decoration: underline;
}

/* -- Focus --------------------------------------------------- */
.dlc-dept-cat a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}

/* -- 980px to 1199px: circles 150px, height 425px ------------ */
@media (min-width: 980px) and (max-width: 1199px) {
	.dlc-dept-cat {
		min-height: 425px;
	}
	.dlc-dept-cat__circle {
		width: 150px;
		height: 150px;
	}
}

/* -- 768px to 979px: circles 150px, height 425px ------------- */
@media (min-width: 768px) and (max-width: 979px) {
	.dlc-dept-cat {
		min-height: 425px;
	}
	.dlc-dept-cat__circle {
		width: 150px;
		height: 150px;
	}
	.dlc-dept-cat__title {
		font-size: var(--font-size-20);
	}
}

/* -- 767px and below: solid department color, single column -- */
@media (max-width: 767px) {

	.dlc-dept-cat {
		background-image: none !important;
		min-height: 0;
	}

	/* Department solid background colors (documented exception) */
	.dlc-dept-cat[data-dept="corset"]    { background: rgb(133, 82, 125) !important; }
	.dlc-dept-cat[data-dept="bra"]       { background: rgb(197, 77, 112) !important; }
	.dlc-dept-cat[data-dept="hat"]       { background: rgb(0, 154, 190) !important; }
	.dlc-dept-cat[data-dept="costume"]   { background: rgb(223, 127, 32) !important; }
	.dlc-dept-cat[data-dept="steampunk"] { background: rgb(119, 16, 0) !important; }
	.dlc-dept-cat[data-dept="leather"]   { background: rgb(35, 31, 32) !important; }

	.dlc-dept-cat__heading {
		font-size: var(--font-size-25);
	}

	.dlc-dept-cat__grid {
		flex-direction: column;
		align-items: center;
	}

	.dlc-dept-cat__tile {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.dlc-dept-cat__circle {
		width: 200px;
		height: 200px;
	}

	.dlc-dept-cat__title {
		font-size: var(--font-size-20);
	}

	/* Taller tap targets */
	.dlc-dept-cat__subcats {
		gap: 0;
	}
	a.dlc-dept-cat__subcat {
		padding: 12px;
	}
}

/* -- Below 480px: slightly smaller circles ------------------- */
@media (max-width: 479px) {
	.dlc-dept-cat__circle {
		width: 180px;
		height: 180px;
	}
}
