/**
 * Publications single-post — LAYOUT ONLY.
 *
 * Typography, colors, spacing and sidebar widget styling are inherited from the
 * bizberg parent theme: the main column reuses the theme's post markup
 * (template-parts/content-detail.php) and the sidebar uses the theme's .widget
 * markup. Do NOT add font-size / line-height / font-family / color rules for the
 * post content or widgets here — imposing our own values is what made the page
 * look different from a normal post.
 */

/* Full-width wrapper — replaces the theme's narrow .container on this template. */
.iwc-pub .iwc-pub-wrap {
	width: 100%;
	max-width: 1600px; /* widen/narrow the whole layout here */
	margin: 0 auto;
	padding: 40px 30px 60px;
	box-sizing: border-box;
}

/* Two columns: content + sidebar. */
.iwc-pub .iwc-pub-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
}

.iwc-pub .iwc-pub-main {
	flex: 1 1 620px;
	min-width: 0; /* let wide tables/embeds shrink instead of overflowing */
}

.iwc-pub .iwc-pub-sidebar {
	flex: 0 1 340px;
	width: 340px;
	max-width: 100%;
}

/* Keep the featured image filling the wider column. */
.iwc-pub .iwc-pub-main .detail_image_wrapper img,
.iwc-pub .iwc-pub-main .bizberg_featured_image {
	width: 100%;
	height: auto;
}

/* --- Two small bespoke components (no theme equivalent) --------------------- */

/* PDF download graphic — shows PDF.png, swaps to PDF-hover.png on hover/focus.
   Both images are the same size, so the hover copy overlays exactly. */
.iwc-pub .iwc-pub-download-link {
	display: inline-block;
	position: relative;
	line-height: 0;
	max-width: 100%;
}

.iwc-pub .iwc-pub-download-img {
	display: block;
	width: 100%;
	height: auto;
}

.iwc-pub .iwc-pub-download-hover {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.iwc-pub .iwc-pub-download-link:hover .iwc-pub-download-hover,
.iwc-pub .iwc-pub-download-link:focus .iwc-pub-download-hover {
	opacity: 1;
}

.iwc-pub .iwc-pub-filesize {
	margin: 8px 0 0;
	font-size: 0.85rem;
	opacity: 0.8;
	text-align: right;
}

/* Round author photo. */
.iwc-pub .iwc-pub-author-photo {
	margin-bottom: 12px;
}

.iwc-pub .iwc-pub-author-img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 50%;
}

/* Author name — bold and 2px larger than the surrounding author text. */
.iwc-pub .iwc-pub-author-name {
	font-weight: 700;
	font-size: calc(1em + 2px);
	margin-bottom: 6px;
}

/* Author bio: the theme zeroes out <p>/<ul>/<ol> margins, so restore spacing
   for paragraphs and lists entered in the editor. */
.iwc-pub .iwc-pub-author-bio p,
.iwc-pub .iwc-pub-author-bio ul,
.iwc-pub .iwc-pub-author-bio ol {
	margin-bottom: 1em;
}

.iwc-pub .iwc-pub-author-bio > *:last-child {
	margin-bottom: 0;
}

.iwc-pub .iwc-pub-author-bio ul,
.iwc-pub .iwc-pub-author-bio ol {
	padding-left: 1.4em;
}

.iwc-pub .iwc-pub-author-bio ul {
	list-style: disc;
}

.iwc-pub .iwc-pub-author-bio ol {
	list-style: decimal;
}

/* Disclaimer body in italics (heading stays upright). */
.iwc-pub .iwc-pub-disclaimer .textwidget {
	font-style: italic;
}

/* Responsive: stack the sidebar under the content. */
@media ( max-width: 991px ) {
	.iwc-pub .iwc-pub-layout {
		flex-direction: column;
	}

	.iwc-pub .iwc-pub-sidebar {
		width: 100%;
		flex-basis: auto;
	}
}
