/**
 * Calculators in the v4 design.
 * --------------------------------------------------------------
 * Loaded after home-v4.css on the calculator pages only, and scoped
 * to body.tns-v4 .tl. Reuses the v4 tokens (coral, lavender, ivory,
 * ink; Outfit over Lato).
 *
 * Layout: inputs on the left, the answer pinned on the right while
 * you scroll. On phones the answer follows the inputs, and a thin
 * strip under the header keeps the headline number in view.
 */

.tns-v4 .tl { --good: #2E7D4F; --good-soft: #E3F1E8; }

/* ---------- Hero ---------- */
.tns-v4 .tl-hero { padding: 56px 0 32px; }
.tns-v4 .tl-crumb { font-size: 14px; color: var(--muted-2); margin-bottom: 20px; }
.tns-v4 .tl-crumb a { color: var(--muted-2); }
.tns-v4 .tl-crumb span { margin: 0 6px; }
.tns-v4 .tl-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; max-width: 900px; margin-bottom: 20px; }
.tns-v4 .tl-lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 760px; }

.tns-v4 .tl-tool-sec { padding: 8px 0 96px; }
.tns-v4 .tl-noscript { background: var(--lav); color: var(--lav-ink); padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; }

/* ---------- Tabs ---------- */
.tns-v4 .tl-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.tns-v4 .tl-tab { min-height: 44px; padding: 0 20px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.tns-v4 .tl-tab:hover { color: var(--ink); background: var(--ivory); }
.tns-v4 .tl-tab.is-on { background: var(--ink); color: var(--white); }
.tns-v4 .tl-tab--link::after { content: "↗"; margin-left: 6px; font-weight: 400; }

/* ---------- Grid ---------- */
.tns-v4 .tl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; align-items: start; }
.tns-v4 .tl-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tns-v4 .tl-prefill { font-size: 15px; color: var(--muted-2); }

.tns-v4 .tl-group { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-width: 0; }
.tns-v4 .tl-group > legend, .tns-v4 .tl-adv > summary { font-family: var(--display); font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 12px; padding: 0; float: left; width: 100%; margin-bottom: 20px; }
.tns-v4 .tl-group > legend span, .tns-v4 .tl-adv > summary > span { width: 30px; height: 30px; border-radius: 8px; background: var(--lav); color: var(--lav-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.tns-v4 .tl-fields { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }

.tns-v4 .tl-adv > summary { list-style: none; cursor: pointer; float: none; margin-bottom: 0; flex-wrap: wrap; }
.tns-v4 .tl-adv > summary::-webkit-details-marker { display: none; }
.tns-v4 .tl-adv > summary small { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted-2); }
.tns-v4 .tl-adv > summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--muted-2); }
.tns-v4 .tl-adv[open] > summary::after { content: "−"; }
.tns-v4 .tl-adv[open] > summary { margin-bottom: 20px; }

/* ---------- Fields ---------- */
.tns-v4 .tl-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tns-v4 .tl-label { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.tns-v4 .tl-help { font-size: 13px; line-height: 1.45; color: var(--muted-2); }
.tns-v4 .tl-input { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--white); overflow: hidden; }
.tns-v4 .tl-input:focus-within { border-color: var(--lav-ink); box-shadow: 0 0 0 3px var(--lav); }
.tns-v4 .tl-input input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 14px; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.tns-v4 .tl-affix { padding-left: 14px; font-weight: 700; color: var(--muted-2); font-size: 17px; }
.tns-v4 .tl-affix + input { padding-left: 6px; }
.tns-v4 .tl-affix--end { padding: 0 14px 0 0; font-weight: 400; font-size: 14px; white-space: nowrap; }

.tns-v4 .tl-field--pct { grid-column: span 1; }
.tns-v4 .tl-field-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tns-v4 .tl-pct-box { display: inline-flex; align-items: center; height: 40px; border: 1.5px solid var(--field); border-radius: 10px; padding: 0 10px 0 0; background: var(--white); flex-shrink: 0; }
.tns-v4 .tl-pct-box:focus-within { border-color: var(--lav-ink); box-shadow: 0 0 0 3px var(--lav); }
.tns-v4 .tl-pct-box input { width: 52px; height: 100%; border: 0; outline: 0; text-align: right; padding: 0 2px 0 8px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); background: transparent; }
.tns-v4 .tl-pct-box span { font-weight: 700; color: var(--muted-2); }

