/* TW Case Study — page styles. Uses the TariffWolf theme tokens (main.css) with fallbacks. */

.twcs {
	--cs-navy: var(--tw-navy, #0a1628);
	--cs-navy-deep: var(--tw-navy-deepest, #060e1c);
	--cs-navy-light: var(--tw-navy-light, #122340);
	--cs-surface: var(--tw-surface, #0e1a30);
	--cs-surface-2: var(--tw-surface-2, #15233e);
	--cs-line: var(--tw-navy-line, rgba(255,255,255,0.07));
	--cs-border: var(--tw-card-border, rgba(255,255,255,0.06));
	--cs-gold: var(--tw-gold, #c9a84c);
	--cs-gold-bright: var(--tw-gold-bright, #d4b85a);
	--cs-gold-soft: var(--tw-gold-soft, rgba(201,168,76,0.12));
	--cs-red: var(--tw-red, #ff5733);
	--cs-red-soft: var(--tw-red-soft, rgba(255,87,51,0.12));
	--cs-text: var(--tw-text, #e6edf6);
	--cs-soft: var(--tw-text-soft, #b3becf);
	--cs-mute: var(--tw-text-mute, #7e8aa0);
	--cs-radius: var(--tw-radius, 14px);
	--cs-radius-lg: var(--tw-radius-lg, 22px);
	color: var(--cs-text);
}
.twcs .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.twcs [id] { scroll-margin-top: 100px; }

/* ---------- Hero (§2) ---------- */
.twcs-hero {
	position: relative;
	overflow: hidden;
	padding: 136px 0 56px;
	background: linear-gradient(180deg, var(--cs-navy-light) 0%, var(--cs-navy) 100%);
	border-bottom: 1px solid var(--cs-line);
}
.twcs-hero::before {
	content: "";
	position: absolute;
	top: -220px; left: 18%;
	width: 760px; height: 520px;
	background: radial-gradient(circle, rgba(201,168,76,0.16) 0%, transparent 70%);
	filter: blur(60px);
	pointer-events: none;
}
.twcs-hero .tw-container { position: relative; z-index: 1; }
.twcs-crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--cs-mute); margin-bottom: 26px; }
.twcs-crumbs a { color: var(--cs-soft); }
.twcs-crumbs a:hover { color: var(--cs-gold); }

.twcs-hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) {
	.twcs-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
}
.twcs-eyebrow { margin-bottom: 18px; line-height: 1.5; }
.twcs-title {
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	line-height: 1.12;
	margin: 0 0 18px;
	max-width: 22ch;
}
.twcs-sub { color: var(--cs-soft); font-size: 1.12rem; line-height: 1.65; max-width: 60ch; margin: 0 0 22px; }
.twcs-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.twcs-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--cs-line);
	background: rgba(255,255,255,0.03);
	border-radius: 999px;
	font-size: .82rem;
	color: var(--cs-soft);
}
.twcs-chip i { color: var(--cs-gold); }
.twcs-chip-logo img { height: 22px; width: auto; }

/* Stats: panel on the right (no hero image) or a bar under the hero */
.twcs-stat-panel, .twcs-stat-bar { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.twcs-stat-bar { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.twcs-stat {
	position: relative;
	background: linear-gradient(135deg, var(--cs-surface-2) 0%, var(--cs-surface) 100%);
	border: 1px solid var(--cs-border);
	border-left: 3px solid var(--cs-gold);
	border-radius: var(--cs-radius);
	padding: 20px 22px;
	display: flex; flex-direction: column; gap: 4px;
}
.twcs-stat-panel .twcs-stat { animation: twcs-pop .5s ease both; animation-delay: calc(var(--i, 0) * 120ms + 150ms); }
.twcs-stat-value { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -0.01em; }
.twcs-stat-label { font-size: .9rem; color: var(--cs-soft); line-height: 1.5; }
@keyframes twcs-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .twcs-stat-bar { grid-template-columns: 1fr; } }

.twcs-hero-media img { border-radius: var(--cs-radius-lg); border: 1px solid rgba(201,168,76,0.35); }

.twcs-loop {
	font-style: italic;
	color: var(--cs-gold);
	font-size: 1.05rem;
	margin: 28px 0 0;
}
.twcs-sec .twcs-loop { margin: 26px 0 0; }

/* ---------- Article + rail ---------- */
.twcs-layout {
	display: grid;
	gap: 48px;
	grid-template-columns: 1fr;
	padding-top: 56px;
	padding-bottom: 40px;
}
@media (min-width: 1000px) {
	.twcs-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
	.twcs-rail { position: sticky; top: 100px; align-self: start; }
}
@media (max-width: 999px) { .twcs-rail { order: -1; } }

.twcs-article { min-width: 0; max-width: 760px; }
.twcs-article p { color: var(--cs-soft); font-size: 1.04rem; line-height: 1.78; margin: 0 0 1.1em; }
.twcs-article p strong, .twcs-article li strong { color: #fff; }
.twcs-article a:not(.tw-btn) { text-decoration: underline; text-underline-offset: 3px; }

.twcs-sec { padding: 44px 0; border-top: 1px solid var(--cs-line); }
.twcs-sec:first-child { padding-top: 0; border-top: 0; }
.twcs-sec h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin: 0 0 18px; }
.twcs-sec h3 { font-size: 1.15rem; margin: 26px 0 10px; }

.twcs-cold-open p:first-child { font-size: 1.18rem; line-height: 1.7; }
.twcs-cold-open p:first-child strong { color: #fff; font-weight: 700; }

/* Media */
.twcs-media { margin: 26px 0; }
.twcs-media img { width: 100%; border-radius: var(--cs-radius); border: 1px solid var(--cs-border); }
.twcs-media-sq { max-width: 380px; }

/* Facts strip (§5) */
.twcs-facts {
	display: grid; grid-template-columns: repeat(2, 1fr);
	gap: 1px; margin: 26px 0;
	background: var(--cs-line);
	border: 1px solid var(--cs-line);
	border-radius: var(--cs-radius);
	overflow: hidden;
}
@media (min-width: 640px) {
	.twcs-facts { grid-template-columns: repeat(3, 1fr); }
	.twcs-facts > div:last-child:nth-child(3n+2) { grid-column: span 2; }
	.twcs-facts > div:last-child:nth-child(3n+1) { grid-column: span 3; }
}
.twcs-facts > div { background: var(--cs-surface); padding: 16px 18px; }
.twcs-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-gold); margin-bottom: 4px; }
.twcs-facts dd { margin: 0; color: #fff; font-size: .95rem; line-height: 1.5; }

/* Tables */
.twcs-table-wrap {
	margin: 26px 0;
	overflow-x: auto;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	background: var(--cs-surface);
}
.twcs-table-wrap:focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 3px; }
.twcs-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.twcs-table th, .twcs-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cs-line); line-height: 1.55; }
.twcs-table tbody tr:last-child th, .twcs-table tbody tr:last-child td { border-bottom: 0; }
.twcs-table thead th {
	background: var(--cs-navy-light);
	color: #fff;
	font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.twcs-table tbody th { color: #fff; font-weight: 600; }
.twcs-table td { color: var(--cs-soft); }
.twcs-table-compare thead th:last-child { color: var(--cs-gold); }
.twcs-table-compare td:last-child { color: #fff; background: rgba(201,168,76,0.06); }
.twcs-table-results td:nth-child(3) { color: #fff; font-weight: 600; }
.twcs-table-results td:nth-child(4) { color: var(--cs-gold); font-weight: 600; }

/* Phones: each row becomes a small card with its column labels. */
@media (max-width: 640px) {
	.twcs-table-wrap { overflow: visible; background: transparent; border: 0; }
	.twcs-table { min-width: 0; }
	.twcs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.twcs-table, .twcs-table tbody, .twcs-table tr, .twcs-table th, .twcs-table td { display: block; width: 100%; }
	.twcs-table tr {
		margin-bottom: 12px;
		background: var(--cs-surface);
		border: 1px solid var(--cs-border);
		border-radius: 12px;
		overflow: hidden;
	}
	.twcs-table tbody th { background: var(--cs-navy-light); padding: 12px 16px; border-bottom: 0; }
	.twcs-table td { padding: 10px 16px; border-bottom: 1px solid var(--cs-line); }
	.twcs-table tbody tr:last-child td { border-bottom: 1px solid var(--cs-line); }
	.twcs-table tr td:last-child { border-bottom: 0 !important; }
	.twcs-table td[data-label]:not([data-label=""])::before {
		content: attr(data-label);
		display: block;
		font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
		color: var(--cs-mute); margin-bottom: 2px;
	}
	.twcs-table-compare td:last-child::before { color: var(--cs-gold); }
}

/* Flow diagram (§5) */
.twcs-diagram { margin: 30px 0; }
.twcs-diagram-flow {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	counter-reset: none;
}
.twcs-diagram-box {
	position: relative;
	background: var(--cs-surface-2);
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	padding: 18px 16px 16px;
	display: flex; flex-direction: column; gap: 6px;
}
.twcs-diagram-box strong { color: #fff; font-size: .95rem; line-height: 1.35; }
.twcs-diagram-box span:not(.twcs-diagram-step) { color: var(--cs-mute); font-size: .82rem; line-height: 1.45; }
.twcs-diagram-step {
	width: 26px; height: 26px; border-radius: 50%;
	display: inline-grid; place-items: center;
	background: var(--cs-gold-soft); color: var(--cs-gold);
	font-size: .78rem; font-weight: 800;
}
.twcs-diagram-box:not(:last-child)::after {
	content: "→";
	position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
	width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--cs-navy); color: var(--cs-gold); font-size: .85rem; font-weight: 700; line-height: 1;
	z-index: 1;
}
.twcs-diagram figcaption { margin-top: 12px; color: var(--cs-mute); font-size: .85rem; }
@media (max-width: 700px) {
	.twcs-diagram-flow { grid-template-columns: 1fr; }
	.twcs-diagram-box:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -13px; transform: translateX(50%); }
}

/* Pains (§6) */
.twcs-pains { display: grid; gap: 14px; margin: 22px 0; }
.twcs-pain {
	display: grid; grid-template-columns: 40px 1fr; gap: 16px;
	background: var(--cs-surface);
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	padding: 20px 22px;
}
.twcs-pain h3 { margin: 4px 0 8px; font-size: 1.08rem; }
.twcs-pain p:last-child { margin-bottom: 0; }
.twcs-pain-num {
	width: 40px; height: 40px; border-radius: 12px;
	display: grid; place-items: center;
	background: var(--cs-red-soft); color: var(--cs-red);
	font-weight: 800;
}

/* Quotes */
.twcs-quote {
	display: grid; grid-template-columns: 48px 1fr; gap: 18px;
	margin: 32px 0;
	padding: 24px 26px;
	background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.02) 100%);
	border: 1px solid rgba(201,168,76,0.22);
	border-radius: var(--cs-radius);
}
.twcs-quote-mark {
	width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--cs-gold-soft); color: var(--cs-gold);
}
.twcs-quote blockquote { margin: 0; }
.twcs-quote blockquote p { color: #fff !important; font-size: 1.16rem !important; line-height: 1.6 !important; font-weight: 500; margin: 0 0 10px !important; }
.twcs-quote figcaption { color: var(--cs-gold); font-size: .88rem; font-weight: 600; }

/* Callouts */
.twcs-callout {
	margin: 26px 0;
	padding: 18px 22px;
	border-radius: var(--cs-radius);
	background: var(--cs-surface);
	border: 1px solid var(--cs-border);
	border-left: 4px solid var(--cs-soft);
}
.twcs-callout p { margin: 0 0 .6em !important; }
.twcs-callout p:last-child { margin-bottom: 0 !important; }
.twcs-callout strong { color: #fff; }
.twcs-callout.is-red { border-left-color: var(--cs-red); background: linear-gradient(90deg, rgba(255,87,51,0.08), transparent 70%), var(--cs-surface); }
.twcs-callout.is-red strong { color: var(--cs-red); }
.twcs-callout.is-gold { border-left-color: var(--cs-gold); background: linear-gradient(90deg, rgba(201,168,76,0.09), transparent 70%), var(--cs-surface); }
.twcs-callout.is-gold strong { color: var(--cs-gold); }

/* Video */
.twcs-video {
	margin: 26px 0 10px;
	aspect-ratio: 16 / 9;
	border-radius: var(--cs-radius);
	overflow: hidden;
	border: 1px solid rgba(201,168,76,0.35);
	background: var(--cs-navy-deep);
}
.twcs-video video, .twcs-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.twcs-transcript { margin: 0 0 26px; color: var(--cs-soft); }
.twcs-transcript summary { cursor: pointer; color: var(--cs-gold); font-size: .9rem; font-weight: 600; }

/* Workflow before / after (§8b) */
.twcs-flow { display: grid; gap: 10px; margin: 24px 0; }
.twcs-flow-head, .twcs-flow-row {
	display: grid; gap: 10px; align-items: stretch;
	grid-template-columns: 130px minmax(0, 1fr) 28px minmax(0, 1fr);
}
.twcs-flow-head { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-mute); padding: 0 2px; }
.twcs-flow-head span:last-child { color: var(--cs-gold); }
.twcs-flow-step { color: #fff; font-weight: 700; font-size: .92rem; align-self: center; line-height: 1.35; }
.twcs-flow-cell { padding: 14px 16px; border-radius: 12px; font-size: .92rem; line-height: 1.55; }
.twcs-flow-cell.is-before { background: rgba(255,255,255,0.025); border: 1px dashed rgba(255,255,255,0.14); color: var(--cs-mute); }
.twcs-flow-cell.is-after { background: var(--cs-surface-2); border: 1px solid rgba(201,168,76,0.45); color: #fff; }
.twcs-flow-arrow { display: grid; place-items: center; color: var(--cs-gold); font-size: 1.1rem; font-weight: 700; }
.twcs-flow-tag { display: none; }
@media (max-width: 680px) {
	.twcs-flow-head { display: none; }
	.twcs-flow-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--cs-line); }
	.twcs-flow-arrow { transform: rotate(90deg); height: 18px; }
	.twcs-flow-tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
	.twcs-flow-cell.is-after .twcs-flow-tag { color: var(--cs-gold); }
}

/* Timeline (§9) */
.twcs-timeline {
	list-style: none; margin: 30px 0; padding: 0;
	display: grid; gap: 18px;
	grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	position: relative;
}
.twcs-timeline::before {
	content: ""; position: absolute; left: 8px; right: 8px; top: 9px;
	height: 2px; background: linear-gradient(90deg, var(--cs-line), var(--cs-gold));
}
.twcs-timeline li { position: relative; padding-top: 34px; font-size: .9rem; color: var(--cs-soft); line-height: 1.55; }
.twcs-timeline li::before {
	content: ""; position: absolute; top: 0; left: 0;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--cs-navy); border: 2px solid var(--cs-gold);
}
.twcs-timeline li:last-child::before { background: var(--cs-gold); box-shadow: 0 0 0 6px rgba(201,168,76,0.18); }
.twcs-timeline strong { display: block; color: #fff; font-size: .98rem; margin-bottom: 6px; line-height: 1.35; }
@media (max-width: 760px) {
	.twcs-timeline { grid-template-columns: 1fr; padding-left: 34px; }
	.twcs-timeline::before { left: 9px; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; background: linear-gradient(180deg, var(--cs-line), var(--cs-gold)); }
	.twcs-timeline li { padding-top: 0; }
	.twcs-timeline li::before { left: -34px; top: 2px; }
}

/* Bar chart (§10) */
.twcs-chart {
	margin: 26px 0;
	padding: 22px 24px;
	background: var(--cs-surface);
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	display: grid; gap: 14px;
}
.twcs-chart figcaption { color: #fff; font-weight: 700; font-size: .98rem; }
.twcs-bar { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.twcs-bar-label { color: var(--cs-soft); font-size: .88rem; line-height: 1.35; }
.twcs-bar-track { height: 38px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; }
.twcs-bar-fill {
	display: flex; align-items: center; justify-content: flex-end;
	height: 100%; width: var(--w);
	min-width: 88px;
	min-width: fit-content;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--cs-navy-light), #3a4d70);
	transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.twcs-bar.is-last .twcs-bar-fill { background: linear-gradient(90deg, var(--tw-gold-deep, #a88a3d), var(--cs-gold)); }
/* JS sets is-pending, then removes it when the chart scrolls into view. */
.twcs-chart.is-pending .twcs-bar-fill { width: 0; }
.twcs-bar-value { padding: 0 12px; font-weight: 800; font-size: .92rem; color: #fff; white-space: nowrap; }
.twcs-bar.is-last .twcs-bar-value { color: var(--cs-navy); }
@media (max-width: 560px) { .twcs-bar { grid-template-columns: 1fr; gap: 6px; } }

/* Outcome (§10b) */
.twcs-outcome {
	padding: 30px 32px;
	border-radius: var(--cs-radius-lg);
	background: linear-gradient(135deg, var(--cs-navy-light) 0%, var(--cs-surface-2) 100%);
	border: 1px solid rgba(201,168,76,0.45);
	box-shadow: var(--tw-shadow-gold, 0 12px 40px -12px rgba(201,168,76,0.35));
}
.twcs-outcome h2 { margin-bottom: 18px !important; }
.twcs-outcome ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.twcs-outcome li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--cs-soft); line-height: 1.6; }
.twcs-outcome li i { color: var(--cs-gold); margin-top: 5px; }
.twcs-outcome-line { margin: 0 !important; padding-top: 18px; border-top: 1px solid rgba(201,168,76,0.25); color: #fff !important; font-weight: 700; font-size: 1.08rem !important; line-height: 1.6 !important; }
@media (max-width: 560px) { .twcs-outcome { padding: 24px 20px; } }

/* Tips (§11) */
.twcs-tips { display: grid; gap: 22px; grid-template-columns: 1fr; }
.twcs-tips.has-card { grid-template-columns: 1fr; }
@media (min-width: 700px) { .twcs-tips.has-card { grid-template-columns: 1fr 260px; align-items: start; } }
.twcs-tips ol { margin: 0; padding: 0; list-style: none; counter-reset: tip; display: grid; gap: 12px; }
.twcs-tips li {
	counter-increment: tip;
	position: relative;
	padding: 16px 18px 16px 60px;
	background: var(--cs-surface);
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	color: var(--cs-soft); line-height: 1.6;
}
.twcs-tips li::before {
	content: counter(tip);
	position: absolute; left: 16px; top: 15px;
	width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--cs-gold); color: var(--cs-navy);
	font-weight: 800; font-size: .85rem;
}
.twcs-tips .twcs-media { margin: 0; }

/* TL;DR rail (§3) */
.twcs-tldr {
	background: linear-gradient(160deg, var(--cs-surface-2) 0%, var(--cs-surface) 100%);
	border: 1px solid rgba(201,168,76,0.4);
	border-radius: var(--cs-radius-lg);
	padding: 24px 22px 22px;
}
.twcs-tldr h2 {
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--cs-gold); margin: 0 0 6px;
}
.twcs-tldr dl { margin: 0 0 20px; }
.twcs-tldr dt { font-size: .74rem; font-weight: 700; color: var(--cs-mute); letter-spacing: .06em; text-transform: uppercase; margin-top: 14px; }
.twcs-tldr dd { margin: 4px 0 0; color: var(--cs-text); font-size: .92rem; line-height: 1.55; }
.twcs-tldr .tw-btn { white-space: normal; }
.twcs-share { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 0 4px; color: var(--cs-mute); font-size: .85rem; }
.twcs-share a {
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	border: 1px solid var(--cs-line); color: var(--cs-soft);
}
.twcs-share a:hover { border-color: var(--cs-gold); color: var(--cs-gold); }

/* CTA (§12) */
.twcs-cta-section { padding: 40px 0 72px; }
.twcs-cta {
	position: relative; overflow: hidden;
	display: grid; gap: 28px; align-items: center;
	grid-template-columns: 1fr;
	padding: 44px 44px;
	border-radius: var(--cs-radius-lg);
	background: linear-gradient(135deg, var(--cs-navy-light) 0%, var(--cs-surface-2) 60%, rgba(201,168,76,0.18) 140%);
	border: 1px solid rgba(201,168,76,0.4);
}
@media (min-width: 900px) { .twcs-cta { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.twcs-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.twcs-cta p { color: var(--cs-soft); font-size: 1.05rem; line-height: 1.7; margin: 0 0 .6em; }
.twcs-cta p:last-child { margin-bottom: 0; }
.twcs-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 900px) { .twcs-cta-actions { align-items: flex-end; text-align: right; } }
.twcs-cta-secondary { color: var(--cs-soft); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.twcs-cta-secondary:hover { color: var(--cs-gold); }
.twcs-cta-section .tw-demo-wrapper { max-width: 720px; margin-left: auto; margin-right: auto; }
.twcs-cta-section .tw-demo-wrapper.is-open { margin-top: 28px; }
@media (max-width: 560px) { .twcs-cta { padding: 30px 22px; } }

/* FAQ + related bands */
.twcs-band { padding: 72px 0; border-top: 1px solid var(--cs-line); }
.twcs-band-dark { background: var(--tw-navy-darker, #08111f); }
.twcs-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 26px; }
.twcs-narrow { max-width: 860px; }
.twcs-faq details { border-bottom: 1px solid var(--cs-line); }
.twcs-faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 2px;
	color: #fff; font-weight: 600; font-size: 1.04rem; line-height: 1.45;
}
.twcs-faq summary::-webkit-details-marker { display: none; }
.twcs-faq summary i { color: var(--cs-gold); transition: transform .2s ease; flex-shrink: 0; }
.twcs-faq details[open] summary i { transform: rotate(45deg); }
.twcs-faq summary:hover { color: var(--cs-gold); }
.twcs-faq-a { padding: 0 2px 18px; }
.twcs-faq-a p { color: var(--cs-soft); line-height: 1.75; margin: 0 0 .8em; }

.twcs-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.twcs-card, .twcs-tile {
	display: flex; flex-direction: column; gap: 10px;
	padding: 24px;
	border-radius: var(--cs-radius);
	background: var(--cs-surface);
	border: 1px solid var(--cs-border);
	color: var(--cs-text);
	transition: border-color .2s ease, transform .2s ease;
}
.twcs-card:hover, .twcs-tile:hover { border-color: var(--tw-card-border-hover, rgba(201,168,76,0.4)); transform: translateY(-3px); }
.twcs-card-kind, .twcs-tile-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-gold); }
.twcs-card strong { color: #fff; font-size: 1.05rem; line-height: 1.4; }
.twcs-card-desc { color: var(--cs-soft); font-size: .9rem; line-height: 1.6; }
.twcs-card-more, .twcs-tile-more { margin-top: auto; color: var(--cs-gold); font-weight: 600; font-size: .9rem; }

/* Archive */
.twcs-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.twcs-tile { padding: 28px; gap: 14px; }
.twcs-tile-title { font-size: 1.3rem; line-height: 1.35; margin: 0; }
.twcs-tile-title a { color: #fff; }
.twcs-tile-title a:hover { color: var(--cs-gold); }
.twcs-tile-stat { border-left: 3px solid var(--cs-gold); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 2px; }
.twcs-tile-stat .twcs-stat-value { font-size: 1.5rem; }
.twcs-tile-sub { color: var(--cs-soft); line-height: 1.65; margin: 0; }
.twcs-empty { text-align: center; color: var(--cs-soft); }
@media (max-width: 400px) { .twcs-grid { grid-template-columns: 1fr; } }

/* Sticky CTA bar */
.twcs-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: rgba(8,17,31,0.96);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-top: 1px solid rgba(201,168,76,0.4);
	transform: translateY(110%); visibility: hidden;
	transition: transform .25s ease, visibility .25s;
}
.twcs-sticky.is-shown { transform: none; visibility: visible; }
.twcs-sticky .tw-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.twcs-sticky span { color: #fff; font-weight: 600; font-size: .95rem; }
.twcs-sticky .tw-btn { padding: 10px 20px; white-space: nowrap; }
@media (max-width: 560px) { .twcs-sticky span { font-size: .85rem; } .twcs-sticky .tw-btn { padding: 9px 14px; font-size: .82rem; } }

@media (prefers-reduced-motion: reduce) {
	.twcs-stat-panel .twcs-stat { animation: none; }
	.twcs-bar-fill, .twcs-sticky { transition: none; }
}
