/* Practice-test pages on the design system: /practice-tests/, a category,
   one test, the not-found page and /quiz-results/. The player itself is
   inc/practice-tests/practice-tests.css. Tokens and components: site.css. */

.t1 [data-search][hidden], .t1 [data-pt-block][hidden] { display: none; }

/* ── Heroes ──────────────────────────────────────────────────────────────── */

/* One test: the title, its facts, share; the exam's letters drawn large on
   the right. Long quiz titles, so a smaller H1 than other pages. */
.t1 .pt-hero--test .pt-hero__grid {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px);
}
.t1 .pt-hero__title { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem); line-height: 1.12; max-width: 24ch; text-wrap: balance; }
.t1 .pt-hero--results .pt-hero__title { max-width: 22ch; }
.t1 .pt-hero--test .t1-crumbs li:last-child { display: none; }
.t1 .pt-hero__mark {
	position: relative; display: block;
	font-family: var(--t1-font-head); font-weight: 600; line-height: .9; letter-spacing: .01em;
	font-size: clamp(5rem, 3rem + 7vw, 10rem);
	color: transparent; -webkit-text-stroke: 1.5px var(--t1-gold);
	user-select: none;
}
.t1 .pt-hero__mark::after {
	content: attr(data-text); position: absolute; inset: 0;
	color: var(--t1-gold); -webkit-text-stroke: 0; opacity: .14;
	clip-path: inset(100% 0 0 0);
}
@media (prefers-reduced-motion: no-preference) {
	.t1 .pt-hero__mark { animation: t1-fade 1.2s .3s var(--t1-ease) both; }
	.t1 .pt-hero__mark::after { animation: pt-fill 1.6s .7s var(--t1-ease) forwards; }
}
@keyframes pt-fill { to { clip-path: inset(0 0 0 0); } }
@media (max-width: 860px) {
	.t1 .pt-hero--test .pt-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.t1 .pt-hero--test .pt-hero__mark { display: none; }
}

.t1 .pt-share { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.t1 .pt-share__btn { min-height: 40px; padding: 8px 16px; font-size: .875rem; cursor: pointer; }
.t1 .pt-share__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t1 .pt-embed { position: relative; }
.t1 .pt-embed summary { list-style: none; }
.t1 .pt-embed summary::-webkit-details-marker { display: none; }
.t1 .pt-embed[open] summary { border-color: var(--t1-ink); }
.t1 .pt-embed__box {
	position: absolute; z-index: 6; top: calc(100% + 10px); left: 0;
	display: grid; gap: 10px; justify-items: start;
	width: min(520px, calc(100vw - 2 * var(--t1-gutter)));
	padding: 16px; border-radius: var(--t1-radius);
	background: var(--t1-surface); border: 1px solid var(--t1-line); box-shadow: var(--t1-shadow-lift);
	font-size: .875rem; color: var(--t1-ink-2);
}
@media (max-width: 560px) { .t1 .pt-embed__box { position: fixed; top: auto; bottom: 16px; left: var(--t1-gutter); right: var(--t1-gutter); width: auto; } }
.t1 .pt-embed__box textarea {
	display: block; width: 100%; padding: 10px; resize: none;
	font: .8125rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--t1-ink); background: var(--t1-bg-alt);
	border: 1px solid var(--t1-line); border-radius: 10px;
}

