.wkh-public {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 0;
}

.wkh-public *,
.wkh-public *::before,
.wkh-public *::after {
	box-sizing: border-box;
}

.wkh-hero-card,
.wkh-section-card,
.wkh-person-card,
.wkh-family-card,
.wkh-note-card,
.wkh-media-card,
.wkh-member-card,
.wkh-stat-card,
.wkh-tree-node,
.wkh-relation-summary-card,
.wkh-relationship-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.wkh-hero-card,
.wkh-section-card {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.wkh-profile-hero {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.wkh-profile-main,
.wkh-profile-media {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
	padding: 1.25rem;
}

.wkh-profile-image {
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.wkh-hero-media-link {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

.wkh-two-col {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.25rem;
}

.wkh-col-main,
.wkh-col-side {
	min-width: 0;
}

.wkh-breadcrumbs {
	margin-bottom: 1rem;
	color: #6b7280;
	font-size: 0.95rem;
}

.wkh-breadcrumbs a {
	text-decoration: none;
}

.wkh-breadcrumbs span {
	margin: 0 0.25rem;
}

.wkh-stat-grid,
.wkh-relation-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.wkh-relation-summary-grid {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin-top: 0;
}

.wkh-stat-card,
.wkh-relation-summary-card {
	padding: 1rem;
	text-align: center;
}

.wkh-stat-number,
.wkh-relation-summary-number {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.1;
}

.wkh-stat-label,
.wkh-relation-summary-label {
	color: #6b7280;
	margin-top: 0.25rem;
}

.wkh-person-grid,
.wkh-family-grid,
.wkh-media-grid,
.wkh-member-grid {
	display: grid;
	gap: 1rem;
}

.wkh-person-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.wkh-family-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.wkh-media-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.wkh-member-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 1rem;
}

.wkh-person-card,
.wkh-family-card,
.wkh-member-card,
.wkh-media-card {
	overflow: hidden;
}

.wkh-person-card-thumb,
.wkh-family-card-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f8fafc;
	border-bottom: 1px solid #eef2f7;
}

.wkh-person-card-thumb a,
.wkh-family-card-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.wkh-person-card-image,
.wkh-family-card-image,
.wkh-media-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wkh-person-card-body,
.wkh-family-card-body,
.wkh-media-card-body {
	padding: 1rem;
}

.wkh-person-card-footer {
	padding: 0 1rem 1rem;
}

.wkh-family-card h4,
.wkh-person-card h4,
.wkh-section-card h3,
.wkh-profile-main h2,
.wkh-note-card h4,
.wkh-kinship-group h4 {
	margin-top: 0;
}

.wkh-kinship-group + .wkh-kinship-group {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #eef2f7;
}

.wkh-relationship-card {
	padding: 1rem;
}

.wkh-relationship-card-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.wkh-relationship-arrow {
	font-size: 1.25rem;
	color: #6b7280;
	text-align: center;
}

.wkh-relationship-badge {
	display: inline-block;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.wkh-inline-link-sep {
	display: inline-block;
	margin: 0 0.35rem;
	color: #9ca3af;
}

.wkh-relationship-search-results {
	margin-top: 1rem;
	display: grid;
	gap: 0.75rem;
}

.wkh-relationship-search-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.wkh-button {
	display: inline-block;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid #111827;
}

.wkh-button:hover {
	color: #fff;
	opacity: 0.92;
}

.wkh-button.is-active {
	background: #2563eb;
	border-color: #2563eb;
}

.wkh-button.is-secondary {
	background: #fff;
	color: #111827;
	border-color: #d1d5db;
}

.wkh-button.is-secondary:hover {
	color: #111827;
}

.wkh-muted,
.wkh-meta {
	color: #6b7280;
}

.wkh-inline-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin: 0.75rem 0 0;
}

.wkh-summary {
	margin-top: 1rem;
}

.wkh-profile-actions {
	margin-top: 1rem;
}

.wkh-link-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wkh-link-list li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.wkh-link-list li:last-child {
	border-bottom: none;
}

.wkh-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wkh-timeline li {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.wkh-timeline li:last-child {
	border-bottom: none;
}


.wkh-family-meta {
        margin-top: 10px;
        gap: 10px 18px;
}

.wkh-family-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.04);
        font-size: 0.95rem;
        line-height: 1.35;
}

.wkh-family-profile .wkh-relation-summary-card {
        min-height: 108px;
        justify-content: center;
}

.wkh-family-profile .wkh-relation-summary-number {
        font-size: 1.85rem;
}

.wkh-family-profile .wkh-relation-summary-label {
        margin-top: 6px;
}

.wkh-children-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 0;
        list-style: none;
}

