/*
 * Traders Edge — Inside the Community (staging)
 * All rules are scoped under .te-inside so this cannot bleed into the
 * active theme, Elementor, other plugin styles, or the separate
 * traders-edge-new-home / traders-edge-membership plugins. Deliberately
 * self-contained/duplicated rather than sharing a stylesheet, so each
 * plugin stays independently reversible.
 *
 * Every main section below the hero uses ONE single template — the
 * homepage's asymmetric label+body "split" layout (small gold eyebrow,
 * short gold rule, body copy, plain gold-dash bullet list where needed).
 * No cards, icon boxes, numbered steps, or graphics — one editorial
 * pattern, repeated, matching the homepage's actual design system.
 */

.te-inside {
	--te-bg: #14130f;
	--te-bg-alt: #1b1a15;
	--te-gold: #c9a25a;
	--te-gold-soft: rgba(201, 162, 90, 0.35);
	--te-off-white: #f2efe7;
	--te-off-white-bright: #fffaf0;
	--te-off-white-dim: rgba(242, 239, 231, 0.72);

	color: var(--te-off-white);
	background: var(--te-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	box-sizing: border-box;

	/*
	 * Matches the homepage's band width exactly, measured live (not
	 * estimated): the "TE New Home" page embeds its [te_new_home]
	 * shortcode inside Elementor's default Section > Container (max-width
	 * 1200px, centered) > Column (10px side padding) structure, which
	 * renders .te-new-home at 1200px minus 20px = 1180px wide, centered —
	 * confirmed identically at both a 1280px and a 400px viewport. This
	 * page has no such Elementor wrapper, so the same 1200px/10px box is
	 * applied directly here to reproduce the same band width and centering
	 * at any viewport.
	 */
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

.te-inside *,
.te-inside *::before,
.te-inside *::after {
	box-sizing: inherit;
}

.te-inside__inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px;
}

.te-inside__inner--narrow {
	max-width: 760px;
}

.te-inside__eyebrow {
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--te-gold);
	text-align: left;
}

.te-inside__rule {
	display: block;
	width: 48px;
	height: 2px;
	background: var(--te-gold);
}

/* Standout pull line — hero only. */

.te-inside__standout {
	max-width: 640px;
	margin: 0 auto;
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--te-gold);
	text-align: center;
}

/* Buttons */

.te-inside__btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.te-inside__btn--primary {
	background: var(--te-gold);
	color: #14130f;
}

.te-inside__btn--primary:hover {
	opacity: 0.88;
}

.te-inside__btn--secondary {
	background: transparent;
	color: var(--te-off-white);
	border: 1px solid var(--te-gold-soft);
}

.te-inside__btn--secondary:hover {
	border-color: var(--te-gold);
	color: var(--te-gold);
}

/*
 * Keyboard focus indicator. The active theme resets outline:none !important
 * on every link (selector "body a"); the class-level selector below
 * outranks that on specificity alone, so it wins regardless of stylesheet
 * load order without needing to touch the theme.
 */
.te-inside a:focus-visible,
.te-inside button:focus-visible {
	outline: 2px solid var(--te-gold) !important;
	outline-offset: 3px;
}

.te-inside__btn--small {
	padding: 9px 18px;
	font-size: 13px;
}

.te-inside__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* Site header */

.te-inside__site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--te-bg);
	border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}

.te-inside__site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.te-inside__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--te-off-white-bright);
	text-decoration: none;
}

.te-inside__brand:hover {
	color: var(--te-gold);
}

/*
 * !important on width/height: Elementor's own frontend stylesheet ships
 * ".elementor img { height: auto; max-width: 100%; }", which outranks our
 * single-class selector on specificity alone (class+type beats class).
 */
.te-inside__brand-icon {
	display: block;
	width: auto !important;
	height: 28px !important;
	flex-shrink: 0;
}

.te-inside__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.te-inside__nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.te-inside__nav-links a {
	font-size: 14px;
	font-weight: 500;
	color: var(--te-off-white-dim);
	text-decoration: none;
	transition: color 0.15s ease;
}

.te-inside__nav-links a:hover {
	color: var(--te-off-white);
}

.te-inside__nav-static {
	font-size: 14px;
	font-weight: 500;
	color: rgba(242, 239, 231, 0.35);
	cursor: default;
}

.te-inside__footer-links .te-inside__nav-static {
	font-size: 13.5px;
}

.te-inside__nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.te-inside__nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.te-inside__nav-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--te-off-white);
}

.te-inside .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Site footer */

.te-inside__site-footer {
	background: var(--te-bg-alt);
	padding: 48px 0 32px;
	border-top: 1px solid rgba(242, 239, 231, 0.08);
	text-align: left;
}

.te-inside__site-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.te-inside__footer-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.te-inside__brand--footer {
	margin: 0;
	font-size: 15px;
}

.te-inside__footer-tagline {
	margin: 0;
	max-width: 420px;
	font-size: 14px;
	color: var(--te-off-white-dim);
}

.te-inside__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.te-inside__footer-links a {
	font-size: 13.5px;
	color: var(--te-off-white-dim);
	text-decoration: none;
}

.te-inside__footer-links a:hover {
	color: var(--te-gold);
}

.te-inside__footer-copy {
	margin: 8px 0 0;
	padding-top: 20px;
	font-size: 12.5px;
	color: rgba(242, 239, 231, 0.52);
	border-top: 1px solid rgba(242, 239, 231, 0.06);
}

