.bsg {
	--bsg-accent: #d62339;
	--bsg-accent-dark: color-mix(in srgb, var(--bsg-accent) 82%, #000);
	--bsg-ink: #29292d;
	--bsg-muted: #68686f;
	--bsg-surface: #fff;
	--bsg-soft: #f5f5f7;
	--bsg-border: #e4e4e8;
	--bsg-radius: 18px;
	--bsg-shadow: 0 18px 50px rgba(28, 28, 35, 0.08);
	color: var(--bsg-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.65;
}

.bsg *,
.bsg *::before,
.bsg *::after {
	box-sizing: border-box;
}

.bsg .bsg-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	vertical-align: middle;
}

.bsg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bsg-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.bsg-eyebrow::before {
	width: 28px;
	height: 2px;
	background: currentColor;
	content: "";
}

.bsg-listing {
	width: 100%;
	margin: 0 auto;
}

.bsg-listing__header {
	max-width: 760px;
	margin-bottom: clamp(28px, 5vw, 52px);
}

.bsg-listing__title {
	margin: 12px 0 10px;
	color: var(--bsg-ink);
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.bsg-listing__intro {
	max-width: 660px;
	margin: 0;
	color: var(--bsg-muted);
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.65;
}

.bsg-filters {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(170px, 0.42fr));
	gap: 14px;
	padding: 20px;
	background: var(--bsg-soft);
	border: 1px solid var(--bsg-border);
	border-radius: var(--bsg-radius);
}

.bsg-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
}

.bsg-field label {
	color: #525259;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.bsg-field__control {
	position: relative;
	display: block;
}

.bsg-field__control .bsg-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	z-index: 1;
	color: #85858c;
	pointer-events: none;
	transform: translateY(-50%);
}

.bsg-field input,
.bsg-field select {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 42px 0 15px;
	appearance: none;
	background-color: #fff;
	background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
	background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	border: 1px solid #d9d9de;
	border-radius: 10px;
	box-shadow: none;
	color: var(--bsg-ink);
	font: inherit;
	font-size: 15px;
	line-height: 48px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bsg .bsg-field--search .bsg-field__control input[type="search"] {
	padding: 0 42px 0 50px !important;
	background-image: none;
}

.bsg-field input::placeholder {
	color: #96969d;
}

.bsg-field input:focus,
.bsg-field select:focus {
	outline: 0;
	border-color: var(--bsg-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsg-accent) 16%, transparent);
}

.bsg-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
}

.bsg-results-bar p {
	margin: 0;
	color: var(--bsg-muted);
	font-size: 14px;
	font-weight: 600;
}

.bsg-cards {
	display: grid;
	gap: 14px;
}

.bsg-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	justify-content: space-between;
	min-width: 0;
	padding: clamp(24px, 4vw, 34px);
	background: var(--bsg-surface);
	border: 1px solid var(--bsg-border);
	border-radius: var(--bsg-radius);
	box-shadow: 0 4px 18px rgba(28, 28, 35, 0.035);
	cursor: pointer;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bsg-card:hover,
.bsg-card:focus-within {
	border-color: var(--bsg-accent);
	box-shadow: var(--bsg-shadow);
	transform: translateY(-2px);
}

.bsg-card__content {
	min-width: 0;
}

.bsg-card__topline {
	min-height: 22px;
	margin-bottom: 8px;
}

.bsg-card__category {
	color: var(--bsg-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.bsg-card__title {
	margin: 0;
	font-size: clamp(21px, 3vw, 28px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.bsg-card__title a {
	color: var(--bsg-ink);
	text-decoration: none;
}

.bsg-card__title a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.bsg-card__excerpt {
	display: -webkit-box;
	max-width: 820px;
	margin: 12px 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--bsg-muted);
	font-size: 15px;
	line-height: 1.6;
}

.bsg-card__meta,
.bsg-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 18px;
}

.bsg-card__meta span,
.bsg-detail__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--bsg-muted);
	font-size: 14px;
}

.bsg-card__meta .bsg-icon,
.bsg-detail__meta .bsg-icon {
	width: 17px;
	height: 17px;
	flex-basis: 17px;
	color: var(--bsg-accent);
}

.bsg-card__arrow {
	position: relative;
	z-index: 1;
	display: grid;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	place-items: center;
	background: var(--bsg-soft);
	border-radius: 50%;
	color: var(--bsg-ink);
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.bsg-card:hover .bsg-card__arrow,
.bsg-card:focus-within .bsg-card__arrow {
	background: var(--bsg-accent);
	color: #fff;
	transform: translateX(3px);
}

.bsg-empty,
.bsg-error__box {
	display: flex;
	align-items: center;
	min-height: 280px;
	padding: 44px 24px;
	flex-direction: column;
	justify-content: center;
	background: var(--bsg-soft);
	border: 1px dashed #d3d3d8;
	border-radius: var(--bsg-radius);
	text-align: center;
}

.bsg-empty[hidden] {
	display: none;
}

.bsg-empty > .bsg-icon,
.bsg-error__box > .bsg-icon {
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	color: var(--bsg-accent);
}

.bsg-empty h3,
.bsg-error__box h2 {
	margin: 0 0 6px;
	color: var(--bsg-ink);
	font-size: 23px;
}

.bsg-empty p,
.bsg-error__box p {
	max-width: 560px;
	margin: 0 0 20px;
	color: var(--bsg-muted);
}

.bsg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 13px 22px;
	background: var(--bsg-accent);
	border: 1px solid var(--bsg-accent);
	border-radius: 10px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bsg-button:hover,
.bsg-button:focus {
	background: var(--bsg-accent-dark);
	border-color: var(--bsg-accent-dark);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--bsg-accent) 25%, transparent);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.bsg-button:focus-visible,
