/* T-025 — base visual layer (structure + shared components). Variant packs add the look. */

body.t025 {
	background-color: var(--t025-bg) !important;
	background-image: none !important;
	color: var(--t025-ink);
	font-family: var(--t025-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.t025 ::selection {
	background: var(--t025-accent);
	color: #fff;
}

body.t025 a {
	color: var(--t025-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .18s ease;
}

body.t025 a:hover {
	color: var(--t025-ink);
}

body.t025 h1,
body.t025 h2,
body.t025 h3,
body.t025 h4,
body.t025 .entry-title,
body.t025 .post-title,
body.t025 .site-title,
body.t025 .widget-title {
	font-family: var(--t025-font-display);
	color: var(--t025-ink);
	letter-spacing: -.015em;
}

.t025-brand {
	font-family: var(--t025-font-display);
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--t025-header-ink);
	text-decoration: none;
	white-space: nowrap;
}

.t025-brand:hover {
	color: var(--t025-accent-2) !important;
}

.t025-container {
	width: 100%;
	max-width: var(--t025-container);
	margin-inline: auto;
	padding-inline: var(--t025-gutter);
}

/* ---------- buttons ---------- */
.t025-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--t025-btn-radius, 999px);
	font-family: var(--t025-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.t025-btn--primary {
	background: var(--t025-accent) !important;
	border-color: var(--t025-accent) !important;
	color: var(--t025-btn-ink, #fff) !important;
}

.t025-btn--primary *,
.t025-btn--ghost * {
	color: inherit !important;
}

.t025-btn--primary:hover {
	background: var(--t025-accent-2);
	border-color: var(--t025-accent-2);
	color: var(--t025-btn-ink, #fff);
	transform: translateY(-2px);
}

.t025-btn--ghost {
	background: transparent !important;
	border-color: var(--t025-ghost-border, currentColor) !important;
	color: var(--t025-ghost-ink, currentColor) !important;
}

.t025-btn--ghost:hover {
	background: var(--t025-ghost-hover-bg, rgba(0, 0, 0, .06));
	color: var(--t025-ghost-ink, currentColor);
	transform: translateY(-2px);
}

/* ---------- hero (structure; look per variant) ---------- */
.t025-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--t025-hero-ink, #fff);
	background: var(--t025-hero-bg, #111);
}

.t025-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--t025-hero-bg, #111);
	background-size: cover;
	background-position: var(--t025-hero-pos, center 35%);
	background-repeat: no-repeat;
	filter: var(--t025-hero-filter, saturate(.9) contrast(1.02));
	transform: scale(var(--t025-hero-scale, 1));
	transition: transform 8s ease-out;
}

.t025-hero__grain {
	position: absolute;
	inset: 0;
	opacity: .16;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.6'/></svg>");
	background-size: 180px 180px;
}

.t025-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--t025-shade, linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.72) 100%));
}

.t025-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2vh, 24px);
	align-items: flex-start;
	justify-content: flex-end;
	min-height: var(--t025-hero-h, 78vh);
	padding-top: var(--t025-hero-pt, 140px);
	padding-bottom: var(--t025-hero-pb, 64px);
}

.t025-hero .t025-hero__kicker {
	margin: 0 !important;
	font-family: var(--t025-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--t025-kicker, var(--t025-accent));
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.t025-hero__kicker::before {
	content: "";
	display: inline-block;
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: .8;
}

.t025-hero .t025-hero__title {
	margin: 0 !important;
	font-size: var(--t025-hero-title-size, clamp(40px, 6vw, 76px)) !important;
	font-family: var(--t025-hero-title-font, var(--t025-font-display)) !important;
	font-weight: var(--t025-hero-title-weight, 600) !important;
	line-height: 1.02 !important;
	letter-spacing: -.03em !important;
	color: var(--t025-hero-ink, #fff) !important;
	max-width: var(--t025-hero-title-w, 16ch);
	text-wrap: balance;
}

.t025-hero .t025-hero__lead {
	margin: 0 !important;
	max-width: var(--t025-hero-lead-w, 52ch);
	font-family: var(--t025-font-body);
	font-size: clamp(15px, 1.3vw, 19px);
	line-height: 1.55;
	color: var(--t025-hero-lead-ink, rgba(255, 255, 255, .82)) !important;
}

.t025-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.t025-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	font-family: var(--t025-font-body);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--t025-hero-meta-ink, rgba(255, 255, 255, .6));
}

