/* Thursday Markets: the weather and faith pages' look (solid cards, clear figures, soft 3D objects). */
@font-face { font-family: "TT Inter"; src: url(/wp-content/themes/thursday-times/assets/fonts/Inter-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

.ttm {
	--ttm-ease: cubic-bezier(0.22, 0.8, 0.2, 1);
	--ttm-ink: #0b1220;
	--ttm-dim: #5d6779;
	--ttm-faint: #8c95a6;
	--ttm-card: #ffffff;
	--ttm-line: rgba(11, 18, 32, 0.07);
	--ttm-well: rgba(11, 18, 32, 0.05);
	--ttm-up: #e8590c;
	--ttm-down: #1c7ed6;
	--ttm-lift: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -14px rgba(15, 23, 42, 0.16);
	--ttm-ui: "TT Inter", Inter, system-ui, -apple-system, sans-serif;
	color: var(--ttm-ink);
	background: linear-gradient(180deg, #f4f6fa, #e9eff7);
	font-family: var(--ttm-ui);
	-webkit-font-smoothing: antialiased;
	overflow: clip;
}
.ttm[dir="rtl"] { font-family: var(--font-urdu), var(--ttm-ui); }
.ttm a { color: inherit; }
.ttm button, .ttm input, .ttm select { font: inherit; color: inherit; }
.ttm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ttm-wrap { max-width: 1180px; margin: 0 auto; padding: 16px 16px 56px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.tt-main:has(> .ttm) ~ .tt-footer { margin-top: 0; }

/* Hero: one tinted card with the two figures people come for. */
.ttm-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 22px 22px 22px; background: radial-gradient(120% 90% at 85% 10%, #fff4d6, #f6e7c3 45%, #e9eef6); box-shadow: var(--ttm-lift); }
.ttm-hero__art { position: absolute; z-index: -1; inset-inline-end: 6px; top: 8px; width: 150px; height: 112px; }
.ttm-hero__art svg { width: 100%; height: 100%; }
.ttm-kick { margin: 0 0 10px; }
.ttm-h1 { margin: 0; max-width: 11em; font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 46px); line-height: 1.02; letter-spacing: -0.03em; }
.ttm[dir="rtl"] .ttm-h1 { font-family: var(--font-urdu); font-weight: 700; line-height: 1.5; letter-spacing: 0; max-width: 12em; }
.ttm-date { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ttm-dim); }
.ttm-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.ttm-big__i { padding: 14px 16px; border-radius: 22px; background: var(--ttm-card); box-shadow: var(--ttm-lift); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ttm-big__k { font-size: 13px; font-weight: 650; color: var(--ttm-dim); }
.ttm-big__v { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 5vw, 40px); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: start; }
.ttm[dir="rtl"] .ttm-big__v { text-align: right; }
.ttm-big__v small { font-family: var(--ttm-ui); font-size: 0.45em; font-weight: 700; letter-spacing: 0; color: var(--ttm-dim); }

/* Change against the day before. */
.ttm-d { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ttm-faint); }
.ttm-d small { font-size: 12px; font-weight: 600; }
.ttm-d--up { color: var(--ttm-up); }
.ttm-d--down { color: var(--ttm-down); }
.ttm[dir="rtl"] .ttm-d { text-align: right; }

/* Cards. */
.ttm-card { background: var(--ttm-card); border-radius: 26px; box-shadow: var(--ttm-lift); padding: 18px 18px 16px; }
.ttm-card__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.ttm-card__h h2 { margin: 0; font-family: var(--ttm-ui); font-weight: 650; font-size: 13px; letter-spacing: 0.02em; color: var(--ttm-dim); }
.ttm[dir="rtl"] .ttm-card__h h2 { font-family: var(--font-urdu); font-size: 15px; font-weight: 700; }
.ttm-card__note { font-size: 13px; color: var(--ttm-dim); }
.ttm-card__foot { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--ttm-dim); font-variant-numeric: tabular-nums; }
.ttm[dir="rtl"] .ttm-card__foot { direction: rtl; }
.ttm-lede { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ttm-dim); }
.ttm[dir="rtl"] .ttm-lede { line-height: 1.95; }

