/* The names and the hits (tt-hits.php): the people who have written for the paper, each with the piece of theirs
   read most, then the most-read stories of all time. On the page's own ground, an ink rule above it. */
.tth { margin-block: 56px 64px; padding-top: 18px; border-top: 3px solid var(--tt-text, #000); color: var(--tt-text, #000); }
.tth *, .tth *::before, .tth *::after { box-sizing: border-box; }
.tth a { color: inherit; text-decoration: none; }
.tth a:hover { text-decoration: underline; text-decoration-color: var(--tt-accent, #ff4200); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tth a:focus-visible { outline: 3px solid var(--tt-accent, #ff4200); outline-offset: 2px; }

.tth__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 46em; }
.tth__title { margin: 0; font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 44px; line-height: 46px; letter-spacing: -0.025em; }
.tth__deck { margin: 0; font-family: var(--font-deck, "Instrument Serif", Georgia, serif); font-size: 22px; line-height: 28px; color: var(--tt-text-secondary, rgba(0, 0, 0, 0.62)); }

.tth__sub { margin: 40px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--tt-text, #000); font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-weight: 800; font-size: 15px; line-height: 20px; }

/* the names: four to a row, each a picture, the name, what they are, and their most-read piece */
.tth__names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.tth-name { margin: 0; padding: 22px 0 24px; border-bottom: 1px solid var(--tt-rule, rgba(0, 0, 0, 0.14)); display: flex; flex-direction: column; gap: 14px; }
.tth-name__who { display: flex; align-items: center; gap: 14px; }
.tth-name__pic { flex: none; width: 64px; height: 64px; object-fit: cover; background: var(--tt-surface, rgba(0, 0, 0, 0.06)); }
.tth-name__who > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tth-name__name { font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 20px; line-height: 23px; letter-spacing: -0.01em; }
.tth-name__role { font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-size: 14px; line-height: 18px; color: var(--tt-text-secondary, rgba(0, 0, 0, 0.62)); }
.tth-name__piece { font-family: var(--font-deck, "Instrument Serif", Georgia, serif); font-size: 22px; line-height: 26px; }
.tth-name__piece[lang="ur"] { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); font-weight: 600; font-size: 18px; line-height: 32px; }

/* the hits: numbered, four to a row */
.tth__hits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.tth-hit { margin: 0; padding: 20px 0 22px; border-bottom: 1px solid var(--tt-rule, rgba(0, 0, 0, 0.14)); display: flex; gap: 14px; align-items: flex-start; }
.tth-hit__n { flex: none; min-width: 1ch; font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 44px; line-height: 40px; color: var(--tt-accent, #ff4200); font-variant-numeric: tabular-nums; }
.tth-hit__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tth-hit__word { font-family: var(--font-ui, "Alegreya Sans", Arial, sans-serif); font-weight: 700; font-size: 12px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tt-text-secondary, rgba(0, 0, 0, 0.62)); }
.tth-hit__title { font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 800; font-size: 18px; line-height: 22px; letter-spacing: -0.005em; }
.tth-hit__title[lang="ur"] { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); font-weight: 700; font-size: 17px; line-height: 30px; letter-spacing: 0; }

/* the Urdu edition */
.tth[lang="ur"] .tth__title { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); font-weight: 700; font-size: 38px; line-height: 56px; letter-spacing: 0; }
.tth[lang="ur"] .tth__deck, .tth[lang="ur"] .tth__sub, .tth[lang="ur"] .tth-name__role, .tth[lang="ur"] .tth-hit__word { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); letter-spacing: 0; }
.tth[lang="ur"] .tth__deck { font-size: 18px; line-height: 32px; }
.tth[lang="ur"] .tth-name__name { font-family: var(--font-urdu, "IBM Plex Sans Arabic", sans-serif); font-weight: 700; font-size: 18px; line-height: 30px; letter-spacing: 0; }
.tth[lang="ur"] .tth-name__role { line-height: 24px; }

@media (max-width: 1099px) {
	.tth__names, .tth__hits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.tth { margin-block: 40px 48px; }
	.tth__title { font-size: 32px; line-height: 34px; }
	.tth__deck { font-size: 19px; line-height: 24px; }
	.tth__sub { margin-top: 28px; }
	.tth__hits { grid-template-columns: minmax(0, 1fr); }
	/* the names: a row to swipe, the next one showing at the edge */
	.tth__names { display: flex; gap: 0; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
	.tth__names::-webkit-scrollbar { display: none; }
	.tth-name { flex: 0 0 76%; scroll-snap-align: start; padding: 18px 20px 20px 0; gap: 10px; border-bottom: 0; }
	.tth-name + .tth-name { padding-inline-start: 20px; border-inline-start: 1px solid var(--tt-rule, rgba(0, 0, 0, 0.14)); }
	.tth-name__pic { width: 52px; height: 52px; }
	.tth-name__name { font-size: 18px; line-height: 21px; }
	.tth-name__piece { font-size: 20px; line-height: 24px; }
	.tth-hit { padding: 16px 0 18px; }
	.tth-hit__n { font-size: 36px; line-height: 34px; min-width: 1.2ch; }
	.tth-hit__title { font-size: 17px; line-height: 21px; }
}