.t025-hero__dot {
	opacity: .5;
}

/* ---------- header polish ---------- */
body.t025 .t025-header-stuck {
	box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .5);
}

body.t025 header a:focus-visible,
body.t025 .t025-btn:focus-visible,
body.t025 button:focus-visible {
	outline: 2px solid var(--t025-accent);
	outline-offset: 3px;
}

/* ---------- cards (generic helpers used by theme adapters) ---------- */
body.t025 .t025-card {
	background: var(--t025-surface);
	border: 1px solid var(--t025-line);
	border-radius: var(--t025-radius);
	overflow: hidden;
}

body.t025 .t025-card img {
	display: block;
	width: 100%;
	height: auto;
}

body.t025 .t025-card:hover {
	border-color: var(--t025-accent);
}

/* ---------- footer base ---------- */
body.t025 footer,
body.t025 .site-footer,
body.t025 #colophon {
	background: var(--t025-footer-bg) !important;
	color: var(--t025-footer-ink) !important;
}

body.t025 footer a,
body.t025 #colophon a {
	color: var(--t025-footer-ink) !important;
	opacity: .82;
	text-decoration: none;
}

body.t025 footer a:hover,
body.t025 #colophon a:hover {
	color: var(--t025-accent-2) !important;
	opacity: 1;
}

body.t025 footer .widget-title,
body.t025 footer h2,
body.t025 footer h3 {
	color: var(--t025-footer-ink) !important;
	font-family: var(--t025-font-display);
}

/* ---------- reveal ---------- */
html.t025-reveal-ready body.t025 .t025-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .6s ease, transform .6s ease;
}

html.t025-reveal-ready body.t025 .t025-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	.t025-brand {
	font-family: var(--t025-font-display);
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--t025-header-ink);
	text-decoration: none;
	white-space: nowrap;
}

.t025-brand:hover {
	color: var(--t025-accent-2) !important;
}

.t025-container {
		padding-inline: 18px;
	}

	.t025-hero__inner {
		min-height: var(--t025-hero-h-m, 72vh);
		padding-top: var(--t025-hero-pt-m, 108px);
		padding-bottom: var(--t025-hero-pb-m, 44px);
	}

	.t025-hero__title {
		font-size: var(--t025-hero-title-m, clamp(30px, 9.4vw, 44px));
		max-width: 100%;
	}

	.t025-hero__lead {
		font-size: 15px;
	}

	.t025-btn {
		padding: 13px 20px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.t025 *,
	body.t025 *::before,
	body.t025 *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}

	.t025-hero__bg {
		transform: none !important;
	}

	html.t025-reveal-ready body.t025 .t025-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Front-page composition (rendered by T-025; theme front content hidden)
   ========================================================================== */
body.t025-front .t025-home {
	padding-top: clamp(28px, 3.4vw, 52px);
	padding-bottom: clamp(40px, 5vw, 76px);
}

body.t025-front .t025-home__section {
	padding: clamp(28px, 3.6vw, 56px) 0;
	border-bottom: 1px solid var(--t025-line);
}

body.t025-front .t025-home__section:last-child {
	border-bottom: 0;
}

.t025-section-head {
	margin-bottom: clamp(20px, 2.4vw, 32px);
}

.t025-section-kicker {
	margin: 0 0 8px;
	font-family: var(--t025-font-body);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--t025-accent);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.t025-section-kicker::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--t025-accent-2);
	display: inline-block;
}

.t025-section-title {
	margin: 0;
	font-family: var(--t025-font-display);
	font-size: clamp(28px, 3.2vw, 44px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.025em;
	color: var(--t025-ink);
}

/* posts grid */
.t025-posts {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 28px);
}