.bsg-card a:focus-visible,
.bsg-back:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--bsg-accent) 30%, transparent);
	outline-offset: 3px;
}

.bsg-button--secondary {
	min-height: 46px;
	padding: 10px 18px;
	background: #fff;
	border-color: #d6d6dc;
	color: var(--bsg-ink);
}

.bsg-button--secondary:hover,
.bsg-button--secondary:focus {
	background: #fff;
	border-color: var(--bsg-accent);
	box-shadow: none;
	color: var(--bsg-accent);
}

.bsg-detail {
	width: 100%;
	margin: 0 auto;
}

.bsg-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
	color: var(--bsg-muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.bsg-back:hover {
	color: var(--bsg-accent);
	text-decoration: none;
}

.bsg-back .bsg-icon {
	width: 18px;
	height: 18px;
}

.bsg-detail__hero {
	position: relative;
	padding: clamp(32px, 6vw, 64px);
	overflow: hidden;
	background: var(--bsg-soft);
	border: 1px solid var(--bsg-border);
	border-radius: 24px;
}

.bsg-detail__hero::after {
	position: absolute;
	top: -100px;
	right: -80px;
	width: 280px;
	height: 280px;
	background: color-mix(in srgb, var(--bsg-accent) 9%, transparent);
	border-radius: 50%;
	content: "";
}

.bsg-detail__hero > * {
	position: relative;
	z-index: 1;
}

.bsg-detail__hero h1 {
	max-width: 940px;
	margin: 14px 0 0;
	color: var(--bsg-ink);
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

.bsg-detail__meta {
	margin-top: 26px;
}

.bsg-detail__meta span {
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var(--bsg-border);
	border-radius: 999px;
	color: #505058;
}

.bsg-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
	gap: clamp(34px, 6vw, 72px);
	align-items: start;
	padding-top: clamp(36px, 6vw, 68px);
}

.bsg-detail__content {
	min-width: 0;
	color: #414148;
	font-size: 16px;
	line-height: 1.78;
}

.bsg-detail__content > :first-child {
	margin-top: 0;
}

.bsg-detail__content > b:first-child,
.bsg-detail__content > strong:first-child {
	display: block;
	margin: 0 0 18px;
	color: var(--bsg-ink);
	font-size: clamp(21px, 3vw, 27px);
	line-height: 1.35;
}

.bsg-detail__content h2,
.bsg-detail__content h3,
.bsg-detail__content h4,
.bsg-detail__content > b,
.bsg-detail__content > strong {
	display: block;
	margin: 38px 0 14px;
	color: var(--bsg-ink);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.35;
}

.bsg-detail__content p {
	margin: 0 0 20px;
}

.bsg-detail__content ul,
.bsg-detail__content ol {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.bsg-detail__content li {
	position: relative;
	margin: 0 0 11px;
	padding-left: 28px;
}

.bsg-detail__content li::before {
	position: absolute;
	top: 0.7em;
	left: 4px;
	width: 8px;
	height: 8px;
	background: var(--bsg-accent);
	border-radius: 50%;
	content: "";
	transform: translateY(-50%);
}

.bsg-detail__content a {
	color: var(--bsg-accent);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bsg-detail__sidebar {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 16px;
}

.bsg-apply-card {
	padding: 26px;
	background: var(--bsg-soft);
	border: 1px solid var(--bsg-border);
	border-radius: var(--bsg-radius);
}

.bsg-apply-card h2 {
	margin: 0 0 7px;
	color: var(--bsg-ink);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.3;
}

.bsg-apply-card p {
	margin: 0 0 20px;
	color: var(--bsg-muted);
	font-size: 15px;
}

.bsg-apply-card .bsg-button {
	width: 100%;
}

.bsg-apply-card__hint {
	display: block;
	margin-top: 13px;
	color: #7a7a82;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.bsg-mobile-apply {
	display: none;
}

.bsg-error .bsg-back {
	margin-bottom: 22px;
}

@media (max-width: 900px) {
	.bsg-filters {
		grid-template-columns: 1fr 1fr;
	}

	.bsg-field--search {
		grid-column: 1 / -1;
	}

	.bsg-detail__layout {
		grid-template-columns: 1fr;
	}

	.bsg-detail__sidebar {
		position: static;
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.bsg {
		font-size: 15px;
	}

	.bsg-filters {
		grid-template-columns: 1fr;
		padding: 15px;
	}

	.bsg-field--search {
		grid-column: auto;
	}

	.bsg-card {
		align-items: flex-start;
		padding: 22px;
	}

	.bsg-card__excerpt {
		display: none;
	}

	.bsg-card__meta {
		flex-direction: column;
		gap: 7px;
	}

	.bsg-card__arrow {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.bsg-detail__hero {
		padding: 30px 24px;
		border-radius: 18px;
	}

	.bsg-detail__meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.bsg-detail__sidebar {
		grid-template-columns: 1fr;
	}

	.bsg-apply-card {
		display: none;
	}

	.bsg-mobile-apply {
		position: sticky;
		bottom: 12px;
		z-index: 20;
		display: block;
		margin-top: 32px;
		padding: 10px;
		background: rgba(255, 255, 255, 0.93);
		border: 1px solid var(--bsg-border);
		border-radius: 14px;
		box-shadow: 0 12px 36px rgba(28, 28, 35, 0.16);
		backdrop-filter: blur(10px);
	}

	.bsg-mobile-apply .bsg-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsg *,
	.bsg *::before,
	.bsg *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.bsg-back,
	.bsg-detail__sidebar,
	.bsg-mobile-apply {
		display: none !important;
	}

	.bsg-detail__layout {
		display: block;
	}
}