.wkh-child-pill {
        margin: 0;
}

.wkh-child-pill a {
        display: inline-block;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.04);
        text-decoration: none;
        font-weight: 600;
}

.wkh-child-pill a:hover {
        background: rgba(0, 0, 0, 0.08);
}

.wkh-quick-nav-card .wkh-link-list,
.wkh-quick-nav-list {
        list-style: none;
        padding-left: 0;
        margin: 0;
}

.wkh-quick-nav-list li {
        margin: 0 0 8px 0;
}

.wkh-quick-nav-list li:last-child {
        margin-bottom: 0;
}

.wkh-quick-nav-list a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.03);
        text-decoration: none;
}

.wkh-quick-nav-list a:hover {
        background: rgba(0, 0, 0, 0.07);
}

@media (max-width: 782px) {
        .wkh-family-meta span {
                width: 100%;
                justify-content: flex-start;
        }

        .wkh-child-pill a,
        .wkh-quick-nav-list a {
                width: 100%;
                box-sizing: border-box;
        }
}

.wkh-timeline-date {
	font-weight: 600;
	color: #374151;
}

.wkh-note-card {
	padding: 1rem;
	margin-bottom: 1rem;
}

.wkh-pagination {
	margin-top: 1rem;
}

.wkh-pagination .page-numbers {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	text-decoration: none;
}

.wkh-pagination .current {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

/* Search */
.wkh-search-form {
	margin-top: 0.5rem;
}

.wkh-search-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.wkh-search-input {
	flex: 1 1 360px;
	min-width: 220px;
	padding: 0.8rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 1rem;
}

.wkh-surname-index {
	margin-top: 1rem;
}

.wkh-surname-index-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.wkh-surname-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wkh-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #111827;
	text-decoration: none;
	font-size: 0.92rem;
}

.wkh-chip span {
	display: inline-block;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 0.82rem;
	color: #4b5563;
}

.wkh-chip.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.wkh-chip.is-active span {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

/* Tree visualization */
.wkh-chart-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.wkh-chart-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wkh-chart-root {
	margin-bottom: 1rem;
}

.wkh-chart-generation {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eef2f7;
}

.wkh-chart-generation-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #374151;
	margin-bottom: 0.75rem;
}

.wkh-chart-row {
	display: grid;
	gap: 1rem;
}

