/*
 * AH Community Feed: the community's latest posts, read-only, beside a navy card with its numbers.
 * The last post fades into the sign-up box (visitors only). Light by default; .ah-on-dark for navy.
 */
.ah-cfeed {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
	gap: 28px;
	align-items: start;
	font-family: var(--ah-f-body);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--ah-ink);
	-webkit-font-smoothing: antialiased;
}
.ah-cfeed.ah-cfeed--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.ah-cfeed .ah-cfeed__main { display: grid; gap: 14px; min-width: 0; }

.ah-cfeed .ah-cfeed__badge {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 4px 12px;
	border: 1px solid var(--ah-card-line);
	border-radius: 999px;
	background: var(--ah-card);
	font-size: .82rem;
	font-weight: 600;
	color: var(--ah-ink-gold);
}
.ah-cfeed .ah-cfeed__badge svg { flex: none; }

.ah-cfeed .ah-cfeed__list.ah-cfeed__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ah-cfeed .ah-cfeed__item { margin: 0; padding: 0; }
.ah-cfeed .ah-cfeed__item::marker { content: none; }
.ah-cfeed .ah-cfeed__post {
	position: relative;
	display: grid;
	gap: 8px;
	padding: 18px 20px 14px;
	border: 1px solid var(--ah-card-line);
	border-radius: var(--ah-r-card);
	background: var(--ah-card);
	box-shadow: var(--ah-shadow);
	transition: border-color .3s, box-shadow .45s var(--ah-ease), translate .45s var(--ah-ease);
}
.ah-cfeed .ah-cfeed__post:hover { border-color: var(--ah-tint-line); box-shadow: var(--ah-shadow-hi); translate: 0 -2px; }
.ah-cfeed .ah-cfeed__post:has(.ah-cfeed__go:focus-visible) { outline: 2px solid var(--ah-gold); outline-offset: 3px; }

.ah-cfeed .ah-cfeed__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ah-cfeed .ah-cfeed__av {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--ah-card), 0 0 0 3px rgba(197, 165, 114, .55);
}
.ah-cfeed .ah-cfeed__head > div { display: grid; min-width: 0; line-height: 1.45; }
.ah-cfeed .ah-cfeed__who { font-weight: 700; font-size: .95rem; color: var(--ah-ink); }
.ah-cfeed .ah-cfeed__meta { overflow: hidden; font-size: .8rem; color: var(--ah-muted); text-overflow: ellipsis; white-space: nowrap; }
.ah-cfeed .ah-cfeed__title {
	margin: 2px 0 0;
	font-family: var(--ah-f-display);
	font-weight: 700;
	font-size: 1.08rem;
	line-height: 1.55;
	color: var(--ah-ink);
	text-wrap: pretty;
}
.ah-cfeed .ah-cfeed__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: .93rem;
	line-height: 1.8;
	color: var(--ah-muted);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.ah-cfeed .ah-cfeed__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 2px;
	padding-top: 10px;
	border-top: 1px dashed var(--ah-card-line);
	font-size: .82rem;
	color: var(--ah-muted);
}
.ah-cfeed .ah-cfeed__n { display: inline-flex; align-items: center; gap: 5px; font-family: var(--ah-f-mono); }
.ah-cfeed .ah-cfeed__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: auto;
	font-weight: 700;
	color: var(--ah-ink-gold);
	text-decoration: none;
}
/* the whole post opens it */
.ah-cfeed .ah-cfeed__go::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ah-cfeed .ah-cfeed__go:focus-visible { outline: none; }
.ah-cfeed .ah-cfeed__go .ah-btn__arr { width: 14px; height: 14px; transition: translate .35s var(--ah-ease); }
[dir="rtl"] .ah-cfeed .ah-cfeed__go .ah-btn__arr { scale: -1 1; }
.ah-cfeed .ah-cfeed__post:hover .ah-cfeed__go .ah-btn__arr { translate: calc(var(--ah-dir, 1) * 4px) 0; }

