/*
Theme Name: Traynex
Theme URI: https://traynex.example.com/
Author: Traynex
Author URI: https://traynex.example.com/
Description: A fast, accessible, fully responsive WordPress theme for Traynex — a corporate wellness platform built for India. Converted from the Traynex design system with an editable Customizer-driven front page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traynex
Tags: business, one-column, two-columns, custom-menu, custom-logo, custom-colors, featured-images, sticky-post, translation-ready, blog, editor-style, wide-blocks
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
	--tx-bg:          #FAFAF8;
	--tx-bg-alt:      #F1F1EE;
	--tx-bg-alt-2:    #E9E9E4;
	--tx-bg-frame:    #EBEBE7;
	--tx-ink:         #14181F;
	--tx-ink-2:       #3D444C;
	--tx-muted:       #5B6570;
	--tx-muted-2:     #6B737C;
	--tx-accent:      #E63A2E;
	--tx-accent-hi:   #ff4b3d;
	--tx-accent-lo:   #CF3327;
	--tx-accent-deep: #B32B20;
	--tx-white:       #FFFFFF;

	--tx-line:   rgba(14,17,22,.08);
	--tx-line-2: rgba(14,17,22,.12);
	--tx-line-3: rgba(14,17,22,.14);
	--tx-line-4: rgba(14,17,22,.22);

	--tx-accent-a06: rgba(230,58,46,.06);
	--tx-accent-a12: rgba(230,58,46,.12);
	--tx-accent-a35: rgba(230,58,46,.35);
	--tx-accent-a45: rgba(230,58,46,.45);

	--tx-display: 'Archivo', 'Archivo Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tx-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--tx-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--tx-max: 1240px;
	--tx-gutter: 48px;
	--tx-section-y: clamp(64px, 8vw, 110px);
	--tx-radius: 2px;
	--tx-radius-lg: 6px;
	--tx-shadow: 0 12px 30px rgba(14,17,22,.12);
	--tx-shadow-accent: 0 12px 30px rgba(230,58,46,.35);
	--tx-ease: .18s ease;
	--tx-header-h: 71px;
}

@media (max-width: 1024px) { :root { --tx-gutter: 32px; --tx-header-h: 65px; } }
@media (max-width: 640px)  { :root { --tx-gutter: 20px; } }

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--tx-bg);
	color: var(--tx-ink);
	font-family: var(--tx-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

a {
	color: var(--tx-accent);
	text-decoration: none;
	transition: color var(--tx-ease), background-color var(--tx-ease), border-color var(--tx-ease);
}
a:hover { color: var(--tx-accent-hi); }

::selection { background: var(--tx-accent); color: #fff; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--tx-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Section anchors clear the sticky header. */
[id] { scroll-margin-top: calc(var(--tx-header-h) + 16px); }

.tx-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--tx-accent);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}
.tx-skip-link:focus {
	left: 8px;
	top: 8px;
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto; width: auto;
	left: 8px; top: 8px;
	padding: 12px 20px;
	background: var(--tx-accent);
	color: #fff;
	z-index: 100000;
	font-size: 14px;
}

/* =========================================================
   3. PRIMITIVES
   ========================================================= */
.tx-wrap { max-width: var(--tx-max); margin: 0 auto; }

.tx-section {
	padding: var(--tx-section-y) var(--tx-gutter);
	border-bottom: 1px solid var(--tx-line);
}
.tx-section--flush { border-bottom: 0; }

.tx-eyebrow {
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tx-accent);
	margin: 0 0 18px;
}
.tx-eyebrow--muted { color: var(--tx-muted-2); }

.tx-h1 {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(2.6rem, 7.4vw, 5.25rem);
	line-height: .92;
	letter-spacing: -.035em;
	margin: 0 0 26px;
	text-wrap: balance;
}
.tx-h1 .tx-accent { color: var(--tx-accent); }

.tx-h2 {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	line-height: 1.02;
	letter-spacing: -.03em;
	margin: 0 0 24px;
	text-wrap: balance;
}

.tx-lede {
	font-size: clamp(1rem, 1.35vw, 1.1875rem);
	line-height: 1.7;
	color: var(--tx-muted);
	margin: 0;
	text-wrap: pretty;
}