.wkh-chart-row.two-up {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wkh-chart-row.multi-up {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wkh-chart-cell {
	min-width: 0;
}

.wkh-tree-node {
	padding: 1rem;
	position: relative;
}

.wkh-tree-node.is-root {
	border-color: #2563eb;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.wkh-tree-node.is-empty {
	background: #f8fafc;
	border-style: dashed;
	color: #64748b;
}

.wkh-tree-node-name {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.wkh-tree-node-name a {
	text-decoration: none;
}

.wkh-tree-node-meta {
	font-size: 0.92rem;
	margin-bottom: 0.65rem;
}

.wkh-tree-node-actions a {
	font-size: 0.9rem;
	text-decoration: none;
	font-weight: 600;
}

/* Lightbox */
.wkh-lightbox[hidden] {
	display: none !important;
}

.wkh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.wkh-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.82);
	backdrop-filter: blur(2px);
}

.wkh-lightbox-dialog {
	position: relative;
	z-index: 2;
	max-width: min(1100px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	margin: 1rem auto;
	background: #111827;
	color: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.wkh-lightbox-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	z-index: 3;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.wkh-lightbox-image-wrap {
	background: #0b1220;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: calc(100vh - 10rem);
	min-height: 240px;
}

.wkh-lightbox-image {
	max-width: 100%;
	max-height: calc(100vh - 10rem);
	display: block;
}

.wkh-lightbox-meta {
	padding: 1rem 1.25rem 1.25rem;
}

.wkh-lightbox-title {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.wkh-lightbox-caption {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.wkh-profile-hero,
	.wkh-two-col,
	.wkh-relationship-card-header {
		grid-template-columns: 1fr;
	}

	.wkh-timeline li,
	.wkh-relationship-search-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.wkh-relationship-search-row {
		display: block;
	}

	.wkh-relationship-search-row .wkh-button {
		margin-top: 0.75rem;
	}

	.wkh-stat-grid,
	.wkh-relation-summary-grid {
		grid-template-columns: 1fr;
	}

	.wkh-chart-row.two-up {
		grid-template-columns: 1fr;
	}
}

.wkh-family-dashboard {
        display: block;
}

.wkh-dashboard-branch {
        margin-bottom: 32px;
        padding: 18px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 14px;
        background: rgba(0,0,0,0.015);
}

.wkh-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1.1fr 1.4fr;
        gap: 18px;
        align-items: start;
}

.wkh-dashboard-col h3 {
        margin-top: 0;
        margin-bottom: 12px;
}

.wkh-dashboard-parent-group {
        margin-bottom: 18px;
}

.wkh-dashboard-parent-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #666;
        margin-bottom: 8px;
}

.wkh-dashboard-stack {
        display: grid;
        gap: 10px;
}

.wkh-dashboard-center-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: stretch;
}

.wkh-dashboard-card {
        min-width: 200px;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.08);
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.wkh-dashboard-card-center {
        border-width: 2px;
}

.wkh-dashboard-card-empty {
        background: rgba(0,0,0,0.02);
}

.wkh-dashboard-card-name {
        font-weight: 700;
        margin-bottom: 8px;
}

.wkh-dashboard-card-name a {
        text-decoration: none;
}

.wkh-dashboard-card-meta {
        font-size: 14px;
        margin-bottom: 4px;
}

.wkh-dashboard-card-links {
        margin-top: 10px;
        font-size: 13px;
        color: #666;
}

.wkh-dashboard-card-links a {
        text-decoration: none;
}

.wkh-dashboard-family-meta {
        margin-top: 10px;
        margin-bottom: 14px;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(0,0,0,0.035);
        font-size: 14px;
}

.wkh-dashboard-child-branch {
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
}

.wkh-dashboard-child-branch:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
}

.wkh-dashboard-grandchildren {
        margin-top: 10px;
        padding-left: 16px;
}

.wkh-dashboard-grandchildren-line {
        width: 2px;
        height: 18px;
        background: rgba(0,0,0,0.18);
        margin: 0 0 10px 16px;
}

.wkh-dashboard-grandchildren-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
}

@media (max-width: 900px) {
        .wkh-dashboard-grid {
                grid-template-columns: 1fr;
        }

        .wkh-dashboard-card {
                min-width: 0;
                width: 100%;
                box-sizing: border-box;
        }

        .wkh-dashboard-center-row,
        .wkh-dashboard-grandchildren-grid {
                display: grid;
                grid-template-columns: 1fr;
        }

        .wkh-dashboard-grandchildren {
                padding-left: 0;
        }

        .wkh-dashboard-grandchildren-line {
                margin-left: 0;
        }
}


/* Family dashboard visual refresh */
.wkh-dashboard-row {
        margin-bottom: 28px;
}

