/* Careers — inherits the theme's fonts and colours.
   Adjust these tokens in your theme to restyle. */
:root {
	--dcc-accent: currentColor;
	--dcc-border: rgba(127, 127, 127, 0.3);
	--dcc-muted: rgba(127, 127, 127, 0.08);
	--dcc-gap: 2.5rem;
	--dcc-max: 1200px;
}

.dcc-wrap {
	max-width: var(--dcc-max);
	margin: 0 auto;
	padding: 3rem 1.25rem;
	box-sizing: border-box;
}

.dcc-heading {
	margin: 0 0 1.5rem;
}

/* ---------- List ---------- */
.dcc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--dcc-border);
}

.dcc-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--dcc-border);
}

.dcc-item__body { flex: 1 1 auto; min-width: 0; }

.dcc-item__title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	line-height: 1.3;
}

.dcc-item__title a { text-decoration: none; }
.dcc-item__title a:hover,
.dcc-item__title a:focus-visible { text-decoration: underline; }

.dcc-item__excerpt {
	margin: 0;
	max-width: 70ch;
	opacity: 0.8;
}

.dcc-item__meta {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.6rem;
	text-align: right;
}

.dcc-item__date {
	margin: 0;
	font-size: 0.9rem;
}

.dcc-item__date time {
	display: block;
	font-weight: 600;
}

.dcc-button {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--dcc-accent);
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
}

.dcc-button:hover,
.dcc-button:focus-visible { text-decoration: underline; }

.dcc-empty {
	padding: 2rem;
	background: var(--dcc-muted);
	border-radius: 4px;
}

/* ---------- Details: 80 / 20 ---------- */
.dcc-single {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); /* 80% / 20% */
	gap: var(--dcc-gap);
	align-items: start;
}

.dcc-single__content > :first-child { margin-top: 0; }

.dcc-single__aside {
	position: sticky;
	top: 2rem;
}

.dcc-deadline {
	padding: 1.25rem;
	background: var(--dcc-muted);
	border-left: 3px solid var(--dcc-accent);
	border-radius: 0 4px 4px 0;
}

.dcc-deadline__label {
	margin: 0 0 0.25rem;
	font-size: 0.9rem;
	opacity: 0.8;
}

.dcc-deadline__date {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.dcc-back {
	margin: 1rem 0 0;
	font-size: 0.9rem;
}

/* ---------- Mobile: stack, deadline first ---------- */
@media (max-width: 768px) {
	.dcc-item {
		flex-direction: column;
		align-items: flex-start;
	}
	.dcc-item__meta {
		align-items: flex-start;
		text-align: left;
	}
	.dcc-single {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.dcc-single__aside {
		position: static;
		order: -1;
	}
	.dcc-back { display: none; }
}

.dcc-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Download Job Description ---------- */
.dcc-download {
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--dcc-border);
}

.dcc-button--download {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	font-weight: 600;
}

.dcc-button__note {
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.75;
}
