.tam-job-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.tam-job-grid__heading {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 1.5em 0 0.25em;
}

.tam-job-grid__heading:first-child {
	margin-top: 0;
}

.tam-job-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e0e0e0;
	padding: 1em;
}

.tam-job-card:hover {
	background: rgba(30, 115, 190, 0.05);
}

/* Photo + compact info, stacked on narrow layouts; the media query
   further down puts the photo beside the info on wide ones, with
   tam-job-card__bottom (description/contact) sitting outside this
   wrapper so it always spans the full card width below. */
.tam-job-card__top {
	display: flex;
	flex-direction: column;
}

.tam-job-card__photo {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.tam-job-card__photo--placeholder {
	width: 100%;
	height: 160px;
	background: #e5e5e5;
}

.tam-job-card__body {
	flex: 1;
	min-width: 0;
	padding: 0 1rem 0 1rem;
}

.tam-job-card__bottom {
	margin-top: 0.75em;
	padding: 0 0.5rem 1rem;
}

@media (min-width: 600px) {
	.tam-job-card__top {
		flex-direction: row;
		align-items: stretch;
	}

	.tam-job-card__photo {
		max-width: 240px;
		height: auto;
		flex: 0 0 240px;
	}

	.tam-job-card__photo--placeholder {
		width: 240px;
		height: auto;
		flex: 0 0 240px;
	}
}

.tam-job-card__logo {
	height: 1.25em; /* fallback for browsers without the `lh` unit */
	height: 1lh;
	width: auto;
	display: block;
	padding-right: 1em;
	flex-shrink: 0;
}

.tam-job-card__headline1 {
	font-size: 20px;
	line-height: 1.8rem;
	margin: 0 0 0.25em;
}

.tam-job-card__meta {
	display: flex;
	align-items: center;
	font-size: 0.875rem;
	color: #666;
	margin: 0 0 0.5em;
	padding-top: 1em;
	padding-bottom: 1em;
}

.tam-job-card__badges {
	margin: 0 0 0.5em;
	padding-bottom: 1em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.tam-job-card__badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.25em 0.6em;
	background: #eee;
	color: #333;
}

.tam-job-card__badge--type {
	background: transparent;
	border: 1px solid #999;
	color: #555;
}

.tam-job-card__facts {
	list-style: none;
	margin: 0 0 0.5em;
	padding: 0;
	font-size: 1em;
	line-height: 1.5em;
}

.tam-job-card__facts li {
	margin: 0 0 0.2em;
}

.tam-job-card__desc {
	margin: 0 0 0.75em;
}

/* The whole compact area lives inside this <summary> (not just a small
   "read more" link), so clicking/tapping anywhere on it toggles the
   card open — suppress the browser's default disclosure marker since
   it'd otherwise sit oddly next to a full card layout rather than a
   line of text. */
.tam-job-card__summary {
	display: block;
	list-style: none;
	cursor: pointer;
}

.tam-job-card__summary::-webkit-details-marker {
	display: none;
}

.tam-job-card__summary::marker {
	content: '';
}

.tam-job-card__see-more {
	font-weight: 700;
	font-size: 1em;
	line-height: 1.5em;
	color: #1a1a1a;
	margin-bottom: 0;
	padding-top: 1em;
}

/* Native marker is suppressed above (it'd sit before the whole card's
   content, not next to this text) — this stands in for it, right after
   the "Read Description..." line, flipping direction off the <details>
   element's own [open] state rather than JS. */
.tam-job-card__see-more::after {
	content: '\25B8';
	display: inline-block;
	margin-left: 0.4em;
}

.tam-job-card__details[open] .tam-job-card__see-more::after {
	content: '\25BE';
}

.tam-job-card__description {
	margin: 0 0 0.75em;
}

/* Explicit spacing for the wysiwyg Description field's own markup
   (paragraphs, lists, bold/italic, links) so it matches this card's
   typography scale rather than relying on browser UA defaults. */
.tam-job-card__description p {
	margin: 0 0 1em;
}

.tam-job-card__description p:last-child {
	margin-bottom: 0;
}

.tam-job-card__description ul,
.tam-job-card__description ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.tam-job-card__description li {
	margin: 0 0 0.4em;
}

.tam-job-card__description strong {
	font-weight: 700;
}

.tam-job-card__description em {
	font-style: italic;
}

.tam-job-card__description a {
	text-decoration: underline;
}

.tam-job-card__description h1,
.tam-job-card__description h2,
.tam-job-card__description h3,
.tam-job-card__description h4,
.tam-job-card__description h5,
.tam-job-card__description h6 {
	margin: 0 0 0.5em;
}

.tam-job-card__contact {
	font-size: 0.875rem;
}

.tam-job-card__contact h3 {
	line-height: 1.8rem;
	margin-top: 2em;
}

.tam-job-card__contact p {
	margin: 0 0 0.25em;
}
