/**
 * Blog single article — match the reference layout.
 *
 * The article body keeps the theme's typography; this file fixes the pale
 * single-post background (should be white), hides the theme's prev/next post
 * navigation (the reference shows Recent Posts instead), and styles the
 * furniture appended after the body: tag buttons, category link, share row,
 * view count and the Recent Posts grid. Comments are not part of this module.
 */

/* Single article background is white (the theme default was a pale blue). */
body.single-post {
	background-color: #ffffff !important;
}
/* Widen the article container to the reference width (~940px); the theme's
 * narrow container capped it at 750. Inner text/image stay ~720 (reference
 * inner column), so the border sits wide but the copy is not over-long. */
.single-post .ast-container {
	max-width: 960px !important;
}
.single-post .entry-header,
.single-post .entry-content {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
/* Keep the header white on the grey page (it is otherwise transparent and would
 * pick up the page tint). */
.single-post #masthead,
.single-post .site-header,
.single-post .ast-primary-header-bar,
.single-post .ast-above-header-wrap,
.single-post .ast-main-header-wrap {
	background-color: #ffffff !important;
}
/* The article content sits in a white card with a thin light-grey border
 * (measured from the reference: 1px solid rgba(200,202,207,.75), square). */
.single-post .ast-article-single,
.single-post .ast-separate-container .ast-article-post,
.single-post #primary > .ast-article-single {
	background-color: #ffffff !important;
	border: 1px solid rgba( 200, 202, 207, .75 ) !important;
	border-radius: 0 !important;
}

/* Replace the theme's "By X / date" byline with our avatar meta row. */
.single-post .entry-header .entry-meta,
.single-post .ast-single-post .entry-meta {
	display: none !important;
}
/* Minimal byline: everything on ONE line — small avatar · name · date · read
 * time — 14px navy, regular weight (measured from the reference). */
.adr-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;                  /* name • date • read, with bullet separators */
	max-width: 720px;
	margin: 0 auto 1.5rem;
	font-family: "Avenir", "Roboto", Arial, sans-serif;
	font-size: 14px;
	color: #242c3f;
}
.adr-post-meta__av { display: inline-flex; flex: 0 0 auto; margin-right: -4px; }
/* High specificity + !important: the article's "images fill the column" rule
 * (.single-post .entry-content img) is more specific than a plain avatar
 * selector and would otherwise stretch this avatar to full width. */
.single-post .entry-content .adr-post-meta__av img,
.adr-post-meta__av img,
.adr-post-meta .adr-post-avatar {
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	border-radius: 50%;
	display: block;
	margin: 0 !important;
}
/* Bold to match the reference (its Avenir 85-Heavy face reads bold). */
.adr-post-meta__name,
.adr-post-meta__item { color: #242c3f; font-weight: 700; }
.adr-post-meta__dot { color: #242c3f; font-weight: 700; }

/* The reference has no prev/next post nav — Recent Posts replaces it. */
.single-post .ast-navigation-links,
.single-post .post-navigation,
.single-post nav.post-navigation {
	display: none !important;
}

/* --- Article body: match the reference typography and image size --------- *
 * Body text: Roboto, 16px / 27px, #333 (was the theme's system font, slate).
 * Headings: Oswald navy (Ingredients: / Method:), ~22px.
 * Main image: fill the content column (the uploaded photo is portrait and was
 * rendering at its small natural width). */
.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li {
	font-family: "Avenir", "Roboto", Arial, sans-serif;
	font-size: 16px;
	line-height: 27px;
	color: #333333;
}
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	color: #242c3f;
	letter-spacing: normal;
	text-transform: none;
}
.single-post .entry-content h2 { font-size: 22px; }
.single-post .entry-content h3 { font-size: 20px; }
.single-post .entry-content img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 1.5rem;
}

/* --- Furniture appended after the post body ------------------------------ */
.adr-post-foot {
	max-width: 720px;
	margin: 2.5rem auto 0;
	font-family: "Avenir", "Roboto", Arial, sans-serif;
}

/* Tags — outlined buttons */
.adr-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 1.5rem;
	border-top: 1px solid #e6e4e3;
}
/* Tag buttons — measured from the reference: square (radius 0), 1px navy border
 * at 20% opacity, 6px 12px padding, 14px navy body text. */
.adr-tag {
	display: inline-block;
	border: 1px solid rgba( 36, 44, 63, .2 );
	border-radius: 0;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.2;
	color: #242c3f;
	text-decoration: none;
}
.adr-tag:hover { border-color: #242c3f; }

/* Category — underlined text link */
.adr-post-cat { margin-top: 1rem; }
.adr-post-cat a {
	color: #242c3f;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Share row + views */
.adr-post-share-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e6e4e3;
}
.adr-post-share { display: flex; align-items: center; gap: 18px; }
.adr-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #242c3f;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}
.adr-share:hover { opacity: .6; }
.adr-share-copy.is-copied { color: #2e7d32; }
.adr-post-views { color: #5b616f; font-size: 14px; }

/* Recent posts */
.adr-recent {
	max-width: 720px;
	margin: 3rem auto 0;
	font-family: "Avenir", "Roboto", Arial, sans-serif;
}
.adr-recent-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}
.adr-recent-head h2 {
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: 20px;
	color: #242c3f;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}
.adr-recent-all {
	font-size: 13px;
	color: #242c3f;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.adr-recent-grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 24px;
}
.adr-recent-card { text-decoration: none; color: #242c3f; display: block; }
.adr-recent-thumb {
	display: block;
	background: #f2f1ef;
	aspect-ratio: 4 / 3;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: .6rem;
}
.adr-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adr-recent-title {
	display: block;
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.25;
	color: #242c3f;
	margin-bottom: .35rem;
}
.adr-recent-views { display: block; color: #5b616f; font-size: 13px; }

@media ( max-width: 782px ) {
	.adr-recent-grid { grid-template-columns: 1fr; }
}
