/**
 * Prime Academic Press — force layer v11.
 * Apply Apple-like frosted card styling to all non-index main content areas.
 */

:root {
	--pap-apple-bg-1: #edf1f6;
	--pap-apple-bg-2: #f5f7fa;
	--pap-apple-bg-3: #f1f4f8;
	--pap-apple-card: rgba(255, 255, 255, 0.74);
	--pap-apple-border: rgba(255, 255, 255, 0.92);
	--pap-apple-shadow: rgba(16, 24, 40, 0.08);
	--pap-apple-text: #1f2937;
}

/* Non-index pages: make content area softly lit */
body:not(.pap-site-index) .pkp_structure_content.container,
body:not(.pap-site-index) .pkp_structure_content.container.pap_content_layout {
	background:
		radial-gradient(1200px 460px at 50% -140px, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, var(--pap-apple-bg-1) 0%, var(--pap-apple-bg-2) 42%, var(--pap-apple-bg-3) 100%) !important;
}

/* Core: style the whole main column as an Apple-like frosted card */
body:not(.pap-site-index) .pkp_structure_main {
	background: var(--pap-apple-card) !important;
	backdrop-filter: blur(10px) saturate(140%) !important;
	-webkit-backdrop-filter: blur(10px) saturate(140%) !important;
	border: 1px solid var(--pap-apple-border) !important;
	border-radius: 22px !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 14px 36px var(--pap-apple-shadow) !important;
	padding: clamp(16px, 2.2vw, 30px) !important;
	margin-bottom: 18px !important;
	color: var(--pap-apple-text) !important;
}

/* Prevent nested wrappers from reintroducing old boxed backgrounds */
body:not(.pap-site-index) .pkp_structure_main > .page,
body:not(.pap-site-index) .pkp_structure_main .page,
body:not(.pap-site-index) .pkp_structure_main .obj_article_details,
body:not(.pap-site-index) .pkp_structure_main .article-details,
body:not(.pap-site-index) .pkp_structure_main .submission {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Typography rhythm inside frosted cards */
body:not(.pap-site-index) .pkp_structure_main h1,
body:not(.pap-site-index) .pkp_structure_main h2,
body:not(.pap-site-index) .pkp_structure_main h3,
body:not(.pap-site-index) .pkp_structure_main h4 {
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif !important;
	letter-spacing: -0.01em !important;
	color: #111827 !important;
}

body:not(.pap-site-index) .pkp_structure_main p,
body:not(.pap-site-index) .pkp_structure_main li {
	line-height: 1.74 !important;
	color: var(--pap-apple-text) !important;
}

/* Buttons: rounded + subtle Apple-like depth */
body:not(.pap-site-index) .pkp_structure_main .btn,
body:not(.pap-site-index) .pkp_structure_main button,
body:not(.pap-site-index) .pkp_structure_main input[type="submit"],
body:not(.pap-site-index) .pkp_structure_main .nav-pills > li > a,
body:not(.pap-site-index) .pkp_structure_main .read-more {
	border-radius: 999px !important;
	border: 1px solid rgba(148, 163, 184, 0.35) !important;
	background: rgba(255, 255, 255, 0.78) !important;
	color: #1f2937 !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
	transition: all 0.2s ease !important;
}

body:not(.pap-site-index) .pkp_structure_main .btn:hover,
body:not(.pap-site-index) .pkp_structure_main .btn:focus,
body:not(.pap-site-index) .pkp_structure_main button:hover,
body:not(.pap-site-index) .pkp_structure_main button:focus,
body:not(.pap-site-index) .pkp_structure_main input[type="submit"]:hover,
body:not(.pap-site-index) .pkp_structure_main input[type="submit"]:focus,
body:not(.pap-site-index) .pkp_structure_main .nav-pills > li > a:hover,
body:not(.pap-site-index) .pkp_structure_main .nav-pills > li > a:focus,
body:not(.pap-site-index) .pkp_structure_main .read-more:hover,
body:not(.pap-site-index) .pkp_structure_main .read-more:focus {
	transform: translateY(-1px) !important;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
}