.t025-card {
	grid-column: span 4;
	display: flex;
	flex-direction: column;
	background: var(--t025-surface);
	border: 1px solid var(--t025-line);
	border-radius: var(--t025-radius);
	overflow: hidden;
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.t025-card:hover {
	transform: translateY(-4px);
	border-color: var(--t025-accent);
	box-shadow: 0 24px 46px -32px rgba(0, 0, 0, .45);
}

.t025-card--lead {
	grid-column: span 6;
}

.t025-card__media {
	display: block;
	overflow: hidden;
	background: var(--t025-surface-2);
}

.t025-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform .6s ease;
}

.t025-card:hover .t025-card__media img {
	transform: scale(1.04);
}

.t025-card__placeholder {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--t025-surface-2), var(--t025-surface));
}

.t025-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.t025-card__cat {
	margin: 0;
	font-family: var(--t025-font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--t025-accent);
}

.t025-card__title {
	margin: 0;
	font-size: clamp(17px, 1.4vw, 21px);
	line-height: 1.22;
	font-family: var(--t025-font-display);
	font-weight: 600;
}

.t025-card--lead .t025-card__title {
	font-size: clamp(20px, 1.8vw, 26px);
}

.t025-card__title a {
	color: var(--t025-ink);
	text-decoration: none;
}

.t025-card__title a:hover {
	color: var(--t025-accent);
}

.t025-card__excerpt {
	margin: 0;
	font-family: var(--t025-font-body);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--t025-muted);
}

.t025-card__meta {
	margin: auto 0 0;
	padding-top: 8px;
	font-family: var(--t025-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--t025-muted);
	opacity: .8;
}

/* categories */
.t025-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.t025-cats__list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 1px solid var(--t025-line);
	border-radius: 999px;
	background: var(--t025-surface);
	color: var(--t025-ink);
	font-family: var(--t025-font-body);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.t025-cats__list a span {
	font-size: 11px;
	color: var(--t025-muted);
}

.t025-cats__list a:hover {
	border-color: var(--t025-accent);
	color: var(--t025-accent);
}

/* more list */
.t025-more {
	list-style: none;
	margin: 0;
	padding: 0;
}

.t025-more li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: baseline;
	padding: 16px 0;
	border-bottom: 1px solid var(--t025-line);
}

.t025-more li:last-child {
	border-bottom: 0;
}

.t025-more__num {
	font-family: var(--t025-font-display);
	font-size: 20px;
	font-style: italic;
	color: var(--t025-accent-2);
}

.t025-more a {
	font-family: var(--t025-font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--t025-ink);
	text-decoration: none;
}

.t025-more a:hover {
	color: var(--t025-accent);
}

.t025-more__date {
	font-family: var(--t025-font-body);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--t025-muted);
}

/* hide the parent theme front-page content (kept in DOM for SEO; DB untouched) */
body.t025-front main,
body.t025-front #main,
body.t025-front .site-main,
body.t025-front .site-content,
body.t025-front #content,
body.t025-front #primary,
body.t025-front .content-area,
body.t025-front .section-wrapper,
body.t025-front .mg-posts-sec,
body.t025-front .af-main-banner,
body.t025-front .af-container,
body.t025-front .dt-posts,
body.t025-front .blog-grid-view-post,
body.t025-front .widget-area,
body.t025-front .sidebar,
body.t025-front .site-sidebar,
body.t025-front .secondary {
	display: none !important;
}

@media (max-width: 1024px) {
	.t025-card,
	.t025-card--lead {
		grid-column: span 6;
	}
}

@media (max-width: 767px) {
	.t025-card,
	.t025-card--lead {
		grid-column: span 12;
	}

	.t025-more li {
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 10px;
	}

	.t025-more__date {
		display: none;
	}
}

/* front page: our footer replaces the theme footer (theme footer stays on inner pages) */
body.t025-front #footer,
body.t025-front #colophon,
body.t025-front .site-footer,
body.t025-front .site-info,
body.t025-front .site-footer-overlay {
	display: none !important;
}

