/**
 * pages-io.css — the few components /faq/, /resume/ and /contact-us/ need that
 * bitfa.fund's main.css has no rule for, because bitfa.fund has no equivalent
 * page. Everything else on those templates reuses main.css as-is.
 *
 * Loaded only on those pages; see inc/fund-assets.php.
 */

/* ── FAQ page: group heading with its icon ── */
.faq-group__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}

.faq-group__head .section__title {
	margin: 0;
	text-align: start;
}

.faq-group__head .svl-feature__icon {
	flex: 0 0 auto;
}

.faq-group .tc-faq {
	margin-top: 20px;
}

/* ── Careers page: the job list ── */
.job-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 34px;
}

.job {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	transition: border-color .2s, box-shadow .2s;
}

.job:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow);
}

.job__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.job__id {
	flex: 1 1 260px;
}

.job__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.job__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.job__tag {
	font-size: 12.5px;
	color: var(--muted);
	background: var(--surface-2);
	border-radius: 999px;
	padding: 4px 12px;
}

.job__desc {
	color: var(--muted);
	font-size: 14.5px;
	line-height: 2;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.job__desc p:last-child {
	margin-bottom: 0;
}

.job__head .btn {
	flex: 0 0 auto;
}

.job-empty {
	text-align: center;
	color: var(--muted);
	margin-top: 30px;
}

/* ── Careers page: the resume modal, which is a legacy Tailwind component ── */
.resume-modal--fund .resume-modal__title {
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	margin: 0;
}

.resume-modal--fund .resume-position-label {
	color: var(--primary);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	margin: 6px 0 0;
}

.resume-modal--fund .resume-position-label.hidden {
	display: none;
}

.resume-modal--fund .resume-modal__hint {
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	margin: 8px 0 0;
}

.resume-modal--fund .bitfa-form {
	margin-top: 16px;
	width: 100%;
}

.resume-modal--fund .bitfa-field input[type="file"] {
	font-size: 13px;
}

/* careers-form.js flags invalid fields with .error */
.resume-modal--fund .bitfa-field input.error,
.resume-modal--fund .bitfa-field textarea.error {
	border-color: var(--danger);
}

/* ── Advisors page: the people grid ── */
.advisors__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 30px 20px;
	margin-top: 34px;
}

.advisor {
	margin: 0;
	text-align: center;
}

.advisor__photo {
	width: 132px;
	height: 132px;
	border-radius: 50%;
	object-fit: cover;
	margin-inline: auto;
	display: block;
	border: 3px solid var(--surface);
	box-shadow: var(--shadow);
}

.advisor__photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary), var(--primary-d));
	color: #fff;
	font-size: 40px;
	font-weight: 700;
}

.advisor figcaption {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.advisor__name {
	font-size: 15.5px;
	font-weight: 700;
}

.advisor__role {
	font-size: 13px;
	color: var(--muted);
}

@media (max-width: 560px) {
	.advisors__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 26px 14px;
	}

	.advisor__photo {
		width: 108px;
		height: 108px;
	}
}

/* ── A single-column contact grid, for pages with no form beside the panel ── */
.contact__grid--single {
	grid-template-columns: 1fr;
	max-width: 640px;
}

/* ── Legacy article bodies moved into .entry-content ── */
/* main.css resets ul but not ol, so Tailwind's preflight wins on ol. */
.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: 8px;
	line-height: 2;
}
