/**
 * Texline News
 * Built to Texline Brand Standards Rev. 2026.08.
 * Black carries the page, white carries the message, red is the single accent.
 * Blue is deliberately absent: it belongs to dealer and document surfaces.
 */

.txn {
	--tx-black: #0E0D0D;
	--tx-white: #FFFFFF;
	--tx-red: #C40404;
	--tx-steel: #313131;
	--tx-gray: #BEBEBE;
	--tx-shop: #F0F0F0;
	--tx-ink: #1E1B1B;
	--tx-ink-soft: #55504F;

	--tx-display: "Pathway Gothic One", "Oswald", "Arial Narrow", sans-serif;
	--tx-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--tx-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	background: var(--tx-white);
	color: var(--tx-ink);
	font-family: var(--tx-body);
	font-weight: 300;
}

.txn *,
.txn *::before,
.txn *::after {
	box-sizing: border-box;
}

.txn .txn-shell {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 24px;
}

.txn .txn-shell--narrow {
	max-width: 768px;
}

.txn .txn-shell--body {
	padding-block: clamp(48px, 7vw, 88px);
}

/* Uppercase mono label. Brand standard: 11-12px, .14em tracking. */
.txn .txn-label {
	display: block;
	font-family: var(--tx-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* The one red mark on the surface. */
.txn .txn-rule {
	display: block;
	width: 48px;
	height: 3px;
	background: var(--tx-red);
	margin-bottom: 22px;
}

/* ---------------------------------------------------------------- masthead */

.txn .txn-masthead {
	background: var(--tx-black);
	color: var(--tx-white);
	padding-block: clamp(56px, 8vw, 96px);
}

.txn .txn-masthead__kicker {
	color: var(--tx-gray);
	margin-bottom: 14px;
}

.txn .txn-masthead__title {
	font-family: var(--tx-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.005em;
	line-height: 1.0;
	color: var(--tx-white);
	margin: 0;
	font-size: clamp(42px, 7.2vw, 82px);
}

.txn .txn-masthead__standfirst {
	max-width: 46ch;
	margin: 24px 0 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--tx-gray);
}

.txn .txn-masthead--article .txn-masthead__title {
	font-size: clamp(34px, 5.4vw, 62px);
	line-height: 1.03;
}

.txn .txn-back {
	color: var(--tx-gray);
	text-decoration: none;
	margin-bottom: 30px;
	transition: color 0.15s ease;
}

.txn .txn-back:hover,
.txn .txn-back:focus-visible {
	color: var(--tx-white);
}

.txn .txn-masthead__meta {
	font-family: var(--tx-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--tx-gray);
	margin: 26px 0 0;
}

.txn .txn-masthead__meta span {
	margin-inline: 6px;
	color: var(--tx-steel);
}

/* ------------------------------------------------------------- hero image */

.txn .txn-hero-media {
	margin: 0;
	padding-block: 0 clamp(36px, 5vw, 60px);
	background: linear-gradient(to bottom, var(--tx-black) 46%, var(--tx-white) 46%);
}

.txn .txn-hero-media img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--tx-shop);
}

/* Hold the picture to a calmer measure than the page shell. At full shell width it
   was 1132x708, about 79% of a 900px fold, which buried the opening paragraph.
   The wider display ratio above 768px crops from the bottom (floor and lower rail),
   never the top, so the painter is always whole. */
.txn .txn-hero-media .txn-shell {
	max-width: 880px;
}

@media (min-width: 768px) {
	.txn .txn-hero-media img {
		aspect-ratio: 1.85 / 1;
		object-fit: cover;
		object-position: 50% 0;
	}
}

.txn .txn-hero-media figcaption {
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tx-ink-soft);
	padding-top: 14px;
}

/* ------------------------------------------------------------------ prose */

.txn .txn-prose {
	padding-block: clamp(44px, 6vw, 72px);
	font-size: 17.5px;
	line-height: 1.85;
	color: var(--tx-ink);
}

.txn .txn-hero-media + .txn-shell .txn-prose {
	padding-top: 0;
}

.txn .txn-prose > p:first-of-type:not(.txn-byline) {
	font-size: 20px;
	line-height: 1.7;
	color: var(--tx-black);
}

.txn .txn-prose p {
	margin: 0 0 1.4em;
}

.txn .txn-prose h2 {
	font-family: var(--tx-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1.08;
	color: var(--tx-black);
	font-size: clamp(28px, 3.6vw, 38px);
	margin: 2.4em 0 0.7em;
	padding-top: 20px;
	position: relative;
}

.txn .txn-prose h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--tx-red);
}

.txn .txn-prose h3 {
	font-family: var(--tx-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--tx-black);
	font-size: clamp(20px, 2.4vw, 25px);
	line-height: 1.15;
	margin: 2em 0 0.6em;
}

.txn .txn-prose strong {
	font-weight: 500;
	color: var(--tx-black);
}

.txn .txn-prose a {
	text-transform: none;
	color: var(--tx-black);
	text-decoration: underline;
	text-decoration-color: var(--tx-red);
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	transition: color 0.15s ease;
}

.txn .txn-prose a:hover,
.txn .txn-prose a:focus-visible {
	color: var(--tx-red);
}

.txn .txn-prose ul,
.txn .txn-prose ol {
	margin: 0 0 1.6em;
	padding-left: 1.3em;
}

.txn .txn-prose li {
	margin-bottom: 0.6em;
	padding-left: 0.3em;
}

.txn .txn-prose ul li::marker {
	color: var(--tx-red);
	content: "\25AA  ";
}

