/**
 * Jisento — Agency surfaces
 * Header wordmark, footer polish, 404, editorial blog, reveal helpers.
 * Widget-specific composition lives in Jisento Core.
 */

.jisento-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--jisento-text);
	font-family: var(--jisento-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}

.jisento-wordmark-mark {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: linear-gradient(135deg, var(--jisento-primary), var(--jisento-accent));
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0;
	box-shadow: var(--jisento-shadow-brand);
}

.jisento-wordmark:hover,
.jisento-wordmark:focus-visible {
	color: var(--jisento-text);
}

.jisento-wordmark--on-dark,
.jisento-footer .jisento-wordmark {
	color: var(--jisento-text);
}

.jisento-header .custom-logo-link img,
.jisento-footer .custom-logo-link img,
.jisento-wordmark--logo img {
	display: block;
	max-height: 48px;
	width: auto;
	height: auto;
	max-width: 168px;
	object-fit: contain;
	mix-blend-mode: multiply;
	background: transparent;
}

.jisento-footer .custom-logo-link img,
.jisento-footer .jisento-wordmark--logo img {
	max-height: 56px;
	max-width: 180px;
}

.jisento-eyebrow {
	margin: 0 0 var(--jisento-space-3);
	color: var(--jisento-primary);
	font-family: var(--jisento-font-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: var(--jisento-ls-wide);
	text-transform: uppercase;
}

.jisento-footer-label {
	margin: 0 0 var(--jisento-space-3);
	color: var(--jisento-muted);
	font-family: var(--jisento-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jisento-footer-tagline,
.jisento-footer-cta-copy,
.jisento-footer-note {
	max-width: 36ch;
	color: var(--jisento-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

.jisento-footer-email {
	display: inline-block;
	margin-top: var(--jisento-space-3);
	color: var(--jisento-text);
	font-family: var(--jisento-font-heading);
	font-weight: 500;
}

.jisento-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jisento-footer-menu a {
	color: var(--jisento-text);
	font-size: 0.875rem;
	font-weight: 500;
}

.jisento-footer-menu a:hover,
.jisento-footer-menu a:focus-visible {
	color: var(--jisento-primary);
}

.jisento-social {
	list-style: none;
	display: flex;
	gap: var(--jisento-space-4);
	margin: 0;
	padding: 0;
}

.jisento-social a {
	color: var(--jisento-muted);
	font-size: var(--jisento-fs-sm);
}

.jisento-copyright,
.jisento-footer-note {
	margin: 0;
	color: var(--jisento-muted);
	font-size: 0.75rem;
}

/* 404 */

.jisento-404 {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 72vh;
	padding-block: var(--jisento-space-8);
	overflow: hidden;
}

.jisento-404-index {
	position: absolute;
	right: -4vw;
	top: 8%;
	margin: 0;
	color: var(--jisento-primary-soft);
	font-family: var(--jisento-font-heading);
	font-size: clamp(8rem, 28vw, 22rem);
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 0.8;
	pointer-events: none;
	user-select: none;
}

.jisento-404-copy {
	position: relative;
	z-index: 1;
	max-width: 38rem;
}

.jisento-404-title {
	margin-bottom: var(--jisento-space-4);
}

.jisento-404-description {
	max-width: 42ch;
	color: var(--jisento-muted);
}

.jisento-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jisento-space-3);
	margin-top: var(--jisento-space-5);
}

/* Insights / archive */

.jisento-archive-header {
	max-width: 40rem;
	margin-bottom: var(--jisento-space-7);
}

.jisento-archive-title {
	margin: 0;
}

.jisento-insights-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: var(--jisento-space-6);
	align-items: center;
	margin-bottom: var(--jisento-space-8);
	padding: 1.5rem;
	border: 1px solid var(--jisento-border);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: var(--jisento-shadow-sm, 0 10px 30px rgba(27, 33, 64, 0.06));
}

.jisento-featured-split {
	display: contents;
}

.jisento-featured-copy {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.jisento-featured-title {
	margin: 0;
	font-size: clamp(1.6rem, 2.4vw, 2.35rem);
	line-height: 1.15;
}

.jisento-insights-featured .jisento-post-thumbnail {
	display: block;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.jisento-insights-featured .jisento-post-thumbnail img,
.jisento-thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jisento-thumb-fallback {
	min-height: 180px;
	background:
		linear-gradient(135deg, rgba(61, 91, 255, 0.18), rgba(62, 198, 212, 0.2)),
		var(--jisento-bg-soft);
}

.jisento-post-card .jisento-post-thumbnail {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.jisento-post-card .jisento-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jisento-home-insights-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.jisento-hub-layout {
	display: grid;
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
	gap: 2rem;
	align-items: start;
	padding-block: 1.5rem 2rem;
}

.jisento-hub-sidebar {
	position: sticky;
	top: 96px;
	padding: 1.25rem;
	border: 1px solid var(--jisento-border);
	border-radius: 18px;
	background: #fff;
}

.jisento-hub-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jisento-primary);
}

.jisento-hub-toc {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.jisento-hub-toc a {
	color: var(--jisento-muted);
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.35rem 0;
	border-left: 2px solid transparent;
	padding-left: 0.65rem;
}

.jisento-hub-toc a.is-active,
.jisento-hub-toc a:hover {
	color: var(--jisento-primary);
	border-left-color: var(--jisento-primary);
}

.jisento-hub-article,
.jisento-el-hub-article,
.jisento-el-hub-content {
	max-width: none;
}

.jisento-hub-article .jisento-entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	max-width: 48rem;
}

.jisento-hub-article .jisento-entry-title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
}

.jisento-hub-cta {
	padding-top: 1rem;
	border-top: 1px solid var(--jisento-border);
}

.jisento-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	font-size: 0.875rem;
	color: var(--jisento-muted);
}

.jisento-crumbs li:not(:last-child)::after {
	content: "›";
	margin-left: 0.5rem;
	color: #9aa3b8;
}

.jisento-crumbs a {
	color: var(--jisento-muted);
	text-decoration: none;
}

.jisento-crumbs a:hover {
	color: var(--jisento-primary);
}

.jisento-hub-index__brand {
	display: inline-flex;
	align-items: center;
	margin: 0 0 1rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--jisento-border);
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--jisento-dark);
	text-decoration: none;
}

