/* Site-wide layout polish: keeps the header, top bar and cards tidy at every screen width. */

/* ---------- Top bar ---------- */
@media (min-width: 981px) {
	.et_pb_section_0_tb_header .et_pb_row_0_tb_header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 28px;
	}
	.et_pb_section_0_tb_header .et_pb_row_0_tb_header::after {
		display: none;
	}
	.et_pb_section_0_tb_header .et_pb_row_0_tb_header .et_pb_column {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		width: auto !important;
		margin-right: 0 !important;
	}
	.et_pb_section_0_tb_header .et_pb_column_1_tb_header {
		justify-content: flex-end;
	}
	.et_pb_section_0_tb_header .difl_iconlist_1_tb_header.difl_iconlist ul.difl_iconlist_container {
		display: flex !important;
		flex-wrap: nowrap;
		justify-content: flex-end;
		align-items: center;
		gap: 28px !important;
	}
	.et_pb_section_0_tb_header .difl_iconlist_1_tb_header li.difl_iconlistitem {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: max-content;
		max-width: none !important;
		margin: 0 !important;
	}
	.et_pb_section_0_tb_header .difl_iconlist_1_tb_header li.difl_iconlistitem div .item-elements {
		display: inline-flex;
		margin: 0 !important;
		padding: 0 !important;
	}
	.et_pb_section_0_tb_header .difl_iconlist_1_tb_header li.difl_iconlistitem .item-elements span.difl_icon_item_container .difl_icon_item_header {
		margin: -3px 0 0 !important;
		padding: 0 !important;
	}
	.et_pb_section_0_tb_header .difl_iconlist_container li,
	.et_pb_section_0_tb_header .difl_icon_item_header {
		white-space: nowrap;
	}
	.et_pb_section_0_tb_header .difl_iconlist_container a {
		transition: color 0.2s ease;
	}
	.et_pb_section_0_tb_header .difl_iconlist_container a:hover {
		color: #e40a13 !important;
	}
}

/* ---------- Main header ---------- */
@media (min-width: 981px) {
	.difl_advancedmenu_0_tb_header .center-row .row-inner {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}
	.difl_advancedmenu_0_tb_header .center-row .df-am-col.left,
	.difl_advancedmenu_0_tb_header .center-row .df-am-col.right {
		flex: 0 0 auto !important;
		max-width: none !important;
	}
	.difl_advancedmenu_0_tb_header .center-row .df-am-col.center {
		flex: 1 1 auto !important;
		min-width: 0;
		max-width: none !important;
	}
	.difl_advancedmenu_0_tb_header #menu-main-menu {
		flex-wrap: nowrap;
	}
	.difl_advancedmenu_0_tb_header #menu-main-menu > li > a {
		white-space: nowrap;
	}
	.difl_advancedmenu_0_tb_header .df-menu-button {
		white-space: nowrap;
		transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	}
	.difl_advancedmenu_0_tb_header .df-menu-button:hover {
		transform: translateY(-1px);
	}
}

/* Keep the compact layout until the full-size header has room for the logo,
   navigation (including dropdown arrows), gaps and quote button. */
@media (min-width: 981px) and (max-width: 1439px) {
	.et_pb_row_0_tb_header,
	.et_pb_row_1_tb_header {
		width: 92% !important;
		max-width: 1180px !important;
	}
	.difl_advancedmenu_0_tb_header .center-row .row-inner {
		gap: 16px;
	}
	.difl_advancedmenu_0_tb_header .center-row .df-am-col > .df-am-item {
		margin: 0 !important;
	}
	.difl_advancedmenu_0_tb_header .difl_advancedmenuitem_0_tb_header {
		width: auto;
	}
	.difl_advancedmenu_0_tb_header .df-site-logo {
		width: clamp(140px, 14.5vw, 200px) !important;
		height: auto !important;
	}
	.difl_advancedmenu_0_tb_header #menu-main-menu {
		gap: clamp(12px, 1.3vw, 18px) !important;
	}
	.difl_advancedmenu_0_tb_header #menu-main-menu > li > a {
		font-size: 15px !important;
	}
	.difl_advancedmenu_0_tb_header .df-menu-button {
		padding: 12px 20px !important;
		margin-left: 0 !important;
	}
}

@media (min-width: 981px) and (max-width: 1099px) {
	.difl_advancedmenu_0_tb_header #menu-main-menu {
		gap: 8px !important;
	}
	.difl_advancedmenu_0_tb_header #menu-main-menu > li > a {
		font-size: 14px !important;
	}
	.difl_advancedmenu_0_tb_header .df-menu-button {
		padding: 11px 16px !important;
		font-size: 13px !important;
	}
}

/* ---------- Shop Collections cards ---------- */

/* Line the "Shop Now" buttons up along the bottom of each row of cards. */
@media (min-width: 981px) {
	.et_pb_row:has(> .et_pb_column > .service_h1) {
		display: flex;
		flex-wrap: wrap;
	}
	.et_pb_row:has(> .et_pb_column > .service_h1) > .et_pb_column {
		display: flex;
		flex-direction: column;
	}
	.et_pb_row:has(> .et_pb_column > .service_h1) > .et_pb_column > .et_pb_module {
		flex: 1 1 auto;
	}
	.service_h1 > .et_pb_module_inner,
	.service_h1 .df_ab_blurb_container,
	.service_h1 .df_ab_blurb_content_container {
		height: 100%;
		display: flex;
		flex-direction: column;
	}
	.service_h1 .df_ab_blurb_container {
		flex: 1 1 auto;
	}
	.service_h1 .df_ab_blurb_button_wrapper {
		margin-top: auto;
	}
}

/* On tablets and phones the card text was white on a light grey background,
   which made it unreadable. Use the same dark text as desktop. */
@media (max-width: 980px) {
	.et_pb_module.service_h1 .df_ab_blurb_container h3.df_ab_blurb_title {
		color: #242424 !important;
	}
	.service_h1 .df_ab_blurb_description,
	.service_h1 .df_ab_blurb_description * {
		color: #666666 !important;
	}
	.et_pb_module.service_h1 .df_ab_blurb_container a.df_ab_blurb_button {
		color: #1a1a1a !important;
		border-color: #e40a13 !important;
	}
}

/* ---------- General ---------- */
html,
body {
	overflow-x: clip;
}
h1, h2, h3, h4 {
	overflow-wrap: break-word;
}

/* Uniform Supply hero: the two-line heading had no breathing room between lines. */
.page-id-283032 .et_pb_text h1 {
	line-height: 1.12 !important;
}

/* The menu font's space is very narrow at smaller sizes ("SchoolUniforms"), so open it up a little. */
.df-mobile-menu .df-menu-nav a,
.difl_advancedmenu_0_tb_header #menu-main-menu > li > a {
	word-spacing: 0.12em;
}
