/**
 * Social archive — after Ghost `screen.css` + `cards.min.css`.
 * Ghost’s mobile menu CSS hides nav <li> and member links until .is-head-open + JS; we undo that.
 */

/* --- Header: always visible (no Ghost main.js / burger) --- */
.social-archive .gh-burger {
	display: none !important;
}

.social-archive #gh-head .gh-head-menu,
.social-archive #gh-head .gh-head-actions {
	opacity: 1 !important;
	visibility: visible !important;
	position: static !important;
	transform: none !important;
}

.social-archive #gh-head .nav li {
	opacity: 1 !important;
	transform: none !important;
}

.social-archive #gh-head :is(.gh-head-btn, .gh-head-link) {
	opacity: 1 !important;
	transform: none !important;
}

.social-archive #gh-head .gh-head-btn {
	width: auto !important;
}

/* Match inner pages (e.g. /about-me/): is-head-brand → orange bar; Ghost sets nav to white — do not override link color here */

.social-archive.is-head-brand #gh-head .nav li.nav-current a {
	color: var(--color-white) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: 1 !important;
}

.social-archive .gh-foot-menu .nav li.nav-current a {
	color: var(--ghost-accent-color) !important;
	opacity: 1 !important;
}

.social-archive.is-head-brand #gh-head {
	border-bottom: 1px solid hsla(0, 0%, 100%, 0.28);
}

/* Desktop: match inner-page header nav (Ghost uses body 1.6rem + 600 weight; list spacing via --head-nav-gap) */
@media (min-width: 768px) {
	.social-archive #gh-head .nav {
		gap: var(--head-nav-gap);
		align-items: center;
		line-height: 1.4;
	}

	.social-archive #gh-head .nav a {
		font-size: 1.6rem;
		font-weight: 600;
		line-height: 1.4;
		text-transform: none;
	}

	.social-archive #gh-head .gh-head-link {
		font-size: 1.6rem;
		font-weight: 600;
		line-height: 1.4;
	}

	.social-archive #gh-head .gh-head-btn.gh-btn {
		font-size: 1.6rem;
		font-weight: 700;
		line-height: 1;
	}

	.social-archive #gh-head .gh-head-actions {
		gap: var(--head-nav-gap);
	}

	.social-archive #gh-head .gh-head-members {
		gap: 2rem;
	}
}

@media (max-width: 767px) {
	.social-archive #gh-head {
		height: auto;
		min-height: 64px;
	}

	.social-archive #gh-head .gh-head-inner {
		grid-template-columns: 1fr;
		row-gap: 1rem;
		height: auto;
		padding-block: 1.2rem;
	}

	.social-archive .gh-head-brand {
		justify-content: center;
	}

	/* Inline bar (not overlay): same size as desktop Ghost body text, not 2.6rem overlay menu */
	.social-archive #gh-head .nav {
		gap: var(--head-nav-gap);
		line-height: 1.4;
	}

	.social-archive #gh-head .nav a {
		font-size: 1.6rem !important;
		font-weight: 600 !important;
		line-height: 1.4 !important;
		text-transform: none !important;
	}

	.social-archive #gh-head .gh-head-link {
		font-size: 1.6rem !important;
		font-weight: 600 !important;
	}

	.social-archive #gh-head .gh-head-btn.gh-btn {
		font-size: 1.6rem !important;
		font-weight: 700 !important;
	}

	.social-archive .gh-head-menu .nav {
		flex-wrap: wrap;
		justify-content: center;
	}

	.social-archive .gh-head-members {
		flex-direction: row;
		width: auto;
		justify-content: center;
	}
}