.wkh-dashboard-row h3 {
        margin: 0 0 12px 0;
}

.wkh-dashboard-parent-panels {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
}

.wkh-dashboard-parent-panel,
.wkh-dashboard-couple-box,
.wkh-dashboard-child-family-box {
        border: 1px solid rgba(0,0,0,0.10);
        border-radius: 14px;
        background: #fff;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wkh-dashboard-parent-grid,
.wkh-dashboard-center-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 12px;
}

.wkh-dashboard-children-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 18px;
}

.wkh-dashboard-card {
        border: 1px solid rgba(0,0,0,0.12);
        border-radius: 12px;
        background: #fff;
        padding: 14px;
        min-width: 0;
}

.wkh-dashboard-card.generation-1 {
        background: #eef6ff;
        border-color: #bdd7f3;
}

.wkh-dashboard-card.generation-2 {
        background: #fff6dd;
        border-color: #e8d18a;
}

.wkh-dashboard-card.generation-3 {
        background: #edf8ee;
        border-color: #b8d9bb;
}

.wkh-dashboard-card.generation-4 {
        background: #f4efff;
        border-color: #cfc1f2;
}

.wkh-dashboard-card-center {
        box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.wkh-dashboard-grandchildren {
        margin-top: 14px;
}

.wkh-dashboard-grandchildren-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
}

.wkh-dashboard-grandchildren-line {
        width: 100%;
        height: 2px;
        background: rgba(0,0,0,0.14);
        margin-bottom: 12px;
}

@media (max-width: 900px) {
        .wkh-dashboard-parent-panels,
        .wkh-dashboard-parent-grid,
        .wkh-dashboard-center-grid,
        .wkh-dashboard-children-grid,
        .wkh-dashboard-grandchildren-grid {
                grid-template-columns: 1fr;
        }
}


