/* Pakistan in Numbers on the front page: a black band under the top stories. The name and a plain line on the left,
   six tiles on the right, each in everyday words: what it is, the number, its recent path, what it was before. */
.ttn-f { background: #000000; color: #ffffff; padding: 44px 0 48px; margin: 40px 0; }
.ttn-f *, .ttn-f *::before, .ttn-f *::after { box-sizing: border-box; }
.ttn-f__in { width: min(100% - 40px, 1240px); margin-inline: auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.ttn-f a { color: inherit; text-decoration: none; }
.ttn-f a:focus-visible { outline: 3px solid var(--tt-orange, #ff4200); outline-offset: 2px; }

.ttn-f__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ttn-f__label { font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 15px; line-height: 1; }
.ttn-f__label b { color: var(--tt-orange, #ff4200); animation: ttn-f-blink 1s steps(1) infinite; }
@keyframes ttn-f-blink { 50% { opacity: 0; } }
.ttn-f h2 { margin: 0; font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 46px; line-height: 46px; letter-spacing: -0.03em; color: #ffffff; }
.ttn-f h2 a:hover { color: var(--tt-orange, #ff4200); }
.ttn-f__deck { margin: 0; max-width: 26ch; font-family: var(--font-deck, "Instrument Serif", Georgia, serif); font-size: 22px; line-height: 28px; color: #c8c8c8; }
.ttn-f__all { margin-top: 6px; font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-weight: 700; font-size: 16px; line-height: 22px; border-bottom: 2px solid var(--tt-orange, #ff4200); }
.ttn-f__all:hover { color: var(--tt-orange, #ff4200); }

/* The tiles: the 1px gaps between them are the rules, so they stay right however the grid wraps. */
.ttn-f__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px 0; list-style: none; background: #333333; }
.ttn-f__grid li { display: flex; margin: 0; background: #000000; }
.ttn-f__tile { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 20px; }
.ttn-f__name { font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-weight: 700; font-size: 18px; line-height: 22px; }
.ttn-f__hint { margin-top: 2px; font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-size: 14px; line-height: 18px; color: #a8a8a8; }
.ttn-f__num { margin-top: 14px; font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 40px; line-height: 44px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: flex-start; }
.ttn-f__tile:hover .ttn-f__num, .ttn-f__tile:focus-visible .ttn-f__num { color: var(--tt-orange, #ff4200); }
.ttn-f__line { position: relative; display: block; height: 40px; margin: 12px 8px 12px 0; direction: ltr; }
.ttn-f__line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ttn-f__line path { fill: none; stroke: #ffffff; stroke-width: 1.75px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ttn-f__line i { position: absolute; right: -4.5px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--tt-orange, #ff4200); }
.ttn-f__move { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-weight: 700; font-size: 15px; line-height: 20px; font-variant-numeric: tabular-nums; }
.ttn-f__move i { flex: none; width: 0; height: 0; border-inline: 5px solid transparent; }
.ttn-f__move.is-up i { border-bottom: 8px solid currentColor; }
.ttn-f__move.is-down i { border-top: 8px solid currentColor; }
.ttn-f__move.is-flat i { width: 9px; height: 2px; border: 0; background: currentColor; }
.ttn-f__when { margin-top: auto; padding-top: 6px; font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-size: 13px; line-height: 18px; color: #8a8a8a; }
.ttn-f__off { margin-inline-start: 8px; padding: 0 5px; font-style: normal; font-weight: 700; font-size: 12px; color: #ffffff; box-shadow: inset 0 0 0 1px #8a8a8a; }

/* Urdu. */
.ttn-f[lang="ur"] h2 { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); font-weight: 700; font-size: 40px; line-height: 60px; letter-spacing: 0; }
.ttn-f[lang="ur"] .ttn-f__deck, .ttn-f[lang="ur"] .ttn-f__all, .ttn-f[lang="ur"] .ttn-f__name, .ttn-f[lang="ur"] .ttn-f__hint, .ttn-f[lang="ur"] .ttn-f__move, .ttn-f[lang="ur"] .ttn-f__when { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); }
.ttn-f[lang="ur"] .ttn-f__deck { font-size: 18px; line-height: 32px; }
.ttn-f[lang="ur"] .ttn-f__name { line-height: 28px; }
.ttn-f[lang="ur"] .ttn-f__hint { line-height: 24px; }
.ttn-f[lang="ur"] .ttn-f__move, .ttn-f[lang="ur"] .ttn-f__when { line-height: 24px; }
.ttn-f[lang="ur"] .ttn-f__line { margin: 12px 0 12px 8px; }

/* Narrower: the name across the top, the tiles under it. */
@media (max-width: 1099px) {
	.ttn-f__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ttn-f__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 10px; align-items: end; }
	.ttn-f__label, .ttn-f h2, .ttn-f__deck { grid-column: 1; }
	.ttn-f__deck { max-width: 48ch; }
	.ttn-f__all { grid-column: 2; grid-row: 3; margin: 0; }
}
/* Phones: two tiles a row, all six in view without swiping. */
@media (max-width: 640px) {
	.ttn-f { padding: 30px 0 32px; margin: 28px 0; }
	.ttn-f__in { gap: 22px; }
	.ttn-f__head { display: flex; align-items: flex-start; gap: 10px; }
	.ttn-f h2 { font-size: 32px; line-height: 34px; }
	.ttn-f[lang="ur"] h2 { font-size: 30px; line-height: 48px; }
	.ttn-f__deck { font-size: 19px; line-height: 24px; }
	.ttn-f__all { margin-top: 2px; font-size: 15px; }
	.ttn-f__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -20px; }
	.ttn-f__tile { padding: 16px 16px 14px 20px; }
	.ttn-f__grid li:nth-child(2n) .ttn-f__tile { padding: 16px 20px 14px 16px; }
	.ttn-f[dir="rtl"] .ttn-f__tile { padding: 16px 20px 14px 16px; }
	.ttn-f[dir="rtl"] .ttn-f__grid li:nth-child(2n) .ttn-f__tile { padding: 16px 16px 14px 20px; }
	.ttn-f__name { font-size: 16px; line-height: 20px; }
	.ttn-f__hint { font-size: 13px; line-height: 16px; }
	.ttn-f__num { margin-top: 10px; font-size: 26px; line-height: 30px; }
	.ttn-f__line { height: 28px; margin: 10px 6px 10px 0; }
	.ttn-f__move { font-size: 13px; line-height: 18px; gap: 5px; }
	.ttn-f__when { font-size: 12px; }
	.ttn-f__off { display: inline-block; margin: 2px 0 0; }
}
/* Straight after the Analysis band: the two colours meet, no strip of page between them. */
.tt-an ~ .ttn-f { margin-top: 0; }
@media (max-width: 640px) {
	.tt-an:has(~ .ttn-f) { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.ttn-f__label b { animation: none; }
}
