/* AfrikaSpeaks — built on Canvas 9.
   Type + hero: UX Course demo · Latest news: CrossFit "Train With Purpose" · Categories: Food Truck "What's Rolling Today" */

:root {
	--cnvs-themecolor: #E30613;
	--cnvs-themecolor-rgb: 227, 6, 19;

	--as-red-dark: #B8040F;
	--as-ink: #161311;
	--as-ink-soft: #4B4540;
	--as-paper: #FBF9F5;
	--as-sand: #F3EDE4;
	--as-line: #E6DED2;
	--as-gold: #F2A93B;
	--as-black: #0A0A0A;
	--as-dark: #111111;
	--as-gray: #1E1E1E;

	--as-display: "Fraunces", Georgia, serif;
	--as-body: "Mulish", -apple-system, BlinkMacSystemFont, sans-serif;

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
	font-family: var(--as-body);
	background-color: var(--as-paper);
	color: var(--as-ink);
}

h1, h2, h3, h4, .as-display {
	font-family: var(--as-display);
	text-wrap: balance;
	letter-spacing: -0.02em;
	color: var(--as-ink);
}

p { text-wrap: pretty; }
a { color: var(--as-ink); }
a:hover { color: var(--cnvs-themecolor); }

a:focus-visible, button:focus-visible, .as-btn:focus-visible {
	outline: 3px solid rgba(var(--cnvs-themecolor-rgb), 0.55);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ── Header ── */
#header {
	--cnvs-primary-menu-color: var(--as-ink);
	--cnvs-primary-menu-hover-color: var(--cnvs-themecolor);
	--cnvs-header-height: 84px;
	background-color: var(--as-paper);
	border-bottom: 1px solid var(--as-line);
}
#logo img { height: 52px; width: auto; }
#header .menu-link div {
	font-family: var(--as-body);
	font-weight: 800;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
}
#header .menu-item.current > .menu-link div,
#header .menu-link:hover div { color: var(--cnvs-themecolor); }

.as-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--as-line);
	background: #fff;
	color: var(--as-ink);
	font-size: 1rem;
	transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.as-search-toggle:hover { border-color: var(--cnvs-themecolor); color: var(--cnvs-themecolor); }

.as-searchbar { background: var(--as-ink); padding: 1rem 0; display: none; }
.as-searchbar.open { display: block; }
.as-searchbar form { display: flex; gap: 0.5rem; }
.as-searchbar input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.06);
	color: #fff;
	border-radius: 999px;
	padding: 0.8rem 1.3rem;
	font-size: 1rem;
}
.as-searchbar input::placeholder { color: rgba(255,255,255,0.45); }
.as-searchbar input:focus { outline: none; border-color: var(--cnvs-themecolor); }

/* ── Buttons ── */
.as-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--as-body);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1;
	padding: 1.05rem 1.9rem;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.as-btn:active { transform: scale(0.97); }
.as-btn-primary { background-color: var(--cnvs-themecolor); color: #fff; }
.as-btn-ghost { background-color: transparent; color: var(--as-ink); border-color: var(--as-ink); }
.as-btn-sm { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) {
	.as-btn-primary:hover { background-color: var(--as-red-dark); color: #fff; transform: translateY(-2px); }
	.as-btn-ghost:hover { background-color: var(--as-ink); color: var(--as-paper); transform: translateY(-2px); }
}

/* ── Breaking ticker (Food Truck ticker) ── */
.as-ticker {
	display: flex;
	align-items: stretch;
	background: var(--as-black);
	overflow: hidden;
	white-space: nowrap;
}
.as-ticker-label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--cnvs-themecolor);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0 1.1rem;
	position: relative;
	z-index: 1;
}
.as-ticker-label .as-pulse {
	width: 8px; height: 8px; border-radius: 50%; background: #fff;
	animation: as-pulse 1.4s ease-in-out infinite;
}
@keyframes as-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.as-ticker-track { overflow: hidden; flex: 1; padding: 12px 0; }
.as-ticker-inner { display: inline-flex; animation: as-ticker 90s linear infinite; }
.as-ticker:hover .as-ticker-inner { animation-play-state: paused; }
.as-ticker-item {
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(255,255,255,0.88);
	padding: 0 1.75rem;
	text-decoration: none;
}
.as-ticker-item:hover { color: #fff; }
.as-ticker-item .as-ticker-src { color: var(--as-gold); font-weight: 800; margin-right: 0.5rem; }
.as-ticker-item::after { content: '●'; color: var(--cnvs-themecolor); margin-left: 3.5rem; font-size: 0.6rem; vertical-align: middle; }
@keyframes as-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .as-ticker-inner { animation: none; } }

/* ── Hero headline (UX Course hero) ── */
.as-hero {
	background-color: var(--as-sand);
	padding: 4.5rem 0 4.5rem;
	position: relative;
	overflow: hidden;
}
.as-hero::before {
	content: '';
	position: absolute;
	right: -120px;
	top: -80px;
	width: 520px;
	height: 520px;
	background: url('../images/symbol.png') no-repeat center / contain;
	opacity: 0.05;
	pointer-events: none;
}
.as-kicker {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cnvs-themecolor);
	margin-bottom: 1.25rem;
}
.as-kicker .as-kicker-sep { color: rgba(22,19,17,0.3); }
.as-kicker .as-kicker-muted { color: var(--as-ink-soft); }
.as-hero h1 {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	font-weight: 600;
	line-height: 1.08;
	margin-bottom: 1.25rem;
}
.as-hero h1 a { color: inherit; text-decoration: none; }
.as-hero h1 a:hover { color: var(--as-ink); text-decoration: underline; text-decoration-color: var(--cnvs-themecolor); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.as-hero h1 em { font-style: italic; color: var(--cnvs-themecolor); }
.as-hero-sub {
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--as-ink-soft);
	max-width: 36rem;
	margin-bottom: 2rem;
}
.as-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-bottom: 2.25rem; }

