@keyframes sbrd-pdf-card-enter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sbrd-pdf-badge-in {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes sbrd-pdf-line-in {
	from {
		opacity: 0;
		transform: translateY(7px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap {
	margin: 1.75rem 0;
	font-size: clamp(0.9375rem, 0.88rem + 0.35vw, 1.03rem);
	line-height: 1.55;
	box-sizing: border-box;
	position: relative;
	border-radius: 15px;
	padding: 1px;
	background: linear-gradient(
		132deg,
		color-mix(in srgb, var(--accent) 38%, var(--border)),
		var(--border) 32%,
		color-mix(in srgb, var(--border) 92%, var(--accent)) 58%,
		var(--border) 100%
	);
	box-shadow: 0 2px 0 color-mix(in srgb, var(--border) 75%, transparent);
	transition:
		background 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap:has(.sbrd-pdf-file__card:hover) {
		background: linear-gradient(
			132deg,
			color-mix(in srgb, var(--accent) 62%, var(--border)),
			color-mix(in srgb, var(--accent) 28%, var(--border)) 40%,
			var(--border) 55%,
			color-mix(in srgb, var(--accent) 45%, var(--border)) 100%
		);
		box-shadow:
			0 12px 40px color-mix(in srgb, var(--bg) 52%, transparent),
			0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(min(100%, 16.5rem), 1fr);
	align-items: stretch;
	gap: 0;
	border-radius: 14px;
	border: none;
	background: var(--bg-card);
	overflow: hidden;
	box-sizing: border-box;
	animation: sbrd-pdf-card-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
	transition:
		box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover {
		transform: translateY(-2px);
		box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent);
	}
}

@media (max-width: 639.98px) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
	}
}

html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap {
	background: linear-gradient(
		132deg,
		color-mix(in srgb, var(--accent) 28%, var(--border)),
		var(--border) 35%,
		color-mix(in srgb, var(--border) 88%, var(--accent)) 62%,
		var(--border) 100%
	);
}

@media (hover: hover) {
	html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap:has(.sbrd-pdf-file__card:hover) {
		background: linear-gradient(
			132deg,
			color-mix(in srgb, var(--accent) 48%, var(--border)),
			color-mix(in srgb, var(--accent) 22%, var(--border)) 42%,
			var(--border) 58%,
			color-mix(in srgb, var(--accent) 36%, var(--border)) 100%
		);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	display: block;
	height: 100%;
	min-height: 12.5rem;
	max-height: min(40vh, 18.5rem);
	overflow: hidden;
	background: var(--bg-surface);
	outline: none;
	transition: box-shadow 0.35s ease;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb:focus-visible {
	box-shadow: inset 0 0 0 2px var(--focus);
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb-img {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__thumb-img {
		transform: scale(1.015);
		filter: brightness(1.03) saturate(1.03);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb:hover .sbrd-pdf-file__thumb-img,
:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb:focus-visible .sbrd-pdf-file__thumb-img {
	transform: scale(1.03);
	filter: brightness(1.05) saturate(1.04);
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 52%,
		color-mix(in srgb, var(--bg) 58%, transparent) 100%
	);
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.35s ease;
}

html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb-veil {
	background: linear-gradient(
		180deg,
		transparent 55%,
		color-mix(in srgb, var(--text) 18%, transparent) 100%
	);
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb:hover .sbrd-pdf-file__thumb-veil {
	opacity: 0.88;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 12rem;
	width: 100%;
	border-radius: inherit;
	background: linear-gradient(160deg, var(--bg-card-alt), var(--bg-surface));
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__placeholder-label {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--accent);
	opacity: 0.85;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__panel {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.85rem;
	padding: clamp(1.15rem, 3vw, 1.65rem) clamp(1.35rem, 4vw, 2.1rem);
	padding-left: max(clamp(1.35rem, 4vw, 2.1rem), env(safe-area-inset-left, 0px));
	padding-right: max(clamp(1.35rem, 4vw, 2.1rem), env(safe-area-inset-right, 0px));
	background: var(--bg-card);
	border-left: 1px solid var(--border);
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
}

@media (max-width: 639.98px) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__panel {
		grid-column: 1;
		grid-row: 2;
		border-left: none;
		border-top: 1px solid var(--border);
		padding-top: clamp(1.45rem, 4vw, 1.95rem);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__head-main {
	flex: 1;
	min-width: 0;
	animation: sbrd-pdf-line-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__badge {
	flex-shrink: 0;
	margin-top: 0.1rem;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
	color: var(--accent);
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1;
	animation: sbrd-pdf-badge-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both;
	transition:
		border-color 0.22s ease,
		color 0.22s ease,
		box-shadow 0.28s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__badge {
		border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__title-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	min-width: 0;
	padding-bottom: 0.5rem;
	margin-bottom: 0.05rem;
	border-bottom: 1px solid var(--border);
	transition: border-color 0.28s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__title-row {
		border-bottom-color: color-mix(in srgb, var(--accent) 24%, var(--border));
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.24rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--text);
	transition: color 0.2s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__title {
		color: color-mix(in srgb, var(--text) 94%, var(--accent));
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__title-sep {
	flex-shrink: 0;
	color: var(--text-muted);
	font-weight: 400;
	user-select: none;
	opacity: 0.85;
	transition: opacity 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__title-sep {
		opacity: 1;
		color: var(--text-sec);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__size {
	flex-shrink: 0;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text-muted);
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__size {
		color: var(--text-sec);
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__note {
	margin: 0;
	padding-top: 0.15rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--text-sec);
	text-wrap: pretty;
	animation: sbrd-pdf-line-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
	transition: color 0.22s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__note {
		color: color-mix(in srgb, var(--text-sec) 88%, var(--text));
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__actions {
	margin-top: 0.15rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--border);
	animation: sbrd-pdf-line-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
	transition: border-color 0.28s ease;
}

@media (hover: hover) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover .sbrd-pdf-file__actions {
		border-top-color: color-mix(in srgb, var(--accent) 18%, var(--border));
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
	max-width: 100%;
}

@media (max-width: 420px) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__sep {
	display: inline-block;
	width: 1px;
	height: 1.1em;
	align-self: center;
	background: var(--border);
	flex-shrink: 0;
}

@media (max-width: 420px) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__sep {
		display: none;
	}
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap a.sbrd-pdf-file__thumb {
	border-bottom: none !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action .sbrd-pdf-file__action-label {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1.35 !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action,
:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action:visited {
	box-sizing: border-box !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: max-content !important;
	max-width: 100% !important;
	min-height: 2.35rem !important;
	padding: 0.32rem 0.65rem !important;
	border-radius: 7px !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary,
:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:visited {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--accent) !important;
	border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border)) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:hover,
:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:focus-visible {
	background: color-mix(in srgb, var(--accent) 8%, transparent) !important;
	background-color: color-mix(in srgb, var(--accent) 8%, transparent) !important;
	border-color: var(--accent) !important;
	color: var(--accent) !important;
	transform: translateY(-1px) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:active {
	background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
	background-color: color-mix(in srgb, var(--accent) 12%, transparent) !important;
	transform: translateY(0) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:focus-visible {
	outline: 2px solid var(--focus) !important;
	outline-offset: 2px !important;
}

html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary,
html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:visited {
	border-color: color-mix(in srgb, var(--accent) 52%, var(--border)) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary,
:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:visited {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--text-sec) !important;
	border: 1px solid var(--border) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:hover,
:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--text) !important;
	border-color: color-mix(in srgb, var(--text-muted) 40%, var(--border)) !important;
	transform: translateY(-1px) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:active {
	color: var(--text) !important;
	border-color: var(--border) !important;
	transform: translateY(0) !important;
}

:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:focus-visible {
	outline: 2px solid var(--focus) !important;
	outline-offset: 2px !important;
}

html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary,
html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:visited {
	color: var(--text-sec) !important;
}

html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:hover,
html[data-sbrd-theme="light"] :where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:focus-visible {
	border-color: var(--border) !important;
	color: var(--text) !important;
}

@media (prefers-reduced-motion: reduce) {
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap {
		transition-duration: 0.05s !important;
	}

	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card {
		animation: none !important;
		transition-duration: 0.05s !important;
	}

	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__head-main,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__badge,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__note,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__actions {
		animation: none !important;
	}

	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__thumb-img {
		transition-duration: 0.05s !important;
	}

	@media (hover: hover) {
		:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__card:hover {
			transform: none !important;
		}
	}

	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary {
		transition-duration: 0.05s !important;
	}

	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:hover,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--primary:focus-visible,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:hover,
	:where(.entry-content, .page-content) .wp-block-file.sbrd-pdf-file-wrap .sbrd-pdf-file__toolbar a.sbrd-pdf-file__action--secondary:focus-visible {
		transform: none !important;
	}
}
