/* Ensure candidate ID pill does not span full width */
.nlmc-ts-candidate-id,
.nlmc-ts-list-id {
	display: inline-flex !important;
	align-items: center;
	max-width: max-content;
	width: auto !important;
	white-space: nowrap;
}

/* Optional: maintain consistent visual style in case themes override */
.nlmc-ts-candidate-id {
	background: #e3f2fd;
	color: #1976d2;
	padding: 4px 12px;
	border-radius: 16px;
	font-weight: 500;
}

/* Board card CTA: keep buttons compact and bottom-aligned across cards */
.nlmc-ts-card {
	display: grid;
	grid-template-rows: auto 1fr auto; /* image/content area | flexible content | button */
	height: 100%;
	min-height: 0; /* prevent flex overflow issues */
	box-sizing: border-box;
	width: 100%;
}


.nlmc-ts-card-link {
    display: contents; /* make it transparent for grid layout */
}

/* Ensure consistent spacing between content blocks even when skills are absent */
.nlmc-ts-card-content {
	display: flex;
	flex-direction: column;
    gap: 12px;
	overflow: hidden; /* ensure content doesn't exceed bounds */
}

.nlmc-ts-card-experience {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #475569 !important;
}
.nlmc-ts-card-toprow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 24px;
}

.nlmc-ts-card-toprow-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
}

.nlmc-ts-card-toprow .nlmc-ts-candidate-id {
    margin: 0 !important;
}

.nlmc-ts-card-toprow .nlmc-ts-market-type,
.nlmc-ts-card-toprow .nlmc-ts-relocation-badge {
    white-space: nowrap;
}

.nlmc-ts-relocation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f8e9 !important;
    color: #558b2f !important;
    text-transform: none;
    margin-bottom: 10px!important;
}

.nlmc-ts-card-divider {
    height: 1px;
    border-top: 1px dashed #d1d5db;
    margin: 4px 0 2px;
}

.nlmc-ts-card-location,
.nlmc-ts-card-function {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111827 !important;
}

.nlmc-ts-card-location i {
    color: #9ca3af !important;
}

.nlmc-ts-card-relocation {
    display: flex;
    align-items: center;
}

/* Override WordPress global element link styles within cards */
.nlmc-ts-card .nlmc-ts-card-link {
    color: #111827 !important;
}

.nlmc-ts-card a.nlmc-ts-card-link:where(:not(.wp-element-button)) {
    color: #111827 !important;
}

.nlmc-ts-card a.nlmc-ts-card-link:where(:not(.wp-element-button)) .nlmc-ts-card-content {
    color: #111827 !important;
}

.nlmc-ts-card .nlmc-ts-card-link a:where(:not(.wp-element-button)) {
    color: #111827 !important;
}

.nlmc-ts-card .nlmc-ts-card-experience {
    color: #475569 !important;
}

.nlmc-ts-card .nlmc-ts-card-location,
.nlmc-ts-card .nlmc-ts-card-location span,
.nlmc-ts-card .nlmc-ts-card-function,
.nlmc-ts-card .nlmc-ts-card-function span {
    color: #111827 !important;
}

.nlmc-ts-card .nlmc-ts-card-location i {
    color: #9ca3af !important;
}

.nlmc-ts-card .nlmc-ts-relocation-badge {
    background: #f1f8e9 !important;
    color: #558b2f !important;
}

.nlmc-ts-card-content .nlmc-title {
    text-align: left;
    margin: 0;
}
.nlmc-ts-card-btn {
    /* make the anchor itself the button with spacing from card edges */
    display: block !important;
	text-align: left !important;
    margin: 0 20px 20px 20px !important; /* 20px clearance sides and bottom */
    width: calc(100% - 40px) !important; /* keep full visual width minus margins */
}

/* Column-based Layout for Function Groups (Modal View) */
.nlmc-ts-function-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Column layout: Each function in its own column (vertical columns) */
/* Note: Actual column count is set via inline styles from board_columns setting */
.nlmc-ts-function-columns.nlmc-columns-layout {
    display: grid !important;
    /* grid-template-columns will be set inline based on board_columns setting */
}