/* Blurred backdrop: the active headline's photo, softened and washed with the sand colour so text stays readable. */
.as-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--as-sand); }
.as-hero-bg-img { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(40px) saturate(1.1); transform: scale(1.1); opacity: 0; transition: opacity 0.9s var(--ease-out); }
.as-hero-bg-img.is-active { opacity: 1; }
.as-hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(243, 237, 228, 0.78) 0%, rgba(243, 237, 228, 0.66) 45%, rgba(243, 237, 228, 0.35) 75%, rgba(243, 237, 228, 0.25) 100%); }
@media (max-width: 991.98px) { .as-hero-bg::after { background: rgba(243, 237, 228, 0.7); } }
.as-hero > .container { position: relative; z-index: 1; }
.as-hero::before { z-index: 1; }

/* Rotating headlines: slides share one grid cell so the hero never jumps in height. */
.as-hero-slides, .as-hero-media-stack { display: grid; }
.as-hero-slide, .as-hero-media-stack > .as-hero-media { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s; }
.as-hero-slide { transform: translateY(10px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.6s; }
.as-hero-slide.is-active, .as-hero-media-stack > .as-hero-media.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.as-hero-slide h1 { margin-bottom: 2rem; }
.as-hero .as-kicker { display: flex; flex-wrap: nowrap; height: 1.2rem; overflow: hidden; white-space: nowrap; }
@media (min-width: 992px) {
	/* Kicker height (1.2rem) + its bottom margin (1.25rem): the photo starts level with the headline. */
	.as-hero-media-stack { margin-top: 2.45rem; }
}

.as-hero-more { border-top: 1px solid rgba(22,19,17,0.12); max-width: 38rem; }
.as-hero-tab {
	position: relative;
	display: flex;
	gap: 1rem;
	align-items: baseline;
	width: 100%;
	padding: 0.9rem 0;
	border: 0;
	border-bottom: 1px solid rgba(22,19,17,0.12);
	background: none;
	text-align: left;
	color: var(--as-ink);
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.3s var(--ease-out);
}
.as-hero-tab:hover, .as-hero-tab.is-active { opacity: 1; }
.as-hero-tab:hover .as-hero-more-title, .as-hero-tab.is-active .as-hero-more-title { color: var(--cnvs-themecolor); }
.as-hero-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--cnvs-themecolor); }
.as-hero-tab.is-active .as-hero-progress { animation: as-hero-progress 6s linear forwards; }
.as-hero.is-paused .as-hero-tab.is-active .as-hero-progress { animation-play-state: paused; }
@keyframes as-hero-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
	.as-hero-slide { transform: none; }
	.as-hero-tab.is-active .as-hero-progress { animation: none; width: 100%; }
}
.as-hero-more-time {
	flex: 0 0 4.5rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cnvs-themecolor);
}
.as-hero-more-title { font-family: var(--as-display); font-size: 1.08rem; font-weight: 500; line-height: 1.35; transition: color 160ms var(--ease-out); }
.as-hero-more-src { display: block; font-family: var(--as-body); font-size: 0.8rem; font-weight: 700; color: var(--as-ink-soft); margin-top: 0.2rem; }

.as-hero-proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin-top: 2rem;
	font-size: 0.9rem;
	font-weight: 700;
}
.as-hero-proof i { color: var(--cnvs-themecolor); margin-right: 0.3rem; }

/* Photo shown whole (like the story page): fitted inside the frame, on a blurred copy of itself. */
.as-hero-media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--as-ink); isolation: isolate; }
.as-hero-media-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(32px) saturate(1.1); opacity: 0.55; z-index: 0; }
.as-hero-media .as-hero-media-main {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
	max-height: 560px;
	object-fit: contain;
	display: block;
}
.as-hero-badge {
	z-index: 2;
	position: absolute;
	bottom: 1.25rem;
	left: 1.25rem;
	right: 1.25rem;
	background-color: var(--as-paper);
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}
.as-hero-badge i { font-size: 1.4rem; color: var(--cnvs-themecolor); }
.as-hero-badge strong { display: block; font-size: 0.95rem; }
.as-hero-badge span { font-size: 0.82rem; color: var(--as-ink-soft); }

/* ── Section scaffolding ── */
.as-section { padding: 5rem 0; }
.as-section-label {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cnvs-themecolor);
	margin-bottom: 0.9rem;
}
.as-section-title {
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	font-weight: 600;
	line-height: 1.15;
	margin-bottom: 1rem;
}
.as-section-lead { font-size: 1.05rem; line-height: 1.7; color: var(--as-ink-soft); max-width: 44rem; }