/* Buttons */
.tx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 30px;
	border-radius: var(--tx-radius);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	border: 1px solid transparent;
	cursor: pointer;
	text-align: center;
}
.tx-btn--primary { background: var(--tx-accent); color: #fff; }
.tx-btn--primary:hover, .tx-btn--primary:focus-visible { background: var(--tx-accent-hi); color: #fff; }
.tx-btn--ghost { border-color: var(--tx-line-4); color: var(--tx-ink); }
.tx-btn--ghost:hover, .tx-btn--ghost:focus-visible { border-color: var(--tx-ink); color: var(--tx-ink); }
.tx-btn--sm {
	padding: 11px 20px;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tx-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Chips + tags */
.tx-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid rgba(14,17,22,.16);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tx-ink-2);
	transition: border-color var(--tx-ease), color var(--tx-ease), background-color var(--tx-ease);
}
.tx-pill:hover {
	border-color: var(--tx-accent);
	color: var(--tx-accent);
	background: var(--tx-accent-a06);
}

.tx-tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background: var(--tx-accent-a12);
	border: 1px solid var(--tx-accent-a35);
	border-radius: var(--tx-radius);
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tx-accent-deep);
}

.tx-chipline { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-chipline--12 { gap: 12px; }

/* The skewed 3-bar mark */
.tx-mark {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 22px;
	transform: skewX(-18deg);
	flex: none;
}
.tx-mark i { display: block; width: 7px; height: 22px; background: var(--tx-accent); border-radius: 1px; }
.tx-mark i:last-child { height: 10px; }
.tx-mark--sm { height: 16px; gap: 3px; }
.tx-mark--sm i { width: 5px; height: 16px; }
.tx-mark--sm i:last-child { height: 8px; }

/* Hairline grids: 1px gaps reveal the background as rules. */
.tx-rules {
	display: grid;
	gap: 1px;
	background: var(--tx-line);
}
.tx-rules--boxed { border: 1px solid var(--tx-line); }

/* =========================================================
   4. HEADER
   ========================================================= */
.tx-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px var(--tx-gutter);
	background: rgba(250,250,248,.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--tx-line);
}

.tx-brand { display: flex; align-items: center; gap: 12px; color: var(--tx-ink); }
.tx-brand:hover { color: var(--tx-ink); }
.tx-brand__word {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: 24px;
	letter-spacing: -.02em;
	line-height: 1;
}
.tx-brand__logo { max-height: 34px; width: auto; }

.tx-nav ul {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}
.tx-nav a { color: var(--tx-muted); }
.tx-nav a:hover,
.tx-nav .current-menu-item > a,
.tx-nav .current_page_item > a { color: var(--tx-ink); }

.tx-header__cta { flex: none; }

.tx-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--tx-line-4);
	border-radius: var(--tx-radius);
	cursor: pointer;
	flex: none;
}
.tx-burger__box { display: block; width: 20px; height: 14px; position: relative; }
.tx-burger__box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--tx-ink);
	border-radius: 2px;
	transition: transform .22s ease, opacity .16s ease, top .22s ease;
}
.tx-burger__box span:nth-child(1) { top: 0; }
.tx-burger__box span:nth-child(2) { top: 6px; }
.tx-burger__box span:nth-child(3) { top: 12px; }
.tx-burger[aria-expanded="true"] .tx-burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.tx-burger[aria-expanded="true"] .tx-burger__box span:nth-child(2) { opacity: 0; }
.tx-burger[aria-expanded="true"] .tx-burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
	.tx-header { padding: 12px var(--tx-gutter); }
	.tx-burger { display: inline-flex; }

	.tx-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 8px var(--tx-gutter) 24px;
		background: var(--tx-bg);
		border-bottom: 1px solid var(--tx-line);
		box-shadow: 0 18px 40px rgba(14,17,22,.10);
		max-height: calc(100dvh - var(--tx-header-h));
		overflow-y: auto;
	}
	.tx-header__panel.is-open { display: flex; }

	.tx-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		font-size: 16px;
	}
	.tx-nav li { border-bottom: 1px solid var(--tx-line); }
	.tx-nav a { display: block; padding: 15px 2px; color: var(--tx-ink); }

	.tx-header__cta { margin-top: 20px; }
	.tx-header__cta .tx-btn { width: 100%; }
}

