/* Karvaan hero: 75/25 layout. Colours, fonts and corners follow the site's Neve settings. */
.karvaan-hero {
	--kh-accent: var(--nv-primary-accent, #c8551e);
	--kh-text: var(--nv-text-color, #1a1410);
	--kh-muted: #75695d;
	--kh-line: #d8cdbf;
	--kh-card: #fffaf3;
	--kh-radius: 16px;
	--kh-serif: var(--headingsfontfamily, Fraunces, Georgia, serif);
	--kh-sans: Arial, Helvetica, sans-serif;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 22px;
	/* Same 1280px column and 24px side gutters as the header (see karvaan-child style.css) and the page's other sections. */
	width: calc(100% - 48px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 0 48px;
	color: var(--kh-text);
}
.karvaan-hero *, .karvaan-hero *::before, .karvaan-hero *::after { box-sizing: border-box; }
.karvaan-hero.kh-no-side { grid-template-columns: minmax(0, 1fr); }

/* Articles area: left column (1/3) and centre column (2/3). */
.kh-articles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "left center"; gap: 22px; min-width: 0; }
.karvaan-hero.kh-no-left .kh-articles { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center"; }
.kh-center { grid-area: center; }
.kh-left { grid-area: left; }
.kh-col { display: flex; flex-direction: column; min-width: 0; }
.kh-col > .kh-story + .kh-story { margin-top: 28px; padding-top: 28px; border-top: 2px dotted var(--kh-line); }
.kh-center > .kh-story--lead + .kh-story { margin-top: 28px; }

/* Stories */
.kh-story { min-width: 0; }
.kh-media { display: block; overflow: hidden; border-radius: var(--kh-radius); background: #e9e0d2; aspect-ratio: 16 / 9; }
.kh-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kh-media:hover img { transform: scale(1.03); }
.kh-category { margin: 0 0 8px; font: 600 11px/1.4 var(--kh-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--kh-accent); }
.kh-category a { color: inherit; text-decoration: none; }
.kh-category a:hover { text-decoration: underline; }
/* Author and date, under the story. */
.kh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 16px 0 0; font: 400 12px/1.5 var(--kh-sans); color: var(--kh-muted); }
.kh-meta-author { font-weight: 600; color: var(--kh-accent); }
.kh-meta a { color: inherit; text-decoration: none; }
.kh-meta a:hover { text-decoration: underline; }
.kh-meta-author + time::before { content: "·"; margin: 0 8px; }
/* Every story except the lead shares one heading style. */
.kh-title { margin: 0; font-family: var(--kh-serif); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.005em; overflow-wrap: break-word; text-wrap: balance; }
.kh-title a { color: inherit; text-decoration: none; }
.kh-title a:hover { color: var(--kh-accent); }
.kh-excerpt { margin: 10px 0 0; font: 400 14px/1.5 var(--kh-sans); color: var(--kh-muted); overflow-wrap: break-word; }
.kh-story--image .kh-body { margin-top: 16px; }
.kh-story:not(.kh-story--lead) .kh-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Lead story: a rounded card with a full-width image. */
.kh-story--lead { overflow: hidden; background: var(--kh-card); border: 0; border-radius: var(--kh-radius); }
.kh-story--lead .kh-media { border-radius: 0; }
.kh-story--lead .kh-body { padding: 24px 28px 28px; }
.kh-story--lead .kh-title { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.015em; }
.kh-story--lead .kh-excerpt { margin-top: 12px; font-size: 16px; }
.kh-story--lead.kh-no-media .kh-body { padding-top: 28px; }

/* Sidebar: a compact donation box in the donation box's own colours. */
.kh-side { min-width: 0; }
.kh-box {
	--kh-box-bg: #ece3d3; --kh-box-text: #1a1814; --kh-box-accent: var(--kh-accent); --kh-box-on-accent: #fff; --kh-box-radius: 20px; --kh-box-font: var(--kh-serif);
	padding: 24px; background: var(--kh-box-bg); color: var(--kh-box-text); border-radius: var(--kh-box-radius);
}
.kh-heart { display: block; margin-bottom: 14px; color: var(--kh-box-accent); }
.kh-box-label { display: block; margin-bottom: 8px; font: 600 11px/1.4 var(--kh-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--kh-box-accent); }
.kh-box-heading { margin: 0; font-family: var(--kh-box-font); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.005em; color: inherit; }
.kh-box-text { margin: 12px 0 0; font: 400 15px/1.6 var(--kh-sans); color: inherit; opacity: .8; }
.kh-box-button { display: inline-block; margin-top: 22px; padding: 13px 22px; border-radius: 12px; background: var(--kh-box-accent); color: var(--kh-box-on-accent); font: 600 15px/1.2 var(--kh-sans); text-decoration: none; transition: filter .2s ease; }
.kh-box-button:hover, .kh-box-button:focus-visible { filter: brightness(.9); color: var(--kh-box-on-accent); }
.kh-empty { padding: 16px; border: 1px dashed var(--kh-line); border-radius: var(--kh-radius); color: var(--kh-muted); }

/* Tablet: sidebar drops below the articles and runs across. */
@media (max-width: 1099px) {
	.karvaan-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.kh-articles { gap: 22px; }
	.kh-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 28px; padding: 28px 32px; }
	.kh-heart { grid-row: 1 / span 3; margin: 0; width: 40px; height: 40px; }
	.kh-box-label { margin: 0; }
	.kh-box-text { margin: 6px 0 0; grid-column: 2; }
	.kh-box-button { grid-column: 3; grid-row: 1 / span 3; margin: 0; white-space: nowrap; }
}

/* Phones: one column in reading order, edge-to-edge images, tighter type. */
@media (max-width: 699px) {
	.karvaan-hero { gap: 28px; padding-bottom: 32px; }
	.kh-articles, .karvaan-hero.kh-no-left .kh-articles { display: flex; flex-direction: column; gap: 0; }
	.kh-col { display: contents; }
	/* Both columns flatten into one list in DOM order; dotted dividers separate every story. */
	.kh-col + .kh-col > .kh-story:first-child { margin-top: 24px; padding-top: 24px; border-top: 2px dotted var(--kh-line); }
	.kh-col > .kh-story + .kh-story, .kh-center > .kh-story--lead + .kh-story { margin-top: 24px; padding-top: 24px; }
	.kh-story--lead { border: 0; }
	.kh-story--lead .kh-body { padding: 20px 20px 22px; }
	.kh-story--lead .kh-title { font-size: 26px; }
	.kh-box { display: block; padding: 24px; }
	.kh-heart { width: 28px; height: 28px; margin-bottom: 12px; }
	.kh-box-text { margin-top: 10px; }
	.kh-box-button { display: block; margin-top: 20px; text-align: center; }
}
