/* ==========================================================================
   Thomas Exchange case study — loaded only on
   /work/flowarch-architecture-service-website/
   (the post is "Thomas Exchange - Redesigning a Digital Currency Exchange Platform")
   Everything is scoped under .tx-cs so it cannot leak into the global theme.
   Palette: Midnight #0E1B33, Pearl #F4F1EA, Stone #D9D3C5, Brass #B08D4A.
   ========================================================================== */

.tx-cs {
	--k: #1A1F2C;
	--k2: #576076;
	--p: #616670;
	--bd: #DBDFE5;
	--surf: #FFFFFF;
	--nv: #0E1B33;
	--pe: #F4F1EA;
	--st: #D9D3C5;
	--br: #B08D4A;
	--bri: #7A5C22;
	container-type: inline-size;
	font-family: var(--font-family, 'Bricolage Grotesque', system-ui, sans-serif);
	font-size: 16px;
	line-height: 1.6;
	color: var(--p);
	-webkit-font-smoothing: antialiased;
}

.content-box-card .card-body.tx-cs { padding: 40px; }

/* neutralise theme / bootstrap element defaults inside the case study */
.tx-cs *, .tx-cs *::before, .tx-cs *::after { box-sizing: border-box; }
.tx-cs h1, .tx-cs h2, .tx-cs h3, .tx-cs h4, .tx-cs p, .tx-cs ul, .tx-cs figure, .tx-cs dl, .tx-cs dd { margin: 0; }
.tx-cs ul { padding: 0; list-style: none; }
.tx-cs p { color: inherit; font-size: inherit; line-height: inherit; }
.tx-cs dt { font-weight: 400; }
.tx-cs a { color: inherit; }

/* ---------- sections & type ---------- */
.tx-cs .cs { padding: 72px 0; border-top: 1px solid var(--bd); }
.tx-cs .cs.first { padding-top: 0; border-top: 0; }
.tx-cs .cs.last { padding-bottom: 0; }
.tx-cs .eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--bri); letter-spacing: .02em; margin-bottom: 10px; }
.tx-cs .h1 { margin: 0; font-weight: 600; font-size: clamp(38px, 4.6cqi, 56px); line-height: 1.05; letter-spacing: -.03em; color: var(--k); }
.tx-cs .h2 { margin: 0; font-weight: 600; font-size: clamp(25px, 3cqi, 32px); line-height: 1.18; letter-spacing: -.02em; color: var(--k); max-width: 26ch; }
.tx-cs .h3 { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; color: var(--k); }
.tx-cs .lead { font-size: 17px; font-weight: 400; line-height: 1.6; max-width: 64ch; margin-top: 14px; }
.tx-cs .sm { font-size: 15px; line-height: 1.55; }
.tx-cs .sub { font-size: 18px; font-weight: 500; color: var(--bri); margin-top: 10px; }
.tx-cs .mt { margin-top: 28px; }

/* hero */
.tx-cs .hero { background: #0E1B33; border-radius: 16px; overflow: hidden; color: #C9CFDC; }
.tx-cs .hero img { display: block; width: 100%; height: auto; }
.tx-cs .hero .in { padding: 36px 40px 40px; }
.tx-cs .hero .h1 { color: #F4F1EA; }
.tx-cs .hero .sub { color: #D9BE85; }
.tx-cs .hero .lead { color: #D5DAE6; }
.tx-cs .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tx-cs .chip { border: 1px solid rgba(255, 255, 255, .28); background: transparent; border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 500; color: #E8EAF0; }

/* info grid */
.tx-cs .info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--bd); border-radius: 12px; margin-top: 28px; overflow: hidden; background: var(--surf); }
.tx-cs .info > div { padding: 14px 18px; border-right: 1px solid var(--bd); border-bottom: 1px solid var(--bd); display: flex; flex-direction: column; gap: 1px; }
.tx-cs .info > div:nth-child(3n) { border-right: 0; }
.tx-cs .info > div:nth-last-child(-n+3) { border-bottom: 0; }
.tx-cs .info span { font-size: 12.5px; font-weight: 500; color: var(--k2); }
.tx-cs .info b { font-weight: 600; color: var(--k); font-size: 15px; line-height: 1.35; }
.tx-cs .info a { text-decoration: underline; text-underline-offset: 3px; }
.tx-cs .info a:hover { color: var(--bri); }

/* cards, tags, questions */
.tx-cs .dg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 28px; }
.tx-cs .dg > div { border: 1px solid var(--bd); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.5; background: var(--surf); }
.tx-cs .dg b { font-size: 14px; font-weight: 600; color: var(--k); }
.tx-cs .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tx-cs .tg { border-radius: 6px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--st); color: var(--bri); background: var(--pe); }
.tx-cs .qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 1px solid var(--k); margin-top: 28px; }
.tx-cs .q { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--bd); display: flex; gap: 12px; align-items: baseline; }
.tx-cs .q .n { font-size: 24px; font-weight: 600; color: var(--bri); line-height: 1; }
.tx-cs .q h3 { font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--k); }