/* On desktop the wrapper dissolves so the nav and CTA sit as direct flex
   children of the header, reproducing the original three-part spacing. */
@media (min-width: 1025px) {
	.tx-header__panel { display: contents; }
}

/* =========================================================
   5. HERO
   ========================================================= */
.tx-hero {
	position: relative;
	/* Contains the watermark's deliberate bleed. `clip` rather than `hidden` so
	   no scroll container is created; the 48px gutter means the floating stat
	   cards, which sit only a few pixels proud, are never touched. */
	overflow-x: clip;
	padding: clamp(72px, 9vw, 150px) var(--tx-gutter) clamp(64px, 7vw, 110px);
	background: var(--tx-bg);
	border-bottom: 1px solid var(--tx-line);
}
.tx-hero__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(1100px 560px at 78% 0%, rgba(230,58,46,.08), transparent 62%);
	pointer-events: none;
}
.tx-hero__ghost {
	position: absolute;
	top: 180px;
	right: -4vw;
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(96px, 17vw, 220px);
	line-height: 1;
	letter-spacing: -.02em;
	color: rgba(14,17,22,.05);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.tx-hero__inner {
	position: relative;
	max-width: var(--tx-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 64px;
	align-items: start;
}

.tx-hero__badge-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border: 1px solid var(--tx-accent-a45);
	border-radius: var(--tx-radius);
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: .14em;
	color: var(--tx-accent-deep);
	text-transform: uppercase;
	margin-bottom: 30px;
}
.tx-hero__lede { max-width: 560px; margin: 0 0 34px; font-size: clamp(1rem, 1.4vw, 1.1875rem); }
.tx-hero__actions { margin-bottom: 36px; }

.tx-proof { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.tx-proof__avatars { display: flex; }
.tx-proof__avatar {
	width: 38px; height: 38px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--tx-display);
	font-weight: 800;
	font-size: 13px;
	color: #fff;
	border: 2px solid var(--tx-bg);
	margin-left: -10px;
	flex: none;
}
.tx-proof__avatar:first-child { margin-left: 0; }
.tx-proof__title { color: var(--tx-ink); font-weight: 700; font-size: 14px; }
.tx-proof__sub { color: var(--tx-muted-2); font-size: 12px; font-family: var(--tx-mono); }

.tx-hero__media { position: relative; height: 640px; min-height: 640px; }
.tx-hero__frame {
	position: absolute;
	inset: 0;
	border-radius: var(--tx-radius-lg);
	overflow: hidden;
	background: var(--tx-bg-frame);
}
.tx-hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.tx-hero__badges { display: contents; }

.tx-stat-card {
	position: absolute;
	padding: 14px 18px;
	background: var(--tx-white);
	border: 1px solid var(--tx-line-3);
	border-radius: 8px;
	box-shadow: var(--tx-shadow);
	transition: border-color var(--tx-ease);
	z-index: 2;
}
.tx-stat-card:hover { border-color: var(--tx-accent); }
.tx-stat-card--accent {
	background: var(--tx-accent);
	border-color: var(--tx-accent);
	box-shadow: var(--tx-shadow-accent);
}
.tx-stat-card__n { font-family: var(--tx-display); font-weight: 800; font-size: 20px; }
.tx-stat-card__l {
	font-family: var(--tx-mono);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tx-muted-2);
}
.tx-stat-card--accent .tx-stat-card__n { color: #fff; }
.tx-stat-card--accent .tx-stat-card__l { color: rgba(255,255,255,.85); }

.tx-stat-card--a { top: 36px; right: -6px; }
.tx-stat-card--b { bottom: 70px; left: -16px; }
.tx-stat-card--c { bottom: 18px; right: 30px; }

@media (max-width: 1180px) {
	.tx-hero__inner { grid-template-columns: 1fr; gap: 48px; }
	.tx-hero__media { height: auto; min-height: 0; }
	.tx-hero__frame { position: relative; inset: auto; aspect-ratio: 1 / 1; max-height: 620px; }
	.tx-hero__frame img { height: 100%; }
	.tx-stat-card--a { right: 0; }
	.tx-stat-card--b { left: 0; }
	.tx-hero__ghost { top: 90px; }
}

/* Below 900px the floating cards would collide with the photo's own
   overlay, so they drop into a static row beneath it. */
@media (max-width: 900px) {
	.tx-hero__badges {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
		margin-top: 14px;
	}
	.tx-hero__badges > .tx-stat-card { position: static; inset: auto; }
}

@media (max-width: 560px) {
	.tx-hero__badges { grid-template-columns: repeat(2, 1fr); }
	/* A lone third card stretches rather than sitting in a half-empty row. */
	.tx-hero__badges > .tx-stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.tx-hero__ghost { display: none; }
	.tx-hero__actions .tx-btn { width: 100%; }
}

/* =========================================================
   6. STAT BAR
   ========================================================= */
.tx-statbar { padding: 56px var(--tx-gutter); border-bottom: 1px solid var(--tx-line); }
.tx-statbar__grid { grid-template-columns: repeat(4, 1fr); }
.tx-statbar__item {
	background: var(--tx-bg);
	padding: 20px 28px;
	min-width: 0;
	transition: background-color var(--tx-ease), box-shadow var(--tx-ease);
}
.tx-statbar__item:hover { background: var(--tx-bg-alt); box-shadow: inset 0 0 0 1px var(--tx-accent); }
.tx-statbar__top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tx-statbar__n {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(1.75rem, 2.7vw, 2.125rem);
	color: var(--tx-accent);
}
.tx-statbar__label { font-weight: 700; font-size: 16px; }
.tx-statbar__desc { font-size: 13px; color: var(--tx-muted-2); line-height: 1.5; text-wrap: pretty; }

@media (max-width: 900px) { .tx-statbar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tx-statbar__grid { grid-template-columns: 1fr; } }

/* =========================================================
   7. TICKER
   ========================================================= */
.tx-ticker {
	padding: 26px 0;
	background: var(--tx-accent);
	overflow: hidden;
	position: relative;
}
.tx-ticker__track {
	display: flex;
	align-items: center;
	gap: 40px;
	width: max-content;
	padding-left: 40px;
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	animation: tx-marquee 34s linear infinite;
}
.tx-ticker:hover .tx-ticker__track { animation-play-state: paused; }
.tx-ticker__item { white-space: nowrap; }
.tx-ticker__item::after {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	vertical-align: middle;
}

@keyframes tx-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.tx-ticker { padding: 26px var(--tx-gutter); }
	.tx-ticker__track {
		animation: none;
		width: auto;
		padding-left: 0;
		flex-wrap: wrap;
		justify-content: center;
		max-width: var(--tx-max);
		margin: 0 auto;
	}
	.tx-ticker__item::after { display: none; }
	.tx-ticker__clone { display: none; }
}

