/* =============================================================================
   Kashi Interior — blog sections

   Source: Kashi Interior Claude Design/Kashi Blog.dc.html
           Kashi Interior Claude Design/Kashi Blog Post.dc.html

   Sections, in page order:
     Blog      blog-featured, post-grid, newsletter-band
     Blog Post post-byline, post-article, post-aside, related-posts, post-nav

   The `.k-article` / `.k-article__row` wrapper single.php emits lives in
   kashi-sections.css, and the three newsletter pill variants (.k-nl--band,
   --aside, --footer) live in kashi-fluentform.css, next to the Fluent Forms
   rules they have to outrank.

   THE FIDELITY RULE: every declaration below is copied character-for-character
   from the `style` / `style-hover` attribute it derives from. The only
   substitution is a colour literal for the --kashi-* token whose default IS
   that literal. Anything else carries a /* NET-NEW *​/ note.

   The design has no media queries. It is responsive through clamp(),
   grid auto-fill and flex-wrap alone. Nothing here adds one.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   01 · FEATURED POST

   `padding-left:0` on the copy pane is the design's, and it is genuinely broken
   once the card's auto-fit grid stacks: the headline runs into the card edge
   while the right side keeps its 24-44px. Reproduced faithfully. The opt-in
   assets/css/kashi-fixes.css corrects it behind a Customizer switch, matching
   this card structurally — so the image and the copy pane must stay the card's
   only two direct children.
   -------------------------------------------------------------------------- */

.k-blog-featured {
	padding: clamp(44px, 5.5vw, 78px) var(--kashi-gut) 0;
}

.k-blog-featured__card {
	max-width: var(--kashi-max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(24px, 3.5vw, 48px);
	align-items: center;
	background: var(--kashi-cream);
	border-radius: 4px;
	overflow: hidden;
}

.k-blog-featured__image {
	width: 100%;
	height: clamp(240px, 26vw, 340px);
	object-fit: cover;
	display: block;
}

.k-blog-featured__copy {
	padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 40px) 0;
}

.k-blog-featured__kicker {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kashi-gold);
}

.k-blog-featured__title {
	font-family: var(--kashi-font-display);
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.25;
	font-weight: 500;
	margin: 14px 0 14px;
	color: var(--kashi-navy);
}

.k-blog-featured__excerpt {
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--kashi-text-muted);
	font-weight: 300;
	margin: 0 0 20px;
}

.k-blog-featured__more {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--kashi-navy);
}

/* -----------------------------------------------------------------------------
   02 · POST GRID
   -------------------------------------------------------------------------- */

.k-post-grid {
	padding: clamp(34px, 4vw, 56px) var(--kashi-gut) clamp(48px, 6vw, 84px);
}

.k-post-grid__list {
	display: grid;
	/* 290px, five wider than the projects track. Not merged with it. */
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

/* -----------------------------------------------------------------------------
   03 · POST CARD — shared by the blog grid and the related-reading band
   -------------------------------------------------------------------------- */

.k-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--kashi-hairline);
	border-radius: 4px;
	overflow: hidden;
	transition: var(--kashi-lift-slow);
}

/* NET-NEW: :focus-visible pairs the design's :hover — the card is a link and
   has no focus treatment of its own. */
.k-post-card:hover,
.k-post-card:focus-visible {
	transform: translateY(-6px);
	box-shadow: var(--kashi-shadow-lift);
}

/* A flat 200px, not a clamp. Every other image in the design scales; this one
   does not, and the row of cards is the better for it. */
.k-post-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.k-post-card__body {
	display: block;
	padding: 22px 24px 26px;
}

.k-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kashi-gold);
}

/* #A2AAB6 — a grey used nowhere else on this page. */
.k-post-card__date {
	color: var(--kashi-text-date);
}

.k-post-card__title {
	display: block;
	font-family: var(--kashi-font-display);
	font-size: 19px;
	line-height: 1.35;
	color: var(--kashi-navy);
	margin: 12px 0 10px;
}

.k-post-card__excerpt {
	display: block;
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--kashi-text-dim);
	font-weight: 300;
}

.k-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--kashi-navy);
	margin-top: 16px;
}

/* The related variant drops the excerpt, so the "Read More" row has nothing
   above it to clear and the source gives it no top margin. */
.k-post-card--related .k-post-card__more {
	margin-top: 0;
}

/* -----------------------------------------------------------------------------
   04 · NEWSLETTER BAND

   The only one of the design's three sign-up pills whose button carries a text
   label. The pill itself is skinned in kashi-fluentform.css as `.k-nl--band`.
   -------------------------------------------------------------------------- */

.k-nl-band {
	padding-top: clamp(40px, 4.6vw, 64px);
	padding-bottom: clamp(40px, 4.6vw, 64px);
	text-align: center;
}

.k-nl-band__title {
	font-family: var(--kashi-font-display);
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 500;
	margin: 0 0 12px;
}

.k-nl-band__lede {
	font-size: 14.5px;
	color: var(--kashi-on-dark-soft);
	font-weight: 300;
	margin: 0 0 24px;
}

.k-nl-band__form {
	display: flex;
	justify-content: center;
}

/* -----------------------------------------------------------------------------
   05 · POST BYLINE — the author line inside the Blog Post hero
   -------------------------------------------------------------------------- */

.k-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
	font-size: 13px;
	color: var(--kashi-text-dim);
	font-weight: 300;
}

