/* ==========================================================================
   City service pages (templates/subpage-single.php), on site.css.
   Only what the shared blocks don't already do: the hero's exam letters /
   subject badge over the faces, the proof band, lesson videos, the city's
   other services, law schools and the prose aside.
   ========================================================================== */

/* ── Hero visual: faces, with the exam drawn in outline over their foot ── */

.t1 .t1-svc-visual { position: relative; min-width: 0; }
.t1 .t1-svc-visual--exam { padding-bottom: clamp(56px, 5.5vw, 84px); }
.t1 .t1-svc-visual__mark {
	position: absolute; left: -.12em; bottom: -.04em; z-index: 2;
	font-family: var(--t1-font-head); font-weight: 600; line-height: .9; letter-spacing: .01em;
	font-size: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
	color: transparent; -webkit-text-stroke: 2px var(--t1-gold);
	pointer-events: none;
}
.t1 .t1-svc-visual__mark::after {
	content: attr(data-text);
	position: absolute; inset: 0;
	color: var(--t1-gold); -webkit-text-stroke: 0;
	clip-path: inset(100% 0 0 0);
}
.t1 .t1-svc-visual__badge {
	position: absolute; left: -26px; bottom: 26px; z-index: 2;
	display: grid; place-items: center;
	width: clamp(96px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%;
	background: var(--t1-surface); border: 1px solid var(--t1-line);
	box-shadow: var(--t1-shadow-lift);
}
.t1 .t1-svc-visual__badge .t1-why__icon { width: 56%; margin: 0; stroke-width: 1.8; }

@media (max-width: 960px) {
	/* site.css keeps .t1-hero--page in two columns at every width; one here. */
	.t1 .t1-svc-hero .t1-hero__grid { grid-template-columns: minmax(0, 1fr); }
	/* …and its two-column wall keeps a desktop height once it is a row. */
	.t1 .t1-svc-hero .t1-wall--2 { grid-template-columns: minmax(0, 1fr); height: auto; }
	.t1 .t1-svc-visual, .t1 .t1-svc-visual--exam { display: flex; flex-direction: column; padding: 12px 0 0; }
	.t1 .t1-svc-visual__mark { position: relative; inset: auto; order: -1; align-self: flex-end; margin: 0 0 -.32em; font-size: clamp(3.25rem, 16vw, 5rem); -webkit-text-stroke-width: 1.5px; }
	.t1 .t1-svc-visual__badge { position: relative; inset: auto; order: -1; align-self: flex-end; margin: 0 4px -34px 0; width: 84px; }
	/* The current page's name can be long: one line, cut with an ellipsis. */
	.t1 .t1-svc-hero .t1-crumbs { width: 100%; contain: inline-size; }
	.t1 .t1-svc-hero .t1-crumbs li:last-child { min-width: 0; max-width: 100%; }
	.t1 .t1-svc-hero .t1-crumbs [aria-current] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: no-preference) {
	/* The letters fill with gold once, after the H1's line has drawn. */
	.t1 .t1-svc-visual__mark { animation: t1-fade 1s .3s var(--t1-ease) both; }
	.t1 .t1-svc-visual__mark::after { animation: t1-svc-fill 2.4s 1.1s var(--t1-ease) forwards; }
	.t1 .t1-svc-visual__badge { animation: t1-rise .9s .5s var(--t1-ease) both; }
	.t1 .t1-svc-visual__badge .t1-why__icon * { stroke-dasharray: 200; stroke-dashoffset: 200; animation: t1-draw 1.8s .8s var(--t1-ease) forwards; }
}
/* Gold rises into the letters, then drains away, leaving the outline. */
@keyframes t1-svc-fill { 0% { clip-path: inset(100% 0 0 0); } 45%, 60% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }

/* ── Proof band: tests in outline drifting, then four numbers ── */

.t1 .t1-svc-proof { padding-bottom: clamp(48px, 5vw, 72px); }
.t1 .t1-svc-proof .t1-exams { margin-top: calc(var(--t1-space) * -.45); margin-bottom: clamp(20px, 3vw, 36px); }
.t1 .t1-svc-proof .t1-exams span { font-size: clamp(2.75rem, 1.6rem + 4.5vw, 5.5rem); }
.t1 .t1-svc-proof .t1-proof { margin-top: 0; border-top: 0; }
.t1 .t1-svc-proof .t1-proof__item { padding-top: 0; }
@media (max-width: 960px) {
	.t1 .t1-svc-proof .t1-proof__item:nth-child(n+3) { padding-top: 22px; }
}

/* ── More in this city: small tiles, an exam's letters or a subject's icon ── */

.t1 .t1-svc-more__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.t1 .t1-svc-tile { gap: 10px; padding: 22px 22px 20px; }
.t1 .t1-svc-tile .t1-h3 { font-size: 1.0625rem; }
.t1 .t1-svc-tile__mark { font-size: clamp(2.5rem, 2rem + 1.4vw, 3.25rem); }
/* Letters or icon, the same height, so the names line up across the row. */
.t1 .t1-svc-tile__mark, .t1 .t1-svc-tile .t1-why__icon { height: 50px; margin: 0 0 4px; }
.t1 .t1-svc-tile .t1-why__icon { width: 44px; padding: 3px 0; align-self: flex-start; }
.t1 .t1-svc-tile .t1-link { font-size: .875rem; color: var(--t1-ink-2); }
.t1 .t1-svc-tile:hover .t1-why__icon { stroke: var(--t1-rose); }
.t1 .t1-svc-tile .t1-why__icon { transition: stroke .3s; }
@media (max-width: 1099px) { .t1 .t1-svc-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .t1 .t1-svc-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .t1 .t1-svc-tile { padding: 18px 16px; } }

.t1 .t1-svc-more__also { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(28px, 4vw, 44px); }
.t1 .t1-svc-more__label { font-family: var(--t1-font-head); font-weight: 600; font-size: .9375rem; color: var(--t1-ink-2); }
.t1 .t1-svc-more__jobs { margin-top: 22px; color: var(--t1-ink-2); font-size: var(--t1-fs-sm); }
.t1 .t1-svc-more__jobs .t1-link { margin-left: 4px; }

/* ── Law schools ── */

.t1 .t1-svc-schools__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.t1 .t1-svc-school { gap: 10px; }
.t1 .t1-svc-school .t1-why__icon { width: 52px; margin-bottom: 4px; }
.t1 .t1-svc-school .t1-link { margin-top: auto; font-size: .875rem; color: var(--t1-ink-2); overflow-wrap: anywhere; }

/* ── Prose with a sticky "try a session" card beside it ── */

.t1 .t1-svc-prose .t1-prose > h2:first-child { margin-top: 0; }
.t1 .t1-svc-aside { gap: 16px; align-items: flex-start; }
.t1 .t1-svc-aside__title { font-family: var(--t1-font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--t1-ink) !important; letter-spacing: -.01em; }
.t1 .t1-svc-aside .t1-avatars { margin: 0; }
.t1 .t1-svc-aside .t1-btn { width: 100%; }
.t1 .t1-svc-aside__call { align-self: center; font-size: var(--t1-fs-sm); font-weight: 600; color: var(--t1-ink-2); }
.t1 .t1-svc-aside__call:hover { color: var(--t1-rose-text); }

/* Drawn icons outside the why list draw themselves when their card comes in
   (site.css only starts the ones in .t1-why__item). */
.t1-js .t1 .t1-svc-tile.is-in .t1-why__icon *,
.t1-js .t1 .t1-svc-school.is-in .t1-why__icon * { stroke-dashoffset: 0; }

/* On a phone the H1's underlined words often wrap; the drawn line (one SVG
   under an inline-block) then runs across the whole block. Draw it under
   each line instead. */
@media (max-width: 600px) {
	.t1 .t1-svc-hero .t1-mark {
		display: inline;
		padding-bottom: .12em;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5C48 5 101 3.6 152 4.6c49 1 97 3.6 145 1.4' fill='none' stroke='%23F5A106' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .3em no-repeat;
		-webkit-box-decoration-break: clone; box-decoration-break: clone;
	}
	.t1 .t1-svc-hero .t1-mark__line { display: none; }
}
