/* QueryFeedz Startups — startup profile.
   Mirrors the Tools directory single: square corners, hairline borders, a
   bordered stat bar, a framed awards panel and a sticky "At a glance" panel. */

.qf-profile {
	padding: 0 0 64px;
}

.qf-profile .qf-container--profile {
	max-width: var(--qf-container-profile);
	padding-inline: 20px;
}

/* Reset theme list/heading spacing inside the profile only. */
.qf-profile ul,
.qf-profile ol,
.qf-profile dl,
.qf-profile dd {
	margin: 0;
	padding: 0;
	list-style: none;
}

.qf-profile li {
	margin: 0;
	padding: 0;
}

.qf-profile h1,
.qf-profile h2,
.qf-profile h3,
.qf-profile p {
	margin: 0;
}

/* Breadcrumbs ---------------------------------------------------------- */

.qf-breadcrumb {
	padding: 24px 0 0;
	font-size: .8125rem;
	color: var(--qf-muted);
}

.qf-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.qf-breadcrumb li::after {
	content: "/";
	margin-left: 6px;
	color: var(--qf-border-strong);
}

.qf-breadcrumb li:last-child::after {
	content: "";
}

.qf-breadcrumb a {
	color: var(--qf-muted);
	text-decoration: none;
}

.qf-breadcrumb a:hover {
	color: var(--qf-text);
	text-decoration: underline;
}

.qf-breadcrumb [aria-current] {
	color: var(--qf-text);
}

/* Hero ----------------------------------------------------------------- */

.qf-phero {
	margin: 20px 0 24px;
	padding: 28px 32px 32px;
	background: var(--qf-surface);
	border: 1px solid var(--qf-border);
}

.qf-phero__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 24px;
}

.qf-phero__identity {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 1 1 320px;
	min-width: 0;
}

.qf-phero__logo {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	font-size: 1.6rem;
}

.qf-phero__naming {
	min-width: 0;
}

/* Name and badge share one line; the badge follows the name's length. */
.qf-phero__titlerow {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.qf-phero__titlerow .qf-phero__title {
	min-width: 0;
}

.qf-phero__titlerow .qf-title-badges {
	flex: 0 0 auto;
	flex-wrap: nowrap;
}

.qf-phero__title {
	font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.025em;
	overflow-wrap: anywhere;
}

.qf-phero__summary {
	max-width: 60ch;
	margin-top: 6px !important;
	color: var(--qf-muted);
	font-size: .95rem;
	line-height: 1.5;
}

.qf-phero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Chips */
.qf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px !important;
}

.qf-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	background: var(--qf-surface);
	border: 1px solid var(--qf-border);
	border-radius: var(--qf-radius-sm);
	color: var(--qf-muted);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

a.qf-chip:hover {
	border-color: var(--qf-border-strong);
	color: var(--qf-text);
}

.qf-chips--lg .qf-chip {
	padding: 5px 12px;
	font-size: .8125rem;
	color: var(--qf-text);
}

/* Buttons (profile sizes) */
.qf-btn--lg {
	min-height: 44px;
	padding: 0 22px;
	font-size: .9375rem;
}

/* Stat bar */
.qf-statbar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	overflow: hidden;
	background: var(--qf-surface);
	border: 1px solid var(--qf-border);
}

.qf-statbar__item {
	padding: 14px 18px;
	border-right: 1px solid var(--qf-border);
}

.qf-statbar__item:last-child {
	border-right: 0;
}

.qf-statbar dt {
	color: var(--qf-muted);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.qf-statbar dd {
	margin-top: 3px !important;
	font-size: 1rem;
	font-weight: 650;
}

.qf-disclosure {
	margin: 0 0 24px !important;
	padding: 10px 14px;
	background: var(--qf-sponsored-soft);
	border-left: 3px solid var(--qf-sponsored);
	color: var(--qf-text);
	font-size: .85rem;
}

@media (max-width: 600px) {
	.qf-phero__identity {
		flex-basis: 100%;
	}

	.qf-phero__logo {
		width: 64px;
		height: 64px;
	}

	.qf-phero__actions,
	.qf-phero__actions .qf-btn {
		width: 100%;
	}

	.qf-statbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qf-statbar__item:nth-child(2n) {
		border-right: 0;
	}

	.qf-statbar__item:nth-child(n+3) {
		border-top: 1px solid var(--qf-border);
	}
}

/* Body ----------------------------------------------------------------- */

.qf-pbody {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

@media (min-width: 960px) {
	.qf-pbody {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 48px;
		align-items: start;
	}

	.qf-pbody__aside {
		position: sticky;
		top: 24px;
	}
}

.qf-pbody__main > * + * {
	margin-top: 24px !important;
}

.qf-box {
	padding: 28px 32px;
	background: var(--qf-surface);
	border: 1px solid var(--qf-border);
}

.qf-profile .qf-section-title,
.qf-profile .qf-psection__title {
	margin: 0 0 20px !important;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.015em;
}

.qf-pbody__aside {
	display: grid;
	gap: 20px;
	align-self: start;
}

.qf-psection__subtitle {
	margin: 24px 0 10px !important;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--qf-muted);
}

.qf-prose {
	font-size: 1rem;
	line-height: 1.7;
}

.qf-prose p,
.qf-prose ul,
.qf-prose ol {
	margin: 0 0 1em !important;
}

.qf-prose ul,
.qf-prose ol {
	padding-left: 1.35em !important;
}

.qf-prose ul li {
	list-style: disc;
}

.qf-prose ol li {
	list-style: decimal;
}

.qf-prose > :last-child {
	margin-bottom: 0 !important;
}

.qf-prose h2,
.qf-prose h3 {
	margin: 1.6em 0 .5em !important;
	line-height: 1.3;
}

.qf-prose img {
	max-width: 100%;
	height: auto;
}

.qf-prose a {
	color: var(--qf-link);
}

/* Insight — clearly editorial, distinct from company-provided copy. */
.qf-insight {
	border-left: 3px solid var(--qf-accent);
}

.qf-insight__title {
	margin: 0 0 8px !important;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--qf-muted);
}

