/* ==========================================================================
   Tutoring-jobs pages (templates/subpage-jobs.php, subpage-jobs-hub.php), on
   site.css: the hero's tutor wall, the exams we hire for, the city directory
   with its filter, "what we look for", and the Draft Sanctuary form
   (partials/jobs-apply.php, whose markup is its own: .jobs-apply, .container,
   .section-header…) dressed as a design-system band.
   ========================================================================== */

/* ── Hero ── */

.t1 .t1-jobs-visual { position: relative; min-width: 0; }
.t1 .t1-jobs-visual__tag {
	position: absolute; left: -22px; bottom: 40px; z-index: 2;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 18px; border-radius: 999px;
	background: var(--t1-surface); border: 1px solid var(--t1-line); box-shadow: var(--t1-shadow-lift);
	font-family: var(--t1-font-head); font-weight: 600; font-size: .9375rem; color: var(--t1-ink);
}
.t1 .t1-jobs-visual__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--t1-rose); }
.t1 .t1-jobs-visual__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--t1-rose); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.t1 .t1-jobs-visual__tag { animation: t1-rise .9s .7s var(--t1-ease) both; }
	.t1 .t1-jobs-visual__dot::after { animation: t1-ping 2.4s 1.6s var(--t1-ease) infinite; }
}
.t1 .t1-jobs-hero .t1-hero__chips { max-width: 600px; }

@media (max-width: 960px) {
	/* site.css keeps .t1-hero--page in two columns, and its two-column wall at
	   a desktop height, at every width; one column and a row here. */
	.t1 .t1-jobs-hero .t1-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.t1 .t1-jobs-hero .t1-wall--2 { grid-template-columns: minmax(0, 1fr); height: auto; }
	.t1 .t1-jobs-visual { display: flex; flex-direction: column; padding-top: 12px; }
	.t1 .t1-jobs-visual__tag { position: relative; inset: auto; order: -1; align-self: flex-start; margin: 0 0 -8px; padding: 9px 15px; font-size: .875rem; }
	.t1 .t1-jobs-hero .t1-crumbs { width: 100%; contain: inline-size; }
	.t1 .t1-jobs-hero .t1-crumbs li:last-child { min-width: 0; max-width: 100%; }
	.t1 .t1-jobs-hero .t1-crumbs [aria-current] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
	.t1 .t1-jobs-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-jobs-hero .t1-mark__line { display: none; }
}

/* ── The exams we hire for ── */