/* =========================================================
   8. SPLIT SECTIONS (Why / Loves)
   ========================================================= */
.tx-split {
	max-width: var(--tx-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 64px;
	align-items: start;
}

.tx-why__photo { width: 100%; height: 280px; border-radius: var(--tx-radius-lg); overflow: hidden; background: var(--tx-bg-frame); }
.tx-why__photo img { width: 100%; height: 100%; object-fit: cover; }
.tx-why__caption { font-size: 14px; line-height: 1.7; color: var(--tx-muted-2); margin: 16px 0 0; max-width: 240px; }
.tx-why__lede { max-width: 640px; margin: 0 0 40px; font-size: clamp(1rem, 1.3vw, 1.125rem); }

.tx-mission { padding: 32px 34px; border-left: 2px solid var(--tx-accent); background: var(--tx-bg-alt); }
.tx-mission__label {
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tx-muted-2);
	margin-bottom: 14px;
}
.tx-mission__text {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(1.25rem, 2.1vw, 1.625rem);
	line-height: 1.25;
	letter-spacing: -.02em;
}

@media (max-width: 1024px) {
	.tx-split { grid-template-columns: 1fr; gap: 40px; }
	.tx-why__caption { max-width: none; }
}

/* =========================================================
   9. FEATURES
   ========================================================= */
.tx-sechead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	margin-bottom: 56px;
}
.tx-sechead__aside { font-size: 16px; line-height: 1.7; color: var(--tx-muted); max-width: 380px; margin: 0; text-wrap: pretty; }
.tx-sechead .tx-h2 { margin-bottom: 0; }