/* the last post fades into the sign-up box */
.ah-cfeed .ah-cfeed__list.is-fade > .ah-cfeed__item:last-child .ah-cfeed__post {
	max-height: 170px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
	mask-image: linear-gradient(to bottom, #000 35%, transparent);
	pointer-events: none;
}
.ah-cfeed .ah-cfeed__lock {
	display: grid;
	justify-items: center;
	gap: 6px;
	margin-top: -36px;
	padding: 24px 20px 22px;
	position: relative;
	z-index: 2;
	border: 1px solid var(--ah-tint-line);
	border-radius: var(--ah-r-card);
	background: var(--ah-paper);
	box-shadow: var(--ah-shadow);
	text-align: center;
}
.ah-cfeed .ah-cfeed__lock-i {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ah-tint);
	color: var(--ah-ink-gold);
}
.ah-cfeed .ah-cfeed__lock-t { font-family: var(--ah-f-display); font-size: 1.12rem; line-height: 1.5; color: var(--ah-ink); }
.ah-cfeed .ah-cfeed__lock-x { margin: 0; max-width: 44ch; font-size: .93rem; color: var(--ah-muted); }
.ah-cfeed .ah-cfeed__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin: 8px 0 0; }
.ah-cfeed .ah-cfeed__cta--member { justify-content: flex-start; }
.ah-cfeed .ah-cfeed__login { font-size: .9rem; font-weight: 600; color: var(--ah-ink-gold); text-decoration: underline; text-underline-offset: 4px; }
.ah-cfeed .ah-cfeed__empty { margin: 0; padding: 24px; border: 1px dashed var(--ah-card-line); border-radius: var(--ah-r-card); text-align: center; color: var(--ah-muted); }

/* the community card */
.ah-cfeed .ah-cfeed__side {
	position: sticky;
	top: 100px;
	display: grid;
	gap: 12px;
	padding: 24px 22px 22px;
	border-radius: var(--ah-r-card);
	background: radial-gradient(120% 80% at 100% 0%, #1E2D57 0%, var(--ah-navy) 60%);
	box-shadow: var(--ah-shadow-dark, 0 22px 44px -24px rgba(9, 18, 42, .7));
	color: var(--ah-on-navy);
}
.ah-cfeed .ah-cfeed__side-t { font-family: var(--ah-f-display); font-size: 1.25rem; line-height: 1.45; color: #fff; }
.ah-cfeed .ah-cfeed__side-x { margin: 0; font-size: .92rem; line-height: 1.8; color: var(--ah-on-navy-muted); }
.ah-cfeed .ah-cfeed__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.ah-cfeed .ah-cfeed__stats > div { display: grid; gap: 2px; padding: 10px 8px; border: 1px solid var(--ah-line-navy); border-radius: 12px; text-align: center; }
.ah-cfeed .ah-cfeed__stats dd { margin: 0; font-family: var(--ah-f-mono); font-size: 1.3rem; font-weight: 600; line-height: 1.3; color: var(--ah-gold-hi); }
.ah-cfeed .ah-cfeed__stats dt { font-size: .76rem; line-height: 1.4; color: var(--ah-on-navy-muted); }
.ah-cfeed .ah-cfeed__side-btn { justify-content: center; width: 100%; }
.ah-cfeed .ah-cfeed__side-login { justify-self: center; font-size: .88rem; font-weight: 600; color: var(--ah-gold-hi); text-decoration: underline; text-underline-offset: 4px; }

/* navy section */
.ah-cfeed.ah-on-dark { color: var(--ah-on-navy); }
.ah-cfeed.ah-on-dark .ah-cfeed__lock { background: var(--ah-card); }

@media (prefers-reduced-motion: reduce) {
	.ah-cfeed .ah-cfeed__post,
	.ah-cfeed .ah-cfeed__go .ah-btn__arr { transition: none; }
	.ah-cfeed .ah-cfeed__post:hover { translate: none; }
}
@media (max-width: 1024px) {
	.ah-cfeed { grid-template-columns: minmax(0, 1fr); }
	.ah-cfeed .ah-cfeed__side { position: static; }
}
@media (max-width: 767px) {
	.ah-cfeed .ah-cfeed__post { padding: 16px 16px 12px; }
	.ah-cfeed .ah-cfeed__foot { gap: 12px; }
}
