/**
 * 资讯底滑壳。往上滑对齐合集：0.4s、cubic-bezier(0.32, 0.72, 0, 1)。下去仍短。不另做滚动条。
 * 滚动区域复用 .tool-panel-scroll。
 */

a.daily-reader-card {
	color: inherit;
	text-decoration: none;
}

body.daily-item-sheet-open {
	overflow: hidden;
}

.daily-item-sheet-root[hidden] {
	display: none !important;
}

.daily-item-sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.25s linear;
}

.daily-item-sheet-backdrop.is-in {
	opacity: 1;
}

.daily-item-sheet-backdrop.is-out {
	opacity: 0;
}

.daily-item-sheet-close {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 92;
	/* 知识库圆钮 40px，这里按现叉缩小约 1/3 */
	--kb-back-size: 29px;
	border: 0;
	cursor: pointer;
}

.daily-item-sheet-close svg {
	width: 15px;
	height: 15px;
}

.daily-item-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 3.5rem;
	z-index: 91;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 1rem 1rem 0 0;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.daily-item-sheet.is-in {
	transform: translateY(0);
}

.daily-item-sheet.is-out {
	transform: translateY(100%);
	transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.daily-item-sheet-grabber {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0 6px;
}

.daily-item-sheet-grabber span {
	width: 40px;
	height: 4px;
	border-radius: 9999px;
	background: #d1d5db;
}

.daily-item-sheet-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.daily-item-sheet .daily-reader-panel {
	display: block;
	overflow: visible;
	height: auto;
	flex: none;
}

.daily-item-page .daily-reader-panel {
	display: block;
	overflow: visible;
	height: auto;
}

@media (min-width: 640px) {
	.daily-item-sheet {
		top: 4rem;
	}

	.daily-item-sheet-close {
		top: 16px;
		right: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.daily-item-sheet,
	.daily-item-sheet.is-out,
	.daily-item-sheet-backdrop,
	.daily-item-sheet-backdrop.is-out {
		transition: none;
	}
}
