/*
 * Tech East 100: the list page and company profiles.
 *
 * Filters, the view switch and the empty message reuse the events styles
 * (events.css), which load on the same pages.
 */

/* ---------- Hero: the nominations card ---------- */

.te-phero--te100,
.te-phero--te100 .te-phero__grid {
	min-height: 660px;
}

.te-phero--te100 .te-phero__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}

.te-phero--te100 .te-phero__title {
	max-width: 780px;
}

.te-nom__title {
	margin: 16px 0 0;
	font-size: 30px;
	line-height: 34px;
}

.te-nom > p:not(.lozenge-new) {
	margin: 10px 0 0;
	color: var(--te-text-2);
}

.te-nom .lozenge-new {
	display: inline-block;
	font-size: 14px;
}

.te-nom .te-dates {
	margin-top: 20px;
}

.te-site .te-nom .wp-block-buttons {
	margin-top: 20px;
}

/* ---------- About the list ---------- */

.te-split--even {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.te-intro__lead {
	max-width: 560px;
	margin: 24px 0 0;
	font-size: 19px;
	line-height: 29px;
}

.te-intro__lead + .te-lead {
	max-width: 560px;
	margin-top: 16px;
}

/* Three figures. Each is a group holding the figure, then what it counts. */
.te-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 32px 0 0;
}

.te-facts > * {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 20px;
	border-radius: var(--r-s);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

.te-facts .te-facts__n {
	margin: 0;
	font-family: var(--hf);
	font-weight: var(--hw);
	font-size: 34px;
	letter-spacing: var(--ht);
	line-height: 1.05;
}

.te-facts .te-facts__n + p {
	margin: 8px 0 0;
	color: var(--te-text-2);
	font-size: 14px;
	line-height: 20px;
}

/* A numbered list of criteria inside a white card. */
.te-crit {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: crit;
}

.te-crit li {
	display: flex;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--te-warm-grey);
	font-size: 17px;
	line-height: 25px;
	counter-increment: crit;
}

.te-crit li::before {
	content: counter(crit, decimal-leading-zero) / "";
	flex: 0 0 auto;
	min-width: 22px;
	color: #C2410C;
	font-weight: 600;
}

/* ---------- The list ---------- */

.te-dir__editions {
	margin-top: 20px;
}

.te-dir__editions .ev-segbtn {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.te-dir__editions .ev-segbtn[aria-current="true"] {
	background: var(--te-meteorite);
	color: var(--te-on-dark);
}

.te-dir__views {
	background: var(--te-warm-grey);
}

.te-search {
	flex: 1 1 280px;
}

.te-search input {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--te-stone);
	border-radius: 10px;
	background: var(--te-white);
	color: var(--te-meteorite);
	font: inherit;
	font-size: 15px;
}

.te-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.te-cards[hidden],
.te-cards > li[hidden],
.te-table tr[hidden],
.te-tablewrap[hidden],
.te-dir__more[hidden] {
	display: none;
}

.te-cards > li {
	display: flex;
}

.te-cards .te-co__name {
	font-size: 21px;
	line-height: 25px;
}

.te-tablewrap {
	margin-top: 28px;
	padding: 8px 20px;
	border-radius: var(--r-l);
	background: var(--te-white);
	overflow-x: auto;
}

.te-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	text-align: left;
}

.te-table th,
.te-table td {
	padding: 14px 12px;
	border-top: 1px solid var(--te-warm-grey);
	font-weight: 400;
	vertical-align: middle;
}

.te-table thead th {
	color: var(--te-text-3);
	font-size: 14px;
	font-weight: 600;
}

.te-table thead th {
	border-top: 0;
}

.te-table .te-name {
	font-weight: 600;
}

.te-table__link {
	text-align: right;
	white-space: nowrap;
}

.te-sort {
	min-height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--te-meteorite);
	font: inherit;
	letter-spacing: inherit;
	text-decoration: underline;
	text-transform: inherit;
	text-underline-offset: 0.25em;
	cursor: pointer;
}

.te-dir__more {
	display: flex;
	justify-content: center;
	margin: 28px 0 0;
}

/* ---------- Nominations ---------- */

/* Numbered steps: write the step in bold, then a line break and the detail. */
.te-steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.te-steps li {
	position: relative;
	min-height: 32px;
	padding-left: 46px;
	color: var(--te-text-2);
	counter-increment: step;
}

.te-steps li::before {
	content: counter(step) / "";
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 1000px;
	background: var(--te-peach);
	color: var(--te-meteorite);
	font-weight: 600;
}