.t025-footer {
	background: var(--t025-footer-bg);
	color: var(--t025-footer-ink);
	padding: clamp(36px, 4vw, 56px) 0 22px;
}

.t025-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}

.t025-footer__brand a {
	font-family: var(--t025-font-display);
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--t025-footer-ink) !important;
	text-decoration: none;
}

.t025-footer__brand p {
	margin: 10px 0 0;
	max-width: 40ch;
	font-family: var(--t025-font-body);
	font-size: 13.5px;
	line-height: 1.55;
	opacity: .66;
}

.t025-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.t025-footer__nav a {
	font-family: var(--t025-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--t025-footer-ink) !important;
	opacity: .78;
	text-decoration: none;
}

.t025-footer__nav a:hover {
	color: var(--t025-accent-2) !important;
	opacity: 1;
}

.t025-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	font-family: var(--t025-font-body);
	font-size: 11.5px;
	letter-spacing: .06em;
	opacity: .6;
}

.t025-footer__meta a {
	color: var(--t025-footer-ink) !important;
	text-decoration: none;
}

@media (max-width: 900px) {
	.t025-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.t025-footer__meta {
		align-items: flex-start;
	}
}

/* ==========================================================================
   T-025 front-page header (theme header is hidden on the front page only)
   ========================================================================== */
.t025-header {
	position: sticky;
	top: 0;
	z-index: 99999;
	background: var(--t025-header-bg);
	color: var(--t025-header-ink);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.t025-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
	padding-block: 10px;
}

.t025-header .t025-brand {
	flex-shrink: 0;
	max-width: 34%;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--t025-font-display);
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--t025-header-ink) !important;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
}

.t025-nav {
	margin-left: auto;
	min-width: 0;
	overflow: hidden;
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}

.t025-nav__list ul {
	display: none !important;
}

.t025-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
	min-width: 0;
}

.t025-nav__list li {
	margin: 0;
}

.t025-nav__list a {
	display: inline-block;
	padding: 8px 11px;
	font-family: var(--t025-font-body);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--t025-header-ink) !important;
	text-decoration: none;
	opacity: .82;
	white-space: nowrap;
	border-radius: 2px;
}

.t025-nav__list a:hover,
.t025-nav__list .current-menu-item > a,
.t025-nav__list .current_page_item > a {
	color: var(--t025-accent-2) !important;
	opacity: 1;
}

.t025-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.t025-header__cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	font-family: var(--t025-font-body);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--t025-header-ink) !important;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.t025-header__cta:hover {
	background: var(--t025-accent);
	border-color: var(--t025-accent);
	color: #fff !important;
}

.t025-burger {
	display: none;
	width: 40px;
	height: 40px;
	padding: 9px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.t025-burger span {
	display: block;
	height: 2px;
	margin: 3px 0;
	background: var(--t025-header-ink);
}

@media (max-width: 900px) {
	.t025-header__inner {
		min-height: 62px;
		gap: 10px;
		min-width: 0;
	}

	.t025-header .t025-brand {
		max-width: calc(100vw - 92px);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 18px !important;
	}

	.t025-header__actions {
		flex-shrink: 0;
	}

	.t025-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--t025-header-bg);
		border-bottom: 1px solid rgba(255, 255, 255, .1);
		padding: 10px var(--t025-gutter) 16px;
		margin: 0;
	}

	.t025-nav.is-open {
		display: block;
	}

	.t025-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.t025-nav__list a {
		padding: 10px 0;
		font-size: 13px;
	}

	.t025-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
	}

	.t025-header__cta {
		display: none;
	}
}

/* hide only the parent theme chrome on the front page */
body.t025-front header:not(.t025-header),
body.t025-front footer:not(.t025-footer),
body.t025-front .site-header,
body.t025-front #masthead,
body.t025-front #colophon,
body.t025-front .site-footer,
body.t025-front .site-info {
	display: none !important;
}