.tns-v4 .tl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.tns-v4 .tl-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--lav); }
.tns-v4 .tl-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--lav); }
.tns-v4 .tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--coral-deep); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(27,24,32,.35); }
.tns-v4 .tl-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--coral-deep); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(27,24,32,.35); }

.tns-v4 .tl-field--switch { grid-column: 1 / -1; }
.tns-v4 .tl-switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 44px; }
.tns-v4 .tl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tns-v4 .tl-switch-ui { width: 46px; height: 28px; border-radius: 999px; background: var(--field); position: relative; flex-shrink: 0; transition: background-color .15s ease; }
.tns-v4 .tl-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(27,24,32,.3); transition: transform .15s ease; }
.tns-v4 .tl-switch input:checked + .tl-switch-ui { background: var(--coral-deep); }
.tns-v4 .tl-switch input:checked + .tl-switch-ui::after { transform: translateX(18px); }
.tns-v4 .tl-switch input:focus-visible + .tl-switch-ui { outline: 3px solid var(--lav-ink); outline-offset: 2px; }

/* ---------- Results ---------- */
.tns-v4 .tl-results { position: sticky; top: 108px; }
.tns-v4.admin-bar .tl-results { top: 140px; }
.tns-v4 .tl-res-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 24px 48px -32px rgba(27,24,32,.35); }
.tns-v4 .tl-verdict { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.tns-v4 .tl-big { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 14px; background: var(--ivory); }
.tns-v4 .tl-big span { font-size: 14px; font-weight: 700; color: var(--muted-2); }
.tns-v4 .tl-big strong { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tns-v4 .tl-big small { font-size: 14px; color: var(--muted-2); }
.tns-v4 .tl-big small b { color: var(--ink); }
.tns-v4 .is-gain { color: var(--good); }
.tns-v4 .is-loss { color: var(--coral-deep); }

.tns-v4 .tl-split-h { font-size: 14px; font-weight: 700; color: var(--muted-2); margin-bottom: 10px; }
.tns-v4 .tl-split-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--ivory); gap: 2px; }
.tns-v4 .tl-seg { display: block; height: 100%; min-width: 3px; transition: width .2s ease; }
.tns-v4 .tl-split-key { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 14px; }
.tns-v4 .tl-split-key li { display: flex; align-items: center; gap: 8px; }
.tns-v4 .tl-split-key i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.tns-v4 .tl-split-key b { margin-left: auto; font-variant-numeric: tabular-nums; }
.tns-v4 .s-product, .tns-v4 .s-product i { background: #3F3894; }
.tns-v4 .s-ship,    .tns-v4 .s-ship i    { background: #9B95DE; }
.tns-v4 .s-rto,     .tns-v4 .s-rto i     { background: #E45253; }
.tns-v4 .s-ads,     .tns-v4 .s-ads i     { background: #F4B3B3; }
.tns-v4 .s-other,   .tns-v4 .s-other i   { background: #C9C4CE; }
.tns-v4 .s-keep,    .tns-v4 .s-keep i    { background: #2E7D4F; }
.tns-v4 .tl-split-key li { background: none; }

.tns-v4 .tl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tns-v4 .tl-stats > div { background: var(--white); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tns-v4 .tl-stats dt { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.tns-v4 .tl-stats dt small { font-weight: 400; }
.tns-v4 .tl-stats dd { font-family: var(--display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.tns-v4 .tl-note { font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.tns-v4 .tl-insight { background: var(--lav); color: var(--lav-ink); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; font-weight: 700; }
.tns-v4 .tl-insight:empty { display: none; }
.tns-v4 .tl-res-cta { width: 100%; min-height: 52px; }

/* Phone strip with the headline number */
.tns-v4 .tl-live { display: none; }

/* Take-rate meter */
.tns-v4 .tl-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted-2); margin-bottom: 10px; }
.tns-v4 .tl-meter-top strong { font-family: var(--display); font-size: 24px; color: var(--ink); }
.tns-v4 .tl-meter-bar { position: relative; height: 10px; border-radius: 999px; background: var(--ivory); }
.tns-v4 .tl-meter-band { position: absolute; left: 50%; width: 16.67%; top: 0; bottom: 0; background: var(--good-soft); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }
.tns-v4 .tl-meter-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(27,24,32,.35); transition: left .2s ease; }
.tns-v4 .tl-meter-dot.is-high { background: var(--coral-deep); }
.tns-v4 .tl-meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); margin-top: 8px; }

/* Ledger */
.tns-v4 .tl-ledger { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.tns-v4 .tl-ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EFEBE4; font-size: 15px; }
.tns-v4 .tl-ledger li small { color: var(--muted-2); }
.tns-v4 .tl-ledger li b { font-variant-numeric: tabular-nums; }
.tns-v4 .tl-ledger li.is-total { font-weight: 900; border-bottom-color: var(--line); }

/* How we work it out */
.tns-v4 .tl-how { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.tns-v4 .tl-how > summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; }
.tns-v4 .tl-how > summary::-webkit-details-marker { display: none; }
.tns-v4 .tl-how > summary::after { content: "+"; font-size: 22px; color: var(--muted-2); }
.tns-v4 .tl-how[open] > summary::after { content: "−"; }
.tns-v4 .tl-how .tl-prose { padding-bottom: 20px; }
.tns-v4 .tl-prose { max-width: 760px; display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.tns-v4 .tl-prose strong { color: var(--ink); }
.tns-v4 .tl-prose h2, .tns-v4 .tl-prose h3 { font-family: var(--display); color: var(--ink); margin-top: 12px; }

/* Reference tables */
.tns-v4 .tl-ref { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tns-v4 .tl-ref h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.tns-v4 .tl-ref .tl-note { grid-column: 1 / -1; }
.tns-v4 .tl-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.tns-v4 .tl-table th, .tns-v4 .tl-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #EFEBE4; }
.tns-v4 .tl-table tr:last-child td { border-bottom: 0; }
.tns-v4 .tl-table th { font-size: 13px; color: var(--muted-2); background: var(--ivory); }
.tns-v4 .tl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tns-v4 .tl-table tr.is-on td { background: var(--lav); color: var(--lav-ink); font-weight: 900; }
.tns-v4 .tl-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.tns-v4 .tl-table--wide { min-width: 720px; }

/* Blinkit content */
.tns-v4 .tl-fees { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
.tns-v4 .tl-fees > div { background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tns-v4 .tl-fees h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.tns-v4 .tl-fees p { font-size: 15px; color: var(--muted); }
.tns-v4 .tl-example { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
.tns-v4 .tl-example h3 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; margin-bottom: 14px; }
.tns-v4 .tl-example p { color: var(--muted); }
.tns-v4 .tl-ledger--static { background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px; }
.tns-v4 .tl-ledger--static li:last-child { border-bottom: 0; }
.tns-v4 .tl-tips { margin-top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.tns-v4 .tl-tips h3 { font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 18px; }
.tns-v4 .tl-tips ol { padding-left: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; color: var(--muted); }
.tns-v4 .tl-tips strong { color: var(--ink); }

.tns-v4 .v4-tools--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1200px) {
	.tns-v4 .tl-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
	.tns-v4 .tl-fields { grid-template-columns: minmax(0, 1fr); }
	.tns-v4 .tl-fees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tns-v4 .tl-example { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
}

@media (max-width: 960px) {
	.tns-v4 .tl-hero { padding: 32px 0 20px; }
	.tns-v4 .tl-lede { font-size: 17px; }
	.tns-v4 .tl-grid, .tns-v4 .tl-example, .tns-v4 .tl-ref { grid-template-columns: minmax(0, 1fr); }
	.tns-v4 .tl-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tns-v4 .tl-results { position: static; }
	.tns-v4 .tl-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tns-v4 .tl-tips ol { grid-template-columns: minmax(0, 1fr); }
	.tns-v4 .v4-tools--3 { grid-template-columns: minmax(0, 1fr); }

	/* Keep the headline number in view while editing. */
	.tns-v4 .tl-live {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: sticky; top: 68px; z-index: 40;
		margin: 0 calc(var(--pad) * -1) 16px; padding: 10px var(--pad);
		background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700;
	}
	.tns-v4.admin-bar .tl-live { top: 114px; }
	.tns-v4 .tl-live strong { font-family: var(--display); font-size: 20px; }
}

@media (max-width: 640px) {
	.tns-v4 .tl-tabs { display: flex; }
	.tns-v4 .tl-tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 15px; }
	.tns-v4 .tl-group { padding: 20px 16px; border-radius: 16px; }
	.tns-v4 .tl-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tns-v4 .tl-res-card { padding: 20px 16px; }
	.tns-v4 .tl-big strong { font-size: 38px; }
	.tns-v4 .tl-split-key { grid-template-columns: minmax(0, 1fr); }
	.tns-v4 .tl-fees { grid-template-columns: minmax(0, 1fr); }
	.tns-v4 .tl-tips { padding: 24px 18px; }
	.tns-v4 .tl-how { padding: 0 16px; }
}

/* ============================================================
   Store leak checklist
============================================================ */
.tns-v4 .ck-list-wrap { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tns-v4 .ck-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tns-v4 .ck-toolbar-btns { display: flex; gap: 8px; }
.tns-v4 .ck-btn { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.tns-v4 .ck-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.tns-v4 .ck-btn--ghost { border-color: var(--field); color: var(--muted); }
.tns-v4 .ck-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.tns-v4 .ck-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tns-v4 .ck-sec-head h2 { font-family: var(--display); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 12px; }
.tns-v4 .ck-sec-head h2 span { width: 30px; height: 30px; border-radius: 8px; background: var(--lav); color: var(--lav-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.tns-v4 .ck-sec-count { font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.tns-v4 .ck-sec-count b { color: var(--ink); }
.tns-v4 .ck-sec-note { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.tns-v4 .ck-items { list-style: none; padding: 0; display: flex; flex-direction: column; }
.tns-v4 .ck-item + .ck-item { border-top: 1px solid #EFEBE4; }
.tns-v4 .ck-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 6px; border-radius: 10px; cursor: pointer; position: relative; }
.tns-v4 .ck-row:hover { background: var(--ivory); }
.tns-v4 .ck-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tns-v4 .ck-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--field); background: var(--white); display: flex; align-items: center; justify-content: center; color: transparent; margin-top: 1px; transition: background-color .12s ease, border-color .12s ease; }
.tns-v4 .ck-box .v4-ico { width: 16px; height: 16px; }
.tns-v4 .ck-row input:checked + .ck-box { background: var(--good); border-color: var(--good); color: var(--white); }
.tns-v4 .ck-row input:focus-visible + .ck-box { outline: 3px solid var(--lav-ink); outline-offset: 2px; }
.tns-v4 .ck-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tns-v4 .ck-title { font-weight: 700; font-size: 16px; line-height: 1.4; }
.tns-v4 .ck-why { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tns-v4 .ck-item.is-done .ck-title { color: var(--muted-2); text-decoration: line-through; text-decoration-color: var(--field); }
.tns-v4 .ck-tag { font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; white-space: nowrap; margin-top: 2px; }
.tns-v4 .ck-tag--high { background: #FBE3E3; color: var(--coral-hover); }
.tns-v4 .ck-tag--med { background: var(--ivory); color: var(--muted-2); }
.tns-v4 .ck-list-wrap.is-filtered .ck-item.is-done { display: none; }
.tns-v4 .ck-list-wrap.is-filtered .ck-item + .ck-item { border-top: 0; }

.tns-v4 .ck-secbars { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tns-v4 .ck-secbars li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; align-items: center; }
.tns-v4 .ck-secbar { height: 8px; border-radius: 999px; background: var(--ivory); overflow: hidden; }
.tns-v4 .ck-secbar i { display: block; height: 100%; width: 0; background: var(--good); transition: width .2s ease; }
.tns-v4 .ck-gaps ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.tns-v4 .ck-gaps a { color: var(--ink); font-weight: 700; text-decoration-color: var(--coral); }
.tns-v4 .ck-gaps a:hover { color: var(--coral-deep); }
.tns-v4 .ck-gaps .ck-gap-none { list-style: none; margin-left: -20px; color: var(--good); font-weight: 700; }

/* ============================================================
   Know your numbers quiz
============================================================ */
.tns-v4 .qz-rounds { display: flex; flex-direction: column; gap: 24px; max-width: 920px; }
.tns-v4 .qz-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 36px; scroll-margin-top: 104px; }
.tns-v4 .qz-card.is-playing { border-color: var(--lav-ink); box-shadow: 0 24px 48px -32px rgba(63,56,148,.45); }
.tns-v4 .qz-intro { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tns-v4 .qz-level { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); }
.tns-v4 .qz-title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.tns-v4 .qz-blurb { font-size: 17px; color: var(--muted); }
.tns-v4 .qz-meta { font-size: 14px; color: var(--muted-2); margin-bottom: 6px; }
.tns-v4 .qz-best { color: var(--good); font-weight: 700; }

.tns-v4 .qz-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--muted-2); margin-bottom: 10px; }
.tns-v4 .qz-bar { height: 6px; border-radius: 999px; background: var(--ivory); overflow: hidden; margin-bottom: 24px; }
.tns-v4 .qz-bar i { display: block; height: 100%; background: var(--coral); transition: width .25s ease; }
.tns-v4 .qz-q { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; margin-bottom: 20px; outline: none; }
.tns-v4 .qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tns-v4 .qz-opt { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 60px; padding: 12px 16px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.tns-v4 .qz-opt:hover:not(:disabled) { border-color: var(--ink); background: var(--ivory); }
.tns-v4 .qz-opt:disabled { cursor: default; }
.tns-v4 .qz-letter { width: 28px; height: 28px; border-radius: 8px; background: var(--ivory); color: var(--muted); font-weight: 900; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tns-v4 .qz-opt.is-right { border-color: var(--good); background: var(--good-soft); }
.tns-v4 .qz-opt.is-right .qz-letter { background: var(--good); color: var(--white); }
.tns-v4 .qz-opt.is-wrong { border-color: var(--coral-deep); background: #FDF1F1; }
.tns-v4 .qz-opt.is-wrong .qz-letter { background: var(--coral-deep); color: var(--white); }
.tns-v4 .qz-opt:disabled:not(.is-right):not(.is-wrong) { opacity: .55; }
.tns-v4 .qz-feedback { margin-top: 18px; border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tns-v4 .qz-feedback.is-right { background: var(--good-soft); color: #1F5536; }
.tns-v4 .qz-feedback.is-wrong { background: var(--lav); color: var(--lav-ink); }
.tns-v4 .qz-feedback p { font-size: 16px; line-height: 1.5; }
.tns-v4 .qz-next { flex-shrink: 0; }

.tns-v4 .qz-result { display: flex; gap: 28px; align-items: center; }
.tns-v4 .qz-disc { width: 120px; height: 120px; border-radius: 50%; background: var(--lav); color: var(--lav-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tns-v4 .qz-disc strong { font-family: var(--display); font-weight: 800; font-size: 36px; }
.tns-v4 .qz-result-txt h3 { font-family: var(--display); font-weight: 700; font-size: 28px; margin-bottom: 6px; outline: none; }
.tns-v4 .qz-result-txt p { color: var(--muted); margin-bottom: 16px; }
.tns-v4 .qz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tns-v4 .qz-again { border: 1.5px solid var(--ink); }
.tns-v4 .qz-link { background: none; border: 0; font: inherit; font-weight: 700; color: var(--coral-deep); cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0 8px; }

.tns-v4 .qz-static { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.tns-v4 .qz-static > summary { cursor: pointer; font-weight: 700; color: var(--muted); list-style: none; display: flex; justify-content: space-between; min-height: 32px; align-items: center; }
.tns-v4 .qz-static > summary::-webkit-details-marker { display: none; }
.tns-v4 .qz-static > summary::after { content: "+"; font-size: 22px; }
.tns-v4 .qz-static[open] > summary::after { content: "−"; }
.tns-v4 .qz-static ol { padding-left: 22px; margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.tns-v4 .qz-sq { font-weight: 700; margin-bottom: 4px; }
.tns-v4 .qz-sa { font-size: 15px; color: var(--muted); }

@media (max-width: 960px) {
	.tns-v4 .ck-secbars li { grid-template-columns: minmax(0, 1fr) 90px; }
}
@media (max-width: 640px) {
	.tns-v4 .ck-row { grid-template-columns: 28px minmax(0, 1fr); }
	.tns-v4 .ck-tag { grid-column: 2; justify-self: start; margin-top: 0; }
	.tns-v4 .ck-toolbar-btns { width: 100%; }
	.tns-v4 .ck-btn { flex: 1 1 auto; }
	.tns-v4 .qz-card { padding: 22px 18px; }
	.tns-v4 .qz-title { font-size: 26px; }
	.tns-v4 .qz-q { font-size: 20px; }
	.tns-v4 .qz-opts { grid-template-columns: minmax(0, 1fr); }
	.tns-v4 .qz-feedback { flex-direction: column; align-items: stretch; }
	.tns-v4 .qz-result { flex-direction: column; align-items: flex-start; }
	.tns-v4 .qz-disc { width: 96px; height: 96px; }
}