.txn .txn-prose ol li::marker {
	font-family: var(--tx-mono);
	font-size: 13px;
	color: var(--tx-red);
}

.txn .txn-prose blockquote {
	margin: 2.2em 0;
	padding: 4px 0 4px 28px;
	border-left: 3px solid var(--tx-red);
	font-size: 21px;
	line-height: 1.55;
	font-weight: 400;
	color: var(--tx-black);
}

.txn .txn-prose blockquote p:last-child {
	margin-bottom: 0;
}

.txn .txn-prose img {
	max-width: 100%;
	height: auto;
	display: block;
	background: var(--tx-shop);
}

.txn .txn-prose hr {
	border: 0;
	height: 1px;
	background: #E2DEDD;
	margin: 3em 0;
}

/* Spec tables read as data, so they take the mono face. */
.txn .txn-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 2em 0;
	font-size: 15px;
}

.txn .txn-prose th {
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
	color: var(--tx-black);
	border-bottom: 2px solid var(--tx-black);
	padding: 10px 14px 10px 0;
}

.txn .txn-prose td {
	border-bottom: 1px solid #E2DEDD;
	padding: 12px 14px 12px 0;
	vertical-align: top;
}

/* First-person byline, set as a data label. */
.txn .txn-prose .txn-byline {
	font-family: var(--tx-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tx-ink-soft);
	padding-bottom: 22px;
	margin-bottom: 30px;
	border-bottom: 1px solid #E2DEDD;
}

.txn .txn-prose .txn-byline + p {
	font-size: 20px;
	line-height: 1.7;
	color: var(--tx-black);
}

/* --------------------------------------------------------------------- CTA */

.txn .txn-cta {
	background: var(--tx-black);
	color: var(--tx-white);
	padding-block: clamp(52px, 7vw, 84px);
}

.txn .txn-cta__title {
	font-family: var(--tx-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1.05;
	color: var(--tx-white);
	font-size: clamp(30px, 4.4vw, 46px);
	margin: 0;
}

.txn .txn-cta__copy {
	max-width: 48ch;
	margin: 18px 0 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--tx-gray);
}

.txn .txn-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.txn .txn-btn {
	display: inline-block;
	font-family: var(--tx-display);
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 32px 13px;
	border: 2px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.txn .txn-btn--primary {
	background: var(--tx-red);
	color: var(--tx-white);
	border-color: var(--tx-red);
}

.txn .txn-btn--primary:hover,
.txn .txn-btn--primary:focus-visible {
	background: #8E0303;
	border-color: #8E0303;
	color: var(--tx-white);
}

.txn .txn-btn--ghost {
	color: var(--tx-white);
	border-color: var(--tx-steel);
}

.txn .txn-btn--ghost:hover,
.txn .txn-btn--ghost:focus-visible {
	border-color: var(--tx-white);
	background: var(--tx-white);
	color: var(--tx-black);
}

/* -------------------------------------------------------------- card grid */

.txn .txn-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.4vw, 44px);
}

.txn .txn-card__link {
	display: block;
	text-decoration: none;
	text-transform: none;
	color: inherit;
}

.txn .txn-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tx-shop);
	margin-bottom: 20px;
}

.txn .txn-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.txn .txn-card__link:hover .txn-card__media img {
	transform: scale(1.04);
}

.txn .txn-card__label {
	color: var(--tx-ink-soft);
	margin-bottom: 10px;
}

.txn .txn-card__title {
	font-family: var(--tx-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1.1;
	font-size: clamp(21px, 2.2vw, 26px);
	color: var(--tx-black);
	margin: 0 0 12px;
	transition: color 0.15s ease;
}

.txn .txn-card__link:hover .txn-card__title,
.txn .txn-card__link:focus-visible .txn-card__title {
	color: var(--tx-red);
}

.txn .txn-card__excerpt {
	display: block;
	text-transform: none;
	font-weight: 300;
	font-size: 15px;
	line-height: 1.75;
	color: var(--tx-ink-soft);
	margin-bottom: 16px;
}

.txn .txn-card__meta {
	display: block;
	font-family: var(--tx-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8C8584;
}

/* --------------------------------------------------------- more from row */

.txn .txn-more {
	border-top: 1px solid #E2DEDD;
	padding-block: clamp(48px, 6vw, 80px);
}

.txn .txn-more__title {
	font-family: var(--tx-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	font-size: clamp(24px, 3vw, 32px);
	color: var(--tx-black);
	margin: 0 0 36px;
}

/* ------------------------------------------------------------- pagination */

.txn .pagination,
.txn .navigation.pagination {
	margin-top: clamp(44px, 5vw, 68px);
	border-top: 1px solid #E2DEDD;
	padding-top: 28px;
}

.txn .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.txn .page-numbers {
	font-family: var(--tx-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tx-ink-soft);
	padding: 9px 15px;
	border: 1px solid #E2DEDD;
}

.txn .page-numbers:hover {
	border-color: var(--tx-black);
	color: var(--tx-black);
}

.txn .page-numbers.current {
	background: var(--tx-black);
	border-color: var(--tx-black);
	color: var(--tx-white);
}

.txn .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.txn .txn-empty {
	font-size: 17px;
	color: var(--tx-ink-soft);
	padding-block: 40px;
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1024px) {
	.txn .txn-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.txn .txn-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.txn .txn-prose {
		font-size: 17px;
	}

	.txn .txn-prose > p:first-of-type:not(.txn-byline),
	.txn .txn-prose .txn-byline + p {
		font-size: 18.5px;
	}

	.txn .txn-cta__actions .txn-btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.txn *,
	.txn *::before,
	.txn *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