/* product frames (screens keep their own light look) */
.tx-cs .stage { background: var(--pe); border-radius: 16px; padding: 32px; position: relative; margin-top: 28px; }
.tx-cs .stage.navy { background: #0E1B33; }
.tx-cs .split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: center; }
.tx-cs .browser { background: #fff; border-radius: 12px; border: 1px solid #CFC8B6; box-shadow: 0 24px 48px -24px rgba(14, 27, 51, .4); overflow: hidden; }
.tx-cs .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #E9E5DA; border-bottom: 1px solid #CFC8B6; }
.tx-cs .bar i { width: 9px; height: 9px; border-radius: 50%; background: #B9B29E; display: block; }
.tx-cs .bar span { margin-left: 8px; height: 19px; border-radius: 10px; background: #F7F4EC; font-size: 12px; color: #566070; display: flex; align-items: center; padding: 0 12px; }
.tx-cs .browser img, .tx-cs .shot img { display: block; width: 100%; height: auto; }
.tx-cs .shot { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(14, 27, 51, .45); border: 1px solid rgba(14, 27, 51, .15); background: #fff; }
.tx-cs .phone { background: #0E1B33; border-radius: 32px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(14, 27, 51, .5); }
.tx-cs .phone img { display: block; width: 100%; height: auto; border-radius: 25px; }
.tx-cs .stage.over { padding-bottom: 40px; }
.tx-cs .over .phone { position: absolute; right: 40px; bottom: -32px; width: 200px; }
.tx-cs .col { display: flex; flex-direction: column; gap: 24px; }

/* annotations */
.tx-cs .ann { display: flex; flex-direction: column; border-top: 1px solid var(--bd); margin-top: 28px; }
.tx-cs .ann.after-over { margin-top: 56px; }
.tx-cs .ann details { border-bottom: 1px solid var(--bd); }
.tx-cs .ann summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 12px 0; font-weight: 600; color: var(--k); font-size: 15.5px; min-height: 44px; }
.tx-cs .ann summary::-webkit-details-marker { display: none; }
.tx-cs .ann summary i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #0E1B33; color: #F4F1EA; font-size: 11.5px; display: flex; align-items: center; justify-content: center; }
.tx-cs .ann summary::after { content: "+"; margin-left: auto; color: var(--k2); font-size: 20px; font-weight: 400; }
.tx-cs .ann details[open] summary::after { content: "\2013"; }
.tx-cs .ann details p { padding: 0 0 14px 34px; font-size: 14.5px; line-height: 1.55; max-width: 70ch; }
.tx-cs .trade { margin-top: 24px; border-top: 1px solid var(--br); padding-top: 14px; font-size: 15px; line-height: 1.55; max-width: 66ch; }
.tx-cs .trade b { color: var(--bri); font-weight: 600; margin-right: 6px; }

/* visual system */
.tx-cs .vs { background: var(--pe); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.tx-cs .sw { display: flex; flex-wrap: wrap; gap: 12px; }
.tx-cs .sw > div { flex: 1 1 100px; min-width: 90px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--k); }
.tx-cs .sw > div i { display: block; height: 44px; border-radius: 10px; border: 1px solid rgba(14, 27, 51, .15); }
.tx-cs .sw code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--k2); background: none; padding: 0; }
.tx-cs .sems { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tx-cs .sem { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; }
.tx-cs .sem i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: block; }

/* outcomes */
.tx-cs .rl { border-top: 1px solid var(--bd); margin: 28px 0 0; }
.tx-cs .rl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--bd); font-size: 14.5px; line-height: 1.5; }
.tx-cs .rl dt { font-weight: 600; color: var(--k); font-size: 15px; }
.tx-cs .ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--bd); font-size: 15px; line-height: 1.5; }
.tx-cs .ticks li:first-child { border-top: 1px solid var(--bd); }
.tx-cs .ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; background: var(--br); border-radius: 1px; transform: rotate(45deg); }
.tx-cs .live { background: #0E1B33; color: #F4F1EA; border-radius: 16px; padding: 28px 30px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 28px; }
.tx-cs .live a { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #F4F1EA; text-decoration: underline; text-underline-offset: 5px; }
.tx-cs .live a:hover { color: #D9BE85; }
.tx-cs .live span { font-size: 13px; font-weight: 600; color: #D9BE85; }

/* theme blocks reused at the end of the case study */
.tx-cs .portfolio-details-area { margin-top: 56px; }

/* ---------- dark theme: text areas follow the site, screenshots keep their frames ---------- */
.dark-theme .tx-cs {
	--k: #F0F2F5;
	--k2: rgba(240, 242, 245, .7);
	--p: rgba(240, 242, 245, .7);
	--bd: #262A36;
	--surf: #0E1018;
	--pe: #171A24;
	--st: #3A3528;
	--bri: #D9BE85;
}

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
	.tx-cs .over .phone { right: 24px; }
}
@media (max-width: 767.98px) {
	.content-box-card .card-body.tx-cs { padding: 24px 20px; }
	.tx-cs .cs { padding: 52px 0; }
	.tx-cs .hero .in { padding: 24px 20px 28px; }
	.tx-cs .stage { padding: 20px 16px; }
	.tx-cs .over .phone { position: static; width: 190px; margin: 20px auto 0; }
	.tx-cs .ann.after-over { margin-top: 28px; }
	.tx-cs .vs { padding: 20px 16px; }
	.tx-cs .info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tx-cs .info > div:nth-child(3n) { border-right: 1px solid var(--bd); }
	.tx-cs .info > div:nth-child(2n) { border-right: 0; }
	.tx-cs .info > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--bd); }
	.tx-cs .info > div:nth-last-child(-n+2) { border-bottom: 0; }
	.tx-cs .rl > div { grid-template-columns: 1fr; gap: 2px; }
	.tx-cs .live a { font-size: 20px; }
}
