/* TX Articles — light article section. Header/footer stay dark (Elementor). */

body.txa-light {
	--txa-red: #DA0037;
	--txa-orange: #E88A1A;
	--txa-ink: #16181D;
	--txa-body: #2E333B;
	--txa-muted: #6B7280;
	--txa-line: #E6E6E3;
	--txa-soft: #F5F5F3;
	--txa-header: 141px;
	color: var(--txa-body);
	/* page background stays the site's dark #0F0F0F; only .txa-page is white */
}

body.txa-light .txa-page,
body.txa-light .txa-page *{ box-sizing: border-box; }

body.txa-light .txa-page{
	font-family: Poppins, -apple-system, "Segoe UI", sans-serif;
	background: #fff;
	padding: 32px 0 80px; /* the Elementor header already reserves its own height */
}

body.txa-light .txa-wrap{ max-width: 1240px; margin: 0 auto; padding: 0 24px; }

body.txa-light .txa-page a{ color: inherit; text-decoration: none; }

/* Breadcrumb */
body.txa-light .txa-crumbs{ font-size: 13px; color: var(--txa-muted); margin-bottom: 28px; }
body.txa-light .txa-crumbs a{ color: var(--txa-muted); }
body.txa-light .txa-crumbs a:hover{ color: var(--txa-red); }
body.txa-light .txa-crumbs .breadcrumb_last{ color: var(--txa-ink); }