.t1 .t1-jobs-exams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.t1 .t1-jobs-exam { gap: 8px; }
.t1 .t1-jobs-exam__mark { font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem); }
.t1 .t1-jobs-exam:hover { transform: translateY(-4px); box-shadow: var(--t1-shadow-lift); border-color: color-mix(in srgb, var(--t1-gold) 45%, var(--t1-line)); }
.t1 .t1-jobs-exam:hover .t1-service__mark::after { clip-path: inset(0 0 0 0); }
.t1 .t1-jobs-exam__flag {
	position: absolute; top: 20px; right: 20px;
	padding: 4px 10px; border-radius: 999px;
	background: var(--t1-rose-wash); color: var(--t1-rose-text);
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.t1 .t1-jobs-hiring__also { margin-top: clamp(24px, 3vw, 36px); max-width: 72ch; color: var(--t1-ink-2); }
@media (max-width: 960px) { .t1 .t1-jobs-exams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .t1 .t1-jobs-exams { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* Five exams: LSAT, the most needed, takes two columns so the grid comes out even. */
@media (min-width: 521px) { .t1 .t1-jobs-exam:first-child { grid-column: span 2; } }

/* Tutor videos: no filter, so the nav sits alone on the right. */
.t1 .t1-jobs-videos .t1-videos__controls { margin-left: auto; }

/* ── Prose aside ── */

.t1 .t1-jobs-aside { gap: 14px; align-items: flex-start; }
.t1 .t1-jobs-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-jobs-aside .t1-btn { width: 100%; }
.t1 .t1-jobs-aside__label { margin-top: 6px; font-family: var(--t1-font-head); font-weight: 600; font-size: .875rem; color: var(--t1-ink) !important; }
.t1 .t1-jobs-aside .t1-pills { gap: 8px; }
.t1 .t1-jobs-aside .t1-pills a { padding: 7px 14px; font-size: .875rem; }
.t1 .t1-jobs-prose .t1-prose > h2:first-child { margin-top: 0; }

/* ── Hub: the city directory ── */

.t1 .t1-jobs-dir__bar {
	position: sticky; top: calc(var(--t1-adminbar) + 64px); z-index: 3;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	margin-bottom: clamp(24px, 3vw, 36px); padding: 10px 0;
	background: var(--t1-bg);
}
.t1 .t1-jobs-dir__search { position: relative; flex: 1 1 320px; max-width: 520px; }
.t1 .t1-jobs-dir__search svg {
	position: absolute; left: 18px; top: 50%; width: 20px; margin-top: -10px;
	fill: none; stroke: var(--t1-ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.t1 .t1-jobs-dir__input {
	width: 100%; min-height: 54px; padding: 12px 20px 12px 50px;
	border-radius: 999px; border: 1.5px solid var(--t1-line);
	background: var(--t1-surface); color: var(--t1-ink);
	font: 500 1rem/1.4 var(--t1-font-body);
	box-shadow: var(--t1-shadow);
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.t1 .t1-jobs-dir__input::placeholder { color: var(--t1-ink-2); opacity: .8; }
.t1 .t1-jobs-dir__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 .t1-jobs-dir__count { font-family: var(--t1-font-head); font-weight: 600; font-size: .9375rem; color: var(--t1-ink-2); }
.t1 .t1-jobs-dir__count strong { color: var(--t1-ink); }
.t1 .t1-jobs-dir__empty { margin-bottom: 28px; padding: 20px 24px; border-radius: var(--t1-radius); background: var(--t1-rose-wash); color: var(--t1-ink); }

.t1 .t1-jobs-dir__list { columns: 2 380px; column-gap: 22px; }
.t1 .t1-jobs-prov { break-inside: avoid; margin-bottom: 22px; gap: 16px; }
.t1 .t1-jobs-prov[hidden] { display: none; }
.t1 .t1-jobs-prov__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.t1 .t1-jobs-prov__name { font-size: 1.1875rem; }
.t1 .t1-jobs-prov__n { font-family: var(--t1-font-head); font-weight: 600; font-size: .875rem; color: var(--t1-rose-text); }
.t1 .t1-jobs-prov .t1-pills { gap: 8px; }
.t1 .t1-jobs-prov .t1-pills a { padding: 6px 13px; font-size: .875rem; font-weight: 500; }
.t1 .t1-jobs-prov .t1-pills li[hidden] { display: none; }
.t1 .t1-jobs-dir mark { background: none; color: var(--t1-rose-text); font-weight: 700; }

/* ── Hub: what we look for ── */

.t1 .t1-jobs-fit__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.t1 .t1-jobs-fit__note { margin-top: 18px; padding-left: 18px; border-left: 3px solid var(--t1-gold); color: var(--t1-ink-2); max-width: 46ch; }
.t1 .t1-jobs-fit__list { display: grid; gap: 4px; }
.t1 .t1-jobs-fit__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--t1-line); }
.t1 .t1-jobs-fit__item:last-child { border-bottom: 0; }
.t1 .t1-jobs-fit__item .t1-why__icon { width: 36px; margin: 2px 0 0; }
.t1-js .t1 .t1-jobs-fit__item.is-in .t1-why__icon * { stroke-dashoffset: 0; }
@media (max-width: 860px) { .t1 .t1-jobs-fit__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── The application form (partials/jobs-apply.php) ── */

.t1 .t1-jobs-apply .jobs-apply { position: relative; padding: var(--t1-space) 0; background: var(--t1-bg); }
.t1 .t1-jobs-apply .container {
	width: 100%; max-width: calc(880px + 2 * var(--t1-gutter));
	margin: 0 auto; padding: 0 var(--t1-gutter);
	display: grid; gap: 22px;
}
.t1 .t1-jobs-apply .section-header { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(8px, 2vw, 20px); }
.t1 .t1-jobs-apply .section-tag {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--t1-font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--t1-rose-text);
}
.t1 .t1-jobs-apply .section-tag::before {
	content: ""; width: 22px; height: 19px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 33 44 38'%3E%3Cpath d='M42.5 47.3 21.5 34 1 47.3l7.2 4.7m34.3-4.7-7.2 4.5m7.2-4.5v11.1M8.2 52l13.3 8.6L35.3 52M8.2 52v9.7L21.5 70l13.8-8.3V51.8' fill='none' stroke='%23F5A106' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.t1 .t1-jobs-apply .section-heading { font-size: var(--t1-fs-h2); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.t1 .t1-jobs-apply .section-subtext { font-size: var(--t1-fs-lead); color: var(--t1-ink-2); max-width: 52ch; text-wrap: pretty; }
.t1 .t1-jobs-apply .jobs-apply__frame-wrap {
	overflow: hidden; border-radius: var(--t1-radius-lg);
	/* The form is Draft Sanctuary's page, light in both themes: a light card. */
	background: #fff; border: 1px solid var(--t1-line); box-shadow: var(--t1-shadow-lift);
}
.t1 .t1-jobs-apply .jobs-apply__frame { display: block; width: 100%; border: 0; }
.t1 .t1-jobs-apply .jobs-apply__fallback { text-align: center; font-size: var(--t1-fs-sm); color: var(--t1-ink-2); }
.t1 .t1-jobs-apply .jobs-apply__fallback a { color: var(--t1-rose-text); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 600px) {
	.t1 .t1-jobs-apply .jobs-apply__frame-wrap { margin: 0 calc(var(--t1-gutter) * -.5); border-radius: var(--t1-radius); }
}
