/* Homebrew Academy Revival — editorial article system */
:root {
	--hba-article-ink: #171815;
	--hba-article-soft: #55524b;
	--hba-article-paper: #f7f2e8;
	--hba-article-card: #fffdf8;
	--hba-article-amber: #c67b2c;
	--hba-article-amber-dark: #8f4f17;
	--hba-article-green: #24372b;
	--hba-article-line: #ddd1be;
	--hba-article-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--hba-article-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-post {
	background: var(--hba-article-paper);
	color: var(--hba-article-ink);
}

body.single-post .site-header {
	background: rgba(247, 242, 232, .96);
	border-bottom: 1px solid var(--hba-article-line);
}

body.single-post .site-branding img {
	max-height: 72px;
	width: auto;
}

body.single-post .main-navigation .primary-menu-container > ul > li > a {
	font-family: var(--hba-article-sans);
	font-size: 14px;
	font-weight: 750;
	letter-spacing: .02em;
	color: var(--hba-article-ink);
}

body.single-post .content-container.site-container {
	max-width: 1240px;
	display: grid;
	grid-template-columns: minmax(0, 790px) 300px;
	gap: 48px;
	align-items: start;
	padding-top: 44px;
	padding-bottom: 80px;
}

body.single-post #main {
	min-width: 0;
}

body.single-post .content-wrap {
	min-width: 0;
}

body.single-post .post-thumbnail.article-post-thumbnail {
	margin: 0 0 22px;
	border-radius: 18px;
	overflow: hidden;
	background: #e9dfcf;
	box-shadow: 0 14px 44px rgba(54, 38, 23, .08);
}

body.single-post .post-thumbnail .post-thumbnail-inner,
body.single-post .post-thumbnail img,
body.single-post .post-thumbnail picture {
	width: 100%;
}

body.single-post .post-thumbnail img {
	max-height: 600px;
	object-fit: cover;
}

body.single-post article.single-entry {
	background: var(--hba-article-card);
	border: 1px solid rgba(160, 136, 103, .18);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(44, 32, 19, .07);
	overflow: hidden;
}

body.single-post article.single-entry .entry-content-wrap {
	padding: 48px 54px 58px;
}

body.single-post .entry-header {
	margin: 0 0 34px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--hba-article-line);
}

body.single-post .entry-taxonomies {
	margin-bottom: 12px;
}

body.single-post .entry-taxonomies a {
	font-family: var(--hba-article-sans);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--hba-article-amber-dark);
}

body.single-post h1.entry-title {
	font-family: var(--hba-article-display);
	font-size: clamp(44px, 5vw, 68px);
	line-height: .98;
	letter-spacing: -.04em;
	color: var(--hba-article-ink);
	margin: 0 0 18px;
	text-wrap: balance;
}

body.single-post .entry-meta {
	font-family: var(--hba-article-sans);
	font-size: 13px;
	color: #6a655d;
}

body.single-post .entry-meta .author-avatar,
body.single-post .entry-meta img.avatar {
	border-radius: 50%;
}

body.single-post .single-content {
	font-family: var(--hba-article-sans);
	font-size: 18px;
	line-height: 1.74;
	color: #292925;
}

body.single-post .single-content > p,
body.single-post .single-content > ul,
body.single-post .single-content > ol,
body.single-post .single-content > blockquote,
body.single-post .single-content > table,
body.single-post .single-content > .wp-block-table {
	margin-top: 0;
	margin-bottom: 1.45em;
}

body.single-post .single-content p {
	font-size: 18px;
	line-height: 1.74;
}

body.single-post .single-content h2,
body.single-post .single-content h3,
body.single-post .single-content h4 {
	font-family: var(--hba-article-display);
	color: var(--hba-article-ink);
	letter-spacing: -.03em;
	text-wrap: balance;
}

body.single-post .single-content h2 {
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.04;
	margin-top: 1.65em;
	margin-bottom: .55em;
	padding-top: .15em;
}

body.single-post .single-content h3 {
	font-size: clamp(27px, 3vw, 36px);
	line-height: 1.08;
	margin-top: 1.5em;
	margin-bottom: .45em;
}

body.single-post .single-content h4 {
	font-size: 25px;
	line-height: 1.15;
}