/* ── Latest News (CrossFit "Train With Purpose") ── */
.as-latest { background: var(--as-black); padding: 80px 0; }
.as-latest-title { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--cnvs-themecolor); font-weight: 800; }
.as-latest-heading { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.as-latest-heading em { color: var(--cnvs-themecolor); }
.as-divider-line { width: 48px; height: 3px; background: var(--cnvs-themecolor); margin: 14px auto 18px; }
.as-latest-sub { color: rgba(255,255,255,0.5); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }

.as-story-card { position: relative; overflow: hidden; border-radius: 6px; height: 380px; display: block; background: var(--as-gray); }
.as-story-card.as-story-sm { height: 320px; }
.as-story-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.as-story-card:hover img { transform: scale(1.06); }
.as-story-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.12) 100%); }
.as-story-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 28px 24px; }
.as-story-cat {
	display: inline-block;
	background: var(--cnvs-themecolor);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
	margin-bottom: 12px;
}
.as-story-name { font-family: var(--as-display); font-size: 1.55rem; font-weight: 600; color: #fff; line-height: 1.18; margin-bottom: 10px; letter-spacing: -0.01em; }
.as-story-sm .as-story-name { font-size: 1.25rem; }
.as-story-desc { font-size: 0.875rem; color: rgba(255,255,255,0.72); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-story-sm .as-story-desc { display: none; }
.as-story-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.as-story-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.88); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 2px; }
.as-story-badge i { font-size: 0.8rem; color: var(--cnvs-themecolor); }
.as-story-link { font-size: 0.8rem; font-weight: 800; color: var(--cnvs-themecolor); letter-spacing: 0.06em; text-transform: uppercase; transition: opacity 0.2s; }
.as-story-card:hover .as-story-link { opacity: 0.8; }
.as-latest-btn { display: inline-block; background: var(--cnvs-themecolor); color: #fff; font-size: 0.875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 16px 44px; border-radius: 2px; text-decoration: none; transition: background 0.25s; }
.as-latest-btn:hover { background: var(--as-red-dark); color: #fff; }

/* ── Categories (Food Truck "What's Rolling Today") ── */
.as-cats { background: var(--as-dark); padding: 5rem 0 6rem; color: #fff; }
.as-updated-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--as-gold);
	color: var(--as-black);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 6px 14px;
	margin-bottom: 0.9rem;
}
.as-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cnvs-themecolor);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 10px;
}
.as-label::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--cnvs-themecolor); }
.as-headline { font-family: var(--as-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; line-height: 0.98; color: #fff; letter-spacing: -0.03em; }
.as-headline em { color: var(--cnvs-themecolor); }

.as-tabs { display: flex; gap: 0; margin: 2rem 0 3rem; border-bottom: 2px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.as-tab {
	font-family: var(--as-body);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	padding: 14px 22px;
	border: none;
	background: none;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}
.as-tab i { margin-right: 6px; }
.as-tab.active { color: var(--cnvs-themecolor); border-bottom-color: var(--cnvs-themecolor); }
/* Hover only on devices with a mouse — on phones a tapped tab would otherwise stay highlighted. */
@media (hover: hover) and (pointer: fine) { .as-tab:hover { color: var(--cnvs-themecolor); border-bottom-color: var(--cnvs-themecolor); } }
.as-tab-panel { display: none; }
.as-tab-panel.active { display: block; animation: as-fade 0.35s var(--ease-out); }
@keyframes as-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.as-card { display: flex; flex-direction: column; background: var(--as-gray); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; transition: transform 0.3s, border-color 0.3s; height: 100%; text-decoration: none; }
.as-card:hover { transform: translateY(-4px); border-color: var(--cnvs-themecolor); }
.as-card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #000; }
.as-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.as-card:hover .as-card-img img { transform: scale(1.05); }
.as-card-tag { position: absolute; top: 14px; left: 14px; background: var(--cnvs-themecolor); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; }
.as-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.as-card-name { font-family: var(--as-display); font-size: 1.3rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; line-height: 1.22; letter-spacing: -0.01em; }
.as-card-desc { font-size: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.55; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.as-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.78rem; font-weight: 700; margin-top: auto; }
@media (max-width: 767.98px) { .as-card-footer { padding-top: 0.75rem; } }
.as-card-src { color: var(--as-gold); text-transform: uppercase; letter-spacing: 0.08em; }
.as-card-time { color: rgba(255,255,255,0.45); white-space: nowrap; }
.as-card-time i { color: var(--cnvs-themecolor); margin-right: 3px; }

.as-extras { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 2rem; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.as-extras > div { flex: 1; min-width: 180px; }
.as-extras-label { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.as-extras-value { font-family: var(--as-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.as-extras-value.gold { color: var(--as-gold); }
.as-extras-value.red { color: var(--cnvs-themecolor); }
.as-btn-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--as-gold); color: var(--as-black); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 24px; text-decoration: none; transition: background 0.2s; }
.as-btn-gold:hover { background: #fff; color: var(--as-black); }

/* ── Listing pages (latest / category / search) ── */
.as-page-head { background: var(--as-sand); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--as-line); }
.as-page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; margin-bottom: 0.6rem; }
.as-page-head h1 em { color: var(--cnvs-themecolor); }
.as-page-head p { color: var(--as-ink-soft); font-size: 1.05rem; margin: 0; max-width: 40rem; }
.as-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.as-chip { border: 1px solid rgba(22,19,17,0.18); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 800; text-decoration: none; color: var(--as-ink); background: rgba(255,255,255,0.5); }
.as-chip:hover, .as-chip.active { background: var(--cnvs-themecolor); border-color: var(--cnvs-themecolor); color: #fff; }

.as-chip-count { opacity: 0.6; font-weight: 700; margin-left: 0.2rem; }
.as-ext-link { display: block; width: fit-content; margin-top: 0.4rem; color: var(--cnvs-themecolor); font-weight: 800; text-decoration: none; white-space: nowrap; }

.as-list-item { display: flex; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--as-line); color: var(--as-ink); }
.as-infinite-items > .as-list-item:first-child, .as-group .as-list-item:first-of-type { padding-top: 0; }
.as-list-thumb { flex: 0 0 240px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--as-sand); display: block; }
.as-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.as-list-item:hover .as-list-thumb img { transform: scale(1.05); }
.as-list-meta { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cnvs-themecolor); margin-bottom: 0.45rem; }
.as-list-meta a { color: var(--cnvs-themecolor); text-decoration: none; }
.as-list-meta span, .as-list-meta .as-list-src { color: var(--as-ink-soft); }
.as-list-meta a:hover, .as-list-meta .as-list-src:hover { color: var(--cnvs-themecolor); text-decoration: underline; }
.as-list-title { font-family: var(--as-display); font-size: 1.4rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.as-list-title a { color: var(--as-ink); text-decoration: none; transition: color 160ms var(--ease-out); }
.as-list-title a:hover, .as-list-item:hover .as-list-title a { color: var(--cnvs-themecolor); }
.as-list-desc { color: var(--as-ink-soft); font-size: 0.95rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767.98px) {
	.as-list-item { flex-direction: column; gap: 1rem; }
	.as-list-thumb { flex-basis: auto; width: 100%; }
}

.as-side-box { background: #fff; border: 1px solid var(--as-line); border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem; }
.as-side-head { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cnvs-themecolor); margin-bottom: 1rem; }
.as-side-list { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.as-side-list li { counter-increment: rank; display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--as-line); }
.as-side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.as-side-list li::before { content: counter(rank); font-family: var(--as-display); font-size: 1.5rem; font-weight: 600; color: var(--cnvs-themecolor); line-height: 1; min-width: 1.4rem; }
.as-side-list a { font-family: var(--as-display); font-weight: 500; font-size: 1rem; line-height: 1.35; text-decoration: none; }
.as-side-cats { list-style: none; padding: 0; margin: 0; }
.as-side-cats a { display: flex; justify-content: space-between; padding: 0.55rem 0; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--as-line); }
.as-side-cats li:last-child a { border-bottom: 0; }
.as-side-cats a span { color: var(--as-ink-soft); font-weight: 600; font-size: 0.85rem; }
.as-side-cats i { color: var(--cnvs-themecolor); margin-right: 0.5rem; }

/* Most Read sticks below the (shrunk, 60px) sticky header once Categories has scrolled away.
   Canvas gives .content-wrap overflow:hidden, which disables sticky; clip still clips but keeps sticky working. */
#content .content-wrap { overflow: clip; }
@media (min-width: 992px) {
	.as-sticky { position: sticky; top: 84px; }
}

/* Infinite scroll */
.as-infinite-status { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 2.5rem 0 1rem; color: var(--as-ink-soft); font-weight: 700; font-size: 0.9rem; }
.as-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--as-line); border-top-color: var(--cnvs-themecolor); animation: as-spin 0.8s linear infinite; }
.as-infinite-status:not(.is-loading) .as-spinner { animation-play-state: paused; opacity: 0.4; }
.as-infinite-retry[hidden], .as-infinite-text[hidden] { display: none; }
.as-infinite-end { font-family: var(--as-display); font-style: italic; font-size: 1.1rem; color: var(--as-ink-soft); }
@keyframes as-spin { to { transform: rotate(360deg); } }