/* Stronger family dashboard overrides */
.wkh-public.wkh-family-dashboard {
        display: block !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-branch {
        display: block !important;
        margin: 0 0 32px 0 !important;
        padding: 20px !important;
        border: 1px solid rgba(0,0,0,0.10) !important;
        border-radius: 16px !important;
        background: #fafafa !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-row {
        display: block !important;
        margin: 0 0 28px 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-panels {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-panel,
.wkh-public.wkh-family-dashboard .wkh-dashboard-couple-box,
.wkh-public.wkh-family-dashboard .wkh-dashboard-child-family-box {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.12) !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        padding: 16px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-grid,
.wkh-public.wkh-family-dashboard .wkh-dashboard-center-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
        gap: 12px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-children-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        gap: 18px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-grandchildren-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 10px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.14) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        padding: 14px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-1 {
        background: #eef6ff !important;
        border-color: #bdd7f3 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-2 {
        background: #fff6dd !important;
        border-color: #e8d18a !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-3 {
        background: #edf8ee !important;
        border-color: #b8d9bb !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-4 {
        background: #f4efff !important;
        border-color: #cfc1f2 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-center {
        box-shadow: 0 0 0 2px rgba(0,0,0,0.05) !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-name {
        display: block !important;
        font-weight: 700 !important;
        margin: 0 0 8px 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-meta {
        display: block !important;
        font-size: 14px !important;
        margin: 0 0 4px 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-links {
        display: block !important;
        margin-top: 10px !important;
        font-size: 13px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-family-meta {
        display: block !important;
        margin-top: 10px !important;
        margin-bottom: 14px !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        background: rgba(0,0,0,0.04) !important;
        font-size: 14px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-grandchildren-line {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: rgba(0,0,0,0.14) !important;
        margin: 0 0 12px 0 !important;
}

@media (max-width: 900px) {
        .wkh-public.wkh-family-dashboard .wkh-dashboard-parent-panels,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-parent-grid,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-center-grid,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-children-grid,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-grandchildren-grid {
                grid-template-columns: 1fr !important;
        }
}


/* Responsive dashboard grid fixes */
.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-grid,
.wkh-public.wkh-family-dashboard .wkh-dashboard-center-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card {
        width: 100% !important;
        min-width: 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-child-family-box {
        overflow: hidden !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-name a,
.wkh-public.wkh-family-dashboard .wkh-dashboard-card-links a {
        word-break: break-word !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-family-meta {
        overflow-wrap: anywhere !important;
}


/* Final dashboard containment fixes */
.wkh-public.wkh-family-dashboard .wkh-dashboard-child-family-box {
        overflow: hidden !important;
        min-width: 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-spouse-row {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
        gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-spouse-row > .wkh-dashboard-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-children-grid {
        align-items: start !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-name,
.wkh-public.wkh-family-dashboard .wkh-dashboard-card-links,
.wkh-public.wkh-family-dashboard .wkh-dashboard-card-meta {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
}

@media (max-width: 900px) {
        .wkh-public.wkh-family-dashboard .wkh-dashboard-spouse-row {
                grid-template-columns: 1fr !important;
        }
}

/* Related People cards */
.wkh-related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
}

.wkh-related-card {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.wkh-related-card-top {
        display: flex;
        gap: 0.9rem;
        align-items: flex-start;
}

.wkh-related-card-media {
        flex: 0 0 72px;
}

.wkh-related-card-media img,
.wkh-related-card-placeholder {
        width: 72px;
        height: 72px;
        border-radius: 12px;
        object-fit: cover;
}

.wkh-related-card-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f3f5;
        color: #495057;
        font-size: 1.4rem;
        font-weight: 700;
}

.wkh-related-card-body {
        min-width: 0;
        flex: 1 1 auto;
}

.wkh-related-card-name {
        font-size: 1.02rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.25rem;
}

.wkh-related-card-life {
        font-size: 0.92rem;
        margin-bottom: 0.5rem;
}

.wkh-related-card-badge {
        display: inline-block;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        background: #eef2ff;
        color: #3730a3;
        font-size: 0.82rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
}

.wkh-related-card-description {
        font-size: 0.9rem;
        color: #5c6770;
}

.wkh-related-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 0.95rem;
}

@media (max-width: 640px) {
        .wkh-related-card-top {
                align-items: center;
        }
}


/* Public discovery home */
.wkh-genealogy-home .wkh-discovery-hero h2 {
    margin-bottom: 10px;
}

.wkh-kicker {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

.wkh-discovery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.wkh-discovery-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wkh-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.wkh-section-heading-row h3 {
    margin-bottom: 0;
}

.wkh-compact-person-list {
    display: grid;
    gap: 12px;
}

.wkh-compact-person-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wkh-compact-person-item:last-child {
    border-bottom: 0;
}

.wkh-mini-link {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .wkh-discovery-grid {
        grid-template-columns: 1fr;
    }

    .wkh-section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Public discovery home visual refinement */
.wkh-genealogy-home {
    position: relative;
}

.wkh-genealogy-home::before {
    content: "";
    position: absolute;
    inset: -24px -24px auto -24px;
    height: 300px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(219, 184, 115, 0.22), transparent 34%),
        radial-gradient(circle at 82% 6%, rgba(93, 132, 102, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(248, 244, 235, 0.78), rgba(255, 255, 255, 0));
    border-radius: 28px;
}

.wkh-genealogy-home > * {
    position: relative;
    z-index: 1;
}

.wkh-genealogy-home .wkh-discovery-hero {
    overflow: hidden;
    position: relative;
    padding: 28px;
    border: 1px solid rgba(130, 105, 62, 0.20);
    background:
        radial-gradient(circle at 92% 18%, rgba(219, 184, 115, 0.28), transparent 24%),
        radial-gradient(circle at 8% 88%, rgba(104, 139, 111, 0.16), transparent 24%),
        linear-gradient(135deg, #fffaf1 0%, #ffffff 58%, #f4f8f1 100%);
    box-shadow: 0 18px 50px rgba(28, 39, 58, 0.09);
}

.wkh-genealogy-home .wkh-discovery-hero::after {
    content: "✦";
    position: absolute;
    right: 30px;
    top: 22px;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(72, 96, 78, 0.34);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(130, 105, 62, 0.13);
    font-size: 2.1rem;
}

.wkh-genealogy-home .wkh-discovery-hero h2 {
    max-width: 720px;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.05;
}

.wkh-genealogy-home .wkh-discovery-hero > .wkh-muted {
    max-width: 760px;
    font-size: 1.05rem;
}

.wkh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(130, 105, 62, 0.16);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #5d694f;
}

.wkh-kicker::before {
    content: "◎";
    color: #9a7437;
}

.wkh-discovery-entry-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 22px;
}

.wkh-entry-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 112px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 35, 55, 0.10);
    background: rgba(255, 255, 255, 0.74);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(28, 39, 58, 0.07);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.wkh-entry-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 132, 102, 0.35);
    box-shadow: 0 14px 34px rgba(28, 39, 58, 0.11);
    text-decoration: none;
}

.wkh-entry-card.is-primary {
    background: linear-gradient(135deg, #111827 0%, #243145 100%);
    color: #ffffff;
    border-color: rgba(17, 24, 39, 0.30);
}

.wkh-entry-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
    line-height: 1.2;
}

.wkh-entry-card em {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.35;
    opacity: 0.78;
}

.wkh-entry-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(219, 184, 115, 0.18);
    font-size: 1.35rem;
}

.wkh-entry-card.is-primary .wkh-entry-icon {
    background: rgba(255, 255, 255, 0.14);
}

.wkh-genealogy-home .wkh-stat-grid {
    margin-top: 18px;
}

.wkh-genealogy-home .wkh-stat-card {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(130, 105, 62, 0.14);
    box-shadow: 0 9px 24px rgba(28, 39, 58, 0.06);
}

.wkh-genealogy-home .wkh-stat-number {
    color: #25324a;
}

.wkh-genealogy-home .wkh-section-card {
    border-color: rgba(130, 105, 62, 0.14);
    box-shadow: 0 12px 34px rgba(28, 39, 58, 0.055);
}

.wkh-genealogy-home .wkh-section-card h3 {
    letter-spacing: -0.02em;
}

.wkh-genealogy-home .wkh-search-input {
    border-radius: 12px;
}

.wkh-genealogy-home .wkh-chip {
    border-color: rgba(93, 132, 102, 0.22);
    background: linear-gradient(135deg, rgba(244, 248, 241, 0.82), rgba(255, 255, 255, 0.92));
}

.wkh-genealogy-home .wkh-chip:hover {
    border-color: rgba(93, 132, 102, 0.42);
    box-shadow: 0 8px 18px rgba(28, 39, 58, 0.06);
    text-decoration: none;
}

@media (max-width: 900px) {
    .wkh-discovery-entry-grid {
        grid-template-columns: 1fr;
    }

    .wkh-genealogy-home .wkh-discovery-hero::after {
        display: none;
    }
}


/* Public discovery entry card polish */
.wkh-entry-card,
.wkh-entry-card:hover,
.wkh-entry-card:focus {
    text-decoration: none;
}

.wkh-entry-card strong,
.wkh-entry-card em {
    text-decoration: none;
}

.wkh-entry-card strong {
    color: inherit;
}

.wkh-entry-card.is-primary em {
    color: rgba(255, 255, 255, 0.78);
}

.wkh-entry-card:not(.is-primary) strong {
    color: #243145;
}

.wkh-entry-card:not(.is-primary) em {
    color: #5f6878;
}

.wkh-entry-card:focus-visible {
    outline: 3px solid rgba(154, 116, 55, 0.32);
    outline-offset: 3px;
}

/* Stronger override for theme link underlines inside discovery cards */
.wkh-genealogy-home a.wkh-entry-card,
.wkh-genealogy-home a.wkh-entry-card:link,
.wkh-genealogy-home a.wkh-entry-card:visited,
.wkh-genealogy-home a.wkh-entry-card:hover,
.wkh-genealogy-home a.wkh-entry-card:focus,
.wkh-genealogy-home a.wkh-entry-card *,
.wkh-genealogy-home a.wkh-entry-card:hover *,
.wkh-genealogy-home a.wkh-entry-card:focus * {
    text-decoration: none !important;
}

.wkh-genealogy-home a.wkh-entry-card strong {
    border-bottom: 0 !important;
}

.wkh-genealogy-home a.wkh-entry-card em {
    border-bottom: 0 !important;
}


/* Public discovery family branches */
.wkh-branch-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wkh-branch-card,
.wkh-branch-card:link,
.wkh-branch-card:visited,
.wkh-branch-card:hover,
.wkh-branch-card:focus,
.wkh-branch-card *,
.wkh-branch-card:hover *,
.wkh-branch-card:focus * {
    text-decoration: none !important;
}

.wkh-branch-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(93, 132, 102, 0.18);
    background:
        radial-gradient(circle at 92% 12%, rgba(219, 184, 115, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(244, 248, 241, 0.92), rgba(255, 255, 255, 0.96));
    color: inherit;
    box-shadow: 0 10px 24px rgba(28, 39, 58, 0.055);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.wkh-branch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 132, 102, 0.38);
    box-shadow: 0 14px 30px rgba(28, 39, 58, 0.09);
}

.wkh-branch-initial {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(93, 132, 102, 0.13);
    color: #405f47;
    font-weight: 800;
    font-size: 1rem;
}

.wkh-branch-card strong {
    display: block;
    color: #243145;
    line-height: 1.2;
    margin-bottom: 6px;
}

.wkh-branch-card em {
    display: block;
    color: #5f6878;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.35;
}

@media (max-width: 1050px) {
    .wkh-branch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wkh-branch-grid {
        grid-template-columns: 1fr;
    }
}


/* 3.23.0-alpha.2 browse experience polish */
.wkh-browse-index {
    position: relative;
}

.wkh-browse-index::before {
    content: "";
    position: absolute;
    inset: -18px -18px auto -18px;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(219, 184, 115, 0.18), transparent 34%),
        radial-gradient(circle at 86% 4%, rgba(93, 132, 102, 0.15), transparent 30%),
        linear-gradient(135deg, rgba(248, 244, 235, 0.62), rgba(255, 255, 255, 0));
    border-radius: 28px;
}

.wkh-browse-index > * {
    position: relative;
    z-index: 1;
}

.wkh-browse-topline {
    margin-bottom: 14px;
}

.wkh-browse-topline a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
}

.wkh-browse-hero {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(130, 105, 62, 0.18);
    background:
        radial-gradient(circle at 94% 16%, rgba(219, 184, 115, 0.22), transparent 26%),
        linear-gradient(135deg, #fffaf1 0%, #ffffff 58%, #f4f8f1 100%);
    box-shadow: 0 16px 44px rgba(28, 39, 58, 0.075);
}

.wkh-browse-hero h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.wkh-browse-index .wkh-section-card {
    border-color: rgba(130, 105, 62, 0.13);
    box-shadow: 0 10px 28px rgba(28, 39, 58, 0.045);
}

.wkh-browse-index .wkh-chip {
    border-color: rgba(93, 132, 102, 0.22);
    background: linear-gradient(135deg, rgba(244, 248, 241, 0.82), rgba(255, 255, 255, 0.94));
}

.wkh-browse-index .wkh-chip:hover {
    border-color: rgba(93, 132, 102, 0.42);
    box-shadow: 0 8px 18px rgba(28, 39, 58, 0.06);
    text-decoration: none;
}