.jisento-hub-index__group {
	border-bottom: 1px solid var(--jisento-border);
}

.jisento-hub-index summary {
	cursor: pointer;
	padding: 0.75rem 0;
	font-weight: 650;
	list-style: none;
}

.jisento-hub-index ul {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0 0 0 0.35rem;
}

.jisento-hub-index a {
	display: block;
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	color: var(--jisento-muted);
	text-decoration: none;
	font-size: 0.9rem;
}

.jisento-hub-index a.is-current,
.jisento-hub-index a:hover {
	color: #7b2cbf;
	background: rgba(123, 44, 191, 0.06);
}

.jisento-hub-railcol,
.jisento-hub-navcol {
	position: sticky;
	top: 88px;
}

.jisento-hub-rail__label {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--jisento-dark);
}

.jisento-hub-toc a.is-active {
	background: #f3e8ff;
	color: #7b2cbf;
	border-left-color: #7b2cbf;
	border-radius: 0 8px 8px 0;
}

.jisento-hub-helpful,
.jisento-hub-share {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--jisento-border);
}

.jisento-hub-helpful__votes {
	display: flex;
	gap: 8px;
	margin-bottom: 0.75rem;
}

.jisento-hub-vote,
.jisento-hub-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--jisento-border);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	text-decoration: none;
	color: var(--jisento-dark);
}

.jisento-hub-vote.is-on {
	border-color: #1b2140;
	background: #1b2140;
	color: #fff;
}

.jisento-hub-helpful textarea {
	width: 100%;
	border: 1px solid var(--jisento-border);
	border-radius: 12px;
	padding: 0.75rem;
	min-height: 88px;
	margin-bottom: 0.65rem;
}

.jisento-hub-send {
	border: 0;
	border-radius: 10px;
	background: #1b2140;
	color: #fff;
	font-weight: 700;
	padding: 0.7rem 1.1rem;
	cursor: pointer;
}

.jisento-hub-share ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jisento-hub-pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2.5rem 0 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--jisento-border);
}

.jisento-hub-pager a {
	color: inherit;
	text-decoration: none;
	max-width: 48%;
}

.jisento-hub-pager .is-next {
	text-align: right;
	margin-left: auto;
}

.jisento-hub-pager span {
	display: block;
	font-size: 0.8rem;
	color: var(--jisento-muted);
}

.jisento-hub-more {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.4rem;
	border-radius: 16px;
	background: #f3e8ff;
	margin: 1.5rem 0 2rem;
}

.jisento-hub-more p {
	margin: 0.3rem 0 0;
	color: var(--jisento-muted);
}

.jisento-hub-more__btn {
	display: inline-flex;
	padding: 0.7rem 1.1rem;
	border-radius: 999px;
	background: #1b2140;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.jisento-hub-related h2,
.jisento-hub-support h2 {
	margin: 0 0 0.85rem;
}

.jisento-hub-related ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.jisento-hub-related a {
	color: #7b2cbf;
	font-weight: 650;
}

.jisento-hub-support {
	padding: 2.5rem 0 4rem;
}

.jisento-hub-support__lede {
	margin: 0 0 1.5rem;
	color: var(--jisento-muted);
}

.jisento-hub-support__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.jisento-hub-support__card {
	padding: 1.35rem;
	border: 1px solid var(--jisento-border);
	border-radius: 16px;
	background: #f7f8fb;
}

.jisento-hub-support__icon {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.jisento-hub-support__card a {
	color: var(--jisento-dark);
	font-weight: 650;
}

.jisento-comments-area {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--jisento-border);
}

[data-jis-reveal] {
	opacity: 1;
	transform: none;
}

.js [data-jis-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity var(--jisento-duration-slow) var(--jisento-ease),
		transform var(--jisento-duration-slow) var(--jisento-ease);
}

.js [data-jis-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js [data-jis-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