body.single-post .single-content a:not(.dpsp-network-btn) {
	color: var(--hba-article-amber-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.single-post .single-content a:not(.dpsp-network-btn):hover {
	color: #62340d;
}

body.single-post .single-content li {
	margin-bottom: .45em;
}

body.single-post .single-content ul,
body.single-post .single-content ol {
	padding-left: 1.35em;
}

body.single-post .single-content figure.wp-block-image {
	margin: 34px 0 38px;
}

body.single-post .single-content figure.wp-block-image img {
	border-radius: 14px;
}

body.single-post .single-content figcaption {
	font-size: 12px;
	line-height: 1.5;
	color: #777167;
	text-align: left;
	margin-top: 9px;
}

body.single-post .single-content blockquote {
	border: 0;
	border-left: 4px solid var(--hba-article-amber);
	background: #f3eadb;
	padding: 24px 28px;
	margin-left: 0;
	margin-right: 0;
	border-radius: 0 12px 12px 0;
	font-family: var(--hba-article-display);
	font-size: 24px;
	line-height: 1.45;
}

/* Existing takeaway sections get a deliberate editorial treatment without changing post content. */
body.single-post .single-content #h-key-takeaways {
	font-size: 30px;
	background: var(--hba-article-green);
	color: #fffdf8;
	margin: 34px 0 0;
	padding: 24px 28px 12px;
	border-radius: 14px 14px 0 0;
}

body.single-post .single-content #h-key-takeaways + ul {
	background: var(--hba-article-green);
	color: rgba(255,255,255,.9);
	margin: 0 0 36px;
	padding: 8px 32px 26px 48px;
	border-radius: 0 0 14px 14px;
}

body.single-post .single-content .wp-block-table {
	overflow-x: auto;
}

body.single-post .single-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	background: #fff;
}

body.single-post .single-content th {
	background: var(--hba-article-green);
	color: #fff;
	font-weight: 750;
}

body.single-post .single-content th,
body.single-post .single-content td {
	padding: 12px 14px;
	border: 1px solid var(--hba-article-line);
}

/* Social share block: keep functional but visually secondary. */
body.single-post #dpsp-content-top {
	margin-bottom: 26px;
}

/* Mediavine-friendly desktop sidebar: fixed width, intentionally sparse.
 * Do not make the entire sidebar sticky; Mediavine can manage its own sticky unit. */
body.single-post #secondary {
	width: 300px;
	max-width: 300px;
	font-family: var(--hba-article-sans);
}

body.single-post #secondary .sidebar-inner-wrap {
	border-top: 3px solid var(--hba-article-amber);
	padding-top: 14px;
}

body.single-post #secondary .widget {
	background: transparent;
	box-shadow: none;
	border-bottom: 1px solid var(--hba-article-line);
	padding: 18px 0;
}

body.single-post .author-box-wrap,
body.single-post .sab-author-box {
	border-radius: 14px;
}