/* Hero — untouched: headline, subhead, lede, closing standout line, centered. */

.te-inside__hero {
	position: relative;
	overflow: hidden;
	background: var(--te-bg);
	padding: clamp(50px, 8vw, 110px) 0 clamp(40px, 5.5vw, 72px);
	text-align: center;
}

/*
 * Background photo (trader at dual monitors, b&w) sits behind the hero
 * copy as a pseudo-element rather than an <img>, so it can never affect
 * layout/CLS. Positioned right, masked to fade to transparent on the
 * left (revealing the section's own --te-bg beneath), and dimmed so the
 * headline/copy stay dominant. Path is relative to this stylesheet's own
 * location (assets/css -> ../images), independent of PHP/page context.
 */
.te-inside__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../images/trader-bw.png");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	opacity: 0.42;
	filter: grayscale(1) brightness(0.92);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 30%, black 68%);
	mask-image: linear-gradient(to right, transparent 0%, transparent 30%, black 68%);
	pointer-events: none;
}

.te-inside__hero .te-inside__inner {
	position: relative;
	z-index: 1;
}

/* Mobile: narrower band crops the photo hard, so dim it further and
   shrink the visible zone rather than force the full frame to show. */
@media (max-width: 600px) {
	.te-inside__hero::before {
		opacity: 0.3;
		-webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 15%, black 60%);
		mask-image: linear-gradient(to right, transparent 0%, transparent 15%, black 60%);
	}
}

/*
 * !important on color only: the Vayvo Progression theme applies its own
 * default h1 color (a grey, ~#7a7a7a) after ours in the cascade.
 * Confirmed live — font-size/weight rendered correctly, only color was
 * being overridden.
 */
.te-inside__headline {
	margin: 0 0 20px;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--te-off-white-bright) !important;
}

.te-inside__subhead {
	margin: 0 auto 20px;
	max-width: 560px;
	font-size: clamp(16px, 2vw, 19px);
	color: var(--te-off-white-dim);
}

.te-inside__lede {
	margin: 0 auto 32px;
	max-width: 620px;
	font-size: clamp(15px, 1.6vw, 17px);
	color: var(--te-off-white-dim);
}

/*
 * The single editorial section template used for every main section below
 * the hero: Who You'll Find Here, During the Trading Day, When the Markets
 * Close, The Culture, If That Sounds Like You. Only the background tone
 * alternates (--alt modifier), matching the homepage's alternation.
 */

.te-inside__editorial {
	background: var(--te-bg);
	padding: clamp(52px, 7.5vw, 92px) 0;
	border-top: 1px solid rgba(242, 239, 231, 0.06);
}

.te-inside__editorial--alt {
	background: var(--te-bg-alt);
}

.te-inside__split {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 40px;
	align-items: start;
}

.te-inside__split-label {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.te-inside__split-body {
	max-width: 640px;
}

.te-inside__split-text {
	margin: 0 0 16px;
	font-size: clamp(16px, 1.8vw, 18px);
	line-height: 1.6;
	color: var(--te-off-white);
}

.te-inside__split-text:last-child {
	margin-bottom: 0;
}

/* Plain gold-dash bullet list — reused from the homepage's "Who It's For /
   Who It's Not For" list treatment. */

.te-inside__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.te-inside__list:last-child {
	margin-bottom: 0;
}

.te-inside__list li {
	position: relative;
	padding-left: 20px;
	font-size: clamp(16px, 1.8vw, 18px);
	line-height: 1.6;
	color: var(--te-off-white);
}

.te-inside__list li::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 0;
	width: 8px;
	height: 1px;
	background: var(--te-gold);
}

/* Final CTA — kept identical to the homepage's CTA component. */

.te-inside__cta {
	background: var(--te-bg);
	padding: clamp(58px, 8vw, 98px) 0;
	text-align: center;
	border-top: 1px solid var(--te-gold-soft);
}

.te-inside__cta-heading {
	margin: 0 0 14px;
	font-size: clamp(26px, 3.6vw, 36px);
	font-weight: 600;
	color: var(--te-off-white);
}

.te-inside__cta-copy {
	max-width: 480px;
	margin: 0 auto 28px;
	font-size: clamp(15px, 1.6vw, 17px);
	color: var(--te-off-white-dim);
}

/* Header mobile menu */

@media (max-width: 860px) {
	.te-inside__nav-toggle {
		display: flex;
	}

	.te-inside__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		background: var(--te-bg);
		border-bottom: 1px solid rgba(242, 239, 231, 0.08);
		transition: max-height 0.2s ease;
	}

	.te-inside__nav.is-open {
		max-height: 420px;
	}

	.te-inside__nav-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.te-inside__nav-links a,
	.te-inside__nav-links .te-inside__nav-static {
		display: block;
		width: 100%;
		padding: 14px 24px;
		border-top: 1px solid rgba(242, 239, 231, 0.06);
	}

	.te-inside__nav-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px 24px 20px;
	}
}

/* Mobile refinements */

@media (max-width: 720px) {
	.te-inside__split {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 600px) {
	.te-inside__inner {
		padding: 0 20px;
	}

	.te-inside__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.te-inside__btn {
		text-align: center;
	}

	.te-inside__footer-links {
		gap: 14px;
	}
}
