.hp-individual {
	width: 100% !important;
	margin: 0 auto !important;
	padding: 20px !important;
	background-color: var(--lp-background-color, #f8f9fa) !important;
	min-height: 100vh !important;
	box-sizing: border-box !important;
	font-family: var(--lp-font-family, inherit) !important;
	font-size: var(--lp-font-size, 14px) !important;
	color: var(--lp-text-color, inherit) !important;
}

.breadcrumbs {
	margin-bottom: 20px;
	padding: 10px 0;
	font-size: var(--lp-font-size, 14px);
	color: #6c757d;
}

.breadcrumbs a {
	color: var(--lp-link-color, #007cba);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs span {
	color: #495057;
	font-weight: 500;
}

/* Ancestry.com-style header */
.hp-ancestry-header {
	background: #5c5c5c;
	color: white;
	padding: 30px 60px;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ancestry-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ancestry-name {
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 20px 0;
	color: #f5f5f5 !important;
	line-height: 1.2;
	font-family: var(--lp-font-family, inherit);
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8) !important;
}

.ancestry-birth,
.ancestry-death {
	margin-bottom: 12px;
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.ancestry-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: rgba(255,255,255,0.8);
	min-width: 50px;
}

.ancestry-details {
	font-size: 16px;
	font-weight: 400;
	color: white;
	line-height: 1.4;
}

.section-container {
	background: white;
	padding: 20px;
	margin-bottom: 25px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	overflow: hidden;
	border: 1px solid #e1e5e9;
}

.section-title {
	background: white;
	margin: 0;
	padding: 18px 20px;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	border-bottom: 1px solid #e1e5e9;
}

.hp-table {
	background-color: #fff;
	border-collapse: collapse;
	width: 100%;
	margin: 0;
	table-layout: fixed;
	font-size: var(--lp-font-size, 14px);
}

.hp-labelcol { width: 150px; }

.hp-fieldname {
	background-color: #fafbfc;
	border: none;
	border-bottom: 1px solid #e9ecef;
	padding: 14px 20px;
	vertical-align: top;
	font-weight: 600;
	font-size: var(--lp-font-size, 13px);
	color: #495057;
}

.hp-data {
	background-color: #fff;
	border: none;
	border-bottom: 1px solid #e9ecef;
	padding: 14px 20px;
	vertical-align: top;
	font-size: var(--lp-font-size, 14px);
	line-height: 1.6;
	color: #2c3e50;
}

.hp-table tr:last-child .hp-fieldname,
.hp-table tr:last-child .hp-data {
	border-bottom: none;
}

.fieldname { font-weight: 600; color: #1a1e21; }

.hp-individual a {
	color: var(--lp-link-color, #007cba);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.hp-individual a:hover {
	color: var(--lp-link-hover-color, #005a87);
	text-decoration: underline;
}

.normal { font-size: var(--lp-font-size, 13px); line-height: 1.6; color: #1a1e21; }

.hp-error {
	text-align: center;
	color: #dc3545;
	font-weight: bold;
	padding: 40px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Tab Styles */
.hp-tabs {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	border-bottom: 2px solid #ddd !important;
	margin: 20px 0 !important;
	background: none !important;
	list-style: none !important;
	padding: 0 !important;
	gap: 0 !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	position: relative;
}

.hp-tab-button {
	background: #f8f9fa !important;
	border: none !important;
	padding: 12px 20px !important;
	cursor: pointer !important;
	border-top: 3px solid transparent !important;
	font-weight: 500 !important;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 14px !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	font-family: inherit !important;
	flex: 0 0 auto !important;
	white-space: nowrap !important;
}

.hp-tab-button:hover {
	background: #e9ecef !important;
	color: #333 !important;
	text-decoration: none !important;
}

.hp-tab-button.active {
	background: #fff !important;
	border-top-color: #007cba !important;
	color: #007cba !important;
	text-decoration: none !important;
}

.hp-tab-content {
	display: none;
	width: 100%;
	box-sizing: border-box;
}

.hp-tab-content.active {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

/* Mobile: fold secondary tabs into More */
.hp-tabs-more {
	position: relative;
	flex: 0 0 auto;
	margin-left: auto;
}

.hp-tabs-more-btn .hp-tabs-more-caret {
	font-size: 0.75em;
	margin-left: 2px;
}

.hp-tabs-more-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 2px);
	min-width: 180px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 40;
	padding: 6px 0;
}

.hp-tabs-more-menu[hidden] {
	display: none !important;
}

.hp-tabs-more-item {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	padding: 10px 16px;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	color: #333;
	white-space: nowrap;
}

.hp-tabs-more-item:hover,
.hp-tabs-more-item:focus {
	background: #f3f8fa;
	color: #007cba;
}

.hp-tabs-more-item.active {
	color: #007cba;
	font-weight: 600;
	background: #f0f7fb;
}

@media (max-width: 768px) {
	.hp-tabs.hp-tabs--more-mode .hp-tab-button.hp-tab-in-more {
		display: none !important;
	}

	.hp-tabs {
		margin: 12px 0 !important;
	}

	.hp-tab-button {
		padding: 10px 14px !important;
		font-size: 13px !important;
	}
}

.hp-source-number {
	font-weight: 600;
	color: #007cba;
	text-decoration: none;
	font-size: 14px;
}

.hp-source-number:hover {
	color: #005a87;
	text-decoration: underline;
}

.hp-source-link {
	color: #1a1e21;
	text-decoration: none;
	font-weight: 600;
}

.hp-source-link:hover {
	color: #007cba;
	text-decoration: underline;
}

/* Back to top button */
.hp-back-to-top {
	position: fixed !important;
	bottom: 20px !important;
	right: 20px !important;
	width: 50px !important;
	height: 50px !important;
	background: #007cba !important;
	color: white !important;
	border-radius: 50% !important;
	text-align: center !important;
	line-height: 50px !important;
	font-size: 24px !important;
	cursor: pointer !important;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 9999 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.hp-back-to-top:hover {
	background: #005a87 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.hp-back-to-top.show {
	opacity: 1 !important;
	visibility: visible !important;
}

/* Children list styling */
.hp-children-list {
	margin: 0;
	padding-left: 20px;
	list-style-position: outside;
}

.hp-children-list li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.hp-children-list li:last-child {
	margin-bottom: 0;
}

/* Accordion styles */
.hp-accordion {
	margin-top: 15px;
}

.hp-accordion-btn {
	background: #f8f9fa !important;
	border: 1px solid #dee2e6 !important;
	padding: 8px 16px !important;
	cursor: pointer !important;
	font-size: 14px !important;
	color: #495057 !important;
	border-radius: 4px !important;
	transition: all 0.2s ease !important;
	font-family: inherit !important;
	font-weight: 500 !important;
	outline: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	text-decoration: none !important;
	display: inline-block !important;
}

.hp-accordion-btn:hover {
	background: #e9ecef !important;
	border-color: #adb5bd !important;
	color: #495057 !important;
	text-decoration: none !important;
}

.hp-accordion-content {
	margin-top: 10px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
	.hp-individual { padding: 15px; }
	.section-title { padding: 12px 15px; font-size: 15px; }
	.hp-fieldname, .hp-data { padding: 10px 15px; }

	.hp-table,
	.hp-table tbody,
	.hp-table tr,
	.hp-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.hp-labelcol {
		width: 100%;
	}

	.hp-fieldname {
		border-bottom: none;
		padding-bottom: 4px;
	}

	.hp-data {
		padding-top: 0;
	}

	.hp-tab-button {
		padding: 10px 15px !important;
		font-size: 13px !important;
	}

	.hp-ancestry-header {
		padding: 20px;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
	}

	.ancestry-name {
		font-size: 26px;
		margin-bottom: 15px;
	}

	.ancestry-birth,
	.ancestry-death {
		flex-direction: column;
		align-items: center;
		gap: 5px;
		margin-bottom: 10px;
	}

	.ancestry-label {
		min-width: auto;
	}

	.ancestry-details {
		font-size: 15px;
	}

	.hp-back-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
		font-size: 18px;
	}
}








.hp-overview-row--empty .fieldname {
	opacity: 0.6;
}
