/* Prevent the original ProRadio header from flashing before JS finishes arranging it. */
body.single-post .proradio-pageheader:not(.al-proradio-single):not(.al-proradio-fallback) {
    visibility: hidden !important;
}
/* Keep the theme's native header visible if its markup cannot be rearranged safely. */
body.single-post .proradio-pageheader.al-proradio-fallback {
    visibility: visible !important;
}

/* ARTICLE LAYOUT 1.2.0 — exact ProRadio 2.0.1 single-post header */
body.single-post .proradio-pageheader.al-proradio-single {
	position:relative !important;
	z-index:20 !important;
	isolation:isolate !important;
	display:flex !important;
	flex-direction:column !important;
	height:auto !important;
	min-height:0 !important;
	max-height:none !important;
	padding:0 !important;
	margin:0 !important;
	overflow:visible !important;
	background:none !important;
}
body.single-post .proradio-pageheader.al-proradio-single > .proradio-bgimg {
	position:relative !important;
	inset:auto !important;
	order:0 !important;
	display:block !important;
	width:100% !important;
	height:auto !important;
	min-height:0 !important;
	max-height:none !important;
	margin:0 0 var(--al-image-title-gap,18px) 0 !important;
	padding:0 !important;
	overflow:hidden !important;
	transform:none !important;
}
body.single-post .proradio-pageheader.al-proradio-single > .proradio-bgimg img {
	position:static !important;
	display:block !important;
	width:100% !important;
	max-width:100% !important;
	height:auto !important;
	min-height:0 !important;
	max-height:none !important;
	object-fit:contain !important;
	transform:none !important;
}
body.single-post .proradio-pageheader.al-proradio-single > .proradio-pageheader__contents {
	position:static !important;
	order:1 !important;
	display:block !important;
	width:100% !important;
	height:auto !important;
	min-height:0 !important;
	max-height:none !important;
	margin:0 !important;
	padding:0 !important;
	background:none !important;
	transform:none !important;
	overflow:visible !important;
}
body.single-post .proradio-pageheader.al-proradio-single .al-proradio-info {
	position:relative !important;
	z-index:21 !important;
	display:block !important;
	position:static !important;
	width:100% !important;
	max-width:100% !important;
	height:auto !important;
	margin:0 auto !important;
	padding:0 20px !important;
	background:none !important;
	text-align:left !important;
	box-sizing:border-box !important;
}
body.single-post .proradio-pageheader.al-proradio-single .al-proradio-info .proradio-container {
	width:100% !important;
	max-width:1200px !important;
	margin:0 auto !important;
	padding:0 !important;
}
body.single-post .proradio-pageheader.al-proradio-single .proradio-pagecaption {
	position:static !important;
	display:block !important;
	width:auto !important;
	height:auto !important;
	margin:0 0 var(--al-title-date-gap,10px) 0 !important;
	padding:0 !important;
	font-size:var(--al-title-size,32px) !important;
	line-height:1.2 !important;
	font-weight:var(--al-title-weight,700) !important;
	color:var(--al-title-color,#222) !important;
	text-align:left !important;
	text-shadow:none !important;
	transform:none !important;
	opacity:1 !important;
}
body.single-post .proradio-pageheader.al-proradio-single .proradio-meta {
	position:static !important;
	display:block !important;
	margin:0 !important;
	padding:0 !important;
	font-size:var(--al-date-size,13px) !important;
	line-height:1.4 !important;
	font-weight:var(--al-date-weight,400) !important;
	color:var(--al-date-color,#777) !important;
	text-align:left !important;
	text-shadow:none !important;
}
body.single-post .proradio-pageheader.al-proradio-single .proradio-meta,
body.single-post .proradio-pageheader.al-proradio-single .proradio-meta * {
	color:var(--al-date-color,#777) !important;
}
body.single-post .proradio-pageheader.al-proradio-single .proradio-grad-layer,
body.single-post .proradio-pageheader.al-proradio-single .proradio-dark-layer,
body.single-post .proradio-pageheader.al-proradio-single .proradio-waterwave,
body.single-post .proradio-pageheader.al-proradio-single .proradio-mousescroll,
body.single-post .proradio-pageheader.al-proradio-single .proradio-decor {
	display:none !important;
}
@media(max-width:767px) {
	body.single-post .proradio-pageheader.al-proradio-single .al-proradio-info {padding-left:16px !important;padding-right:16px !important;}
}


/* v1.3: independent title/date indentation and spacing before article body */
body.single-post .proradio-pageheader.al-proradio-single .al-proradio-info {
	padding-left:var(--al-left-indent,48px) !important;
	padding-right:var(--al-left-indent,48px) !important;
}
body.single-post .proradio-pageheader.al-proradio-single .al-proradio-info .proradio-container {
	max-width:1200px !important;
}
body.single-post .proradio-pagecontent > .proradio-paper {
	margin-bottom:var(--al-date-content-gap,40px) !important;
}
@media(max-width:767px) {
	body.single-post .proradio-pageheader.al-proradio-single .al-proradio-info {
		padding-left:var(--al-left-indent,16px) !important;
		padding-right:var(--al-left-indent,16px) !important;
	}
}


/* v1.6: signed adjustment of the existing gap before the first article section.
   Positive values increase it; negative values reduce it. */
body.single-post #proradio-pagecontent > .proradio-maincontent > .proradio-section:first-child {
	margin-top:var(--al-date-content-gap, 0px) !important;
}


/* v1.9: keep title/date container inset symmetrical on left and right. */


/* v1.13: apply mobile side spacing to the exact content wrapper in ProRadio single-full.php. */
@media screen and (max-width: 767px) {
    body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
}


/* v1.16: mobile featured-image fallback and article body text contrast. */
/* ProRadio can render the featured image as a background-image instead of an img.
   Give that wrapper real dimensions on narrow screens so it cannot collapse to zero height. */
@media screen and (max-width: 767px) {
    body.single-post .proradio-pageheader.al-proradio-single > .proradio-bgimg {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: cover !important;
        overflow: hidden !important;
    }
    body.single-post .proradio-pageheader.al-proradio-single > .proradio-bgimg img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        object-fit: cover !important;
    }
}

/* The theme may apply a light/white text color to article content on dark layouts.
   Explicitly restore a readable dark text color for the article body only. */
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent p,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent li,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent blockquote,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent h1,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent h2,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent h3,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent h4,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent h5,
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent h6 {
    color: #222222 !important;
}
body.single-post #proradio-pagecontent .proradio-maincontent .proradio-entrycontent a {
    color: #c62828 !important;
}
