/*
Theme Name: Cohort
Theme URI: https://tenfoldthemes.example/cohort
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: An editorial block theme for specialist recruitment and HR agencies — duotone talent-wall hero, role-tag pills, chartreuse marker highlights and numbered specialty indexes, with 19 patterns, four full-page layouts, a dark "Night Desk" style variation and local Spectral + Hanken Grotesk fonts.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cohort
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, business, portfolio
*/

/* Cohort ships its design in theme.json. The rules below back the block
   styles registered in functions.php and a few editorial motif utilities. */

/* --- Card (bordered) --- */
.wp-block-group.is-style-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	padding: var(--wp--preset--spacing--40);
}

/* --- Card with hover lift --- */
.wp-block-group.is-style-card-hover {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	padding: var(--wp--preset--spacing--40);
	transition: var(--wp--custom--transition);
}
.wp-block-group.is-style-card-hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--primary);
}

/* --- Role-tag pill: chartreuse chip with fixed ink text (palette-safe both ways) --- */
.wp-block-group.is-style-tag,
.wp-block-group.is-style-tag * {
	color: #1E2026;
}
.wp-block-group.is-style-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	background-color: var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--full);
	padding: 0.28em 0.9em;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

/* --- Iris outline tag (for salary bands / meta chips) --- */
.wp-block-group.is-style-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--full);
	padding: 0.28em 0.85em;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

/* --- Checkmark list (chartreuse-free; iris ticks) --- */
.wp-block-list.is-style-ticks {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.is-style-ticks li {
	position: relative;
	padding-left: 1.9em;
	margin-bottom: 0.5em;
}
.wp-block-list.is-style-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.36em;
	width: 1.05em;
	height: 0.58em;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

/* --- Thin accent separator --- */
.wp-block-separator.is-style-rule-accent {
	border: none;
	height: 3px;
	width: 3.5rem;
	background-color: var(--wp--preset--color--accent);
	opacity: 1;
	margin-left: 0;
}
.wp-block-separator.is-style-rule-accent.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* --- Chartreuse marker highlight under key words --- */
mark.cohort-marker {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--accent) 58%, var(--wp--preset--color--accent) 92%, transparent 92%);
	color: inherit;
	padding: 0 0.06em;
}

/* --- Numbered specialty index rows --- */
.cohort-index-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	color: var(--wp--preset--color--primary);
	font-feature-settings: "tnum" 1;
}

/* Keep buttons legible on hover in the dark variation too (handled by styles),
   and give outline buttons an iris border. */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
}