.k-byline__author {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

/* Sized here rather than on the <img> so the rule holds for both paths the
   avatar can arrive by — an uploaded portrait and a Gravatar. */
.k-byline__author .k-avatar {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	object-fit: cover;
}

.k-byline__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.k-byline__icon {
	color: var(--kashi-gold);
}

/* -----------------------------------------------------------------------------
   06 · ARTICLE COLUMN
   -------------------------------------------------------------------------- */

/* LOAD-BEARING: min-width:0 lets the column shrink below its content. Without
   it a wide table or code block inside the editor content refuses to compress
   and shoves the sidebar off the viewport. */
.k-article__main {
	flex: 1 1 520px;
	min-width: 0;
}

/* DOCUMENTED DEVIATION: the design's in-article figure is a fixed crop,
   `height:clamp(220px,26vw,360px); object-fit:cover`. That is not reproduced.
   The figure is editor content — an arbitrary upload at an arbitrary aspect —
   and a forced crop would silently decapitate a portrait or a diagram. It keeps
   `.k-prose img { height: auto }` from the base layer instead. The border-radius
   and the figcaption treatment are the design's. */

/* A real field, not the first paragraph restyled — restyling
   `.k-prose > p:first-child` would reformat every article whose author did not
   want a standfirst. */
.k-article__lead {
	font-family: var(--kashi-font-display);
	font-size: clamp(18px, 1.7vw, 22px);
	line-height: 1.7;
	color: var(--kashi-text-body);
	margin: 0 0 28px;
}

/* The source's last body paragraph carries `margin:0 0 32px` and the footer row
   follows with none. `.k-prose > *:last-child` zeroes that margin, so the same
   32px is stated here instead. */
.k-article__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--kashi-hairline-strong);
	padding-top: 22px;
	margin-top: 32px;
}

.k-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.k-tag {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid var(--kashi-border-mid);
	padding: 8px 18px;
	border-radius: 999px;
}

/* Doubled, for the same reason as the filter pills: kashi-base.css raises its
   link colours to `body[class] a` so Elementor's kit class cannot win them, and
   a single class would lose to that. */
.k-tag.k-tag {
	color: var(--kashi-navy);
}

.k-tag.k-tag:hover,
.k-tag.k-tag:focus-visible {
	border-color: var(--kashi-gold);
	color: var(--kashi-gold);
}

.k-article__share {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kashi-text-meta);
}

.k-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--kashi-tan);
}

.k-share.k-share {
	color: var(--kashi-gold-muted);
}

.k-share.k-share:hover,
.k-share.k-share:focus-visible {
	background: var(--kashi-gold);
	color: var(--kashi-navy-deep);
}

/* -----------------------------------------------------------------------------
   07 · ARTICLE SIDEBAR

   `flex:0 1 360px` — may shrink to the 280px floor, never grows past 360px,
   which is what keeps the article the wider of the two columns everywhere.
   kashi-base.css already offsets the sticky top for the admin bar.
   -------------------------------------------------------------------------- */

.k-aside {
	flex: 0 1 360px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: clamp(22px, 2.6vw, 32px);
	position: sticky;
	top: var(--kashi-aside-top);
}

.k-aside-author {
	background: var(--kashi-cream);
	border-radius: 4px;
	padding: 26px 24px;
}

.k-aside-author__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.k-aside-author__head .k-avatar {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	object-fit: cover;
	flex: none;
}

.k-aside-author__name {
	font-size: 15px;
	font-weight: 600;
}

/* #8A7355 — a brown that appears nowhere else in the design, so it is not
   folded into the gold-muted family. */
.k-aside-author__role {
	font-size: 12px;
	color: var(--kashi-role-brown);
	font-weight: 300;
	margin-top: 3px;
}

.k-aside-author__bio {
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--kashi-text-dim);
	font-weight: 300;
	margin: 0;
}

.k-recent__title {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--kashi-gold);
	font-weight: 500;
	margin: 0 0 18px;
}

.k-recent__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.k-recent-item {
	display: flex;
	gap: 14px;
	align-items: center;
}

.k-recent-item__image {
	width: 78px;
	height: 64px;
	object-fit: cover;
	border-radius: 3px;
	flex: none;
}

.k-recent-item__copy {
	display: block;
}

.k-recent-item__label {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--kashi-navy);
}

.k-recent-item__date {
	display: block;
	font-size: 11.5px;
	color: var(--kashi-text-meta);
	font-weight: 300;
	margin-top: 5px;
}

.k-aside-nl {
	background: var(--kashi-navy-deep);
	border-radius: 4px;
	padding: 26px 24px;
	color: #fff;
}

.k-aside-nl__title {
	font-family: var(--kashi-font-display);
	font-size: 20px;
	font-weight: 500;
	margin: 0 0 10px;
}

.k-aside-nl__lede {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--kashi-on-dark-soft);
	font-weight: 300;
	margin: 0 0 16px;
}

/* -----------------------------------------------------------------------------
   08 · RELATED READING
   -------------------------------------------------------------------------- */

.k-related {
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: clamp(40px, 5vw, 72px);
}

.k-related__eyebrow {
	margin-bottom: 26px;
}

.k-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

/* -----------------------------------------------------------------------------
   09 · POST NAV

   NO top rule and no padding above the row — project-nav (projects.css §08)
   has both. The asymmetry is in the source: a post ends on the cream related
   band, whose ground change already separates this row.
   -------------------------------------------------------------------------- */

.k-postnav {
	padding-top: clamp(30px, 3.4vw, 44px);
	padding-bottom: clamp(30px, 3.4vw, 44px);
}

.k-postnav__row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
}