/* Sparklines. */
.ttm-spark { display: block; width: 100%; height: 36px; overflow: visible; }
.ttm-spark .l { fill: none; stroke: var(--ttm-ink); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ttm-spark .a { fill: var(--ttm-well); }
.ttm-spark circle { fill: var(--ttm-ink); }
.ttm-spark--big { height: 120px; }
.ttm-spark--big .l { stroke: #c98a12; stroke-width: 2.4; }
.ttm-spark--big .a { fill: rgba(245, 197, 66, 0.16); }
.ttm-spark--big circle { fill: #c98a12; }
.ttm[dir="rtl"] .ttm-spark { transform: scaleX(-1); }

/* Converter. */
.ttm-conv__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 48px; gap: 8px; align-items: end; }
.ttm-conv__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ttm-conv__f span { font-size: 12px; font-weight: 650; color: var(--ttm-dim); }
.ttm-conv__f input, .ttm-conv__f select { height: 48px; box-sizing: border-box; width: 100%; padding: 0 14px; border: 0; border-radius: 14px; background: var(--ttm-well); font-size: 17px; font-weight: 700; outline: none; }
.ttm-conv__f select { font-size: 15px; font-weight: 650; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ttm-dim) 50%), linear-gradient(135deg, var(--ttm-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 30px; }
.ttm[dir="rtl"] .ttm-conv__f select { background-position: 13px 21px, 18px 21px; }
.ttm-conv__f input:focus, .ttm-conv__f select:focus { box-shadow: inset 0 0 0 2px var(--ttm-ink); }
.ttm .ttm-conv__swap { height: 48px; border: 0; border-radius: 14px; background: var(--ttm-ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform 0.25s var(--ttm-ease); }
.ttm-conv__swap svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ttm-conv__swap:active { transform: scale(0.94); }
.ttm-conv__swap[aria-pressed="true"] svg { transform: scaleX(-1); }
.ttm-conv__out { margin: 14px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ttm[dir="rtl"] .ttm-conv__out { text-align: right; }
.ttm-conv__out small { display: block; font-family: var(--ttm-ui); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ttm-dim); margin-bottom: 2px; }

/* Gold. */
.ttm-gold__chart { margin: 2px 0 14px; }
.ttm-gold__range { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; font-weight: 650; color: var(--ttm-faint); }
.ttm[dir="rtl"] .ttm-gold__range { flex-direction: row-reverse; }
.ttm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ttm-table th, .ttm-table td { padding: 11px 4px; text-align: start; font-size: 15px; }
.ttm-table thead th { font-size: 12px; font-weight: 650; color: var(--ttm-dim); padding-top: 0; }
.ttm-table tbody th { font-weight: 650; }
.ttm-table td { font-weight: 750; text-align: end; white-space: nowrap; }
.ttm-table thead th:not(:first-child) { text-align: end; }
.ttm[dir="rtl"] .ttm-table td { text-align: left; }
.ttm[dir="rtl"] .ttm-table thead th:not(:first-child) { text-align: left; }
.ttm-table tbody tr + tr { border-top: 1px solid var(--ttm-line); }
.ttm-table tbody tr:first-child td { font-size: 17px; }
.ttm-table__silver th, .ttm-table__silver td { color: var(--ttm-dim); }

/* Currencies. */
.ttm-fx__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.ttm-fx__i { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(56px, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; padding: 11px 0; }
.ttm-fx__i + .ttm-fx__i { border-top: 1px solid var(--ttm-line); }
.ttm-fx__n { display: flex; flex-direction: column; min-width: 0; }
.ttm-fx__n b { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.ttm-fx__n span { font-size: 13px; color: var(--ttm-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttm-fx__v { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ttm[dir="rtl"] .ttm-fx__v { align-items: flex-start; }
.ttm-fx__v b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ttm-fx__v .ttm-d { font-size: 12px; }
.ttm-fx__v .ttm-d small { display: none; }

.ttm-credit { margin: 4px 4px 0; font-size: 13px; line-height: 1.55; color: var(--ttm-faint); }
.ttm[dir="rtl"] .ttm-credit { line-height: 2; }

@media (min-width: 900px) {
	.ttm-wrap { padding: 24px 24px 72px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
	.ttm-hero { grid-column: 1 / -1; padding: 30px 32px 28px; }
	.ttm-hero__art { width: 230px; height: 172px; inset-inline-end: 28px; top: 18px; }
	.ttm-big { max-width: 760px; gap: 14px; }
	.ttm-conv { grid-column: 1 / -1; }
	.ttm-fx__list { grid-template-columns: minmax(0, 1fr); }
	.ttm-fx { grid-row: span 2; }
	.ttm-credit { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
	.ttm-big { grid-template-columns: minmax(0, 1fr); }
	.ttm-conv__row { grid-template-columns: minmax(0, 1fr) 48px; }
	.ttm-conv__f:first-child { grid-column: 1 / -1; }
	.ttm-hero__art { width: 112px; height: 84px; }
}