.tx-features__grid { grid-template-columns: repeat(3, 1fr); }
.tx-feature {
	background: var(--tx-bg);
	padding: 38px 34px 42px;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.tx-feature:hover { background: var(--tx-bg-alt); box-shadow: inset 0 0 0 1px var(--tx-accent); }
.tx-feature__n { font-family: var(--tx-mono); font-size: 11px; letter-spacing: .14em; color: var(--tx-accent); margin-bottom: 22px; }
.tx-feature__t {
	font-family: var(--tx-display);
	font-weight: 800;
	font-size: 21px;
	letter-spacing: -.015em;
	margin: 0 0 12px;
	color: var(--tx-ink);
}
.tx-feature__d { font-size: 15px; line-height: 1.65; color: var(--tx-muted); margin: 0; text-wrap: pretty; }
.tx-feature__items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tx-feature__item {
	padding: 5px 11px;
	border: 1px solid rgba(14,17,22,.18);
	border-radius: var(--tx-radius);
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--tx-muted);
}

.tx-feature--accent { background: var(--tx-accent); }
.tx-feature--accent:hover { background: var(--tx-accent-lo); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.tx-feature--accent .tx-feature__n { color: rgba(255,255,255,.7); }
.tx-feature--accent .tx-feature__t { color: #fff; }
.tx-feature--accent .tx-feature__d { color: rgba(255,255,255,.9); }
.tx-feature--accent .tx-feature__item { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.9); }

@media (max-width: 1024px) { .tx-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
	.tx-features__grid { grid-template-columns: 1fr; }
	.tx-feature { min-height: 0; padding: 30px 24px 34px; }
	.tx-sechead { margin-bottom: 36px; }
}

/* =========================================================
   10. LEAGUE
   ========================================================= */
.tx-league {
	position: relative;
	padding: var(--tx-section-y) var(--tx-gutter);
	background:
		radial-gradient(900px 500px at 15% 20%, rgba(230,58,46,.09), transparent 60%),
		linear-gradient(180deg, var(--tx-bg-alt), var(--tx-bg));
	border-bottom: 1px solid var(--tx-line);
}
.tx-league__inner {
	max-width: var(--tx-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}
.tx-league__photo {
	aspect-ratio: 1114 / 832;
	max-height: 520px;
	border: 1px solid rgba(14,17,22,.10);
	border-radius: var(--tx-radius-lg);
	overflow: hidden;
	background: var(--tx-bg-frame);
}
.tx-league__photo img { width: 100%; height: 100%; object-fit: cover; }
.tx-league__lede { margin: 0 0 34px; max-width: 520px; font-size: clamp(1rem, 1.3vw, 1.125rem); }

.tx-compete { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.tx-compete__item {
	padding: 22px 18px;
	border: 1px solid var(--tx-line-2);
	border-radius: 3px;
	background: var(--tx-bg);
	transition: border-color var(--tx-ease), background-color var(--tx-ease);
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -.01em;
}
.tx-compete__item:hover { border-color: var(--tx-accent); background: rgba(230,58,46,.05); }

@media (max-width: 1024px) { .tx-league__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px)  { .tx-compete { grid-template-columns: 1fr; gap: 10px; } .tx-compete__item { padding: 16px; } }

/* =========================================================
   11. CULTURE
   ========================================================= */
.tx-culture__head { max-width: 640px; margin-bottom: 56px; }
.tx-culture__grid { grid-template-columns: repeat(3, 1fr); }
.tx-moment {
	background: var(--tx-bg);
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.tx-moment:hover { background: var(--tx-bg-alt); box-shadow: inset 0 0 0 1px var(--tx-accent); }
.tx-moment__tag { font-family: var(--tx-mono); font-size: 11px; letter-spacing: .14em; color: var(--tx-accent); text-transform: uppercase; }
.tx-moment__t { font-family: var(--tx-display); font-weight: 800; font-size: 20px; margin: 0; }
.tx-moment__d { font-size: 14px; line-height: 1.6; color: var(--tx-muted); margin: 0; }

@media (max-width: 900px) { .tx-culture__grid { grid-template-columns: 1fr; } .tx-culture__head { margin-bottom: 36px; } }

/* =========================================================
   12. ORGANISATIONS
   ========================================================= */
.tx-org {
	position: relative;
	padding: var(--tx-section-y) var(--tx-gutter);
	background: radial-gradient(1000px 520px at 85% 0%, rgba(230,58,46,.08), transparent 62%), var(--tx-bg-alt);
	color: var(--tx-ink);
}
.tx-org__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: start;
	margin-bottom: 76px;
}
.tx-org__lede { max-width: 480px; font-size: clamp(1rem, 1.3vw, 1.125rem); }
.tx-org__shot { position: relative; border-radius: var(--tx-radius-lg); overflow: hidden; }
.tx-org__shot img { width: 100%; display: block; }

.tx-org__block { margin-bottom: 76px; }
.tx-benefits__grid { grid-template-columns: repeat(4, 1fr); background: rgba(14,17,22,.10); }
.tx-benefits__grid.tx-rules--boxed { border-color: rgba(14,17,22,.10); }
.tx-benefit {
	background: var(--tx-bg-alt);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.tx-benefit:hover { background: var(--tx-bg-alt-2); box-shadow: inset 0 0 0 1px var(--tx-accent); }
.tx-benefit__bar { display: block; width: 6px; height: 14px; background: var(--tx-accent); transform: skewX(-18deg); flex: none; }
.tx-benefit__t { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--tx-ink); }

.tx-org__foot { border-top: 1px solid var(--tx-line-3); padding-top: 44px; }
.tx-audience {
	display: inline-flex;
	align-items: center;
	padding: 11px 18px;
	border: 1px solid var(--tx-line-4);
	border-radius: var(--tx-radius);
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .01em;
	color: var(--tx-ink);
	transition: border-color var(--tx-ease), color var(--tx-ease);
}
.tx-audience:hover { border-color: var(--tx-accent); color: var(--tx-accent); }

@media (max-width: 1024px) {
	.tx-org__top { grid-template-columns: 1fr; gap: 40px; margin-bottom: 52px; }
	.tx-org__block { margin-bottom: 52px; }
	.tx-benefits__grid { grid-template-columns: repeat(2, 1fr); }
	.tx-org__lede { max-width: none; }
}
@media (max-width: 480px) { .tx-benefits__grid { grid-template-columns: 1fr; } }

/* =========================================================
   13. LOVES
   ========================================================= */
.tx-loves__grid { grid-template-columns: 1fr 1fr; }
.tx-love {
	background: var(--tx-bg);
	padding: 26px 24px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: background-color var(--tx-ease), box-shadow var(--tx-ease);
}
.tx-love:hover { background: var(--tx-bg-alt); box-shadow: inset 0 0 0 1px var(--tx-accent); }
.tx-love__n { font-family: var(--tx-mono); font-size: 11px; color: var(--tx-accent); flex: none; }
.tx-love__t { font-weight: 600; font-size: 16px; color: var(--tx-ink); }
/* An odd final item stretches, so the rule grid never shows an empty cell. */
.tx-loves__grid .tx-love:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tx-loves__h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1; margin-bottom: 0; }

@media (max-width: 560px) {
	.tx-loves__grid { grid-template-columns: 1fr; }
	.tx-love { padding: 20px 18px; }
}

/* =========================================================
   14. PRIVACY
   ========================================================= */
.tx-privacy { padding: 80px var(--tx-gutter); border-bottom: 1px solid var(--tx-line); }
.tx-privacy__inner {
	max-width: var(--tx-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
	justify-content: space-between;
}
.tx-privacy__copy { max-width: 640px; }
.tx-privacy__h {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(1.35rem, 2.3vw, 1.75rem);
	letter-spacing: -.02em;
	margin: 0 0 12px;
}
.tx-privacy__tag {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid var(--tx-line-3);
	border-radius: var(--tx-radius);
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tx-ink-2);
	transition: border-color var(--tx-ease), color var(--tx-ease);
}
.tx-privacy__tag:hover { border-color: var(--tx-accent); color: var(--tx-accent); }

@media (max-width: 640px) { .tx-privacy { padding: 56px var(--tx-gutter); } }

/* =========================================================
   15. CTA
   ========================================================= */
.tx-cta {
	padding: clamp(72px, 9vw, 130px) var(--tx-gutter);
	background: radial-gradient(900px 460px at 50% 100%, rgba(230,58,46,.13), transparent 65%), var(--tx-bg);
	text-align: center;
}
.tx-cta__inner { max-width: 860px; margin: 0 auto; }
.tx-cta__h2 {
	font-size: clamp(2.3rem, 6.4vw, 4.5rem);
	line-height: .95;
	margin-bottom: 24px;
}
.tx-cta__lede { margin: 0 auto 40px; max-width: 600px; font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.65; }
.tx-cta .tx-btn-row { justify-content: center; }
.tx-cta .tx-btn { padding: 17px 34px; }

@media (max-width: 560px) { .tx-cta .tx-btn { width: 100%; } }

/* =========================================================
   16. FOOTER
   ========================================================= */
.tx-footer {
	padding: 48px var(--tx-gutter);
	border-top: 1px solid var(--tx-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.tx-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--tx-ink); }
.tx-footer__brand:hover { color: var(--tx-ink); }
.tx-footer__word { font-family: var(--tx-display); font-style: italic; font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.tx-footer__right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.tx-footer__nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.tx-footer__nav a { color: var(--tx-muted); }
.tx-footer__nav a:hover { color: var(--tx-ink); }
.tx-footer__tag { font-family: var(--tx-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-muted-2); }

@media (max-width: 640px) {
	.tx-footer { padding: 36px var(--tx-gutter); flex-direction: column; align-items: flex-start; gap: 20px; }
	.tx-footer__right { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =========================================================
   17. INNER PAGES / BLOG
   ========================================================= */
.tx-page { padding: clamp(56px, 6vw, 96px) var(--tx-gutter) clamp(64px, 8vw, 110px); }
.tx-page__inner { max-width: 780px; margin: 0 auto; }
.tx-page__wide { max-width: var(--tx-max); margin: 0 auto; }

.tx-page__header { margin-bottom: 44px; }
.tx-page__title {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(2rem, 4.4vw, 3rem);
	line-height: 1.04;
	letter-spacing: -.03em;
	margin: 0 0 14px;
	text-wrap: balance;
}
.tx-page__meta { font-family: var(--tx-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-muted-2); }

.tx-prose { font-size: 17px; line-height: 1.75; color: var(--tx-ink-2); }
.tx-prose > * + * { margin-top: 1.15em; }
.tx-prose h2 {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	letter-spacing: -.025em;
	color: var(--tx-ink);
	margin-top: 1.9em;
	line-height: 1.15;
}
.tx-prose h3 {
	font-family: var(--tx-display);
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--tx-ink);
	margin-top: 1.7em;
}
.tx-prose h4 { font-family: var(--tx-display); font-weight: 800; font-size: 1.1rem; color: var(--tx-ink); margin-top: 1.5em; }
.tx-prose ul, .tx-prose ol { padding-left: 1.3em; }
.tx-prose li + li { margin-top: .45em; }
.tx-prose blockquote {
	margin-left: 0; margin-right: 0;
	padding: 20px 26px;
	border-left: 2px solid var(--tx-accent);
	background: var(--tx-bg-alt);
	font-style: italic;
}
.tx-prose blockquote p { margin: 0; }
.tx-prose img, .tx-prose figure { border-radius: var(--tx-radius-lg); }
.tx-prose figure { margin-left: 0; margin-right: 0; }
.tx-prose figcaption { font-size: 13px; color: var(--tx-muted-2); margin-top: 8px; font-family: var(--tx-mono); }
.tx-prose code {
	font-family: var(--tx-mono);
	font-size: .88em;
	background: var(--tx-bg-alt);
	padding: 2px 6px;
	border-radius: 3px;
}
.tx-prose pre {
	background: var(--tx-ink);
	color: #F1F1EE;
	padding: 20px 22px;
	border-radius: var(--tx-radius-lg);
	overflow-x: auto;
	font-family: var(--tx-mono);
	font-size: 14px;
	line-height: 1.6;
}
.tx-prose pre code { background: none; padding: 0; color: inherit; }
.tx-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tx-prose th, .tx-prose td { border: 1px solid var(--tx-line-2); padding: 10px 14px; text-align: left; }
.tx-prose th { background: var(--tx-bg-alt); font-weight: 700; }
.tx-prose hr { border: 0; border-top: 1px solid var(--tx-line); margin: 2.4em 0; }
.tx-prose a { text-decoration: underline; text-underline-offset: 3px; }

.tx-postlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--tx-line); border: 1px solid var(--tx-line); }
.tx-postcard {
	background: var(--tx-bg);
	padding: 30px 28px 34px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.tx-postcard:hover { background: var(--tx-bg-alt); box-shadow: inset 0 0 0 1px var(--tx-accent); }
.tx-postcard__thumb { border-radius: var(--tx-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--tx-bg-frame); }
.tx-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tx-postcard__meta { font-family: var(--tx-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-muted-2); }
.tx-postcard__title { font-family: var(--tx-display); font-weight: 800; font-size: 20px; letter-spacing: -.015em; margin: 0; line-height: 1.2; }
.tx-postcard__title a { color: var(--tx-ink); }
.tx-postcard__title a:hover { color: var(--tx-accent); }
.tx-postcard__excerpt { font-size: 15px; line-height: 1.6; color: var(--tx-muted); margin: 0; }

@media (max-width: 1024px) { .tx-postlist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tx-postlist { grid-template-columns: 1fr; } }

.tx-pagination { margin-top: 48px; display: flex; justify-content: center; }
.tx-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tx-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	border: 1px solid var(--tx-line-2);
	border-radius: var(--tx-radius);
	color: var(--tx-ink);
	font-weight: 600;
	font-size: 14px;
}
.tx-pagination .page-numbers:hover { border-color: var(--tx-accent); color: var(--tx-accent); }
.tx-pagination .page-numbers.current { background: var(--tx-accent); border-color: var(--tx-accent); color: #fff; }

.tx-postnav { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--tx-line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }

/* Alignment support */
.tx-prose .alignwide { width: min(100%, 1040px); margin-left: auto; margin-right: auto; }
.tx-prose .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.tx-prose .alignleft { float: left; margin: .3em 1.6em 1em 0; }
.tx-prose .alignright { float: right; margin: .3em 0 1em 1.6em; }
.tx-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.sticky .tx-postcard__meta::before { content: '★ '; color: var(--tx-accent); }

/* Comments */
.tx-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--tx-line); }
.tx-comments__title { font-family: var(--tx-display); font-style: italic; font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 24px; }
.tx-comments .comment-list { list-style: none; padding: 0; margin: 0; }
.tx-comments .comment-list li { padding: 18px 0; border-bottom: 1px solid var(--tx-line); }
.tx-comments .comment-list .children { list-style: none; padding-left: 24px; }
.tx-comments input[type="text"],
.tx-comments input[type="email"],
.tx-comments input[type="url"],
.tx-comments textarea,
.tx-search input[type="search"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tx-line-2);
	border-radius: var(--tx-radius);
	background: var(--tx-white);
	font: inherit;
	font-size: 15px;
	color: var(--tx-ink);
}
.tx-comments .submit, .tx-search button {
	margin-top: 12px;
	padding: 14px 28px;
	background: var(--tx-accent);
	color: #fff;
	border: 0;
	border-radius: var(--tx-radius);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}
.tx-comments .submit:hover, .tx-search button:hover { background: var(--tx-accent-hi); }

.tx-search { display: flex; gap: 10px; max-width: 520px; }
.tx-search button { margin-top: 0; flex: none; }

/* 404 */
.tx-404 { text-align: center; padding: clamp(80px, 12vw, 160px) var(--tx-gutter); }
.tx-404__code {
	font-family: var(--tx-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(5rem, 18vw, 11rem);
	line-height: .9;
	letter-spacing: -.04em;
	color: var(--tx-accent);
	margin: 0 0 12px;
}

/* =========================================================
   18. PRINT
   ========================================================= */
@media print {
	.tx-header, .tx-footer, .tx-ticker, .tx-cta, .tx-burger, .tx-skip-link { display: none !important; }
	body { background: #fff; }
	.tx-section, .tx-hero { padding: 24px 0; border: 0; }
	a { color: inherit; text-decoration: underline; }
}