.qf-insight__body {
	font-size: 1rem;
	line-height: 1.65;
}

.qf-insight__body p {
	margin: 0 0 .75em !important;
}

.qf-insight__body p:last-child {
	margin-bottom: 0 !important;
}

/* Funding fact grid */
.qf-factgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	border-top: 1px solid var(--qf-border);
	border-left: 1px solid var(--qf-border);
}

.qf-factgrid__item {
	padding: 14px 18px;
	background: var(--qf-surface);
	border-right: 1px solid var(--qf-border);
	border-bottom: 1px solid var(--qf-border);
}

.qf-factgrid dt {
	color: var(--qf-muted);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.qf-factgrid dd {
	margin-top: 4px !important;
	font-size: 1.05rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

/* Founders */
.qf-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.qf-person {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px !important;
	border: 1px solid var(--qf-border);
}

.qf-person__name {
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.35;
}

.qf-person__role {
	color: var(--qf-muted);
	font-size: .85rem;
}

/* Company links */
.qf-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.qf-link {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 12px 14px;
	border: 1px solid var(--qf-border);
	color: var(--qf-text);
	text-decoration: none;
	transition: border-color .12s ease, background-color .12s ease;
}

.qf-link:hover {
	background: var(--qf-surface-alt);
	border-color: var(--qf-border-strong);
	color: var(--qf-text);
}

.qf-link__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--qf-surface-alt);
	border: 1px solid var(--qf-border);
}

.qf-link__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.qf-link__title {
	font-size: .9375rem;
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.qf-link__type {
	color: var(--qf-muted);
	font-size: .78rem;
}

/* Sidebar panel ("At a glance") */
.qf-panel {
	padding: 24px;
	background: var(--qf-surface);
	border: 1px solid var(--qf-border);
}

.qf-panel__title {
	margin: 0 0 12px !important;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--qf-muted);
}

.qf-spec__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--qf-border);
}

.qf-spec__row:first-child {
	padding-top: 0;
}

.qf-spec__row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.qf-spec dt {
	flex: 0 0 auto;
	color: var(--qf-muted);
	font-size: .8125rem;
}

.qf-spec dd {
	font-size: .875rem;
	font-weight: 600;
	text-align: right;
	overflow-wrap: anywhere;
}

.qf-glance__address {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--qf-border);
}

.qf-panel__subtitle {
	margin: 0 0 4px !important;
	color: var(--qf-muted);
	font-size: .8125rem;
	font-weight: 400;
}

.qf-glance__address address {
	font-size: .875rem;
	font-style: normal;
	line-height: 1.5;
}

/* Related --------------------------------------------------------------- */

.qf-related,
.qf-coverage {
	margin-top: 24px !important;
}

.qf-related__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 20px;
}

.qf-profile .qf-related__header .qf-section-title {
	margin: 0 !important;
}

.qf-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--qf-text);
	font-size: .875rem;
	font-weight: 650;
	text-decoration: none;
}

.qf-more:hover {
	text-decoration: underline;
}

.qf-coverage__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--qf-gap);
}

.qf-coverage__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: var(--qf-surface);
	border: 1px solid var(--qf-border);
}

.qf-coverage__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.qf-coverage__body {
	padding: 16px 18px 18px;
}

.qf-coverage__title {
	margin: 0 0 6px !important;
	font-size: 1rem;
	line-height: 1.35;
}

.qf-coverage__title a {
	color: var(--qf-text);
	text-decoration: none;
}

.qf-coverage__title a:hover {
	text-decoration: underline;
}

.qf-coverage__date {
	color: var(--qf-muted);
	font-size: .8rem;
}

/* Small screens: tighter box padding. */
@media (max-width: 600px) {
	.qf-phero,
	.qf-box {
		padding: 20px;
	}

	.qf-panel {
		padding: 20px;
	}
}