.te-steps li strong {
	color: var(--te-meteorite);
}

.te-who {
	margin: 32px 0 0;
}

.te-who + .ev-ticks {
	margin-top: 12px;
}

/* ---------- Awards night and sponsors ---------- */

.te-award {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px 64px;
	align-items: center;
}

.te-award__img {
	overflow: hidden;
	margin: 0;
	border-radius: var(--r-l);
	aspect-ratio: 4 / 3;
}

.te-award__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.te-award .te-lead {
	max-width: 520px;
}

.te-award .ev-month {
	margin: 28px 0 0;
}

.te-cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 20px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.te-cats li {
	padding: 10px 0;
	border-top: 1px solid #D3CEC7;
}

.te-site .te-award .wp-block-buttons {
	margin-top: 28px;
}

.te-sponhead {
	margin: 72px 0 0;
	align-items: baseline;
	gap: 8px 24px;
}

.te-sponhead .ev-month {
	margin: 0;
}

.te-sponsors {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 0;
}

.te-sponsors > * {
	margin: 0;
}

/* ---------- Investors ---------- */

.te-inv__formtitle {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 28px;
}

/* ---------- Company profile ---------- */

.cp-hero {
	padding-top: 132px;
}

.admin-bar .cp-hero {
	padding-top: 164px;
}

.cp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px 32px;
	margin-top: 28px;
}

.cp-head > div {
	flex: 1 1 320px;
	min-width: 0;
}

.cp-logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	border-radius: var(--r-l);
	background: var(--te-white);
	color: var(--te-meteorite);
	font-family: var(--hf);
	font-size: 40px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cp-logo--img {
	overflow: hidden;
	padding: 12px;
}

.cp-logo--img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cp-title {
	margin: 0;
	font-size: clamp(48px, 5.4vw, 80px);
	line-height: 0.98;
}

.cp-line {
	max-width: 640px;
	margin: 18px 0 0;
	color: var(--te-on-dark-2);
	font-size: 19px;
	line-height: 29px;
}

.cp-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 24px 0 0;
	color: var(--te-on-dark-2);
	font-size: 16px;
}

.cp-tags .lozenge-new {
	padding: 3px 12px;
	border-radius: 50px;
	background: var(--te-peach);
	color: var(--te-meteorite);
	font-weight: 600;
}

.cp-wrap {
	display: grid;
	grid-template-columns: minmax(0, 720px) minmax(0, 400px);
	justify-content: space-between;
	gap: 48px 72px;
	align-items: start;
}

.cp-body {
	font-size: 17px;
	line-height: 28px;
}

.cp-body h2 {
	margin: 44px 0 0;
	font-size: 32px;
	line-height: 36px;
}

.cp-body h2:first-child {
	margin-top: 0;
}

.cp-body h3 {
	margin: 28px 0 0;
	font-size: 21px;
	line-height: 26px;
}

.cp-body p,
.cp-body .te-blocks p {
	margin: 16px 0 0;
}

.cp-body h3 + p {
	margin-top: 6px;
}

