/* Ensure office ID pill does not span full width */
.nlmc-od-office-id,
.nlmc-od-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-od-office-id {
	background: #e3f2fd;
	color: #1976d2;
	padding: 4px 12px;
	border-radius: 16px;
	font-weight: 500;
}

.nlmc-od-board-grid {
    align-items: start;
}

/* Board card CTA: keep buttons compact and bottom-aligned across cards */
.nlmc-od-card {
	display: grid;
	grid-template-rows: auto 1fr auto; /* image/content area | flexible content | button */
    height: auto;
	min-height: 0; /* prevent flex overflow issues */
	box-sizing: border-box;
    padding: 16px;
	width: 100%;
    align-self: start;
	position: relative;
}


.nlmc-od-card-link {
    display: contents; /* make it transparent for grid layout */
}

.nlmc-od-card-edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 4;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.nlmc-od-card-edit-link:hover,
.nlmc-od-card-edit-link:focus {
    background: #f8fafc;
    color: #0f172a !important;
    border-color: #94a3b8;
}

.nlmc-od-card-edit-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor !important;
    display: block;
}

.nlmc-od-card-edit-link svg path {
    fill: currentColor !important;
}

/* Ensure consistent spacing between content blocks even when skills are absent */
.nlmc-od-card-content {
	display: flex;
	flex-direction: column;
    gap: 12px;
	overflow: hidden; /* ensure content doesn't exceed bounds */
}

.nlmc-od-card-experience {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #475569 !important;
}
.nlmc-od-card-toprow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 24px;
}

.nlmc-od-card-toprow-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
}

.nlmc-od-card-toprow .nlmc-od-office-id {
    margin: 0 !important;
}

.nlmc-od-card-toprow .nlmc-od-market-type,
.nlmc-od-card-toprow .nlmc-od-relocation-badge {
    white-space: nowrap;
}

.nlmc-od-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-od-card-divider {
    height: 1px;
    border-top: 1px dashed #d1d5db;
    margin: 4px 0 2px;
}

.nlmc-od-card-location,
.nlmc-od-card-function {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111827 !important;
}

.nlmc-od-card-location i {
    color: #9ca3af !important;
}

.nlmc-od-card-relocation {
    display: flex;
    align-items: center;
}

/* Override WordPress global element link styles within cards */
.nlmc-od-card .nlmc-od-card-link {
    color: #111827 !important;
}

.nlmc-od-card a.nlmc-od-card-link:where(:not(.wp-element-button)) {
    color: #111827 !important;
}

.nlmc-od-card a.nlmc-od-card-link:where(:not(.wp-element-button)) .nlmc-od-card-content {
    color: #111827 !important;
}

.nlmc-od-card .nlmc-od-card-link a:where(:not(.wp-element-button)) {
    color: #111827 !important;
}

.nlmc-od-card .nlmc-od-card-experience {
    color: #475569 !important;
}

.nlmc-od-card .nlmc-od-card-location,
.nlmc-od-card .nlmc-od-card-location span,
.nlmc-od-card .nlmc-od-card-function,
.nlmc-od-card .nlmc-od-card-function span {
    color: #111827 !important;
}

.nlmc-od-card .nlmc-od-card-location i {
    color: #9ca3af !important;
}

.nlmc-od-card .nlmc-od-relocation-badge {
    background: #f1f8e9 !important;
    color: #558b2f !important;
}

.nlmc-od-card-content .nlmc-title {
    text-align: left;
    margin: 0;
}
.nlmc-od-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.nlmc-od-card-title-row .nlmc-title {
    flex: 1 1 auto;
    margin: 0;
}

.nlmc-od-card-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nlmc-od-card-collapse-toggle:hover,
.nlmc-od-card-collapse-toggle:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.nlmc-od-card-collapse-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
    transition: transform 0.2s ease;
}

.nlmc-od-card-collapse-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

.nlmc-od-card-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
}

.nlmc-od-card-details[hidden] {
    display: none !important;
}

.nlmc-od-card-btn {
    /* make the anchor itself the button with spacing from card edges */
    display: block !important;
	text-align: left !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
    margin-top: 10px!important;
   
}

.nlmc-od-card-btn .nlmc-btn-text {
    min-height: calc(1.1em + 12px);
}