/* --- Main --- */
.social-main {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.social-feed-header {
	margin-bottom: 2.4rem;
}

.social-feed-header .feed-header-title {
	margin-bottom: 0.8rem;
	color: var(--color-secondary-text, #999);
}

.social-lede {
	color: var(--color-secondary-text);
	font-size: 1.6rem;
	line-height: 1.45;
	margin: 0;
	max-width: 62rem;
}

.social-lede a {
	color: var(--ghost-accent-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.social-status {
	min-height: 1.5em;
	margin-bottom: 1.6rem;
	color: var(--color-secondary-text);
	font-size: 1.5rem;
}

/* --- Feed cards --- */
.social-feed.feed {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.social-feed .card {
	background: var(--color-white, #fff);
	border: 1px solid var(--color-light-gray, #e6e6e6);
	border-radius: 4px;
	padding: 2rem 2.4rem;
	box-shadow: none;
}

.social-feed .card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	align-items: baseline;
	margin-bottom: 0.6rem;
	font-size: 1.3rem;
	color: var(--color-secondary-text);
}

.social-feed .kind {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--ghost-accent-color);
}

.social-feed .card-title {
	font-family: var(--gh-font-heading, var(--font-sans));
	font-size: 2.2rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0.2rem 0 0.8rem;
	color: var(--color-darker-gray);
}

.social-feed .card-body {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 1.65rem;
	line-height: 1.55;
	color: var(--color-primary-text);
}

.social-pager.pager {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 3.2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-light-gray, #e6e6e6);
}

.social-pager.pager button {
	font: inherit;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--color-light-gray, #e6e6e6);
	border-radius: 100px;
	padding: 0.75em 1.15em;
	background: var(--color-darker-gray, #15171a);
	color: var(--color-white, #fff);
}

.social-pager.pager button:hover:not(:disabled) {
	opacity: 0.92;
}

.social-pager.pager button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.social-pager.pager .subtle {
	color: var(--color-secondary-text);
	font-size: 1.3rem;
}

/* --- Tabs (Posts / Messages / Activity) --- */
.social-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 2.4rem;
	border-bottom: 1px solid var(--color-light-gray, #e6e6e6);
	max-width: 62rem;
}

.social-tab {
	font: inherit;
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0.9rem 1.4rem;
	margin: 0 0 -1px;
	cursor: pointer;
	color: var(--color-secondary-text);
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
}

.social-tab:hover {
	color: var(--color-darker-gray);
}

.social-tab.is-active {
	color: var(--color-darker-gray);
	border-bottom-color: var(--color-darker-gray);
}

/* --- Instagram-style post column --- */
.social-main--feed #feed[data-view="photos"],
.social-main--feed #feed[data-view="stories"] {
	max-width: 50rem;
	margin-inline: auto;
}

#feed[data-view="photos"],
#feed[data-view="stories"] {
	gap: 3.6rem;
}

#feed[data-view="photos"] .ig-card,
#feed[data-view="stories"] .ig-card {
	background: var(--color-white, #fff);
	border: 1px solid var(--color-light-gray, #e6e6e6);
	border-radius: 3px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ig-card-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.2rem 1.4rem;
	border-bottom: 1px solid var(--color-light-gray, #e6e6e6);
}

.ig-card-avatar {
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 50%;
	background: linear-gradient(145deg, #f58529, #dd2a7b, #8134af);
	flex-shrink: 0;
}

.ig-card-head-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem 1rem;
	min-width: 0;
}

.ig-card-name {
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--color-darker-gray);
}

.ig-card-time {
	font-size: 1.25rem;
	color: var(--color-secondary-text);
}

.ig-card-frame {
	position: relative;
	background: #111;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
}

/* Full image / video: natural aspect ratio, no square crop (was aspect-ratio 1 + object-fit cover). */
.ig-card-img,
.ig-card-video {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	max-height: min(88vh, 96rem);
	object-fit: contain;
	object-position: center;
	background: #0a0a0a;
	margin: 0 auto;
}

.ig-card-img.ig-media-broken,
.ig-card-video.ig-media-broken {
	display: none !important;
}

/* Hide filename strip when real media loaded successfully. */
.ig-card-frame:has(.ig-card-img:not(.ig-media-broken)) .ig-card-frame-inner,
.ig-card-frame:has(.ig-card-video:not(.ig-media-broken)) .ig-card-frame-inner {
	display: none;
}

.ig-card-frame-inner {
	position: relative;
	z-index: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	min-height: 10rem;
	color: hsla(0, 0%, 100%, 0.85);
	font-size: 1.35rem;
	line-height: 1.4;
	max-width: 100%;
}

.ig-card-file {
	word-break: break-all;
	font-weight: 500;
}

.ig-card-hint {
	display: block;
	margin-top: 0.8rem;
	font-size: 1.15rem;
	font-weight: 400;
	color: hsla(0, 0%, 100%, 0.55);
}

.ig-card-body {
	padding: 1.2rem 1.4rem 1.6rem;
}

.ig-card-title {
	margin: 0 0 0.6rem;
	font-size: 1.55rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--color-darker-gray);
}

.ig-card-caption {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.5;
	color: var(--color-primary-text);
	white-space: pre-wrap;
	word-break: break-word;
}

/* --- Messages list --- */
#feed[data-view="messages"] {
	max-width: 56rem;
}

.msg-card {
	background: var(--color-white, #fff);
	border: 1px solid var(--color-light-gray, #e6e6e6);
	border-radius: 4px;
	padding: 1.4rem 1.8rem;
}

.msg-card-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
	color: var(--color-secondary-text);
}

.msg-card-thread {
	font-weight: 600;
	color: var(--ghost-accent-color);
	font-size: 1.35rem;
}

.msg-card-preview {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.5;
	color: var(--color-primary-text);
	white-space: pre-wrap;
	word-break: break-word;
}

/* --- Activity (compact) --- */
#feed[data-view="activity"] {
	max-width: 62rem;
	gap: 1.2rem;
}

.act-card {
	background: var(--color-white, #fff);
	border: 1px solid var(--color-light-gray, #e6e6e6);
	border-radius: 4px;
	padding: 1rem 1.4rem;
}

.act-card-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 0.35rem;
	font-size: 1.25rem;
	color: var(--color-secondary-text);
}

.act-card-kind {
	font-weight: 600;
	text-transform: capitalize;
	color: var(--ghost-accent-color);
}

.act-card-title {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--color-darker-gray);
}

.act-card-body {
	margin: 0.35rem 0 0;
	font-size: 1.35rem;
	line-height: 1.45;
	color: var(--color-secondary-text);
	white-space: pre-wrap;
	word-break: break-word;
}
