/**
 * [occ_categories] (D-395 build 3): the public category lists.
 *
 * On the D-365 tokens (occ-ui.css), with their values as fallbacks so the
 * admin preview draws the same without that sheet. `inline` inherits the
 * menu's own font, size and colour, so it drops into a mega menu unchanged.
 */

.occ-cats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.occ-cats a {
	text-decoration: none;
}

.occ-cats__n {
	color: var(--occ-ui-muted, #667085);
	font-size: 0.9em;
}

/* Comma list: for a menu column. Everything inherited. */
.occ-cats--inline {
	line-height: inherit;
}

.occ-cats--inline a,
.occ-cats--inline > span {
	color: inherit;
}

.occ-cats--inline a:hover,
.occ-cats--inline a:focus {
	color: var(--occ-ui-brand, #a41e32);
}

/* Bullet list. */
.occ-cats--list {
	padding-left: 1.2em;
	list-style: disc;
	line-height: 1.9;
}

.occ-cats--list a {
	color: inherit;
}

.occ-cats--list a:hover,
.occ-cats--list a:focus {
	color: var(--occ-ui-brand, #a41e32);
}

/* Columns. */
.occ-cats--columns {
	display: grid;
	grid-template-columns: repeat(var(--occ-cats-cols, 2), minmax(0, 1fr));
	gap: 10px 40px;
}

.occ-cats--columns a {
	color: inherit;
}

.occ-cats--columns a:hover,
.occ-cats--columns a:focus {
	color: var(--occ-ui-brand, #a41e32);
}

/* Chips. */
.occ-cats--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.occ-cats--chips li > a,
.occ-cats--chips li > span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--occ-ui-border, #d0d5dd);
	border-radius: 999px;
	background: var(--occ-ui-white, #ffffff);
	color: var(--occ-ui-text-2, #344054);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.occ-cats--chips li > a:hover,
.occ-cats--chips li > a:focus {
	border-color: var(--occ-ui-brand, #a41e32);
	color: var(--occ-ui-brand, #a41e32);
}

/* Cards. */
.occ-cats--cards {
	display: grid;
	grid-template-columns: repeat(var(--occ-cats-cols, 3), minmax(0, 1fr));
	gap: 16px;
}

.occ-cats__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--occ-ui-line, #e4e7ec);
	border-radius: 12px;
	background: var(--occ-ui-white, #ffffff);
	color: var(--occ-ui-text, #101828);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.occ-cats__card:hover,
a.occ-cats__card:focus {
	border-color: var(--occ-ui-brand, #a41e32);
	box-shadow: var(--occ-ui-tile-shadow, 0 1px 3px rgba(16, 24, 40, 0.1));
}

.occ-cats__name {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.occ-cats__sub {
	color: var(--occ-ui-muted, #667085);
	font-size: 14px;
	line-height: 1.45;
}

.occ-cats__jobs {
	margin-top: auto;
	color: var(--occ-ui-brand, #a41e32);
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 760px) {
	.occ-cats--cards,
	.occ-cats--columns {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------ Directory (b10.710)
 * A card per industry in even rows: every card in a row is as tall as the
 * tallest, and "Show all" sits at the foot of each. The columns follow the
 * width the list is given (container queries), so it fits a page or a panel. */

.occ-cats--directory {
	container-type: inline-size;
}

.occ-cats__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* The search bar: one white bar like the job search on the category pages
 * (1px #ecedf2 border, 8px corners, soft shadow, 60px field with its icon,
 * a divider before "only with open jobs"). */
.occ-cats__bar {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	margin: 0 0 28px;
	padding: 19px 20px;
	border: 1px solid #ecedf2;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 6px 15px rgba(64, 79, 104, 0.05);
}

.occ-cats__search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: #202124;
}

.occ-cats__search svg {
	position: absolute;
	top: 50%;
	left: 22px;
	transform: translateY(-50%);
	pointer-events: none;
}

.occ-cats__search input[type="search"] {
	width: 100%;
	height: 60px;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 25px 10px 58px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: #202124;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
}

.occ-cats__search input[type="search"]::placeholder {
	color: #77838f;
	font-weight: 400;
	opacity: 1;
}

.occ-cats__search input[type="search"]:focus {
	outline: 2px solid var(--occ-ui-brand, #a41e32);
	outline-offset: 0;
}

.occ-cats__only {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	margin: 0;
	padding: 0 20px 0 30px;
	border-left: 1px solid #ecedf2;
	color: #202124;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

.occ-cats__only input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #681022;
}

.occ-cats__total {
	margin: 0 0 20px;
	color: #202124;
	font-size: 15px;
}

.occ-cats__none {
	margin: 0 0 24px;
	color: var(--occ-ui-muted, #667085);
}

.occ-cats__grid {
	display: grid;
	grid-template-columns: repeat(var(--occ-cats-cols, 3), minmax(0, 1fr));
	gap: 24px 28px;
	align-items: stretch;
}

.occ-cats__group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 20px 22px;
	border: 1px solid var(--occ-ui-line, #e4e7ec);
	border-radius: 12px;
	background: var(--occ-ui-white, #ffffff);
}

.occ-cats__group[hidden] {
	display: none;
}

.occ-cats__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.occ-cats__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.occ-cats__title a {
	color: var(--occ-ui-text, #101828);
}

.occ-cats__title a:hover,
.occ-cats__title a:focus {
	color: var(--occ-ui-brand, #a41e32);
}

.occ-cats__count {
	flex: none;
	color: var(--occ-ui-brand, #a41e32);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.occ-cats__count.is-none {
	color: var(--occ-ui-muted, #667085);
	font-weight: 500;
}

.occ-cats__subs {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.35;
}

.occ-cats__subs li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.occ-cats__subs li[hidden] {
	display: none;
}

.occ-cats__subs a,
.occ-cats__subs span:first-child {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--occ-ui-text-2, #344054);
}

.occ-cats__subs a:hover,
.occ-cats__subs a:focus {
	color: var(--occ-ui-brand, #a41e32);
}

.occ-cats__subs .occ-cats__n {
	flex: none;
	color: var(--occ-ui-brand, #a41e32);
	font-size: 13px;
	font-weight: 600;
}

.occ-cats__more {
	align-self: flex-start;
	margin: auto 0 0;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--occ-ui-brand, #a41e32);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.occ-cats__more:hover,
.occ-cats__more:focus {
	background: none;
	color: var(--occ-ui-brand, #a41e32);
	text-decoration: underline;
}

.occ-cats__more[hidden] {
	display: none;
}

@container (max-width: 900px) {
	.occ-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 560px) {
	.occ-cats__grid {
		grid-template-columns: 1fr;
	}

	.occ-cats__bar {
		flex-direction: column;
		align-items: stretch;
		padding: 10px 14px;
	}

	.occ-cats__only {
		min-height: 48px;
		padding: 0 0 0 22px;
		border-left: 0;
		border-top: 1px solid #ecedf2;
	}
}

/* The /job-category/ page itself: a grey band like the category pages' job search. */
.occ-cat-index__band {
	margin: 0 0 40px;
	padding: 50px 0;
	background: #f9f9f9;
}

.occ-cat-index__band .occ-cats__bar {
	margin: 0;
}

.occ-cat-index__title {
	margin: 0 0 5px;
	color: #202124;
	font-size: 50px;
	font-weight: 500;
	line-height: 1.1;
}

.occ-cat-index__intro {
	margin: 0 0 15px;
	color: #202124;
	font-size: 15px;
	line-height: 1.75;
}

.occ-cat-index__list {
	padding-bottom: 60px;
}

@media (max-width: 767px) {
	.occ-cat-index__band {
		padding: 32px 0;
	}

	.occ-cat-index__title {
		font-size: 34px;
	}

	.occ-cat-index__band .occ-cats__bar {
		flex-direction: column;
		align-items: stretch;
		padding: 10px 14px;
	}

	.occ-cat-index__band .occ-cats__only {
		min-height: 48px;
		padding: 0 0 0 22px;
		border-left: 0;
		border-top: 1px solid #ecedf2;
	}
}