.nlmc-od-card-btn .nlmc-btn-linkedin {
    width: calc(1.1em + 20px);
    min-width: calc(1.1em + 20px);
    height: calc(1.1em + 10px);
}

/* Column-based Layout for Function Groups (Modal View) */
.nlmc-od-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-od-function-columns.nlmc-columns-layout {
    display: grid !important;
    /* grid-template-columns will be set inline based on board_columns setting */
}

.nlmc-od-function-columns.nlmc-columns-layout .nlmc-od-function-group {
    break-inside: avoid;
    page-break-inside: avoid;
    display: flex;
    flex-direction: column;
    padding-right: 24px;
    border-right: 1px solid #666666;
}

.nlmc-od-function-columns.nlmc-columns-layout .nlmc-od-function-group:last-child {
    padding-right: 0;
    border-right: none;
}

.nlmc-od-function-group {
    display: flex;
    flex-direction: column;
}

.nlmc-od-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-od-function-group-title .nlmc-od-function-talent-word {
    display: block;
    margin-top: 0.2em;
}

.nlmc-od-function-group-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Ensure cards have proper spacing in function groups */
.nlmc-od-function-group .nlmc-od-function-group-cards .nlmc-od-card {
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Prevent cards from stretching in modal view columns */
.nlmc-od-function-columns .nlmc-od-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.nlmc-od-function-group .nlmc-od-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure proper spacing between cards in function groups */
.nlmc-od-function-group-cards .nlmc-od-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-od-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-od-card-brix:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.nlmc-od-card-brix .nlmc-od-card-link {
    display: block !important;
    text-decoration: none;
    color: inherit;
}

.nlmc-od-card-brix .nlmc-od-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-od-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-od-card-badges-brix {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.nlmc-od-card-badges-brix > div:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nlmc-od-card-badges-brix > div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nlmc-od-card-badges-brix > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nlmc-od-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-od-market-type-brix.market-b2b {
    background: #fff3e0;
    color: #f57c00;
}

.nlmc-od-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-od-relocation-badge-brix i {
    font-size: 10px;
}

/* Responsive breakpoints for column layout */
@media (max-width: 1024px) {
    .nlmc-od-function-columns.nlmc-columns-layout {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}@media (max-width: 768px) {
    .nlmc-od-function-columns.nlmc-columns-layout {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        column-gap: 20px !important;
        row-gap: 20px !important;
    }
    
    .nlmc-od-function-columns.nlmc-columns-layout .nlmc-od-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-od-function-columns.nlmc-columns-layout .nlmc-od-function-group:last-child {
        padding-bottom: 0 !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }
}@media (max-width: 480px) {
    .nlmc-od-function-columns.nlmc-columns-layout {
        grid-template-columns: 1fr !important;
        column-gap: 16px !important;
        row-gap: 16px !important;
    }
    
    .nlmc-od-function-columns {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Logo grid theme */
.nlmc-od-board[data-board-theme="logo_grid"] .nlmc-od-board-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.nlmc-od-logo-tile {
    position: relative;
    aspect-ratio: var(--nlmc-logo-frame-ratio, 1 / 1);
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--nlmc-od-radius-card);
    border: 1px solid #d9d9d9;
    background: var(--nlmc-card-bg, #fff);
    transition: box-shadow 0.2s ease;
}

.nlmc-od-logo-tile:hover,
.nlmc-od-logo-tile:focus-within {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.nlmc-od-logo-tile .nlmc-od-card-edit-link {
    z-index: 4;
}

.nlmc-od-logo-tile-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.nlmc-od-logo-tile-img img {
    position: relative;
    top: 50%;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    transform: translateY(-50%);
    object-fit: contain;
    object-position: center;
}

.nlmc-od-logo-tile-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.nlmc-od-logo-tile-overlay {
    position: absolute;
    inset: 0;
    background: var(--nlmc-logo-overlay-bg, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    text-align: center;
    box-sizing: border-box;
}

.nlmc-od-logo-tile:hover .nlmc-od-logo-tile-overlay,
.nlmc-od-logo-tile:focus-within .nlmc-od-logo-tile-overlay {
    opacity: 1;
}

.nlmc-od-logo-tile-name {
    color: var(--nlmc-logo-overlay-text, #ffffff);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}

.nlmc-od-logo-tile-btn {
    background: transparent;
    border: 2px solid var(--nlmc-logo-overlay-text, #ffffff);
    color: var(--nlmc-logo-overlay-text, #ffffff);
    padding: 7px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--nlmc-od-radius-button);
    transition: background 0.2s ease, color 0.2s ease;
}

.nlmc-od-logo-tile-btn:hover,
.nlmc-od-logo-tile-btn:focus {
    background: var(--nlmc-logo-overlay-text, #ffffff);
    color: var(--nlmc-logo-overlay-bg, #000000);
}

.nlmc-od-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.nlmc-od-modal-overlay.is-open {
    pointer-events: all;
    opacity: 1;
}

.nlmc-od-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: var(--nlmc-od-radius-card);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    max-width: min(100%, 480px);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    box-sizing: border-box;
}

.nlmc-od-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nlmc-od-modal-close:hover {
    background: #f0f0f0;
    color: #111;
}

.nlmc-od-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
}

.nlmc-od-modal-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nlmc-od-modal-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, 20px);
    font-weight: var(--nlmc-title-weight, 700);
    color: var(--nlmc-title-color, #111111);
    margin: 0 0 10px;
    line-height: var(--nlmc-title-lh, 1.25);
}

.nlmc-od-modal-divider {
    margin: 8px 0 12px;
    border-top: 2px solid var(--nlmc-btn-bg, #dfbd45);
}

.nlmc-od-modal-detail-line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 10px !important;
    font-family: var(--nlmc-body-font-family, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
    font-size: var(--nlmc-body-size, 14px);
    font-weight: var(--nlmc-body-weight, 400);
    line-height: var(--nlmc-body-lh, 1.6);
    color: var(--nlmc-body-color, #333333);
}

.nlmc-od-modal-body .nlmc-od-modal-detail-line {
    margin-bottom: 10px !important;
}

.nlmc-od-modal-detail-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    color: var(--nlmc-btn-bg, #004874);
    margin-top: 2px;
}

.nlmc-od-modal-detail-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

.nlmc-od-modal-body a:not(.nlmc-btn-text):not(.nlmc-btn-linkedin) {
    color: var(--nlmc-body-link-color, #b11d3d) !important;
    text-decoration: none;
}

.nlmc-od-modal-body a:not(.nlmc-btn-text):not(.nlmc-btn-linkedin):hover,
.nlmc-od-modal-body a:not(.nlmc-btn-text):not(.nlmc-btn-linkedin):focus {
    color: var(--nlmc-body-link-hover-color, #8e1732) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.nlmc-od-modal-expertise-label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-family: var(--nlmc-body-font-family, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
    font-size: var(--nlmc-body-size, 13px);
    line-height: var(--nlmc-body-lh, 1.6);
    color: var(--nlmc-body-color, #333333);
}

.nlmc-od-modal-expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nlmc-od-modal-expertise-tag {
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--nlmc-body-font-family, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
    font-size: var(--nlmc-body-size, 12px);
    font-weight: var(--nlmc-body-weight, 500);
    line-height: var(--nlmc-body-lh, 1.6);
    text-decoration: none;
}

.nlmc-od-modal-expertise-tag:hover {
    background: #e2e8f0;
}

.nlmc-od-modal-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.nlmc-od-modal-btn-row .nlmc-btn-text {
    border-radius: var(--nlmc-od-radius-button);
    background: var(--nlmc-btn-bg, #004874) !important;
    color: var(--nlmc-btn-text, #ffffff) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 10px 18px !important;
    text-decoration: none !important;
    line-height: 1.1;
    font-size: 14px;
}

.nlmc-od-modal-btn-row .nlmc-btn-text:hover {
    background: var(--nlmc-btn-bg-hover, #013a5a) !important;
    color: var(--nlmc-btn-text-hover, #ffffff) !important;
}

.nlmc-od-modal-btn-row .nlmc-btn-linkedin {
    margin-left: auto;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: var(--nlmc-modal-linkedin-radius, 999px);
    background: #0a66c2;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nlmc-od-modal-btn-row .nlmc-btn-linkedin:hover {
    background: #004182;
}

.nlmc-od-modal-btn-row .nlmc-btn-linkedin svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

body.nlmc-od-modal-body-open {
    overflow: hidden;
}