/* Index: a test card drawn in the site's lines, playing a question through. */
.t1 .pt-mock { position: relative; width: min(100%, 460px); margin-left: auto; padding: 36px 0 44px; }
.t1 .pt-mock__card {
	position: relative; display: grid; gap: 12px;
	padding: 22px; border-radius: var(--t1-radius-lg);
	background: var(--t1-surface); border: 1px solid var(--t1-line); box-shadow: var(--t1-shadow-lift);
	transform: rotate(-2deg);
}
.t1 .pt-mock__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--t1-font-head); font-weight: 600; font-size: .8125rem; }
.t1 .pt-mock__track { flex: 1; height: 6px; border-radius: 9px; background: var(--t1-line); overflow: hidden; }
.t1 .pt-mock__track i { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--t1-rose); }
.t1 .pt-mock__time { padding: 4px 10px; border-radius: 99px; background: var(--t1-bg-alt); font-variant-numeric: tabular-nums; }
.t1 .pt-mock__q { height: 10px; border-radius: 9px; background: color-mix(in srgb, var(--t1-ink) 16%, transparent); }
.t1 .pt-mock__q--short { width: 62%; margin-bottom: 6px; }
.t1 .pt-mock__choices { display: grid; gap: 8px; }
.t1 .pt-mock__choices li {
	display: flex; align-items: center; gap: 10px; padding: 9px 12px;
	border: 1.5px solid var(--t1-line); border-radius: 12px;
	transition: border-color .4s, background-color .4s;
}
.t1 .pt-mock__choices b {
	display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	border: 1.5px solid var(--t1-line); font-family: var(--t1-font-head); font-size: .6875rem; color: var(--t1-ink-2);
	transition: background-color .4s, border-color .4s, color .4s;
}
.t1 .pt-mock__choices i { flex: 1; height: 7px; border-radius: 9px; background: color-mix(in srgb, var(--t1-ink) 10%, transparent); max-width: 70%; }
.t1 .pt-mock__choices li:nth-child(3) i { max-width: 52%; }
.t1 .pt-mock__choices li:nth-child(4) i { max-width: 60%; }
.t1 .pt-mock__choices .is-picked { border-color: var(--t1-rose); background: var(--t1-rose-wash); }
.t1 .pt-mock__choices .is-picked b { background: var(--t1-rose-press); border-color: var(--t1-rose-press); color: #fff; }
.t1 .pt-mock__score {
	position: absolute; right: -6px; bottom: 6px;
	display: grid; place-items: center; align-content: center;
	width: 104px; height: 104px; border-radius: 50%;
	background: conic-gradient(var(--t1-rose) 87%, var(--t1-line) 0);
	box-shadow: var(--t1-shadow-lift);
	font-family: var(--t1-font-head);
}
.t1 .pt-mock__score::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--t1-surface); }
.t1 .pt-mock__score span, .t1 .pt-mock__score small { position: relative; }
.t1 .pt-mock__score span { font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.t1 .pt-mock__score small { font-size: .6875rem; color: var(--t1-ink-2); text-transform: uppercase; letter-spacing: .12em; }
@media (prefers-reduced-motion: no-preference) {
	/* The card plays a question: bar fills, B is picked, the score turns up. */
	.t1 .pt-mock__card { animation: t1-rise 1s .25s var(--t1-ease) both; }
	.t1 .pt-mock__track i { animation: pt-mock-bar 7s 1.2s var(--t1-ease) infinite; }
	.t1 .pt-mock__choices .is-picked { animation: pt-mock-pick 7s 1.2s var(--t1-ease) infinite; }
	.t1 .pt-mock__choices .is-picked b { animation: pt-mock-pick-b 7s 1.2s var(--t1-ease) infinite; }
	.t1 .pt-mock__score { animation: pt-mock-score 7s 1.2s var(--t1-ease) infinite; }
}
@keyframes pt-mock-bar { 0%, 10% { width: 20%; } 30%, 100% { width: 27%; } }
@keyframes pt-mock-pick { 0%, 14% { border-color: var(--t1-line); background: transparent; } 20%, 100% { border-color: var(--t1-rose); background: var(--t1-rose-wash); } }
@keyframes pt-mock-pick-b { 0%, 14% { background: transparent; border-color: var(--t1-line); color: var(--t1-ink-2); } 20%, 100% { background: var(--t1-rose-press); border-color: var(--t1-rose-press); color: #fff; } }
@keyframes pt-mock-score { 0%, 34% { opacity: 0; transform: scale(.6) rotate(-20deg); } 44%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
@media (max-width: 960px) {
	.t1 .pt-hero--index .t1-hero__visual { max-width: 420px; margin: 8px auto 0; width: 100%; }
	.t1 .pt-mock { margin: 0 auto; }
}
@media (max-width: 560px) {
	.t1 .pt-mock { padding: 18px 8px 30px 0; }
	.t1 .pt-mock__score { width: 84px; height: 84px; right: -4px; }
	.t1 .pt-mock__score span { font-size: 1.25rem; }
}

/* Category: the exam's letters over a fanned stack of test cards. */
.t1 .pt-stack { position: relative; height: clamp(240px, 26vw, 320px); width: min(100%, 380px); margin-left: auto; }
.t1 .pt-stack__mark {
	position: absolute; left: 0; top: 0; z-index: 2;
	font-family: var(--t1-font-head); font-weight: 600; line-height: .9;
	font-size: clamp(4.5rem, 3rem + 5vw, 8rem); color: transparent; -webkit-text-stroke: 1.5px var(--t1-gold);
}
.t1 .pt-stack__card {
	position: absolute; right: 0; bottom: 0; width: 72%; height: 64%;
	border-radius: var(--t1-radius-lg); background: var(--t1-surface); border: 1px solid var(--t1-line); box-shadow: var(--t1-shadow);
	transform-origin: 50% 100%;
}
.t1 .pt-stack__card--1 { transform: rotate(-9deg) translateX(-14%); opacity: .55; }
.t1 .pt-stack__card--2 { transform: rotate(-4deg) translateX(-6%); opacity: .8; }
.t1 .pt-stack__card--3 {
	display: grid; align-content: end; padding: 22px 24px;
	box-shadow: var(--t1-shadow-lift); color: var(--t1-ink-2); font-size: .9375rem; line-height: 1.5;
	background-image: linear-gradient(var(--t1-rose), var(--t1-rose)); background-size: 40% 6px; background-position: 24px 24px; background-repeat: no-repeat;
}
.t1 .pt-stack__card--3 b { font-family: var(--t1-font-head); font-size: 1.75rem; color: var(--t1-ink); letter-spacing: -.03em; }
@media (prefers-reduced-motion: no-preference) {
	.t1 .pt-stack__card { animation: pt-fan .9s var(--t1-ease) both; }
	.t1 .pt-stack__card--1 { animation-delay: .35s; }
	.t1 .pt-stack__card--2 { animation-delay: .25s; }
	.t1 .pt-stack__card--3 { animation-delay: .15s; }
	.t1 .pt-stack__mark { animation: t1-fade 1.2s .4s var(--t1-ease) both; }
}
@keyframes pt-fan { from { transform: none; opacity: 0; } }
@media (max-width: 960px) { .t1 .pt-hero--cat .t1-hero__visual { display: none; } }

/* ── Cards ───────────────────────────────────────────────────────────────── */

.t1 .pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.t1 .pt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .t1 .pt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .t1 .pt-grid, .t1 .pt-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

.t1 .pt-tile { gap: 12px; padding: 24px; }
.t1 .pt-tile__mark { font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.25rem); margin-bottom: 0; }
.t1 .pt-tile__title {
	font-family: var(--t1-font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.t1 .pt-tile__title a:hover { color: var(--t1-rose-text); }
.t1 .pt-tile .pt-chips { margin-top: auto; }
@media (max-width: 600px) {
	/* Phone: the letters beside the title, so a list of tests stays short. */
	.t1 .pt-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding: 18px; }
	.t1 .pt-tile__mark { grid-row: span 2; align-self: start; font-size: 2.25rem; min-width: 2.4ch; }
}

.t1 .pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t1 .pt-chips li {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	background: var(--t1-bg-alt); border: 1px solid var(--t1-line);
	font-size: .8125rem; font-weight: 600; color: var(--t1-ink-2); line-height: 1.4;
}
.t1 .t1-band--alt .pt-chips li { background: var(--t1-bg); }
.t1 .pt-chip--level::before, .t1 .pt-dot { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.t1 .pt-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.t1 .pt-chip--easy::before, .t1 .pt-dot--easy { background: var(--pt-good-fill, #16A34A); }
.t1 .pt-chip--medium::before, .t1 .pt-dot--medium { background: var(--t1-gold); }
.t1 .pt-chip--hard::before, .t1 .pt-dot--hard { background: var(--t1-rose); }

/* Index: one card per exam set; the big SAT set spans the row. */
.t1 .pt-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.t1 .pt-cat { gap: 14px; padding: 26px; }
.t1 .pt-cat .t1-service__mark { font-size: clamp(2.5rem, 2rem + 1.2vw, 3.25rem); margin: 0; line-height: 1; }
.t1 .pt-cat__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.t1 .pt-cat .t1-link { margin-top: auto; padding-top: 4px; }
.t1 .pt-cat--wide { grid-column: 1 / -1; display: grid; align-items: start; grid-template-columns: minmax(180px, .5fr) minmax(0, 2fr); column-gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 2.5vw, 34px); }
.t1 .pt-cat--wide .t1-service__mark { font-size: clamp(4rem, 3rem + 4vw, 7rem); }
.t1 .pt-cat__subs .pt-cat__more { display: none; }
.t1 .pt-cat__subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.t1 .pt-cat__subs a {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px;
	background: var(--t1-bg-alt); border: 1px solid var(--t1-line);
	font-size: .875rem; font-weight: 600; color: var(--t1-ink);
	transition: border-color .2s, color .2s, transform .3s var(--t1-ease);
}
.t1 .pt-cat__subs a span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--t1-surface); font-size: .75rem; color: var(--t1-ink-2); }
.t1 .pt-cat__subs a:hover { border-color: var(--t1-rose); color: var(--t1-rose-text); transform: translateY(-2px); }
@media (max-width: 1099px) { .t1 .pt-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.t1 .pt-cats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.t1 .pt-cat--wide { grid-template-columns: minmax(0, 1fr); }
	.t1 .pt-cat { padding: 22px; }
	.t1 .pt-cat .t1-service__mark { font-size: 2.5rem; }
	.t1 .pt-cat__subs li:nth-child(n+7):not(.pt-cat__more) { display: none; }
	.t1 .pt-cat__subs .pt-cat__more { display: inline-flex; align-items: center; padding: 0 6px; font-size: .875rem; font-weight: 600; color: var(--t1-ink-2); }
	.t1 .pt-cat--wide .t1-service__mark { font-size: 3.5rem; }
}

/* ── Filter ──────────────────────────────────────────────────────────────── */

.t1 .pt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.t1 .pt-filter__group {
	display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
	border-radius: 999px; background: var(--t1-surface); border: 1px solid var(--t1-line);
}
.t1 .pt-filter__group button {
	display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
	font-family: var(--t1-font-head); font-size: .875rem; font-weight: 600; color: var(--t1-ink-2);
	transition: background-color .25s var(--t1-ease), color .25s;
}
.t1 .pt-filter__group button:hover { color: var(--t1-ink); }
.t1 .pt-filter__group button[aria-pressed="true"] { background: var(--t1-ink); color: var(--t1-bg); }
.t1 .pt-search {
	position: relative; flex: 1 1 220px; max-width: 360px; display: block;
}
.t1 .pt-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--t1-ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.t1 .pt-search input {
	width: 100%; min-height: 46px; padding: 10px 16px 10px 44px;
	border-radius: 999px; border: 1px solid var(--t1-line); background: var(--t1-surface);
	font: 500 .9375rem/1.3 var(--t1-font-body); color: var(--t1-ink);
	transition: border-color .2s, box-shadow .2s;
}
.t1 .pt-search input::placeholder { color: var(--t1-ink-2); opacity: .8; }
.t1 .pt-search input:focus { outline: none; border-color: var(--t1-rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t1-rose) 18%, transparent); }
.t1 .pt-filter__count { font-size: .875rem; font-weight: 600; color: var(--t1-ink-2); }
.t1 .pt-filter__count:empty { display: none; }
@media (max-width: 760px) {
	/* Phone: exam pills scroll sideways in one row; search on its own line. */
	.t1 .pt-filter__group { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%; scrollbar-width: none; }
	.t1 .pt-filter__group::-webkit-scrollbar { display: none; }
	.t1 .pt-filter__group button { flex: none; }
	.t1 .pt-search { max-width: none; flex-basis: 100%; }
}

.t1 .pt-empty { padding: 28px 0; color: var(--t1-ink-2); font-size: 1.0625rem; }

/* Category: jump links to the sub-sets, and their headings. */
.t1 .pt-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 clamp(24px, 3vw, 36px); }
.t1 .pt-jump a {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px;
	background: var(--t1-surface); border: 1px solid var(--t1-line); font-size: .875rem; font-weight: 600;
	transition: border-color .2s, color .2s;
}
.t1 .pt-jump a span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--t1-bg-alt); font-size: .75rem; color: var(--t1-ink-2); }
.t1 .pt-jump a:hover { border-color: var(--t1-rose); color: var(--t1-rose-text); }
@media (max-width: 760px) {
	/* One row that scrolls sideways, so the tests stay near the top. */
	.t1 .pt-jump {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
		margin-inline: calc(var(--t1-gutter) * -1); padding: 2px var(--t1-gutter);
		scroll-padding-inline: var(--t1-gutter);
	}
	.t1 .pt-jump::-webkit-scrollbar { display: none; }
	.t1 .pt-jump a { flex: none; white-space: nowrap; }
}
.t1 .pt-blocks { display: grid; gap: clamp(40px, 5vw, 64px); }
.t1 .pt-block { scroll-margin-top: calc(var(--t1-adminbar) + 96px); }
.t1 .pt-block__title {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
	margin-bottom: 20px; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); letter-spacing: -.02em;
}
.t1 .pt-block__title a:hover { color: var(--t1-rose-text); }
.t1 .pt-block__n { font-family: var(--t1-font-body); font-size: .875rem; font-weight: 600; color: var(--t1-ink-2); letter-spacing: 0; }

/* ── One test: the sitting, about, more ─────────────────────────────────── */

.t1 .pt-sitting { padding-bottom: clamp(56px, 6vw, 88px); }
.t1 .pt-about .pt-text { white-space: pre-line; }
.t1 .pt-more__all { margin-top: 28px; }

/* ── Results (/quiz-results/) ────────────────────────────────────────────── */

.t1 .pt-tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px 20px; }
.t1 .pt-tally li { display: grid; align-content: start; gap: 4px; color: var(--t1-ink-2); font-size: .875rem; line-height: 1.3; }
.t1 .pt-tally strong { font-family: var(--t1-font-head); font-size: 1.375rem; line-height: 1.15; color: var(--t1-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .t1 .pt-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t1 .pt-review__title { margin: 44px 0 18px; }
.t1 .pt-legacy { white-space: normal; }
.t1 .pt-legacy :where(p) + :where(p) { margin-top: .7em; }
.t1 .pt-legacy :where(img) { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; background: #fff; }
.t1 .pt-legacy :where(hr) { border: 0; height: 1px; background: var(--t1-line); margin: 14px 0; }
.t1 .pt-choice__you { margin-left: 8px; font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t1-ink-2); white-space: nowrap; }