/* Neighborhood-bar accents carried into articles without hurting readability. */
body.single-post .entry-header { position: relative; }
body.single-post .entry-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 88px;
	height: 5px;
	border-top: 3px solid var(--hba-article-amber);
	border-radius: 50%;
	transform: rotate(-1.5deg);
}
body.single-post .single-content #h-key-takeaways,
body.single-post .single-content #h-key-takeaways + ul {
	position: relative;
	background-color: #1b2d22;
	background-image:
		radial-gradient(circle at 12% 22%, rgba(255,255,255,.045) 0 1px, transparent 1.5px),
		radial-gradient(circle at 78% 65%, rgba(255,255,255,.03) 0 1px, transparent 1.5px);
	background-size: 21px 21px, 29px 29px;
}
body.single-post .single-content #h-key-takeaways::after {
	content: "THE SHORT POUR";
	position: absolute;
	right: 25px;
	top: 15px;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .09em;
	color: rgba(255,248,233,.38);
	transform: rotate(3deg);
}
body.single-post .single-content blockquote {
	position: relative;
	border-left-width: 5px;
}
body.single-post .single-content blockquote::after {
	content: """;
	position: absolute;
	right: 17px;
	top: -12px;
	font-family: var(--hba-article-display);
	font-size: 84px;
	line-height: 1;
	color: rgba(198,123,44,.16);
}
body.single-post #secondary .sidebar-inner-wrap::before {
	content: "AT THE BAR";
	display: inline-block;
	margin-bottom: 6px;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .08em;
	color: var(--hba-article-green);
	transform: rotate(-2deg);
}

/* Closing chalkboard: author + bottom share become one oversized bar panel. */
body.single-post .hba-author-share-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 58px 0 16px;
	background-color: #141a16;
	background-image:
		radial-gradient(circle at 14% 22%, rgba(255,255,255,.055) 0 1px, transparent 1.6px),
		radial-gradient(circle at 78% 64%, rgba(255,255,255,.035) 0 1px, transparent 1.5px),
		linear-gradient(108deg, transparent 0 32%, rgba(255,255,255,.018) 33%, transparent 34% 100%);
	background-size: 23px 23px, 31px 31px, 100% 100%;
	border: 4px solid #202820;
	box-shadow: 8px 10px 0 rgba(198,123,44,.20), inset 0 0 90px rgba(0,0,0,.28);
	color: #fff8e9;
}
body.single-post .hba-author-share-panel::before {
	content: "LAST ROUND  •  HOUSE NOTES  •  PASS IT ON";
	position: absolute;
	right: -48px;
	top: 38px;
	z-index: -1;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .14em;
	color: rgba(255,248,233,.10);
	transform: rotate(8deg);
	white-space: nowrap;
}
body.single-post .hba-author-share-panel::after {
	content: "";
	position: absolute;
	right: -76px;
	bottom: 56px;
	z-index: -1;
	width: 250px;
	height: 250px;
	border: 5px solid rgba(224,166,71,.12);
	border-radius: 50%;
	box-shadow: 0 0 0 12px rgba(255,248,233,.025), 0 0 0 28px rgba(255,248,233,.015);
	transform: rotate(-13deg);
}
body.single-post .hba-author-share-panel .hba-native-author {
	position: relative;
	display: grid;
	grid-template-columns: 150px minmax(0,1fr);
	gap: 30px;
	align-items: center;
	margin: 0;
	padding: 38px 40px 34px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #fff8e9;
}
body.single-post .hba-author-share-panel .hba-native-author::before {
	content: "AUTHOR ON TAP";
	position: absolute;
	left: 37px;
	top: 20px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .18em;
	color: #e0a647;
}
body.single-post .hba-author-share-panel .hba-native-author::after {
	content: "↗ knows a thing or two";
	position: absolute;
	right: 36px;
	bottom: 20px;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255,248,233,.30);
	transform: rotate(-3deg);
}
body.single-post .hba-author-share-panel .hba-native-author-photo {
	position: relative;
	width: 138px;
	height: 138px;
	padding: 7px;
	background: #fff8e9;
	border: 3px solid #e0a647;
	box-shadow: 6px 6px 0 rgba(0,0,0,.32);
	transform: rotate(-2deg);
}
body.single-post .hba-author-share-panel .hba-native-author-photo::after {
	content: "";
	position: absolute;
	left: -11px;
	right: -8px;
	bottom: -13px;
	height: 8px;
	border-top: 3px solid rgba(255,248,233,.55);
	border-radius: 50%;
	transform: rotate(2deg);
}
body.single-post .hba-author-share-panel .hba-native-author-photo img,
body.single-post .hba-author-share-panel .hba-native-author-photo picture {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.single-post .hba-author-share-panel .hba-native-author-copy { min-width: 0; padding-top: 8px; }
body.single-post .hba-author-share-panel .hba-native-author-copy > span {
	display: inline-block;
	margin-bottom: 7px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .17em;
	color: #e0a647;
}
body.single-post .hba-author-share-panel .hba-native-author-copy h2 {
	margin: 0 0 10px;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: clamp(32px,4.2vw,48px);
	line-height: .98;
	font-weight: 800;
	letter-spacing: -.025em;
	color: #fff8e9;
}
body.single-post .hba-author-share-panel .hba-native-author-copy p {
	max-width: 590px;
	margin: 0 0 15px;
	font-family: var(--hba-article-sans);
	font-size: 14px;
	line-height: 1.62;
	color: rgba(255,248,233,.74);
}
body.single-post .hba-author-share-panel .hba-native-author-copy a {
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 2px solid #e0a647;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: #fff8e9;
	text-decoration: none;
}
body.single-post .hba-author-share-panel .hba-native-author > em {
	position: absolute;
	right: 26px;
	top: 22px;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 14px;
	line-height: 1.05;
	font-style: normal;
	color: rgba(255,248,233,.24);
	transform: rotate(7deg);
}
body.single-post .hba-author-share-panel .hba-native-share--bottom {
	position: relative;
	display: grid;
	grid-template-columns: minmax(138px,.55fr) minmax(0,1.45fr);
	gap: 22px;
	align-items: center;
	margin: 0;
	padding: 24px 40px 28px;
	border: 0;
	border-top: 2px solid rgba(255,248,233,.19);
	background: rgba(0,0,0,.12);
	box-shadow: inset 0 1px 0 rgba(224,166,71,.12);
}
body.single-post .hba-author-share-panel .hba-native-share--bottom::before {
	content: "";
	position: absolute;
	left: 37px;
	top: -5px;
	width: 108px;
	height: 7px;
	border-top: 3px solid #e0a647;
	border-radius: 50%;
	transform: rotate(-1deg);
}
body.single-post .hba-author-share-panel .hba-native-share-copy span {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .18em;
	color: #e0a647;
}
body.single-post .hba-author-share-panel .hba-native-share-copy em {
	display: block;
	margin-top: 4px;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 18px;
	line-height: 1.1;
	font-style: normal;
	color: #fff8e9;
	transform: rotate(-1deg);
}
body.single-post .hba-author-share-panel .hba-native-share-actions {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 8px;
}
body.single-post .hba-author-share-panel .hba-native-share-actions a,
body.single-post .hba-author-share-panel .hba-native-share-actions button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	min-height: 46px;
	padding: 9px 8px;
	border: 1px solid rgba(255,248,233,.38);
	border-radius: 0;
	background: rgba(255,255,255,.025);
	box-shadow: 3px 3px 0 rgba(224,166,71,.13);
	font: inherit;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff8e9;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
body.single-post .hba-author-share-panel .hba-native-share-actions a:hover,
body.single-post .hba-author-share-panel .hba-native-share-actions button:hover {
	background: #fff8e9;
	border-color: #fff8e9;
	color: #17251c;
	transform: translateY(-2px) rotate(-.5deg);
}
body.single-post .hba-author-share-panel .hba-native-share-actions i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e0a647;
	font-style: normal;
	font-size: 11px;
	color: #17251c;
}
body.single-post .hba-author-share-panel .wpil-link-icon { display: none !important; }
body.single-post .hba-author-share-panel .hba-native-share-actions strong { white-space: nowrap; }

@media (max-width: 1040px) {
	body.single-post .content-container.site-container {
		grid-template-columns: minmax(0, 1fr);
		max-width: 860px;
		gap: 28px;
	}
	body.single-post #secondary {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 720px) {
	body.single-post .content-container.site-container {
		padding-top: 22px;
		padding-bottom: 50px;
	}
	body.single-post article.single-entry .entry-content-wrap {
		padding: 30px 24px 42px;
	}
	body.single-post h1.entry-title {
		font-size: clamp(40px, 12vw, 56px);
	}
	body.single-post .single-content,
	body.single-post .single-content p {
		font-size: 17px;
		line-height: 1.72;
	}
	body.single-post .post-thumbnail.article-post-thumbnail,
	body.single-post article.single-entry {
		border-radius: 13px;
	}
	body.single-post .site-branding img {
		max-height: 55px;
	}
	body.single-post .hba-author-share-panel {
		margin-top: 46px;
		box-shadow: 5px 6px 0 rgba(198,123,44,.18), inset 0 0 70px rgba(0,0,0,.26);
	}
	body.single-post .hba-author-share-panel .hba-native-author {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 38px 24px 30px;
	}
	body.single-post .hba-author-share-panel .hba-native-author-photo {
		width: 116px;
		height: 116px;
	}
	body.single-post .hba-author-share-panel .hba-native-author-copy h2 {
		font-size: 36px;
	}
	body.single-post .hba-author-share-panel .hba-native-author::after,
	body.single-post .hba-author-share-panel .hba-native-author > em {
		display: none;
	}
	body.single-post .hba-author-share-panel .hba-native-share--bottom {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px;
	}
	body.single-post .hba-author-share-panel .hba-native-share-actions {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
	body.single-post .hba-author-share-panel::before {
		display: none;
	}
}