/* Shared bits */
body.txa-light .txa-title{ font-size: 40px; line-height: 1.25; font-weight: 600; color: var(--txa-ink); margin: 0 0 20px; letter-spacing: -0.01em; }
body.txa-light .txa-pill{
	display: inline-block; font-size: 13px; font-weight: 600; color: #fff !important;
	background: linear-gradient(90deg, var(--txa-orange), var(--txa-red));
	padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
body.txa-light .txa-cat{ display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--txa-red) !important; margin-bottom: 6px; }
body.txa-light .txa-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--txa-muted); }
body.txa-light .txa-meta--lg{ font-size: 14px; gap: 12px; }
body.txa-light .txa-meta-dates{ display: flex; flex-wrap: wrap; gap: 6px; }
body.txa-light .txa-author{ display: inline-flex; align-items: center; gap: 8px; }
body.txa-light .txa-author-name{ font-weight: 600; color: var(--txa-ink); }
body.txa-light .txa-avatar{ border-radius: 50%; background: #0F0F0F; object-fit: contain; }
body.txa-light .txa-dot{ color: #B8BCC4; }

body.txa-light .txa-btn{
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--txa-red); color: #fff !important; font-weight: 600; font-size: 15px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid var(--txa-red);
	transition: transform .2s ease, background .2s ease;
}
body.txa-light .txa-btn:hover{ transform: translateY(-1px); background: #B8002E; border-color: #B8002E; }
body.txa-light .txa-btn--ghost{ background: transparent; border-color: rgba(255, 255, 255, .5); }
body.txa-light .txa-btn--ghost:hover{ background: rgba(255, 255, 255, .1); border-color: #fff; }
body.txa-light .txa-btn--light{ background: #fff; color: var(--txa-red) !important; border-color: #fff; }
body.txa-light .txa-btn--light:hover{ background: #fff; border-color: #fff; }

/* ------------------------------------------------------------------ single */
body.txa-light .txa-layout{ display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
body.txa-light .txa-main{ min-width: 0; }

body.txa-light .txa-hero{ margin: 8px 0 32px; }
body.txa-light .txa-hero-img{ width: 100%; height: auto; border-radius: 16px; display: block; }

body.txa-light .txa-toc{ border: 1px solid var(--txa-line); border-radius: 14px; background: var(--txa-soft); padding: 4px 24px; margin: 0 0 36px; }
body.txa-light .txa-toc summary{ list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 16px 0; }
body.txa-light .txa-toc summary::-webkit-details-marker{ display: none; }
body.txa-light .txa-toc-title{ font-weight: 600; font-size: 17px; color: var(--txa-ink); }
body.txa-light .txa-toc-toggle::after{ content: ""; display: block; width: 9px; height: 9px; border-right: 2px solid var(--txa-ink); border-bottom: 2px solid var(--txa-ink); transform: rotate(45deg); transition: transform .2s; }
body.txa-light .txa-toc[open] .txa-toc-toggle::after{ transform: rotate(-135deg); }
body.txa-light .txa-toc ol{ counter-reset: toc; list-style: none; margin: 0 0 18px; padding: 0; columns: 2; column-gap: 32px; }
body.txa-light .txa-toc li{ counter-increment: toc; break-inside: avoid; display: flex; gap: 10px; padding: 6px 0; font-size: 14.5px; line-height: 1.45; }
body.txa-light .txa-toc li::before{ content: counter(toc); flex: 0 0 22px; height: 22px; border-radius: 6px; background: var(--txa-ink); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
body.txa-light .txa-toc a{ color: var(--txa-body); }
body.txa-light .txa-toc a:hover{ color: var(--txa-red); }

/* Article body */
body.txa-light .txa-content{ font-size: 17px; line-height: 1.8; color: var(--txa-body); overflow-wrap: break-word; }
body.txa-light .txa-content > *:first-child{ margin-top: 0; }
body.txa-light .txa-content p, body.txa-light .txa-content ul, body.txa-light .txa-content ol, body.txa-light .txa-content figure, body.txa-light .txa-content table, body.txa-light .txa-content blockquote{ margin: 0 0 1.35em; }
body.txa-light .txa-content h2{ font-size: 28px; line-height: 1.3; font-weight: 600; color: var(--txa-ink); margin: 2.1em 0 .7em; scroll-margin-top: calc(var(--txa-header) + 20px); }
body.txa-light .txa-content h3{ font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--txa-ink); margin: 1.8em 0 .6em; }
body.txa-light .txa-content h4{ font-size: 18px; font-weight: 600; color: var(--txa-ink); margin: 1.6em 0 .5em; }
body.txa-light .txa-content a{ color: var(--txa-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.txa-light .txa-content a:hover{ text-decoration-thickness: 2px; }
body.txa-light .txa-content strong{ color: var(--txa-ink); }
body.txa-light .txa-content ul, body.txa-light .txa-content ol{ padding-left: 1.4em; }
body.txa-light .txa-content li{ margin: .35em 0; }
body.txa-light .txa-content li::marker{ color: var(--txa-red); }
body.txa-light .txa-content img{ max-width: 100%; height: auto; border-radius: 12px; }
body.txa-light .txa-content figcaption{ font-size: 14px; color: var(--txa-muted); text-align: center; margin-top: 8px; }
body.txa-light .txa-content blockquote{ border-left: 4px solid var(--txa-red); background: var(--txa-soft); padding: 18px 24px; border-radius: 0 12px 12px 0; color: var(--txa-ink); }
body.txa-light .txa-content blockquote p:last-child{ margin-bottom: 0; }
body.txa-light .txa-content table{ width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
body.txa-light .txa-content th, body.txa-light .txa-content td{ border: 1px solid var(--txa-line); padding: 10px 14px; text-align: left; }
body.txa-light .txa-content th{ background: var(--txa-soft); color: var(--txa-ink); font-weight: 600; }
body.txa-light .txa-content hr{ border: 0; border-top: 1px solid var(--txa-line); margin: 2.4em 0; }
body.txa-light .txa-content .wp-block-button__link{ background: var(--txa-red); color: #fff; border-radius: 999px; text-decoration: none; padding: 12px 24px; }
/* Highlight box: add the CSS class "tx-note" to any paragraph or group block */
body.txa-light .txa-content .tx-note{ background: #FFF4F6; border: 1px solid #F6C7D2; border-radius: 12px; padding: 18px 22px; }

/* Further reading */
body.txa-light .txa-further{ border-top: 1px solid var(--txa-line); margin-top: 48px; padding-top: 32px; }
body.txa-light .txa-section-title{ font-size: 22px; font-weight: 600; color: var(--txa-ink); margin: 0 0 16px; }
body.txa-light .txa-further ul{ list-style: none; margin: 0; padding: 0; }
body.txa-light .txa-further li{ padding: 10px 0; border-bottom: 1px dashed var(--txa-line); }
body.txa-light .txa-further li::before{ content: "→"; color: var(--txa-red); margin-right: 10px; }
body.txa-light .txa-further a{ color: var(--txa-ink); font-weight: 500; }
body.txa-light .txa-further a:hover{ color: var(--txa-red); }

/* End-of-article call to action */
body.txa-light .txa-cta{
	margin-top: 48px; border-radius: 20px; padding: 36px 40px; color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, rgba(218, 0, 55, .55), transparent 55%), #121317;
	display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
body.txa-light .txa-cta-eyebrow{ font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--txa-orange); margin: 0 0 8px; }
body.txa-light .txa-cta-title{ font-size: 24px; line-height: 1.3; font-weight: 600; color: #fff; margin: 0 0 8px; }
body.txa-light .txa-cta-text{ margin: 0; color: #C9CCD2; font-size: 15px; max-width: 460px; }
body.txa-light .txa-cta-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

/* Sidebar */
body.txa-light .txa-side-sticky{ position: sticky; top: calc(var(--txa-header) + 24px); display: grid; gap: 24px; }
body.txa-light .txa-side-box{ border: 1px solid var(--txa-line); border-radius: 16px; padding: 22px; }
body.txa-light .txa-side-title{ font-size: 17px; font-weight: 600; color: var(--txa-ink); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid var(--txa-red); display: inline-block; }
body.txa-light .txa-side-list{ list-style: none; margin: 0; padding: 0; }
body.txa-light .txa-side-list li + li{ border-top: 1px solid var(--txa-line); }
body.txa-light .txa-side-item{ display: flex; gap: 12px; padding: 12px 0; }
body.txa-light .txa-side-thumb{ width: 88px; height: 50px; object-fit: cover; border-radius: 8px; flex: 0 0 88px; }
body.txa-light .txa-side-cat{ display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--txa-red); }
body.txa-light .txa-side-name{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--txa-ink); }
body.txa-light .txa-side-item:hover .txa-side-name{ color: var(--txa-red); }
body.txa-light .txa-side-date{ display: block; font-size: 12px; color: var(--txa-muted); margin-top: 2px; }

body.txa-light .txa-promo{ border-radius: 16px; padding: 26px 24px; color: #fff; background: linear-gradient(140deg, var(--txa-orange), var(--txa-red) 60%); }
body.txa-light .txa-promo-eyebrow{ font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; opacity: .9; }
body.txa-light .txa-promo-title{ font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 8px; color: #fff; }
body.txa-light .txa-promo-text{ font-size: 14px; margin: 0 0 18px; opacity: .92; }

/* ----------------------------------------------------------------- archive */
body.txa-light .txa-archive-head{ margin-bottom: 36px; }
body.txa-light .txa-eyebrow{ font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--txa-red); margin: 0 0 10px; }
body.txa-light .txa-intro{ font-size: 16px; line-height: 1.7; color: var(--txa-muted); max-width: 720px; margin: 0 0 28px; }
body.txa-light .txa-toolbar{ display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--txa-line); border-bottom: 1px solid var(--txa-line); padding: 16px 0; }
body.txa-light .txa-chips{ display: flex; gap: 8px; flex-wrap: wrap; }
body.txa-light .txa-chip{ font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--txa-line); color: var(--txa-body) !important; background: #fff; transition: all .2s; }
body.txa-light .txa-chip:hover{ border-color: var(--txa-ink); color: var(--txa-ink) !important; }
body.txa-light .txa-chip.is-active{ background: var(--txa-ink); border-color: var(--txa-ink); color: #fff !important; }
body.txa-light .txa-search{ display: flex; align-items: center; border: 1px solid var(--txa-line); border-radius: 999px; padding: 4px 6px 4px 18px; background: #fff; min-width: 260px; }
body.txa-light .txa-search input[type="search"]{ border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; color: var(--txa-ink); background: transparent; padding: 6px 0; }
body.txa-light .txa-search button{ border: 0; background: var(--txa-red); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

body.txa-light .txa-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
body.txa-light .txa-card{ display: flex; flex-direction: column; min-width: 0; }
body.txa-light .txa-card-media{ display: block; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: var(--txa-soft); }
body.txa-light .txa-card-img{ display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
body.txa-light .txa-card-img--empty{ background: linear-gradient(135deg, #1A1A1A, #2B2B2B); }
body.txa-light .txa-card:hover .txa-card-img{ transform: scale(1.04); }
body.txa-light .txa-card-title{ font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--txa-ink); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.txa-light .txa-card-title a:hover{ color: var(--txa-red); }
body.txa-light .txa-card .txa-meta{ margin-top: auto; }
body.txa-light .txa-empty{ font-size: 16px; color: var(--txa-muted); padding: 40px 0; }
body.txa-light .txa-empty a{ color: var(--txa-red) !important; }

body.txa-light .txa-pages{ display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
body.txa-light .txa-page-link{ min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--txa-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; color: var(--txa-ink) !important; }
body.txa-light .txa-page-link:hover{ border-color: var(--txa-ink); }
body.txa-light .txa-page-link.is-current{ background: var(--txa-red); border-color: var(--txa-red); color: #fff !important; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
	body.txa-light .txa-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.txa-light .txa-layout{ grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 1024px) {
	body.txa-light { --txa-header: 90px; }
}
@media (max-width: 900px) {
	body.txa-light .txa-layout{ grid-template-columns: 1fr; }
	body.txa-light .txa-side-sticky{ position: static; }
	body.txa-light .txa-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 767px) {
	body.txa-light { --txa-header: 53px; }
	body.txa-light .txa-wrap{ padding: 0 16px; }
	body.txa-light .txa-title{ font-size: 28px; }
	body.txa-light .txa-content{ font-size: 16px; }
	body.txa-light .txa-content h2{ font-size: 23px; }
	body.txa-light .txa-content h3{ font-size: 19px; }
	body.txa-light .txa-toc{ padding: 2px 18px; }
	body.txa-light .txa-toc ol{ columns: 1; }
	body.txa-light .txa-cta{ padding: 28px 24px; }
	body.txa-light .txa-cta-title{ font-size: 21px; }
	body.txa-light .txa-search{ min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
	body.txa-light .txa-grid{ grid-template-columns: 1fr; }
}

/* Articles built with Elementor use the site's dark-theme global colours;
   remap them inside the light reading area. */
body.txa-light .txa-content {
	--e-global-color-text: #2E333B;
	--e-global-color-63409e1: #16181D; /* Heading (light) */
	--e-global-color-368e2a4: #F5F5F3; /* Section */
	--e-global-color-82a2c66: #FFFFFF; /* Background */
}

/* Slim header (mu-plugin tx-header) is shorter. */
body.txa-light.tx-slim-header { --txa-header: 69px; }
@media (max-width: 767px) { body.txa-light.tx-slim-header { --txa-header: 46px; } }
