/*
Theme Name: Boddie Legacy Project
Theme URI: https://example.com/boddie-legacy-project
Author: The Boddie Legacy Project
Author URI: https://example.com/
Description: A custom classic WordPress theme for The Boddie Legacy Project public site and plugin-enforced Family Portal.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: boddie-legacy
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, featured-images, full-site-editing, translation-ready, wide-blocks
*/

:root {
	--blp-forest: #1f3a2e;
	--blp-forest-dark: #14281f;
	--blp-cream: #f5f0e6;
	--blp-paper: #fffdf8;
	--blp-gold: #b08d4f;
	--blp-ink: #14110e;
	--blp-muted: #6b6259;
	--blp-line: #cfc5b5;
	--blp-error: #8b2d24;
	--blp-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
	--blp-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { background: var(--blp-cream); scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--blp-cream);
	color: var(--blp-ink);
	font-family: var(--blp-sans);
	font-size: 17px;
	line-height: 1.65;
}
img { height: auto; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blp-gold); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1rem;
	font-family: var(--blp-serif);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.4rem; }
ul, ol { margin: 0 0 1.4rem; padding-left: 1.35rem; }
li + li { margin-top: .45rem; }
blockquote { margin: 2rem 0; border-left: 4px solid var(--blp-gold); padding: .2rem 0 .2rem 1.4rem; font-family: var(--blp-serif); font-size: 1.2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--blp-line); padding: .75rem; text-align: left; vertical-align: top; }
th { background: var(--blp-forest); color: var(--blp-cream); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
input, select, textarea {
	width: 100%;
	border: 1px solid #968b7c;
	border-radius: 0;
	background: var(--blp-paper);
	color: var(--blp-ink);
	padding: .7rem .8rem;
}
textarea { min-height: 110px; resize: vertical; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	display: block;
	left: 6px;
	top: 7px;
	background: var(--blp-paper);
	color: var(--blp-forest-dark);
	padding: .7rem 1rem;
	font-weight: 700;
}
.site-container { width: min(1180px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }
.eyebrow, .blp-eyebrow {
	margin: 0 0 .7rem;
	color: var(--blp-gold);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1.3;
	text-transform: uppercase;
}
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 2.25rem; }
.entry-content .alignwide { max-width: 1180px; }
.entry-content .alignfull { width: 100vw; margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--blp-line); margin: 3rem 0; }
.entry-content .wp-block-button__link, .button-primary, .blp-button, input[type="submit"] {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--blp-forest);
	border-radius: 0;
	background: var(--blp-forest);
	color: var(--blp-cream);
	padding: .7rem 1.1rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.entry-content .wp-block-button__link:hover, .button-primary:hover, .blp-button:hover, input[type="submit"]:hover { background: var(--blp-forest-dark); color: var(--blp-cream); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link, .button-secondary, .blp-button--secondary {
	background: transparent;
	color: var(--blp-forest);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover, .button-secondary:hover, .blp-button--secondary:hover { background: var(--blp-forest); color: var(--blp-cream); }
.entry-content .wp-block-button__link:active, .button-primary:active, .button-secondary:active, .blp-button:active { transform: scale(.98); }

.public-header {
	position: sticky;
	z-index: 30;
	top: 0;
	border-bottom: 1px solid rgba(245, 240, 230, .22);
	background: var(--blp-forest);
	color: var(--blp-cream);
}
.header-row { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: flex; flex-direction: column; color: inherit; line-height: 1.15; text-decoration: none; }
.wordmark-main { font-family: var(--blp-serif); font-size: 1.02rem; font-weight: 700; }
.wordmark-place { margin-top: .35rem; color: #d9d0c1; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.menu-button { display: none; border: 1px solid var(--blp-gold); border-radius: 0; background: transparent; color: var(--blp-cream); padding: .45rem .7rem; cursor: pointer; }
.public-nav { display: flex; align-items: center; gap: 1.35rem; }
.public-nav-list { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.public-nav a { display: block; border-bottom: 1px solid transparent; padding: .4rem 0; color: inherit; font-size: .82rem; font-weight: 600; text-decoration: none; }
.public-nav a:hover, .public-nav .current-menu-item > a, .public-nav .current_page_item > a { border-bottom-color: var(--blp-gold); }
.public-nav .member-link { border: 1px solid var(--blp-gold); border-bottom-color: var(--blp-gold); padding: .55rem .8rem; color: #f2ddaf; }
.public-nav .member-link:hover { background: var(--blp-forest-dark); }

.public-footer { border-top: 1px solid #4e6256; background: var(--blp-forest-dark); color: var(--blp-cream); }
.footer-row { display: flex; min-height: 150px; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-row p { margin: .25rem 0 0; color: var(--blp-line); }
.footer-row a { border-bottom: 1px solid var(--blp-gold); color: inherit; text-decoration: none; }

.home-hero { background: var(--blp-forest-dark); color: var(--blp-cream); }
.blp-photo-band, .photo-band {
	display: grid;
	min-height: 330px;
	place-items: center;
	border-top: 1px solid #596b61;
	border-bottom: 1px solid #596b61;
	background: var(--blp-forest-dark);
	color: #d9d0c1;
	padding: 2rem;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-align: center;
	text-transform: uppercase;
}
.home-hero .blp-photo-band { min-height: 380px; }
.blp-photo-band--compact { min-height: 210px; }
.home-hero-copy { padding-top: clamp(3rem, 7vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.home-hero-copy h1 { max-width: 1000px; }
.home-hero-copy .entry-content { max-width: 760px; margin-top: 1.5rem; color: #e6dfd1; font-family: var(--blp-serif); font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.55; }
.home-hero-copy .entry-content p:last-child { margin-bottom: 0; }
.page-header { border-bottom: 1px solid var(--blp-line); background: var(--blp-paper); padding: clamp(2rem, 5vw, 4.2rem) 0; }
.page-header h1 { max-width: 920px; margin: 0; }
.page-content { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.page-content .entry-content { max-width: 850px; font-size: 1.1rem; }
.page-content .blp-photo-band { max-width: 1180px; margin: 0 0 3rem; }
.error-page { padding: clamp(5rem, 12vw, 10rem) 0; }
.error-page .entry-content { max-width: 660px; }
.error-page .button-primary { margin-top: 1rem; }

/* The plugin owns authentication and authorization. These rules only present its protected UI. */
.blp-private-page { background: #eae3d7; }
.blp-private-content { min-height: 100vh; }
.blp-portal-shell {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	min-height: 100vh;
	background: #eae3d7;
	color: var(--blp-ink);
	font-family: var(--blp-sans);
}
.blp-portal-sidebar, .blp-sidebar {
	position: sticky;
	top: 0;
	display: flex;
	height: 100vh;
	flex-direction: column;
	background: var(--blp-forest-dark);
	color: var(--blp-cream);
}
.blp-portal-brand, .blp-sidebar-brand { display: flex; flex-direction: column; gap: .35rem; border-bottom: 1px solid #3b5145; padding: 1.7rem 1.4rem; }
.blp-portal-brand a, .blp-sidebar-brand a { color: inherit; font-family: var(--blp-serif); font-weight: 700; text-decoration: none; }
.blp-portal-brand span, .blp-sidebar-brand span, .blp-admin-label { color: var(--blp-gold); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.blp-portal-nav, .blp-sidebar nav { display: flex; flex: 1; flex-direction: column; padding: 1rem 0; overflow-y: auto; }
.blp-portal-nav a, .blp-sidebar nav a { border-left: 4px solid transparent; color: #ded6c8; padding: .8rem 1.4rem; font-size: .93rem; text-decoration: none; }
.blp-portal-nav a:hover, .blp-portal-nav a[aria-current="page"], .blp-sidebar nav a:hover, .blp-sidebar nav a[aria-current="page"] { border-left-color: var(--blp-gold); background: #1c352a; color: #fff; }
.blp-portal-sidebar-footer, .blp-sidebar-footer { border-top: 1px solid #3b5145; padding: 1.2rem 1.4rem; }
.blp-portal-sidebar-footer p, .blp-sidebar-footer p { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.blp-portal-sidebar-footer a, .blp-portal-sidebar-footer button, .blp-sidebar-footer a, .blp-sidebar-footer button { display: inline-block; margin: .65rem 1rem 0 0; border: 0; border-bottom: 1px solid var(--blp-gold); border-radius: 0; background: transparent; color: #ded6c8; padding: 0 0 .1rem; cursor: pointer; text-decoration: none; }
.blp-portal-main, .blp-portal-body { min-width: 0; }
.blp-portal-mobile-header { display: none; }
.blp-portal-photo, .blp-family-photo-band { display: grid; min-height: 170px; place-items: center; border-bottom: 1px solid #52665a; background: var(--blp-forest); color: #ddd4c4; padding: 1.5rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.blp-portal-page-heading, .blp-family-page-heading { background: var(--blp-paper); padding: clamp(2rem, 5vw, 4.2rem) clamp(1.5rem, 5vw, 5rem); }
.blp-portal-page-heading h1, .blp-family-page-heading h1 { max-width: 920px; }
.blp-portal-content, .blp-family-content { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 4rem); }
.blp-panel, .blp-card, .blp-numbered-block, .blp-document-category, .blp-record-entry { border: 1px solid var(--blp-line); background: var(--blp-paper); padding: clamp(1.35rem, 3vw, 2.2rem); }
.blp-panel > *:last-child, .blp-card > *:last-child, .blp-numbered-block > *:last-child { margin-bottom: 0; }
.blp-muted, .blp-muted-copy { color: var(--blp-muted); }
.blp-notice { border-left: 4px solid var(--blp-gold); background: #eee5d4; padding: 1.25rem 1.5rem; }
.blp-alert, .blp-error { color: var(--blp-error); font-weight: 700; }
.blp-status-strip { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(220px, 1.5fr) auto; align-items: center; gap: 1.5rem; border-top: 5px solid var(--blp-gold); background: var(--blp-forest); color: var(--blp-cream); padding: 1.5rem; }
.blp-status-strip p { color: #dec791; }
.blp-status-strip strong { font-family: var(--blp-serif); font-size: 1.35rem; }
.blp-progress-track { height: 10px; background: #496155; overflow: hidden; }
.blp-progress-track > span { display: block; height: 100%; background: var(--blp-gold); }
.blp-dashboard-grid, .blp-grid--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.blp-task-list { margin: 0; padding: 0; list-style: none; }
.blp-task-list li { display: grid; gap: .25rem; border-top: 1px solid var(--blp-line); padding: 1rem 0; }
.blp-task-list li + li { margin: 0; }
.blp-task-list span { color: var(--blp-gold); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.blp-table-scroll { overflow-x: auto; }
.blp-portal-shell label { display: grid; gap: .35rem; font-weight: 650; }
.blp-portal-shell fieldset { border: 1px solid var(--blp-line); padding: 1rem; }
.blp-portal-shell .checkbox-label, .blp-portal-shell .radio-label { display: inline-flex; align-items: center; gap: .7rem; }
.blp-portal-shell .checkbox-label input, .blp-portal-shell .radio-label input { width: auto; }

@media (max-width: 1050px) {
	.public-nav, .public-nav-list { gap: .8rem; }
	.public-nav a { font-size: .76rem; }
	.blp-portal-shell { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.site-container { width: min(100% - 32px, 1180px); }
	.js .menu-button { display: block; }
	.public-nav { align-items: stretch; flex-direction: column; gap: 0; }
	.public-nav-list { display: block; }
	.public-nav a { padding: .7rem; }
	.public-nav .member-link { margin: .4rem .7rem 0; text-align: center; }
	.js .public-nav { position: absolute; top: 82px; right: 0; left: 0; display: none; border-bottom: 1px solid var(--blp-gold); background: var(--blp-forest-dark); padding: .8rem 16px 1.2rem; }
	.js .public-nav.is-open { display: flex; }
	.blp-portal-shell { display: block; }
	.blp-portal-sidebar, .blp-sidebar { position: fixed; z-index: 60; top: 54px; right: 0; bottom: 0; left: 0; display: none; height: auto; }
	.blp-portal-sidebar.is-open, .blp-sidebar.is-open { display: flex; }
	.blp-portal-mobile-header { position: sticky; z-index: 70; top: 0; display: flex; min-height: 54px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--blp-line); background: var(--blp-paper); padding: 0 1rem; }
	.blp-dashboard-grid, .blp-grid--two { grid-template-columns: 1fr; }
	.blp-status-strip { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.header-row { min-height: 72px; }
	.js .public-nav { top: 72px; }
	.wordmark-main { font-size: .9rem; }
	.wordmark-place { font-size: .6rem; }
	.blp-photo-band { min-height: 230px; }
	.home-hero .blp-photo-band { min-height: 270px; }
	.footer-row { align-items: flex-start; flex-direction: column; justify-content: center; }
	.blp-portal-content, .blp-family-content { padding: 1rem; }
	.blp-portal-page-heading, .blp-family-page-heading { padding: 2.2rem 1rem; }
	.blp-portal-photo, .blp-family-photo-band { min-height: 125px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
