/*
 * Lineages block styles: page content built with core WordPress blocks.
 * Sizes, colours and spacing are measured from the pre-hack site (Oct 2026 archive)
 * at 1366px wide, and from the old builder settings.
 */

/* ---------- Page canvas ---------- */
.fl-page-content { background: #fff; }

.lin-content > .wp-block-group.alignfull,
.lin-content > .wp-block-cover.alignfull { margin-top: 0; margin-bottom: 0; }

/* Rows: 1250px content width, 20px default padding (old builder defaults). */
.lin-row { box-sizing: border-box; padding: 20px; }
.wp-block-group.lin-row > .wp-block-columns,
.wp-block-group.lin-row > .wp-block-group,
.wp-block-group.lin-row > .wp-block-query,
.wp-block-group.lin-row > *:not(.alignfull),
.wp-block-group.lin-row > .wp-block-group__inner-container > *:not(.alignfull) {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1250px;
}
.wp-block-cover.lin-row .wp-block-cover__inner-container > .wp-block-group {
	margin: 0 auto;
	max-width: 1250px;
	width: 100%;
}

/* Photo-background rows: height comes from content + padding, as before (no 430px cover default). */
.wp-block-cover.lin-row { min-height: 0; padding: 0; }
.wp-block-cover.lin-row:not([style*="min-height"]) .wp-block-cover__inner-container > .wp-block-group { padding-top: 50px; padding-bottom: 50px; }
.lin-page-title { color: #fff; font-weight: 300; margin: 0; }

/* Columns behave like the old builder: no gutter, 20px module margins. */
.lin-row .wp-block-columns { gap: 0; margin-bottom: 0; margin-top: 0; }
.lin-row .wp-block-column > *:not(.lin-col):not(.wp-block-columns):not(.lin-infobox) { margin-left: 20px; margin-right: 20px; }
.lin-row .wp-block-column > .wp-block-columns { margin-left: 0; margin-right: 0; }

/* ---------- Typography ---------- */
.lin-pp-heading { font-size: 42px; font-weight: 300; line-height: 1.2; margin: 10px 0; }
.lin-pp-heading a { color: inherit; }
.lin-pp-subheading p { margin-bottom: 16px; }
.lin-pp-subheading.lin-fs-20 p { font-size: 20px; font-weight: 300; line-height: 1.65; }

@media (max-width: 768px) {
	.lin-pp-heading { font-size: 30px; }
	h1.wp-block-heading[style*="font-size:54px"],
	h2.wp-block-heading[style*="font-size:54px"],
	.wp-block-heading[style*="font-size:54px"] { font-size: 30px !important; }
}

/* ---------- Buttons (green pill) ---------- */
.wp-block-button.lin-btn .wp-block-button__link {
	background: #cbd872;
	border: 2px solid #1caaf2;
	border-radius: 30px;
	color: #000;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	padding: 10px 30px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s, border-color 0.2s;
}
.wp-block-button.lin-btn .wp-block-button__link:hover,
.wp-block-button.lin-btn .wp-block-button__link:focus {
	background: #1caaf2;
	border-color: #cbd872;
	color: #000;
}

/* ---------- Hero (homepage cover) ---------- */
.wp-block-cover.hero { padding: 0; }
.wp-block-cover.hero .lin-infobox { text-align: center; }
.wp-block-cover.hero .lin-ib-title {
	color: #fff;
	font-size: 54px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 auto 10px;
	max-width: 534px;
	text-transform: none;
}
.wp-block-cover.hero .lin-infobox p {
	color: #fff;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.65;
	margin: 0 auto;
	max-width: 534px;
}
.wp-block-cover.hero .wp-block-buttons { margin-top: 20px; }
.wp-block-cover.hero .lin-btn .wp-block-button__link {
	border-color: #cbd872;
	font-weight: 600;
	padding: 15px 30px;
}
@media (max-width: 768px) {
	.wp-block-cover.hero .lin-ib-title { font-size: 38px; }
}

/* ---------- Info boxes ---------- */
.lin-infobox { padding: 20px; }
.lin-ib-icon { line-height: 0; margin: 0 0 20px; }
.lin-ib-icon i {
	border: 2px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
	display: inline-block;
	font-size: 30px;
	height: 80px;
	line-height: 76px;
	text-align: center;
	width: 80px;
}
.lin-ib-title {
	color: #17252a;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 10px;
	text-transform: uppercase;
}
.lin-row .lin-col.has-background { box-shadow: 0 0 10px rgba(0, 0, 0, 0.08); }

@media (min-width: 769px) {
	.lin-row .lin-col[style*="margin-top:-80px"] { padding-left: 150px !important; padding-right: 150px !important; }
}

/* ---------- Testimonial slider ---------- */
.lin-slider { position: relative; }
.lin-slider.is-ready { padding: 40px 80px; }
.lin-testimonial .wp-block-columns { align-items: center; gap: 40px; }
.lin-testimonial p { color: #000; font-size: 20px; font-weight: 300; line-height: 1.65; }
.lin-testimonial .lin-t-name { font-size: 18px; margin: 15px 0; }
.lin-slider-nav {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-size: 24px;
	padding: 10px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.lin-slider-prev { left: 15px; }
.lin-slider-next { right: 15px; }
.lin-slider-nav:hover,
.lin-slider-nav:focus { background: transparent; color: #000; }
@media (max-width: 768px) {
	.lin-slider.is-ready { padding: 30px 40px; }
	.lin-testimonial .wp-block-columns { gap: 20px; }
}

/* ---------- Post grids (blog, team) ---------- */
.lin-post-grid .wp-block-post-template { gap: 30px; }
.lin-card {
	background: #fff;
	box-shadow: 5px 5px 10px rgba(204, 204, 204, 0.25);
	height: 100%;
	padding: 20px;
}
.lin-card .wp-block-post-featured-image { margin: -20px -20px 20px; }
.lin-card .wp-block-post-featured-image img { background: #f6f6f6; height: 337px; object-fit: contain; width: 100%; }
.lin-card-title { font-size: 25px; font-weight: 300; line-height: 1.04; margin: 0 0 10px; }
.lin-card-title a { color: #17252a; text-decoration: none; }
.lin-card-title a:hover { color: #1caaf2; }
.lin-card-meta { color: #757575; font-size: 14px; gap: 0; line-height: 22px; padding-bottom: 10px; }
.lin-card-meta > * + *::before { content: "|"; padding: 0 6px; }
.lin-card-meta .wp-block-post-author-name::before { content: "By "; padding: 0; }
.lin-card-meta > .wp-block-post-date::before { content: "|"; padding: 0 6px; }
.lin-card .wp-block-post-excerpt { font-size: 14px; line-height: 22px; }
.lin-card .wp-block-post-excerpt__more-text { display: none; }
@media (max-width: 1024px) { .lin-post-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 768px) { .lin-post-grid .wp-block-post-template { grid-template-columns: 1fr !important; } }

.wp-block-query-pagination { gap: 4px; margin-top: 30px; }
.wp-block-query-pagination-numbers .page-numbers {
	border: 1px solid #e6e6e6;
	display: inline-block;
	padding: 3px 10px;
}
.wp-block-query-pagination-numbers .page-numbers.current { background: #000; border-color: #000; color: #fff; }

/* ---------- Tabs (Genealogy Services) ---------- */
.lin-tabs.is-ready .lin-tab-list { display: flex; flex-wrap: wrap; gap: 2px; }
.lin-tab-button {
	background: #cbd872;
	border: 0;
	border-top: 4px solid transparent;
	border-radius: 0;
	box-shadow: none;
	color: #000;
	cursor: pointer;
	flex: 1 1 auto;
	font-size: 16px;
	padding: 14px 20px;
	text-shadow: none;
}
.lin-tab-button:hover,
.lin-tab-button:focus { background: #d9e392; color: #000; }
.lin-tab-button.is-active { background: #1caaf2; border-top-color: #5e9ed6; color: #000; }
.lin-tabs.is-ready .lin-tab { border: 1px solid #e6e6e6; border-top: 0; padding: 20px; }
.lin-tabs:not(.is-ready) .lin-tab + .lin-tab { margin-top: 40px; }

/* ---------- Accordion (FAQ) ---------- */
.wp-block-details.lin-accordion {
	border: 1px solid #e6e6e6;
	margin: 0 0 10px;
}
.wp-block-details.lin-accordion summary {
	background: #f5f5f5;
	color: #17252a;
	cursor: pointer;
	font-weight: 600;
	padding: 15px 20px;
}
.wp-block-details.lin-accordion[open] summary { background: #cbd872; }
.wp-block-details.lin-accordion > :not(summary) { padding-left: 20px; padding-right: 20px; }

/* ---------- Lists with icons ---------- */
.lin-infolist,
.lin-iconlist { list-style: none; padding-left: 0; }
.lin-infolist li,
.lin-iconlist li { margin-bottom: 8px; }
.lin-infolist i,
.lin-iconlist i { color: #444; margin-right: 8px; text-align: center; width: 20px; }
.lin-icon i { font-size: 30px; }

/* ---------- Gallery ---------- */
.wp-block-gallery.lin-gallery { gap: 10px; }

/* ---------- Social links in content ---------- */
.wp-block-social-links.lin-social .wp-social-link { color: #000; }
.wp-block-social-links.lin-social .wp-social-link:hover { color: #1caaf2; }

/* ---------- Team grids (About Us) ---------- */
.lin-team-grid .lin-card { padding: 20px 20px 10px; text-align: left; }
.lin-team-grid .lin-card .wp-block-post-featured-image { margin: -20px -20px 15px; text-align: center; }
.lin-team-grid .lin-card .wp-block-post-featured-image img { height: auto; max-height: 300px; object-fit: contain; width: auto; max-width: 100%; }
.lin-team-grid .wp-block-post-template.is-layout-grid[class*="columns-1"],
.lin-team-grid .wp-block-post-template:only-child { }
.lin-team-grid.lin-single .wp-block-post-template { grid-template-columns: minmax(0, 383px) !important; justify-content: center; }

/* ---------- Contact form (Contact Form 7) ---------- */
.lin-contact-form label { color: #17252a; display: block; font-weight: 600; }
.lin-contact-form .lin-req { color: #790000; }
.lin-contact-form input[type="text"],
.lin-contact-form input[type="email"],
.lin-contact-form input[type="tel"],
.lin-contact-form textarea {
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-weight: 400;
	margin-top: 6px;
	padding: 10px;
	width: 100%;
}
.lin-contact-form textarea { height: 160px; }
.lin-contact-form input[type="submit"] {
	background: #cbd872;
	border: 2px solid #1caaf2;
	border-radius: 30px;
	color: #000;
	cursor: pointer;
	font-size: 16px;
	padding: 10px 30px;
	text-transform: uppercase;
}
.lin-contact-form input[type="submit"]:hover,
.lin-contact-form input[type="submit"]:focus { background: #1caaf2; border-color: #cbd872; }
.lin-contact-form .wpcf7-not-valid-tip { color: #790000; }
.lin-contact-form .wpcf7-not-valid { background: #ffdfe0; border-color: #790000; }

/* CAPTCHA (Really Simple CAPTCHA) */
.lin-captcha img.wpcf7-captchac { display: inline-block; margin: 6px 8px 0 0; vertical-align: middle; }
.lin-contact-form .lin-captcha input[type="text"] { display: inline-block; max-width: 200px; vertical-align: middle; }
.lin-fm-subscribe .lin-captcha { margin: 0 0 1%; }
.lin-fm-subscribe .lin-captcha input[type="text"] {
	background: transparent; border: 1px solid #000; border-radius: 30px; box-sizing: border-box;
	font-size: 16px; padding: 8px 10px; width: calc(100% - 90px);
}

/* Titled info lists (Contact page details) */
.lin-il-title { color: #17252a; font-size: 32px; font-weight: 300; line-height: 1.2; margin: 20px 0 10px; }
.lin-il-title i { font-size: 0.6em; vertical-align: middle; }
.lin-infolist-titled p { margin-bottom: 5px; }

/* ---------- Blog: banner, sidebar, cards, single (old Themer layouts) ---------- */
.lin-banner { background-position: center; background-size: cover; padding: 50px 0; }
.lin-banner-box { background: rgba(0, 0, 0, 0.48); margin: 0 20px; padding: 20px; }
.lin-banner-title { color: #fff; font-size: 54px; font-weight: 300; line-height: 1.2; margin: 10px 0; text-align: center; }

.lin-blog-main { background: #fff; border-bottom: 1px solid #e6e6e6; border-top: 1px solid #e6e6e6; padding: 70px 0; }
.lin-blog-cols { align-items: flex-start; display: flex; gap: 0; }
.lin-blog-sidebar { border: 1px solid #e0e0e0; box-sizing: border-box; flex: 0 0 24.97%; margin: 0 20px; padding: 20px; }
.lin-blog-content { flex: 1 1 auto; margin: 0 20px; min-width: 0; }

.lin-search { display: flex; margin-bottom: 20px; }
.lin-search input[type="search"] {
	border: 1px solid #ccc; border-radius: 4px 0 0 4px; box-sizing: border-box; flex: 1 1 auto;
	font-size: 15px; height: 40px; min-width: 0; padding: 10px 13px;
}
.lin-search button { background: #1caaf2; border: 0; border-radius: 0 4px 4px 0; color: #fff; height: 40px; padding: 0 14px; }
.lin-search button:hover { background: #000; }
.lin-widget { margin: 10px 0 20px; }
.lin-widget .widgettitle { color: #17252a; font-size: 20px; font-weight: 300; line-height: 1.2; margin: 0 0 8px; }
.lin-widget ul { list-style: none; margin: 0; padding: 0; }
.lin-widget li { margin-bottom: 6px; }
.lin-widget li a { color: #000; }
.lin-widget li a:hover { color: #1caaf2; }
.lin-widget .children { padding-left: 13px; }
.lin-widget .cat-parent > a { font-weight: 600; }
.lin-widget .post-date { color: #999; display: block; font-size: 13px; }

.lin-post-grid-cards { display: grid; gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lin-post-grid-cards.lin-cols-1 { grid-template-columns: 1fr; }
.lin-post-card {
	background: #fff; border: 1px solid #d6d6d6; box-shadow: 5px 5px 10px rgba(191, 191, 191, 0.46);
	display: flex; min-height: 260px;
}
.lin-pc-img { background: #f6f6f6; display: block; flex: 0 0 50%; overflow: hidden; }
.lin-pc-img img { display: block; height: 100%; object-fit: cover; width: 100%; }
.lin-pc-body { display: flex; flex: 1 1 50%; gap: 12px; padding: 20px 15px; }
.lin-pc-date { color: #999; flex: 0 0 38px; font-size: 14px; line-height: 1.65; text-align: center; }
.lin-pc-day { display: block; }
.lin-pc-month { background: #000; color: #fff; display: block; padding: 4px 0; }
.lin-pc-text { min-width: 0; }
.lin-pc-title { font-size: 18px; font-weight: 300; line-height: 1.2; margin: 0 0 5px; }
.lin-pc-title a { color: #17252a; }
.lin-pc-title a:hover { color: #1caaf2; }
.lin-pc-cats { color: #999; font-size: 14px; line-height: 1.65; margin-bottom: 5px; }
.lin-pc-cats a { color: #999; }
.lin-pc-more {
	background: #cbd872; border: 2px solid #1caaf2; border-radius: 30px; color: #000; display: inline-block;
	font-size: 14px; margin: 10px 0 5px; padding: 6px 18px;
}
.lin-pc-more:hover, .lin-pc-more:focus { background: #1caaf2; color: #000; }
.lin-cols-1 .lin-post-card { min-height: 320px; }
.lin-cols-1 .lin-pc-img { flex-basis: 40%; }

.lin-pagination { margin-top: 30px; text-align: center; }
.lin-pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lin-pagination .page-numbers { border: 1px solid #e6e6e6; color: #000; padding: 3px 10px; }
.lin-pagination .page-numbers.current { background: #000; border-color: #000; color: #fff; }

.lin-single-cols .lin-single { border: 1px solid #d6d6d6; box-sizing: border-box; flex: 0 0 calc(72.48% - 40px); margin: 0 20px; min-width: 0; }
.lin-single-cols .lin-blog-sidebar { flex-basis: calc(27.52% - 40px); }
.lin-single-hero { background-position: center; background-size: cover; min-height: 350px; }
.lin-single-inner { padding: 0 20px 20px; }
.lin-single-title { color: #17252a; font-size: 42px; font-weight: 300; line-height: 1.2; margin: 10px 0 5px; }
.lin-single-meta { color: #757575; font-size: 14px; margin-top: 10px; }
.lin-single-sep { border: 0; border-top: 1px solid #e0e0e0; margin: 20px 0; }
.lin-post-nav { border-top: 1px solid #e0e0e0; display: flex; gap: 20px; justify-content: space-between; margin-top: 30px; padding-top: 15px; }
.lin-post-nav-next { text-align: right; }

.lin-team-single { background: #fff; padding: 100px 0 50px; }
.lin-team-cols { display: flex; gap: 40px; }
.lin-team-photo { flex: 0 0 calc(33.33% - 40px); margin-left: 20px; text-align: center; }
.lin-team-photo img { height: auto; max-width: 100%; }
.lin-team-bio { flex: 1 1 auto; margin-right: 20px; }
.lin-team-bio h1 { color: #17252a; font-size: 42px; font-weight: 300; margin-top: 0; }

@media (max-width: 1024px) {
	.lin-post-grid-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.lin-banner-title { font-size: 30px; }
	.lin-blog-cols, .lin-team-cols { flex-direction: column; }
	.lin-blog-sidebar, .lin-single-cols .lin-single, .lin-blog-content, .lin-team-photo, .lin-team-bio { flex: 1 1 auto; margin: 0 20px 30px; width: calc(100% - 40px); }
	.lin-blog-cols .lin-blog-sidebar { order: 2; }
	.lin-post-card { flex-direction: column; }
	.lin-pc-img { flex-basis: auto; height: 220px; }
	.lin-single-title { font-size: 30px; }
}

/* ---------- Shop (old Themer layouts 91 / 3226 / 95) ---------- */
.lin-shop-archive .fl-page-content > .container,
.lin-shop-archive .fl-woo-content { padding-top: 0; }
.lin-shop-archive .lin-banner { margin: 0 calc(50% - 50vw) 50px; }
.woocommerce .woocommerce-breadcrumb, .woocommerce .woocommerce-breadcrumb a { color: #1caaf2; }
.woocommerce ul.products li.product {
	background: #fff; border: 1px solid #d6d6d6; border-radius: 25px; box-sizing: border-box;
	overflow: hidden; padding: 20px; text-align: center;
}
.woocommerce ul.products li.product a img { border-radius: 15px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: #17252a; font-size: 22px; font-weight: 300; }
.woocommerce ul.products li.product .price { color: #17252a; font-size: 18px; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce .single_add_to_cart_button {
	background: #cbd872; border: 2px solid #1caaf2; border-radius: 30px; color: #000; font-weight: 600;
	padding: 10px 24px; text-transform: uppercase;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .single_add_to_cart_button:hover {
	background: #1caaf2; border-color: #cbd872; color: #000;
}
.lin-product-page div.product div.images {
	background: #efefef; border-radius: 12px; box-sizing: border-box; padding: 5px; width: 40%;
}
.lin-product-page div.product div.summary { box-sizing: border-box; padding-left: 20px; width: 60%; }
.lin-product-page div.product .product_title { color: #17252a; font-size: 42px; font-weight: 300; line-height: 1.2; }
.lin-product-page .woocommerce-breadcrumb, .lin-product-page .woocommerce-breadcrumb a { color: #d30332; }
.lin-product-sep { border: 0; border-top: 1px solid #e0e0e0; margin: 10px 0 15px; }
.lin-product-page div.product .product_meta { border-top: 1px solid #e5e5e5; margin-top: 20px; padding-top: 15px; }
@media (max-width: 768px) {
	.woocommerce ul.products[class*="columns-"] li.product { margin-bottom: 30px; width: 100%; }
	.lin-product-page div.product div.images, .lin-product-page div.product div.summary { padding-left: 0; width: 100%; }
}