/* Source pages */
.as-group { margin-bottom: 3.5rem; }
.as-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--as-ink); padding-bottom: 0.7rem; margin-bottom: 1.6rem; }
.as-group-head h2 { font-size: 1.6rem; font-weight: 600; margin: 0; }
.as-group-head h2 i { color: var(--cnvs-themecolor); font-size: 1.2rem; margin-right: 0.3rem; }
.as-group-head a { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cnvs-themecolor); text-decoration: none; white-space: nowrap; }
.as-source-tile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--as-line); border-radius: 12px; padding: 1.1rem 1.25rem; text-decoration: none; transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.as-source-tile:hover { border-color: var(--cnvs-themecolor); transform: translateY(-2px); }
.as-source-tile strong { font-family: var(--as-display); font-size: 1.15rem; font-weight: 600; color: var(--as-ink); }
.as-source-tile span { font-size: 0.82rem; font-weight: 700; color: var(--as-ink-soft); white-space: nowrap; }
.as-source-tile span i { color: var(--cnvs-themecolor); }

/* ── Article page ── */
.as-article-head { background: var(--as-sand); padding: 3.5rem 0 3rem; }
.as-article-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.25rem; }
.as-article-byline { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9rem; font-weight: 700; color: var(--as-ink-soft); }
.as-article-byline i { color: var(--cnvs-themecolor); margin-right: 0.3rem; }
/* Lead photo: shown whole at its natural shape, capped at 560px tall. Tall photos sit on a blurred copy of themselves. */
.as-article-img { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 14px; margin-top: -1px; max-height: 560px; min-height: 220px; background: var(--as-sand); }
.as-article-img-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(32px) saturate(1.1); opacity: 0.55; }
.as-article-img .as-article-img-main { position: relative; display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.as-article-body { font-size: 1.15rem; line-height: 1.8; color: var(--as-ink); overflow-wrap: break-word; }
.as-article-body p { margin-bottom: 1.4rem; }
.as-article-body h2, .as-article-body h3, .as-article-body h4 { font-weight: 600; line-height: 1.25; margin: 2.2rem 0 1rem; }
.as-article-body h2 { font-size: 1.6rem; }
.as-article-body h3 { font-size: 1.35rem; }
.as-article-body h4 { font-size: 1.15rem; }
.as-article-body a { color: var(--cnvs-themecolor); text-decoration: underline; text-underline-offset: 3px; }
.as-article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.5rem 0 1.5rem; display: block; }
.as-article-body blockquote { border-left: 4px solid var(--cnvs-themecolor); margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.4rem; font-family: var(--as-display); font-size: 1.35rem; font-style: italic; line-height: 1.5; color: var(--as-ink); }
.as-article-body blockquote p { margin-bottom: 0.6rem; }
.as-article-body ul, .as-article-body ol { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.as-article-body li { margin-bottom: 0.5rem; }
.as-article-body table { width: 100%; font-size: 0.95rem; margin-bottom: 1.5rem; border-collapse: collapse; display: block; overflow-x: auto; }
.as-article-body th, .as-article-body td { border: 1px solid var(--as-line); padding: 0.5rem 0.75rem; }
.as-article-body hr { border-color: var(--as-line); margin: 2rem 0; }
.as-article-body > p:first-child::first-letter { font-family: var(--as-display); float: left; font-size: 4.2rem; line-height: 0.9; padding: 0.35rem 0.6rem 0 0; color: var(--cnvs-themecolor); font-weight: 600; }
.as-source-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; background: var(--as-ink); color: #fff; border-radius: 14px; padding: 1.5rem 1.75rem; margin: 2.5rem 0; }
.as-source-card strong { font-family: var(--as-display); font-size: 1.3rem; font-weight: 600; display: block; color: #fff; }
.as-source-card strong a { color: #fff; text-decoration: none; }
.as-source-card strong a:hover { color: var(--cnvs-themecolor); }
.as-source-card span { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ── Footer (Lifestyle Blog footer) ── */
#footer {
	--cnvs-footer-bg: #3E2E29;
	--cnvs-footer-top-border: 1px solid rgba(255,255,255,0.06);
	--cnvs-copyrights-link-color: rgba(255,255,255,0.55);
	--cnvs-copyrights-link-hover-color: var(--cnvs-themecolor);
}
#footer .footer-widgets-wrap { padding: 3rem 0 2.5rem; }
.as-footer-logo { height: 72px; width: auto; }
.as-footer-tag { color: rgba(255,255,255,0.65); max-width: 320px; font-size: 0.95rem; line-height: 1.7; }
.as-footer-social {
	background-color: rgba(255,255,255,0.1) !important;
	color: rgba(255,255,255,0.75) !important;
	border: 1px solid rgba(255,255,255,0.15) !important;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}
.as-footer-social:hover { background-color: var(--cnvs-themecolor) !important; color: #fff !important; border-color: var(--cnvs-themecolor) !important; }
.as-footer-heading { font-family: var(--as-body); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; margin-bottom: 1.5rem; }
.as-footer-links { list-style: none; padding: 0; margin: 0; }
.as-footer-links li { margin-bottom: 0.75rem; }
.as-footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9375rem; text-decoration: none; transition: color 0.25s ease; }
.as-footer-links a:hover { color: var(--cnvs-themecolor); }
.as-footer-input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.5rem; padding: 0.875rem 1rem; font-size: 0.9375rem; color: #fff; }
.as-footer-input::placeholder { color: rgba(255,255,255,0.45); }
.as-footer-input:focus { background: rgba(255,255,255,0.12); color: #fff; border-color: var(--cnvs-themecolor); box-shadow: 0 0 0 3px rgba(var(--cnvs-themecolor-rgb), 0.25); outline: none; }
.as-footer-btn { background-color: var(--cnvs-themecolor); color: #fff; border: 1px solid var(--cnvs-themecolor); padding: 0 1.2rem; transition: background-color 0.25s ease; }
.as-footer-btn:hover { background-color: var(--as-red-dark); border-color: var(--as-red-dark); color: #fff; }
.as-footer-ok { color: #fff; font-weight: 700; }
.as-footer-ok i { color: #4ade80; margin-right: 0.35rem; }
.as-footer-err { color: #fca5a5; font-size: 0.875rem; }
#copyrights { padding: 1.5rem 0; font-size: 0.88rem; }
#copyrights a { color: var(--cnvs-copyrights-link-color); text-decoration: none; }
#copyrights a:hover { color: var(--cnvs-themecolor); }

/* ── Article reading stream ── */
.as-entry-inline { margin-top: 4rem; }
.as-entry-next { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.as-entry-next::before, .as-entry-next::after { content: ''; flex: 1; height: 2px; background: var(--as-ink); }
.as-entry-next span { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cnvs-themecolor); }
.as-entry-head { margin-bottom: 2rem; }
.as-entry-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; line-height: 1.14; margin-bottom: 1rem; }
.as-entry-title a { color: var(--as-ink); text-decoration: none; }
.as-entry-title a:hover { color: var(--cnvs-themecolor); }
/* Stories far behind the reader fade out and are emptied; their box keeps its height so nothing jumps. */
.as-entry > * { transition: opacity 0.4s var(--ease-out); }
.as-entry.is-fading > *, .as-entry.is-restoring > * { opacity: 0; }
.as-entry.is-unloaded { overflow: hidden; }

/* ── Share buttons ── */
.as-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.as-share-top { margin-top: 1.25rem; }
.as-share-bottom { margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--as-line); }
.as-share-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
	height: 38px; min-width: 38px; padding: 0 0.7rem; border-radius: 999px;
	border: 1px solid rgba(22,19,17,0.15); background: #fff; color: var(--as-ink);
	font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.as-share-top .as-share-btn { padding: 0; width: 38px; }
.as-share-btn i { font-size: 1rem; line-height: 1; }
.as-share-btn:hover { transform: translateY(-2px); color: #fff; }
.as-share-btn[hidden] { display: none; }
.as-share-whatsapp:hover { background: #25D366; border-color: #25D366; }
.as-share-facebook:hover { background: #1877F2; border-color: #1877F2; }
.as-share-x:hover { background: #000; border-color: #000; }
.as-share-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.as-share-telegram:hover { background: #229ED9; border-color: #229ED9; }
.as-share-email:hover, .as-share-copy:hover, .as-share-native:hover { background: var(--as-ink); border-color: var(--as-ink); }
.as-share-whatsapp { color: #128C4A; }
.as-share-native { background: var(--cnvs-themecolor); border-color: var(--cnvs-themecolor); color: #fff; }
.as-share-top .as-share-native { width: auto; padding: 0 0.9rem; }
.as-share-btn.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ── Comments ── */
.as-comments { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--as-ink); }
.as-comments-head h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.as-comments-count { color: #fff !important; display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.5rem; border-radius: 999px; background: var(--cnvs-themecolor); color: #fff; font-family: var(--as-body); font-size: 0.85rem; font-weight: 800; }
.as-comments-flash { background: #ecfdf3; border: 1px solid #a7e8c1; color: #14532d; border-radius: 10px; padding: 0.8rem 1rem; font-weight: 700; }
.as-comment-form { background: #fff; border: 1px solid var(--as-line); border-radius: 14px; padding: 1.1rem; margin-bottom: 2rem; }
.as-comment-form textarea, .as-comment-form input[type=text] { width: 100%; border: 1px solid var(--as-line); border-radius: 10px; padding: 0.75rem 0.9rem; font: inherit; font-size: 1rem; background: var(--as-paper); color: var(--as-ink); }
.as-comment-form textarea { resize: vertical; min-height: 90px; display: block; }
.as-comment-form textarea:focus, .as-comment-form input[type=text]:focus { outline: none; border-color: var(--cnvs-themecolor); box-shadow: 0 0 0 3px rgba(var(--cnvs-themecolor-rgb), 0.15); background: #fff; }
.as-comment-form-row { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.as-comment-form-row input { flex: 1; min-width: 0; }
.as-comment-form-row .as-btn { flex: 0 0 auto; }
.as-comment-note { font-size: 0.8rem; color: var(--as-ink-soft); margin: 0.6rem 0 0; }
.as-comment-error { margin: 0.6rem 0 0; font-weight: 700; font-size: 0.9rem; color: #b91c1c; }
.as-comment-error.is-ok { color: #15803d; }
.as-comment-error[hidden], .as-comment-replying[hidden] { display: none; }
.as-comment-replying { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--as-ink-soft); }
.as-comment-replying button { border: 0; background: none; color: var(--cnvs-themecolor); font-weight: 800; padding: 0 0.3rem; }
.as-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-comments-empty { color: var(--as-ink-soft); font-style: italic; font-family: var(--as-display); font-size: 1.1rem; }
.as-comment { display: flex; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--as-line); }
.as-comment-replies .as-comment { border-bottom: 0; padding: 0.9rem 0 0; }
.as-comment-replies:not(:empty) { margin-top: 0.4rem; padding-left: 0.9rem; border-left: 2px solid var(--as-line); }
.as-comment-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--as-sand); color: var(--cnvs-themecolor); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.as-comment-reply .as-comment-avatar { flex-basis: 32px; height: 32px; font-size: 0.75rem; }
.as-comment-main { flex: 1; min-width: 0; }
.as-comment-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.as-comment-head strong { font-size: 0.98rem; }
.as-comment-head time { font-size: 0.8rem; color: var(--as-ink-soft); }
.as-comment-body { margin-top: 0.25rem; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.as-comment-actions { display: flex; gap: 1rem; margin-top: 0.35rem; }
.as-comment-actions button { border: 0; background: none; padding: 0; font-size: 0.8rem; font-weight: 800; color: var(--as-ink-soft); cursor: pointer; }
.as-comment-actions .as-comment-reply-btn:hover { color: var(--cnvs-themecolor); }
.as-comment-actions .as-comment-report { font-weight: 600; opacity: 0.7; }
.as-comment-actions .as-comment-report:hover { opacity: 1; color: #b91c1c; }
@media (max-width: 575.98px) { .as-comment-form-row { flex-direction: column; } }

/* Google sign-in for comments */
img.as-comment-avatar { object-fit: cover; display: block; padding: 0; }
.as-comment-as { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--as-ink-soft); }
.as-comment-as img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.as-comment-as strong { color: var(--as-ink); }
.as-comment-signout { margin-left: auto; border: 0; background: none; font-size: 0.8rem; font-weight: 800; color: var(--as-ink-soft); cursor: pointer; padding: 0; }
.as-comment-signout:hover { color: var(--cnvs-themecolor); }
.as-comment-form-row { align-items: center; justify-content: space-between; }
.as-comment-form-row .as-comment-note { margin: 0; flex: 1; }
.as-comment-signin { background: #fff; border: 1px solid var(--as-line); border-radius: 14px; padding: 1.4rem; margin-bottom: 2rem; text-align: center; transition: box-shadow 0.3s, border-color 0.3s; }
.as-comment-signin p { color: var(--as-ink-soft); margin-bottom: 1rem; }
.as-comment-signin.is-nudged { border-color: var(--cnvs-themecolor); box-shadow: 0 0 0 4px rgba(var(--cnvs-themecolor-rgb), 0.15); }

/* About / Contact / Privacy / Terms */
.as-legal { font-size: 1.05rem; }
.as-legal > p:first-child::first-letter { all: unset; }
.as-legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.as-legal ul { margin-bottom: 1.4rem; }
.as-contact-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--as-line); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.as-contact-card i { font-size: 1.6rem; color: var(--cnvs-themecolor); }
.as-contact-card span { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--as-ink-soft); }
.as-contact-card a { font-family: var(--as-display); font-size: 1.35rem; font-weight: 600; text-decoration: none; color: var(--as-ink); }
.as-contact-card a:hover { color: var(--cnvs-themecolor); }
.as-comment-signin p a { color: var(--cnvs-themecolor); }
.as-gsi-host { display: flex; justify-content: center; min-height: 44px; }
.as-share-bottom .as-share-label { flex-basis: 100%; margin-bottom: 0.25rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cnvs-themecolor); }

/* ── Hero layout grid ──
   Desktop: headline, list and stats on the left, photo on the right (top-aligned with the headline).
   Phones: headline, photo, list, stats. The headline area fits the current headline (height animates). */
.as-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	column-gap: 3rem;
	grid-template-areas: "slides media" "more media" "proof media";
	grid-template-rows: auto auto 1fr;
}
.as-hero-grid .as-hero-slides { grid-area: slides; display: block; position: relative; transition: height 0.45s var(--ease-out); }
.as-hero-grid .as-hero-slide { grid-area: auto; position: absolute; top: 0; left: 0; right: 0; }
.as-hero-grid .as-hero-slide.is-active { position: relative; }
/* Space under the buttons lives inside the slide so the measured height includes it. */
.as-hero-grid .as-hero-slide { padding-bottom: 2rem; }
.as-hero-grid .as-hero-ctas { margin-bottom: 0; }
.as-hero-grid .as-hero-media-stack { grid-area: media; align-self: start; }
.as-hero-grid .as-hero-more { grid-area: more; }
.as-hero-grid .as-hero-proof { grid-area: proof; align-self: start; }

.as-searchbar form { margin: 0; align-items: center; }
.as-searchbar input, .as-searchbar .as-btn { height: 48px; }
.as-searchbar .as-btn { padding-top: 0; padding-bottom: 0; }

@media (max-width: 991.98px) {
	.as-hero { padding: 1.5rem 0 2rem; }
	.as-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "slides" "media" "more" "proof"; grid-template-rows: auto; row-gap: 1.5rem; }
	.as-hero-grid .as-hero-slide { padding-bottom: 0; }
	.as-hero-grid .as-hero-media-stack { margin: 0 0 1.75rem; }
	/* Mobile: the whole photo at its natural shape, with the source badge underneath instead of over it. */
	.as-hero-media .as-hero-media-main { aspect-ratio: auto; height: auto; max-height: none; }
	.as-hero-badge { position: relative; z-index: 1; inset: auto; border-radius: 0; }
	.as-hero-media-stack { position: relative; align-items: start; }
	.as-hero-media-stack > .as-hero-media:not(.is-active) { position: absolute; top: 0; left: 0; right: 0; }
	.as-hero h1 { margin-bottom: 1.1rem; }
	.as-hero .as-kicker { margin-bottom: 0.75rem; }
	.as-hero-ctas { gap: 0.6rem; }
	.as-hero-ctas .as-btn { padding: 0.85rem 1.4rem; font-size: 0.95rem; }

	/* Page and story title areas */
	.as-page-head, .as-article-head { padding: 1.5rem 0 1.4rem; }
	.as-page-head h1, .as-article-head h1 { margin-bottom: 0.5rem; }
	.as-page-head .as-kicker, .as-article-head .as-kicker { margin-bottom: 0.6rem; }
	.as-page-head .as-chips { margin-top: 1rem; }
	.as-article-byline { gap: 0.3rem 1rem; font-size: 0.85rem; }
	.as-share-top { margin-top: 0.9rem; }
	#content .content-wrap { padding-top: 1.75rem; padding-bottom: 2.5rem; }

	/* "What Africa is talking about" tabs: one swipeable row that sticks to the top while you scroll the section */
	.as-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		position: sticky;
		/* Stick just below the phone's status bar / notch, not under it. */
		top: env(safe-area-inset-top, 0px);
		z-index: 20;
		background: var(--as-dark);
		/* Keep the strip behind the status bar white while stuck (status bar is white site-wide). */
		box-shadow: 0 calc(-1 * env(safe-area-inset-top, 0px)) 0 0 #fff;
		margin: 1.25rem calc(var(--bs-gutter-x, 1.5rem) * -0.5) 1.75rem;
		padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5);
		cursor: grab;
	}
	.as-tabs::-webkit-scrollbar { display: none; }
	.as-tabs.is-dragging { cursor: grabbing; }
	.as-tab { flex: 0 0 auto; white-space: nowrap; padding: 14px 16px; }
}

/* Small phones: share buttons become icons, except "Share" which keeps its word */
@media (max-width: 575.98px) {
	.as-share-bottom .as-share-btn:not(.as-share-native) { width: 38px; padding: 0; }
	.as-share-bottom .as-share-btn:not(.as-share-native) span { display: none; }
}

/* viewport-fit=cover lets the page use the full screen; keep content clear of the notch in landscape. */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* Hero crossfade: the new photo fades in on top while the old one stays fully visible underneath (no dip / flicker). */
.as-hero-media-stack > .as-hero-media, .as-hero-bg-img { will-change: opacity; backface-visibility: hidden; transform: translateZ(0); }
.as-hero-bg-img { transform: scale(1.1) translateZ(0); }
.as-hero-media-stack > .as-hero-media.is-active, .as-hero-bg-img.is-active { z-index: 2; }
.as-hero-media-stack > .as-hero-media.was-active, .as-hero-bg-img.was-active { z-index: 1; opacity: 1; visibility: visible; transition: none; }

/* ── No sideways scrolling on phones ──
   Bootstrap's wide .g-5 gutters pull rows 1.5rem past a container that only has 0.75rem padding,
   making the page wider than the screen. Use normal gutters on small screens, and clip anything
   that still pokes out (overflow: clip, unlike hidden, keeps position: sticky working). */
@media (max-width: 991.98px) {
	.row.g-5 { --bs-gutter-x: 1.5rem; }
}
#wrapper { overflow-x: clip; }

/* ── Mobile bottom navigation ── */
.as-bottomnav, .as-sheet, .as-sheet-backdrop { display: none; }
@media (max-width: 991.98px) {
	:root { --as-bottomnav-h: 62px; }
	body { padding-bottom: calc(var(--as-bottomnav-h) + env(safe-area-inset-bottom, 0px)); }
	.as-bottomnav {
		display: flex;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 400;
		height: calc(var(--as-bottomnav-h) + env(safe-area-inset-bottom, 0px));
		padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		background: #fff;
		border-top: 1px solid var(--as-line);
		box-shadow: 0 -4px 18px rgba(22, 19, 17, 0.06);
	}
	.as-bn-item {
		flex: 1 1 0;
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		border: 0; background: none; padding: 0;
		color: var(--as-ink-soft);
		font-family: var(--as-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		position: relative;
	}
	.as-bn-item i { font-size: 1.3rem; line-height: 1; }
	.as-bn-item.is-active, .as-bn-item.is-open { color: var(--cnvs-themecolor); }
	.as-bn-item.is-active::before {
		content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--cnvs-themecolor);
	}
	.as-bn-item:active { transform: scale(0.94); }

	/* Back-to-top sits above the bar */
	#gotoTop { bottom: calc(var(--as-bottomnav-h) + env(safe-area-inset-bottom, 0px) + 14px) !important; }

	/* Bottom sheets */
	.as-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 390; background: rgba(10, 10, 10, 0.45); opacity: 0; transition: opacity 0.25s ease; }
	.as-sheet-backdrop.is-open { opacity: 1; }
	.as-sheet-backdrop[hidden], .as-sheet[hidden] { display: none; }
	.as-sheet {
		display: block;
		position: fixed; left: 0; right: 0;
		bottom: calc(var(--as-bottomnav-h) + env(safe-area-inset-bottom, 0px));
		z-index: 395;
		max-height: 75vh; overflow-y: auto;
		background: #fff;
		border-radius: 20px 20px 0 0;
		padding: 0.5rem 1.25rem 1.5rem;
		transform: translateY(105%);
		transition: transform 0.25s var(--ease-out);
		box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
	}
	.as-sheet.is-open { transform: translateY(0); }
	.as-sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: var(--as-line); margin: 0.35rem auto 0.75rem; }
	.as-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
	.as-sheet-head h2 { font-size: 1.35rem; font-weight: 600; margin: 0; }
	.as-sheet-x { border: 0; background: var(--as-sand); width: 36px; height: 36px; border-radius: 50%; color: var(--as-ink); }
	.as-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
	.as-sheet-tile {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem;
		padding: 1rem 0.5rem; border-radius: 14px; background: var(--as-paper); border: 1px solid var(--as-line);
		font-weight: 800; font-size: 0.85rem; color: var(--as-ink); text-decoration: none; text-align: center;
	}
	.as-sheet-tile i { font-size: 1.4rem; color: var(--cnvs-themecolor); }
	.as-sheet-tile.is-active { border-color: var(--cnvs-themecolor); background: rgba(var(--cnvs-themecolor-rgb), 0.06); }
	.as-sheet-search { display: flex; gap: 0.5rem; margin: 0; }
	.as-sheet-search input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--as-line); border-radius: 999px; padding: 0 1.1rem; font-size: 1rem; background: var(--as-paper); }
	.as-sheet-search input:focus { outline: none; border-color: var(--cnvs-themecolor); background: #fff; }
	.as-sheet-search .as-btn { height: 48px; width: 48px; padding: 0; justify-content: center; }
	.as-sheet-links { list-style: none; padding: 0; margin: 0; }
	.as-sheet-links a { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--as-line); font-weight: 700; color: var(--as-ink); text-decoration: none; }
	.as-sheet-links li:last-child a { border-bottom: 0; }
	.as-sheet-links i { color: var(--cnvs-themecolor); font-size: 1.15rem; width: 1.4rem; text-align: center; }
	html.as-sheet-lock, html.as-sheet-lock body { overflow: hidden; }
}

/* ── "Install AfrikaSpeaks" card ── */
.as-install {
	position: fixed; z-index: 380;
	left: 12px; right: 12px; bottom: 16px;
	display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--as-line); border-radius: 18px;
	padding: 0.9rem 2.6rem 0.9rem 0.9rem;
	box-shadow: 0 12px 40px rgba(22, 19, 17, 0.18);
	transform: translateY(calc(100% + 40px)); opacity: 0;
	transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.as-install[hidden] { display: none; }
.as-install.is-open { transform: none; opacity: 1; }
.as-install-icon { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; border: 1px solid var(--as-line); }
.as-install-text { flex: 1 1 160px; min-width: 0; font-size: 0.85rem; line-height: 1.4; color: var(--as-ink-soft); }
.as-install-text strong { display: block; font-family: var(--as-display); font-size: 1.05rem; font-weight: 600; color: var(--as-ink); margin-bottom: 0.1rem; }
.as-install-text i { color: #007aff; }
.as-install-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.as-install-later { border: 0; background: none; font-weight: 800; font-size: 0.85rem; color: var(--as-ink-soft); padding: 0.4rem; }
.as-install-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--as-ink-soft); width: 30px; height: 30px; border-radius: 50%; }
@media (max-width: 991.98px) {
	/* sit above the bottom navigation bar */
	.as-install { bottom: calc(var(--as-bottomnav-h) + env(safe-area-inset-bottom, 0px) + 12px); }
}
@media (min-width: 992px) {
	/* bottom-left, so the scroll-to-top button stays on its own on the right */
	.as-install { left: 24px; right: auto; bottom: 24px; width: 380px; }
}

/* Phones/tablets: the bottom bar's Search replaces the header's search icon (the ☰ menu stays). */
@media (max-width: 991.98px) {
	#header .header-misc, .as-searchbar { display: none !important; }
}

/* ---------- Ad spaces (set up in /salty → Ad spaces) ---------- */
.as-ad { width: 100%; max-width: var(--ad-w); margin: 0 auto; text-align: center; }
.as-ad-box { display: block; width: 100%; aspect-ratio: var(--ad-ratio); overflow: hidden; border-radius: 6px; }
.as-ad-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-ad-code { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.as-ad-ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 0.15rem 0.5rem; padding: 0.4rem; background: repeating-linear-gradient(45deg, #faf7f2, #faf7f2 10px, #f3eee6 10px, #f3eee6 20px); border: 1.5px dashed #cfc5b6; color: #7a7066; text-decoration: none; font-size: 0.8rem; line-height: 1.2; transition: border-color .2s, color .2s; }
.as-ad-ph:hover { border-color: var(--cnvs-themecolor); color: var(--cnvs-themecolor); }
.as-ad-ph i { font-size: 1.1rem; }
.as-ad-ph span { font-size: 0.72rem; opacity: 0.8; }
.as-ad-ph strong { font-weight: 700; }
/* Tall banners stack the placeholder text */
.as-ad-sidebar_tall .as-ad-ph, .as-ad-sidebar_top .as-ad-ph { flex-direction: column; }

.as-ad-top-wrap .as-ad { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.as-ad-home-middle { margin-top: 3rem; margin-bottom: 3rem; }
.as-ad-above-footer { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.as-ad-side { margin-bottom: 1.5rem; }
.as-ad-in-story, .as-ad-story-end { margin: 2rem auto; clear: both; }
.as-ad-list { padding: 1.25rem 0; border-bottom: 1px solid var(--as-line); }

@media (max-width: 991.98px) { .as-ad-desktop { display: none; } }
@media (min-width: 992px) { .as-ad-mobile { display: none; } }
.as-article-body .as-ad-ph { color: #7a7066; text-decoration: none; }
.as-article-body .as-ad-ph:hover { color: var(--cnvs-themecolor); }
/* Ad code that hasn't filled: no spacing (kept on the page at full width so the network can still fill it) */
.as-ad-coded:not(.is-filled) { margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; border: 0 !important; }
.as-ad:has(ins[data-ad-status="unfilled"]) { display: none !important; }

/* ---------- Category pills on Latest / category / search pages ---------- */
.as-page-head-has-bar { padding-bottom: 0; border-bottom: 0; }
.as-chips-bar { background: var(--as-sand); padding: 1.5rem 0 3rem; border-bottom: 1px solid var(--as-line); }
.as-chips-bar .as-chips { margin-top: 0; }
@media (max-width: 991.98px) {
	.as-page-head-has-bar { padding-bottom: 0; }
	/* One swipeable row that sticks to the top while you scroll, like the home page tabs */
	.as-chips-bar {
		position: sticky;
		top: env(safe-area-inset-top, 0px);
		z-index: 20;
		padding: 0.75rem 0;
		/* Keep the strip behind the status bar white while stuck (status bar is white site-wide). */
		box-shadow: 0 calc(-1 * env(safe-area-inset-top, 0px)) 0 0 #fff;
	}
	.as-chips-bar .as-chips {
		margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
		padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5);
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		cursor: grab;
	}
	.as-chips-bar .as-chips::-webkit-scrollbar { display: none; }
	.as-chips-bar .as-chips.is-dragging { cursor: grabbing; }
	.as-chips-bar .as-chip { flex: 0 0 auto; white-space: nowrap; }
}

/* Reading progress bar on story pages: pinned to the very top of the screen, above the sticky header. */
.as-read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; pointer-events: none; padding-top: env(safe-area-inset-top, 0); box-sizing: content-box; }
.as-read-progress-bar { height: 3px; background: var(--cnvs-themecolor); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