.nlmc-ts-function-columns.nlmc-columns-layout .nlmc-ts-function-group {
    break-inside: avoid;
    page-break-inside: avoid;
    display: flex;
    flex-direction: column;
    padding-right: 24px;
    border-right: 1px solid #666666;
}

.nlmc-ts-function-columns.nlmc-columns-layout .nlmc-ts-function-group:last-child {
    padding-right: 0;
    border-right: none;
}

.nlmc-ts-function-group {
    display: flex;
    flex-direction: column;
}

.nlmc-ts-function-group-title {
    font-family: var(--nlmc-title-font-family, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
    font-size: var(--nlmc-title-size, 24px) !important;
    font-weight: var(--nlmc-title-weight, 800) !important;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: var(--nlmc-title-color, #111111) !important;
    line-height: var(--nlmc-title-lh, 1.2) !important;
}

.nlmc-ts-function-group-title .nlmc-ts-function-talent-word {
    display: block;
    margin-top: 0.2em;
}

.nlmc-ts-function-group-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Ensure cards have proper spacing in function groups */
.nlmc-ts-function-group .nlmc-ts-function-group-cards .nlmc-ts-card {
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Prevent cards from stretching in modal view columns */
.nlmc-ts-function-columns .nlmc-ts-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.nlmc-ts-function-group .nlmc-ts-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure proper spacing between cards in function groups */
.nlmc-ts-function-group-cards .nlmc-ts-card {
    margin-bottom: 0;
}

/* Text wrapper inside the anchor should not force full-width; let the anchor style it */
.nlmc-btn-text {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Brix-style card layout - override default card styles */
.nlmc-ts-card-brix {
    display: block !important;
    grid-template-rows: none !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
    min-height: 0 !important;
}

.nlmc-ts-card-brix:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.nlmc-ts-card-brix .nlmc-ts-card-link {
    display: block !important;
    text-decoration: none;
    color: inherit;
}

.nlmc-ts-card-brix .nlmc-ts-card-link:not(:focus-visible) {
    outline: none;
}


/* Unified Title and Body Font Classes for Board */
.nlmc-title {
    font-family: var(--nlmc-title-font-family, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
    font-size: var(--nlmc-title-size, 24px);
    font-weight: var(--nlmc-title-weight, 800);
    color: var(--nlmc-title-color, #111111);
    line-height: var(--nlmc-title-lh, 1.2);
    margin: 0 0 8px;
    text-align: center;
}

.nlmc-ts-body {
    font-family: var(--nlmc-body-font-family, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
    font-size: var(--nlmc-body-size, 18px);
    font-weight: var(--nlmc-body-weight, 400);
    color: var(--nlmc-body-color, #1a1a1a);
    line-height: var(--nlmc-body-lh, 1.4);
}

.nlmc-ts-card-badges-brix {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.nlmc-ts-card-badges-brix > div:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nlmc-ts-card-badges-brix > div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlmc-ts-card-badges-brix > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nlmc-ts-market-type-brix {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e3f2fd;
    color: #1976d2;
}

.nlmc-ts-market-type-brix.market-b2b {
    background: #fff3e0;
    color: #f57c00;
}

.nlmc-ts-relocation-badge-brix {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f8e9;
    color: #558b2f;
}

.nlmc-ts-relocation-badge-brix i {
    font-size: 10px;
}

/* Responsive breakpoints for column layout */
@media (max-width: 1024px) {
    .nlmc-ts-function-columns.nlmc-columns-layout {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}@media (max-width: 768px) {
    .nlmc-ts-function-columns.nlmc-columns-layout {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        column-gap: 20px !important;
        row-gap: 20px !important;
    }
    
    .nlmc-ts-function-columns.nlmc-columns-layout .nlmc-ts-function-group {
        padding-right: 0 !important;
        border-right: none !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        margin-bottom: 20px !important;
    }
    
    .nlmc-ts-function-columns.nlmc-columns-layout .nlmc-ts-function-group:last-child {
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }
}@media (max-width: 480px) {
    .nlmc-ts-function-columns.nlmc-columns-layout {
        grid-template-columns: 1fr !important;
        column-gap: 16px !important;
        row-gap: 16px !important;
    }
    
    .nlmc-ts-function-columns {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}