.cp-want {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.cp-want li {
	padding: 8px 16px;
	border-radius: 1000px;
	background: var(--te-warm-grey);
	font-size: 15px;
	line-height: 22px;
}

.cp-body .cp-inv {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #D3CEC7;
}

.cp-inv a {
	color: var(--te-meteorite);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cp-side {
	display: grid;
	gap: 16px;
}

.cp-card {
	padding: 28px;
	border-radius: var(--r-l);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

.cp-card .te-small-heading {
	margin: 0;
	color: var(--te-text-3);
}

.cp-card dl {
	margin: 16px 0 0;
}

.cp-card dl div {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--te-rule-soft);
}

.cp-card dt {
	color: var(--te-text-3);
	font-size: 15px;
}

.cp-card dd {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.cp-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 24px 0 0;
}

.cp-links .v-btn {
	justify-content: space-between;
}

.cp-own {
	background: var(--te-warm-grey);
	box-shadow: none;
}

.cp-own h2 {
	margin: 0;
	font-size: 21px;
	line-height: 26px;
}

.cp-own p {
	margin: 8px 0 0;
	color: var(--te-text-2);
	font-size: 15px;
	line-height: 22px;
}

.cp-own p + p {
	margin-top: 14px;
}

.cp-own .v-tlink {
	font-weight: 600;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1180px) {
	.te-phero--te100 .te-phero__grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.te-nom {
		max-width: 560px;
	}

	.te-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.te-sponsors {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1000px) {
	.te-split--even,
	.te-award,
	.cp-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.te-phero--te100 {
		min-height: 0;
	}

	.te-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-cards .te-co {
		min-height: 0;
	}

	.te-cats {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-sponsors {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.te-sponhead {
		margin-top: 48px;
	}

	/* The table becomes a stack: name, then sector and place, then the link. */
	.te-tablewrap {
		padding: 4px 16px;
	}

	.te-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.te-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 2px 12px;
		padding: 12px 0;
		border-bottom: 1px solid var(--te-warm-grey);
	}

	.te-table tbody tr:last-child {
		border-bottom: 0;
	}

	.te-table th,
	.te-table td {
		padding: 0;
		border: 0;
	}

	.te-table .te-name {
		grid-column: 1;
	}

	.te-table td {
		grid-column: 1;
		color: var(--te-text-2);
	}

	.te-table td:empty {
		display: none;
	}

	.te-table .te-table__link {
		grid-row: 1;
		grid-column: 2;
	}

	.cp-logo {
		width: 88px;
		height: 88px;
		font-size: 30px;
	}

	.cp-title {
		font-size: 40px;
	}

	.cp-card {
		padding: 22px;
	}
}

/* ---------- Check your company profile ---------- */

.pf-wrap > *,
.pf-wrap .ev-fgrid > * {
	min-width: 0;
}

.pf-wrap .ev-in select {
	width: 100%;
	min-width: 0;
}

.pf-ask {
	margin: 28px 0 0;
	color: var(--te-text-2);
}

.pf-ask a {
	font-weight: 600;
}

.pf-now {
	padding: 20px;
	border-radius: var(--r-s);
	background: var(--te-warm-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

/* Above a connected Gravity Form the card stands alone. */
.ev-form > .pf-now,
.wp-block-techeast-form > .pf-now {
	margin-bottom: 20px;
}

.pf-now .te-small-heading {
	margin: 0;
	color: var(--te-text-3);
}

.pf-nowrow {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 14px;
}

.pf-nowrow .te-mono {
	flex: 0 0 auto;
	margin: 0;
}

.pf-nowrow > div {
	min-width: 0;
}

.pf-now__name {
	margin: 0;
	font-size: 21px;
	line-height: 26px;
}

.pf-now__line {
	margin: 4px 0 0;
	color: var(--te-text-2);
}

.pf-now__meta {
	margin: 6px 0 0;
	color: var(--te-text-3);
	font-size: 14px;
}

.pf-now__link {
	margin: 14px 0 0;
}

.pf-fs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 18px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.pf-fs legend {
	margin-bottom: 8px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
}

.pf-fs .ev-check {
	font-weight: 400;
}

@media (max-width: 640px) {
	.pf-fs {
		grid-template-columns: 1fr;
	}
}

/* The company field: suggestions drop down beneath it as you type. */
/* It is a search field, so browsers keep their own autofill out of it; it should still look like the other fields. */
.te-combo input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--te-stone);
	border-radius: var(--r-s);
	background: var(--te-white);
	box-shadow: none;
	color: var(--te-meteorite);
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	appearance: none;
	-webkit-appearance: none;
}

.te-combo input[type="search"]:focus {
	outline: 2px solid var(--te-orange);
	outline-offset: 1px;
	border-color: var(--te-meteorite);
}

.te-combo input[type="search"]::-webkit-search-decoration,
.te-combo input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.te-combo {
	position: relative;
	display: block;
}

.te-combo__list {
	position: absolute;
	z-index: 20;
	top: 52px;
	right: 0;
	left: 0;
	max-height: 320px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	border: 1px solid var(--te-stone);
	border-radius: var(--r-s);
	background: var(--te-white);
	box-shadow: 0 12px 28px rgb(42 44 47 / 0.14);
	list-style: none;
}

.te-combo__list[hidden],
.te-combo__none[hidden] {
	display: none;
}

.te-combo__list li {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
}

.te-combo__list li:hover {
	background: var(--te-warm-grey);
}

.te-combo__list li[aria-selected="true"] {
	background: var(--te-meteorite);
	color: var(--te-on-dark);
}

.te-combo__hint,
.te-combo__none {
	display: block;
	margin-top: 6px;
	color: var(--te-text-3);
	font-size: 14px;
	font-weight: 400;
}

.te-combo__none {
	color: var(--te-meteorite);
}

.te-combo__none a {
	color: inherit;
	font-weight: 600;
}

.pf-now[hidden] {
	display: none;
}
