/*
 * CamFam Modern UI
 * Responsive public design system for TNG 15.0.5 + Template 101.
 */

:root {
	--cf-navy-950: #101331;
	--cf-navy-900: #14153a;
	--cf-navy-800: #1f2159;
	--cf-navy-700: #2a2d7a;
	--cf-blue-600: #3f4fb5;
	--cf-blue-100: #e9ebfa;
	--cf-blue-50: #f5f6fd;
	--cf-ink: #202338;
	--cf-muted: #60677a;
	--cf-line: #dfe3ed;
	--cf-surface: #ffffff;
	--cf-surface-soft: #f7f8fc;
	--cf-focus: #ffbf47;
	--cf-danger: #a31d1d;
	--cf-radius-sm: 0.5rem;
	--cf-radius: 0.85rem;
	--cf-radius-lg: 1.25rem;
	--cf-shadow-sm: 0 2px 10px rgba(16, 19, 49, 0.09);
	--cf-shadow: 0 12px 32px rgba(16, 19, 49, 0.13);
	--cf-shell: 112.5rem;
	--cf-gutter: clamp(1rem, 3vw, 3rem);
	--cf-readable: 75ch;
	--cf-nav-height: 3.5rem;
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	min-width: 0;
	margin: 0;
	background: var(--cf-surface);
	color: var(--cf-ink);
	font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: clamp(0.96rem, 0.2vw + 0.92rem, 1.08rem);
	line-height: 1.58;
	overflow-x: clip;
}

body > .container,
header > .container,
.nav-menu > .container {
	width: min(calc(100% - (2 * var(--cf-gutter))), var(--cf-shell));
	max-width: none;
	margin-inline: auto;
}

body > .container {
	padding-block: clamp(1.1rem, 2vw, 2rem);
}

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

p,
li,
td,
th,
label,
input,
select,
textarea,
button {
	font-size: inherit;
}

p {
	margin-block: 0.75em 1em;
}

a {
	text-underline-offset: 0.16em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration: underline;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--cf-focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.header,
.plainheader,
.nameheader {
	color: var(--cf-navy-800);
	line-height: 1.15;
	text-wrap: balance;
}

h1,
.plainheader {
	font-size: clamp(2rem, 3vw, 3.4rem);
}

h2,
.nameheader {
	font-size: clamp(1.6rem, 2.25vw, 2.55rem);
}

h3 {
	font-size: clamp(1.35rem, 1.7vw, 2rem);
}

h4,
.subhead {
	font-size: clamp(1.15rem, 1.25vw, 1.5rem);
}

.normal,
.indleftcol {
	font-family: inherit;
	font-size: inherit;
}

.smaller {
	font-size: 0.875rem;
}

/* Header */
header {
	padding: clamp(0.75rem, 1.5vw, 1.35rem) 0;
	background: linear-gradient(180deg, #fff 0%, #f5f6f9 68%, #eceef3 100%);
	border-bottom: 1px solid rgba(20, 21, 58, 0.1);
}

header > .container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1rem, 4vw, 4rem);
	align-items: center;
	clear: none;
}

header > .container::before,
header > .container::after,
.nav-menu > .container::before,
.nav-menu > .container::after {
	display: none;
	content: none;
}

header > .container > .clear {
	display: none;
}

.headerBox75Left,
.headerBox25Right {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 1.5vw, 1.4rem);
	margin: 0;
}

.brand img,
.brand .img-left {
	flex: 0 0 auto;
	width: clamp(4.25rem, 6.5vw, 6.75rem);
	max-width: none;
	margin: 0;
	float: none;
}

.brand,
.brand a,
.brand a:hover {
	font-size: clamp(1.8rem, 3.1vw, 3.65rem);
	line-height: 1;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.slogan {
	margin: 0.25rem 0 0 clamp(5rem, 8vw, 8.1rem);
	padding: 0;
	font-size: clamp(0.95rem, 1.1vw, 1.35rem);
	line-height: 1.3;
}

.headerBox25Right ul.list1 {
	display: grid;
	grid-template-columns: repeat(2, minmax(8rem, auto));
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0;
}

.headerBox25Right ul.list1 li {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.3;
}

.headerBox25Right ul.list1 li::before {
	top: 0.08em;
}

/* Primary navigation */
.nav-menu {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: auto;
	min-height: var(--cf-nav-height);
	margin: 0;
	background: linear-gradient(135deg, var(--cf-navy-950), var(--cf-navy-700), var(--cf-navy-950));
	border: 0;
	box-shadow: 0 8px 20px rgba(16, 19, 49, 0.2);
}

.nav-menu > .container {
	min-height: var(--cf-nav-height);
	clear: none;
}

.menucontainer,
.innercontainer {
	width: 100%;
	min-width: 0;
}

.innercontainer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.innercontainer > div[style*="inline-flex"] {
	display: flex !important;
	align-items: center;
	min-width: 0;
}

.nav-menu .icons,
.nav-menu .icons-rt {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
}

.nav-menu .icons-rt {
	margin-left: auto;
}

.nav-menu a.tngsmallicon,
.nav-menu .icons-rt a {
	display: inline-flex;
	align-items: center;
	min-height: var(--cf-nav-height);
	padding: 0.7rem 0.8rem;
	border-radius: 0.5rem;
	color: #fff !important;
	font-size: 0.85rem !important;
	line-height: 1;
	text-decoration: none;
}

.nav-menu a.tngsmallicon:hover,
.nav-menu .icons-rt a:hover,
.nav-menu ul.tngdd > li > a:hover {
	background: rgba(255, 255, 255, 0.14);
	text-decoration: none;
}

ul.tngdd {
	display: flex;
	align-items: stretch;
	gap: 0.15rem;
	min-width: 0;
	margin: 0;
	padding: 0;
}

ul.tngdd > li {
	position: relative;
	display: flex;
	align-items: stretch;
}

ul.tngdd .menulink,
ul.tngdd .menuhover,
ul.tngdd .menulink:hover {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: var(--cf-nav-height);
	margin: 0;
	padding: 0.7rem 1.8rem 0.7rem 0.85rem;
	background-position: right 0.65rem center;
	border: 0 !important;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	line-height: 1;
}

ul.tngdd ul {
	top: calc(100% - 0.25rem);
	left: 0;
	width: min(20rem, 90vw);
	padding: 0.45rem;
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	box-shadow: var(--cf-shadow);
}

ul.tngdd ul li,
ul.tngdd ul li a {
	width: 100%;
}

ul.tngdd ul li a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.55rem 0.7rem;
	border: 0;
	border-radius: 0.55rem;
	background: transparent;
	color: var(--cf-navy-800) !important;
	font-size: 0.92rem;
}

ul.tngdd ul li a:hover {
	background: var(--cf-blue-50);
	color: var(--cf-navy-950) !important;
}

.cf-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 2.75rem;
	margin: 0.4rem 0;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0.65rem;
	background: rgba(255, 255, 255, 0.1) !important;
	box-shadow: none;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.cf-menu-toggle-lines,
.cf-menu-toggle-lines::before,
.cf-menu-toggle-lines::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	content: "";
	transition: transform 180ms ease;
}

.cf-menu-toggle-lines {
	position: relative;
}

.cf-menu-toggle-lines::before {
	position: absolute;
	top: -0.4rem;
}

.cf-menu-toggle-lines::after {
	position: absolute;
	top: 0.4rem;
}

.cf-nav-open .cf-menu-toggle-lines {
	background: transparent;
}

.cf-nav-open .cf-menu-toggle-lines::before {
	top: 0;
	transform: rotate(45deg);
}

.cf-nav-open .cf-menu-toggle-lines::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Page-level navigation and controls */
#tngmenu,
#pub-innermenu,
.miscmenu {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

#pub-innermenu {
	margin: 0.6rem 0 1.25rem;
	padding: 0.55rem 0.8rem;
	background: var(--cf-blue-50);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-sm);
	box-shadow: none;
	white-space: nowrap;
}

/* Forms and controls */
input:not([type="checkbox"]):not([type="radio"]):not([type="image"]),
select,
textarea,
button {
	max-width: 100%;
	min-height: 2.75rem;
	border: 1px solid #aeb5c5;
	border-radius: 0.6rem;
	background-color: #fff;
	color: var(--cf-ink);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="image"]),
select,
textarea {
	padding: 0.58rem 0.7rem;
}

::placeholder {
	color: var(--cf-muted) !important;
	-webkit-text-fill-color: var(--cf-muted);
	opacity: 1;
}

textarea {
	width: min(100%, 50rem);
	min-height: 8rem;
	resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
	width: 1.15rem;
	height: 1.15rem;
	margin-inline: 0.2rem 0.35rem;
	vertical-align: -0.18rem;
}

.btn,
input[type="button"],
input[type="submit"],
input[type="reset"],
button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.58rem 1rem;
	border: 1px solid var(--cf-navy-800);
	border-radius: 0.65rem;
	background: var(--cf-navy-800) !important;
	box-shadow: var(--cf-shadow-sm);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	font-weight: 700;
	line-height: 1.15;
	cursor: pointer;
	touch-action: manipulation;
}

.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
	background: var(--cf-navy-700) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

/* Template 101 forces white text on every button. Sort controls intentionally
   use the table heading background, so their label must inherit that color. */
.tablesaw-sortable .tablesaw-sortable-head button {
	background: transparent !important;
	box-shadow: none;
	color: inherit !important;
	-webkit-text-fill-color: currentColor;
}

.searchformbox {
	float: none;
	margin: 0 1rem 1rem 0;
	padding: clamp(1rem, 2vw, 1.5rem);
	background: var(--cf-surface-soft);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
}

.searchsidebar {
	position: static;
	margin: 0;
}

fieldset {
	min-width: 0;
	margin-block: 1rem;
	padding: clamp(0.9rem, 2vw, 1.4rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
}

legend {
	padding-inline: 0.5rem;
	color: var(--cf-navy-800);
	font-weight: 700;
}

/* Cards, panels, and data areas */
.tngshadow {
	box-shadow: var(--cf-shadow-sm);
}

.databack,
.databackalt,
.whiteback {
	border-color: var(--cf-line);
}

.databack {
	background: var(--cf-blue-50);
}

.databackalt {
	background: #eef0fa;
}

.fieldnameback,
.tablesaw-cell-label {
	background: var(--cf-navy-800);
	border-color: rgba(255, 255, 255, 0.15);
}

.pubbox,
.cust-event-block {
	border-radius: var(--cf-radius);
}

/* Tables */
.cf-table-scroll {
	max-width: 100%;
	margin-block: 0.8rem 1.25rem;
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.cf-table-scroll > table {
	margin: 0;
	border: 0;
	box-shadow: none;
}

table {
	max-width: 100%;
}

table.thfixed,
table.tfixed,
table.resultstable,
table.tablesaw {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

table.thfixed th,
table.thfixed td,
table.tfixed th,
table.tfixed td,
table.resultstable th,
table.resultstable td {
	padding: 0.7rem;
	vertical-align: top;
}

table.thfixed tr:hover td,
table.resultstable tr:hover td {
	background-color: var(--cf-blue-50);
}

/* Dialogs and login */
.LB_overlay {
	position: fixed !important;
	inset: 0;
	width: 100vw !important;
	height: 100dvh !important;
	background: rgba(10, 12, 30, 0.62) !important;
	backdrop-filter: blur(4px);
}

.LB_window {
	max-width: calc(100vw - 1rem) !important;
	max-height: calc(100dvh - 1rem) !important;
	border: 0;
	border-radius: var(--cf-radius-lg);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.LB_closeAjaxWindow {
	max-width: 100% !important;
	background: var(--cf-navy-900);
}

.LB_content {
	max-width: 100% !important;
	max-height: calc(100dvh - 4rem) !important;
	padding: clamp(1rem, 3vw, 2rem);
	overflow: auto;
	background: #fff;
}

.LB_window.cf-pdf-dialog .LB_content {
	box-sizing: border-box;
	width: 100% !important;
	height: 100% !important;
}

.LB_window.cf-family-info-dialog .LB_content {
	box-sizing: border-box;
	width: 100% !important;
	height: 100% !important;
	max-height: calc(100dvh - 2.75rem) !important;
}

.cf-family-info-dialog .ajaxwindow {
	min-height: 100%;
	margin: 0;
	padding: clamp(0.75rem, 2vw, 1.5rem);
}

.cf-family-info-dialog .ajaxwindow form {
	margin-top: 1rem;
}

.cf-pdf-dialog #finddiv {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: clamp(1rem, 2.5vw, 2rem);
}

.cf-pdf-dialog #pdfform {
	display: grid;
	gap: 0.4rem;
}

.cf-pdf-dialog select,
.cf-pdf-dialog input[type="text"] {
	max-width: 100%;
}

#loginblock,
.login-options,
#forgot {
	max-width: 100%;
}

#loginblock input.medfield,
#loginblock input.medpwdfield,
#forgot input.forgotfield {
	width: min(100%, 34rem);
}

.tngsso-login-option {
	margin-top: 0.75rem !important;
}

a.tngsso-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cf-navy-800);
	border-radius: 0.7rem;
	background: var(--cf-navy-800) !important;
	box-shadow: var(--cf-shadow-sm);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	white-space: normal;
}

a.tngsso-button:hover {
	background: var(--cf-navy-700) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	text-decoration: none;
}

/* Keep the standalone login page comfortably readable on wide screens while
   preserving the full-width dialog treatment used by TNG's login modal. */
body.cf-page-login > .container > h1.header,
body.cf-page-login > .container > form[name="form1"],
body.cf-page-login > .container > form[name="form2"] {
	width: min(100%, 42rem);
	margin-inline: auto;
}

body.cf-page-login > .container > h1.header {
	margin-bottom: 1rem;
}

body.cf-page-login form[name="form1"] > .normal {
	padding: clamp(1.15rem, 3vw, 2rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: linear-gradient(145deg, #fff, var(--cf-surface-soft));
	box-shadow: var(--cf-shadow-sm);
}

body.cf-page-login .tngsso-login-option {
	margin: 0 0 1.25rem !important;
}

body.cf-page-login .tngsso-login-option hr {
	margin-top: 1.25rem !important;
	border: 0;
	border-top: 1px solid var(--cf-line);
}

body.cf-page-login #loginblock input.medfield,
body.cf-page-login #loginblock input.medpwdfield,
body.cf-page-login #loginblock input[type="password"],
body.cf-page-login #loginblock input[type="text"] {
	width: 100%;
	max-width: none;
	padding-right: 3.1rem;
}

body.cf-page-login #loginblock .loginprompt {
	margin-top: 0.75rem;
	font-weight: 700;
}

body.cf-page-login #loginblock .pwdicon {
	position: relative !important;
	right: auto !important;
	display: inline-block;
	width: 2.1rem;
	height: 2.1rem;
	margin-left: -2.8rem;
	vertical-align: middle;
	transform: translateY(-0.05rem);
	z-index: 2;
}

body.cf-page-login .login-options {
	margin-block: 1rem;
}

body.cf-page-login #loginsubmit {
	width: 100%;
}

body.cf-page-login form[name="form2"] {
	margin-top: 1.5rem;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	border-top: 1px solid var(--cf-line);
}

body.cf-page-login #forgot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
}

body.cf-page-login #forgot > p,
body.cf-page-login #forgot > div {
	grid-column: 1 / -1;
}

body.cf-page-login #forgot input.forgotfield {
	width: 100%;
	max-width: none;
}

/* Media and maps */
.thumb,
.smallimg,
.adminthumb,
.gallery,
.thumbnails {
	max-width: 100%;
	height: auto;
}

.gallery {
	width: clamp(5rem, 10vw, 8rem);
	height: auto;
	padding: 0.35rem;
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
}

.indexphototable,
.indexphoto {
	width: 100%;
	max-width: 100%;
}

.cemmap,
#mapevents,
.mapcontainer {
	max-width: 100%;
	border-radius: var(--cf-radius);
	overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
	.media-prev {
		display: none !important;
	}
}

/* Person and family pages */
body.getperson > .container,
body.familygroup > .container,
body.browsemedia > .container,
body.search > .container,
body.browsesources > .container {
	width: min(calc(100% - (2 * var(--cf-gutter))), var(--cf-shell));
}

body.getperson .nameheader,
body.familygroup .nameheader {
	margin-bottom: 0.4rem;
}

body.getperson .indleftcol,
body.familygroup .indleftcol {
	min-width: 0;
}

.defphoto,
.img-frame,
.img-frame-left,
.img-frame-right {
	border-radius: var(--cf-radius-sm);
}

/* Homepage */
body.index > .container {
	padding-top: clamp(1.25rem, 2.5vw, 2.75rem);
}

.cf-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr);
	gap: clamp(1.25rem, 3.5vw, 4rem);
	align-items: stretch;
	margin-bottom: clamp(2rem, 4vw, 4rem);
}

.cf-home-hero #slider {
	float: none;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	aspect-ratio: 16 / 10;
	border: 0;
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow);
}

.cf-home-hero .nivo-main-image,
.cf-home-hero .nivoSlider img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

.cf-home-intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.25rem, 3vw, 2.75rem);
	background: linear-gradient(145deg, var(--cf-blue-50), #fff);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow-sm);
}

.cf-home-intro h3 {
	margin-top: 0;
}

.cf-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.85fr);
	gap: clamp(1.5rem, 4vw, 4.5rem);
	align-items: start;
}

.cf-home-grid .contentLeft,
.cf-home-grid .sidebarRight {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.cf-home-grid .sidebarRight {
	padding: clamp(1rem, 2vw, 1.5rem);
	background: var(--cf-surface-soft);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
}

.cf-story-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	margin-block: 1rem clamp(2rem, 4vw, 4rem);
}

.cf-story-grid .contentBox4a,
.cf-story-grid .contentBox4b,
.cf-story-grid .contentBox4c,
.cf-story-grid .contentBox4d {
	float: none;
	width: auto;
	margin: 0;
}

.cf-story-grid .postcard {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--cf-radius);
	box-shadow: var(--cf-shadow-sm);
}

.cf-story-grid .thumbnail,
.cf-story-grid figure,
.cf-story-grid figure img {
	width: 100%;
}

.cf-story-grid figure img {
	display: block;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: center top;
}

.cf-story-grid .caption {
	height: 100%;
	min-height: 9rem;
	padding: 1rem 1rem 2.75rem;
}

.cf-honor-story,
.cf-surname-panel {
	margin-block: clamp(2rem, 4vw, 4rem);
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
}

.cf-honor-story::after {
	display: block;
	clear: both;
	content: "";
}

.cf-surname-panel {
	background: linear-gradient(145deg, var(--cf-blue-50), #fff);
}

.surnames-cloud,
.surnames-cloud a {
	font-family: inherit;
	font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.2rem);
	line-height: 1.8;
}

/* Editorial family-archive homepage */
.cf-home-legacy[hidden] {
	display: none !important;
}

.cf-home-redesigned > .container {
	padding-top: clamp(1rem, 2vw, 2rem);
}

.cf-home-experience {
	--cf-heritage-red: #922b22;
	--cf-heritage-red-dark: #6f1f19;
	--cf-heritage-gold: #c79b4b;
	--cf-paper: #f7f1e7;
	--cf-paper-deep: #ede2d0;
	--cf-forest: #3f5649;
	display: grid;
	gap: clamp(4.5rem, 8vw, 8.5rem);
	width: min(100%, 100rem);
	margin-inline: auto;
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.cf-home-experience section {
	min-width: 0;
}

.cf-home-experience h1,
.cf-home-experience h2,
.cf-home-experience h3,
.cf-home-experience p {
	margin-top: 0;
}

.cf-home-experience h1,
.cf-home-experience h2,
.cf-home-experience h3 {
	font-family: "Philosopher", Georgia, serif;
}

.cf-home-experience h2 {
	font-size: clamp(2rem, 3.4vw, 3.75rem);
	letter-spacing: -0.025em;
	text-align: left;
	border-bottom: 0;
}

.cf-home-experience h3 {
	font-size: clamp(1.35rem, 1.5vw, 1.8rem);
	padding: 0;
}

.cf-eyebrow {
	margin-bottom: 0.65rem !important;
	color: var(--cf-heritage-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.cf-section-heading {
	max-width: 58rem;
	margin-bottom: clamp(1.75rem, 3vw, 3rem);
	padding: 0;
	background: none;
	border: 0;
}

.cf-section-heading h2 {
	margin-bottom: 0.7rem;
}

.cf-section-heading > p:last-child,
.cf-section-heading > div > p:last-child {
	max-width: 65ch;
	margin-bottom: 0;
	color: var(--cf-muted);
	font-size: clamp(1rem, 0.35vw + 0.95rem, 1.2rem);
}

.cf-section-heading-split {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	max-width: none;
}

.cf-section-heading-split > div {
	max-width: 58rem;
}

.cf-primary-button,
.cf-secondary-button,
.cf-light-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.78rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.cf-primary-button,
button.cf-primary-button {
	background: var(--cf-heritage-red);
	color: #fff !important;
	box-shadow: 0 7px 18px rgba(111, 31, 25, 0.2);
}

.cf-primary-button:hover,
button.cf-primary-button:hover {
	background: var(--cf-heritage-red-dark);
	color: #fff !important;
	text-decoration: none;
}

.cf-secondary-button {
	flex: 0 0 auto;
	border-color: rgba(31, 33, 89, 0.22);
	background: #fff;
	color: var(--cf-navy-800);
}

.cf-secondary-button:hover {
	border-color: var(--cf-navy-800);
	text-decoration: none;
}

.cf-family-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.48fr) minmax(20rem, 0.52fr);
	gap: clamp(1rem, 2vw, 1.75rem);
	min-height: clamp(35rem, 48vw, 45rem);
}

.cf-family-hero-media {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	background: var(--cf-navy-950);
	border-radius: clamp(1.25rem, 2.5vw, 2rem);
	box-shadow: 0 24px 60px rgba(16, 19, 49, 0.18);
}

.cf-family-hero-media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 12, 31, 0.04) 25%, rgba(10, 12, 31, 0.88) 100%);
	content: "";
}

.cf-family-hero-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.cf-family-hero-copy {
	position: absolute;
	z-index: 1;
	right: clamp(1.4rem, 4vw, 4rem);
	bottom: clamp(1.5rem, 4vw, 4rem);
	left: clamp(1.4rem, 4vw, 4rem);
	max-width: 47rem;
	color: #fff;
}

.cf-family-hero-copy .cf-eyebrow {
	color: #f1ce87;
}

.cf-family-hero-copy h1 {
	margin-bottom: 0.75rem;
	color: #fff;
	font-size: clamp(2.55rem, 5.2vw, 5.8rem);
	letter-spacing: -0.04em;
	line-height: 0.96;
	text-shadow: 0 3px 20px rgba(0, 0, 0, 0.42);
}

.cf-family-hero-lede {
	max-width: 56ch;
	margin-bottom: 0 !important;
	font-size: clamp(1.05rem, 0.65vw + 0.92rem, 1.42rem);
	line-height: 1.55;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.cf-family-search-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 3rem);
	background: linear-gradient(155deg, #fff, var(--cf-paper));
	border: 1px solid #e5d9c5;
	border-radius: clamp(1.25rem, 2.5vw, 2rem);
	box-shadow: var(--cf-shadow-sm);
}

.cf-family-search-card h2 {
	margin-bottom: 0.8rem;
	font-size: clamp(1.8rem, 2.5vw, 3rem);
}

.cf-search-invitation {
	margin-bottom: 1.5rem !important;
	color: var(--cf-muted);
}

.cf-family-search-form {
	display: grid;
	gap: 0.9rem;
}

.cf-family-search-form label,
.cf-surname-search label {
	display: grid;
	gap: 0.35rem;
	color: var(--cf-navy-800);
	font-size: 0.86rem;
	font-weight: 750;
}

.cf-family-search-form input,
.cf-surname-search input[type="search"] {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	background: #fff;
	border: 1px solid #cfc7ba;
	border-radius: 0.65rem;
	color: var(--cf-ink);
	font: inherit;
}

.cf-family-search-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.4rem;
}

.cf-family-search-actions > * {
	white-space: nowrap;
}

.cf-text-link,
.cf-light-text-link {
	font-weight: 750;
}

.cf-privacy-note {
	margin: 1.25rem 0 0 !important;
	padding-top: 1rem;
	border-top: 1px solid #dfd5c6;
	color: var(--cf-muted);
	font-size: 0.82rem;
}

.cf-family-path-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.8rem, 1.5vw, 1.35rem);
}

.cf-family-path {
	position: relative;
	display: flex;
	min-height: 16rem;
	flex-direction: column;
	padding: clamp(1.25rem, 2vw, 1.8rem);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow-sm);
	color: var(--cf-ink);
	text-decoration: none;
	transition: translate 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cf-family-path::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 0.35rem;
	background: var(--cf-heritage-red);
	content: "";
}

.cf-family-path:nth-child(2)::before {
	background: var(--cf-forest);
}

.cf-family-path:nth-child(3)::before {
	background: var(--cf-heritage-gold);
}

.cf-family-path:nth-child(4)::before {
	background: var(--cf-blue-600);
}

.cf-family-path:hover {
	translate: 0 -0.25rem;
	border-color: rgba(31, 33, 89, 0.24);
	box-shadow: var(--cf-shadow);
	text-decoration: none;
}

.cf-family-path h3 {
	margin: 0.55rem 0 0.7rem;
}

.cf-family-path p {
	color: var(--cf-muted);
}

.cf-card-link {
	display: inline-block;
	margin-top: auto;
	color: var(--cf-heritage-red);
	font-weight: 800;
	text-decoration: none;
}

.cf-card-link:hover {
	color: var(--cf-heritage-red-dark);
}

.cf-family-stories {
	padding: clamp(1.5rem, 4vw, 4.5rem);
	background: linear-gradient(145deg, var(--cf-paper), #fff 72%);
	border: 1px solid #e5d9c5;
	border-radius: clamp(1.5rem, 3vw, 2.5rem);
}

.cf-featured-story {
	display: grid;
	grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
	min-height: 36rem;
	overflow: hidden;
	background: #fff;
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow);
}

.cf-featured-story-media {
	display: block;
	min-height: 100%;
	background: var(--cf-paper-deep);
}

.cf-featured-story-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 36rem;
	object-fit: cover;
	object-position: center top;
}

.cf-featured-story-copy {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	padding: clamp(1.75rem, 5vw, 5.5rem);
}

.cf-featured-story-copy h3 {
	margin-bottom: 1rem;
	font-size: clamp(2.2rem, 4vw, 4.8rem);
	letter-spacing: -0.035em;
}

.cf-featured-story-copy > p:not(.cf-eyebrow) {
	max-width: 55ch;
	margin-bottom: 1.75rem;
	color: #3d4251;
	font-size: clamp(1.05rem, 0.4vw + 0.98rem, 1.28rem);
	line-height: 1.75;
}

.cf-story-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.6rem);
	margin-top: clamp(1.25rem, 2.5vw, 2.25rem);
}

.cf-person-story-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e7dfd3;
	border-radius: var(--cf-radius-lg);
	box-shadow: var(--cf-shadow-sm);
}

.cf-person-story-media {
	display: block;
	overflow: hidden;
	background: var(--cf-paper-deep);
}

.cf-person-story-media img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: center top;
	transition: scale 300ms ease;
}

.cf-person-story-card:hover .cf-person-story-media img {
	scale: 1.025;
}

.cf-person-story-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.15rem, 2vw, 1.6rem);
}

.cf-person-story-copy h3 {
	margin-bottom: 0.75rem;
}

.cf-person-story-copy p {
	color: var(--cf-muted);
}

.cf-family-archive {
	min-width: 0;
}

.cf-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.cf-archive-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: var(--cf-surface-soft);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
}

.cf-archive-card-media {
	display: block;
	overflow: hidden;
	background: var(--cf-paper-deep);
}

.cf-archive-card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center top;
	filter: saturate(0.86) contrast(1.03);
	transition: scale 300ms ease, filter 300ms ease;
}

.cf-archive-card:hover img {
	scale: 1.025;
	filter: saturate(1) contrast(1.03);
}

.cf-archive-card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.2rem, 2.2vw, 1.8rem);
}

.cf-archive-card-copy p {
	color: var(--cf-muted);
}

.cf-family-discovery {
	display: grid;
	grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 6rem);
	align-items: center;
	padding: clamp(1.5rem, 4vw, 4rem);
	background: var(--cf-paper);
	border: 1px solid #e5d9c5;
	border-radius: clamp(1.5rem, 3vw, 2.5rem);
}

.cf-family-discovery-copy h2 {
	margin-bottom: 0.75rem;
}

.cf-family-discovery-copy > p:not(.cf-eyebrow) {
	color: var(--cf-muted);
}

.cf-surname-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: end;
	margin-top: 1.5rem;
}

.cf-surname-chips {
	display: flex;
	align-content: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.cf-surname-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 2.7rem;
	padding: 0.55rem 0.9rem;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid #d8ccba;
	border-radius: 999px;
	color: var(--cf-navy-800);
	font-weight: 700;
	text-decoration: none;
}

.cf-surname-chips a:hover {
	background: #fff;
	border-color: var(--cf-heritage-red);
	color: var(--cf-heritage-red);
}

.cf-family-discovery > .cf-discovery-links {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #dfd3c1;
}

.cf-family-discovery > .cf-discovery-links a {
	font-weight: 750;
}

.cf-family-contribute {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) auto;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	padding: clamp(2rem, 5vw, 5rem);
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 18%, rgba(199, 155, 75, 0.2), transparent 30%),
		linear-gradient(135deg, var(--cf-navy-950), var(--cf-navy-700));
	border-radius: clamp(1.5rem, 3vw, 2.5rem);
	color: #fff;
	box-shadow: var(--cf-shadow);
}

.cf-family-contribute .cf-eyebrow {
	color: #f1ce87;
}

.cf-family-contribute h2 {
	max-width: 18ch;
	margin-bottom: 0.9rem;
	color: #fff;
}

.cf-family-contribute p:not(.cf-eyebrow) {
	max-width: 72ch;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1rem, 0.35vw + 0.95rem, 1.18rem);
}

.cf-contribute-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
}

.cf-light-button {
	background: #fff;
	color: var(--cf-navy-900);
}

.cf-light-button:hover {
	background: var(--cf-paper);
	color: var(--cf-heritage-red-dark);
	text-decoration: none;
}

.cf-light-text-link {
	color: #fff !important;
}

.cf-light-text-link:hover {
	color: #f1ce87 !important;
}

.cf-mobile-family-links {
	display: none;
}

@media (max-width: 75rem) {
	.cf-family-path-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cf-family-path {
		min-height: 13rem;
	}
}

@media (max-width: 56.25rem) {
	.cf-home-experience {
		gap: clamp(3.5rem, 8vw, 5.5rem);
	}

	.cf-family-hero,
	.cf-featured-story,
	.cf-family-discovery,
	.cf-family-contribute {
		grid-template-columns: 1fr;
	}

	.cf-family-hero {
		min-height: 0;
	}

	.cf-family-hero-media {
		min-height: clamp(30rem, 78vw, 40rem);
	}

	.cf-featured-story,
	.cf-featured-story-media img {
		min-height: 0;
	}

	.cf-featured-story-media img {
		aspect-ratio: 4 / 5;
	}

	.cf-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cf-archive-card:last-child {
		grid-column: 1 / -1;
	}

	.cf-family-contribute {
		text-align: center;
	}

	.cf-family-contribute h2,
	.cf-family-contribute p {
		margin-inline: auto;
	}

	.cf-contribute-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.cf-mobile-family-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.75rem 0.25rem 0.25rem;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
	}

	.cf-mobile-family-links a {
		padding: 0.7rem;
		background: rgba(255, 255, 255, 0.08);
		border-radius: 0.5rem;
		color: #fff;
		font-size: 0.9rem;
		text-align: center;
		text-decoration: none;
	}
}

@media (max-width: 40rem) {
	.headerBox25Right {
		display: none;
	}

	.cf-home-experience {
		gap: 3.75rem;
	}

	.cf-family-hero-media {
		min-height: 31rem;
	}

	.cf-family-hero-copy h1 {
		font-size: clamp(2.65rem, 14vw, 4rem);
	}

	.cf-family-hero-lede {
		font-size: 1rem;
	}

	.cf-family-search-card {
		padding: 1.25rem;
	}

	.cf-family-search-actions,
	.cf-section-heading-split,
	.cf-contribute-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.cf-primary-button,
	.cf-secondary-button,
	.cf-light-button {
		width: 100%;
	}

	.cf-family-path-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cf-family-path {
		min-height: 9.5rem;
		padding: 1rem;
	}

	.cf-family-path h3 {
		font-size: 1.15rem;
	}

	.cf-family-path p {
		display: none;
	}

	.cf-family-stories {
		padding: 1rem;
	}

	.cf-featured-story-media img {
		aspect-ratio: 2 / 3;
	}

	.cf-story-card-grid {
		grid-auto-columns: minmax(17rem, 82vw);
		grid-auto-flow: column;
		grid-template-columns: none;
		padding-bottom: 0.75rem;
		overflow-x: auto;
		scroll-padding-inline: 0.25rem;
		scroll-snap-type: x proximity;
	}

	.cf-person-story-card {
		scroll-snap-align: start;
	}

	.cf-archive-card:last-child {
		grid-column: auto;
	}

	.cf-archive-grid {
		grid-auto-columns: minmax(17rem, 82vw);
		grid-auto-flow: column;
		grid-template-columns: none;
		padding-bottom: 0.75rem;
		overflow-x: auto;
		scroll-padding-inline: 0.25rem;
		scroll-snap-type: x proximity;
	}

	.cf-archive-card {
		scroll-snap-align: start;
	}

	.cf-family-discovery {
		padding: 1.25rem;
	}

	.cf-surname-search {
		grid-template-columns: 1fr;
	}

	.cf-surname-chips {
		justify-content: flex-start;
	}

	.cf-family-contribute {
		padding: 2rem 1.25rem;
		text-align: left;
	}

	.cf-family-contribute h2,
	.cf-family-contribute p {
		margin-inline: 0;
	}

	.cf-mobile-family-links {
		grid-template-columns: 1fr;
	}
}

/* Footer */
hr.fancy {
	width: min(100%, 30rem);
	height: 2.5rem;
	margin: clamp(2rem, 4vw, 3.5rem) auto clamp(1rem, 2vw, 1.5rem);
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40'%3E%3Cpath d='M24 20H194M286 20H456' fill='none' stroke='%231f2159' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M194 20H218M262 20H286' fill='none' stroke='%23c79b4b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M240 8l12 12-12 12-12-12z' fill='%23c79b4b' stroke='%231f2159' stroke-width='1.25'/%3E%3Ccircle cx='221' cy='20' r='2.5' fill='%231f2159'/%3E%3Ccircle cx='259' cy='20' r='2.5' fill='%231f2159'/%3E%3C/svg%3E") center / 100% 2.5rem no-repeat;
}

.cf-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: start;
	width: min(100%, 72rem);
	margin-inline: auto;
	padding-block: clamp(1.25rem, 2.5vw, 2.5rem);
	text-align: left;
}

.cf-footer-grid .contentBox3a,
.cf-footer-grid .contentBox3b,
.cf-footer-grid .contentBox3c {
	float: none;
	min-width: 0;
	width: auto;
	margin: 0;
	text-align: left;
}

.cf-footer-grid .contentBox2a,
.cf-footer-grid .contentBox2b {
	min-width: 0;
	width: 48%;
}

.cf-footer-grid > [hidden] {
	display: none !important;
}

.cf-footer-grid .contentBox3a {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
	align-content: start;
}

.cf-footer-grid .contentBox3a > h4 {
	grid-column: 1 / -1;
}

.cf-footer-grid .contentBox3a .contentBox2a,
.cf-footer-grid .contentBox3a .contentBox2b {
	float: none;
	width: auto;
	margin: 0;
}

.cf-footer-grid .contentBox3a > p:empty,
.cf-footer-grid .contentBox3a > .clear {
	display: none;
}

.cf-footer-grid article p br {
	display: none;
}

.cf-footer-grid article p a {
	display: block;
	margin-block: 0.45rem;
}

footer {
	margin-top: 0;
	padding: 1rem var(--cf-gutter);
	background: linear-gradient(135deg, var(--cf-navy-950), var(--cf-navy-700), var(--cf-navy-950));
}

/* Responsive navigation and layout */
@media (max-width: 75rem) {
	.headerBox25Right ul.list1 {
		grid-template-columns: 1fr;
	}

	.cf-story-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 56.25rem) {
	:root {
		--cf-gutter: clamp(0.75rem, 3vw, 1.5rem);
	}

	header > .container {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.headerBox25Right ul.list1 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.4rem 0.75rem;
	}

	.headerBox25Right ul.list1 li {
		padding-left: 1rem;
		font-size: 0.84rem;
	}

	.cf-menu-toggle {
		display: inline-flex;
	}

	.nav-menu > .container {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: min(calc(100% - (2 * var(--cf-gutter))), var(--cf-shell));
	}

	.nav-menu .menucontainer {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		max-height: calc(100dvh - var(--cf-nav-height) - 1rem);
		padding: 0.75rem;
		overflow-y: auto;
		background: var(--cf-navy-950);
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 0 0 var(--cf-radius) var(--cf-radius);
		box-shadow: var(--cf-shadow);
	}

	.nav-menu.cf-nav-open .menucontainer {
		display: block;
	}

	.nav-menu .innercontainer {
		align-items: stretch;
		flex-direction: column;
		gap: 0.5rem;
	}

	.innercontainer > div[style*="inline-flex"] {
		align-items: stretch;
		flex-direction: column;
	}

	.nav-menu .icons,
	.nav-menu .icons-rt,
	ul.tngdd {
		width: 100%;
		align-items: stretch;
		flex-direction: column;
	}

	.nav-menu .icons-rt {
		margin: 0;
	}

	.nav-menu a.tngsmallicon,
	.nav-menu .icons-rt a,
	ul.tngdd .menulink,
	ul.tngdd .menuhover,
	ul.tngdd .menulink:hover {
		width: 100%;
		min-height: 2.75rem;
		padding: 0.7rem 0.8rem;
		float: none;
	}

	ul.tngdd > li {
		display: block;
		width: 100%;
	}

	ul.tngdd > li > ul {
		position: static !important;
		display: none !important;
		width: 100%;
		margin: 0.25rem 0 0;
		box-shadow: none;
	}

	ul.tngdd > li.cf-submenu-open > ul {
		display: block !important;
	}

	.cf-home-hero,
	.cf-home-grid {
		grid-template-columns: 1fr;
	}

	.cf-home-grid .sidebarRight {
		width: 100%;
		max-width: none;
	}

	.cf-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	body {
		font-size: 1rem;
	}

	body > .container,
	header > .container,
	.nav-menu > .container {
		width: min(calc(100% - 1.25rem), var(--cf-shell));
	}

	header {
		padding-block: 0.65rem 0.85rem;
	}

	header > .container {
		gap: 0.5rem;
	}

	.brand {
		align-items: center;
		gap: 0.65rem;
	}

	.brand img,
	.brand .img-left {
		width: 3.9rem;
	}

	.brand,
	.brand a,
	.brand a:hover {
		font-size: clamp(1.55rem, 7.7vw, 2.15rem);
		letter-spacing: -0.045em;
	}

	.slogan {
		margin: 0.15rem 0 0 4.55rem;
		font-size: 0.9rem;
	}

	.headerBox25Right ul.list1 {
		display: flex;
		gap: 0.35rem 0.75rem;
		overflow-x: auto;
		padding-block: 0.3rem;
		scrollbar-width: thin;
	}

	.headerBox25Right ul.list1 li {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.cf-home-hero {
		gap: 1rem;
	}

	.cf-home-intro,
	.cf-home-grid .sidebarRight,
	.cf-honor-story,
	.cf-surname-panel {
		padding: 1rem;
		border-radius: var(--cf-radius);
	}

	.cf-home-hero .nivo-caption {
		left: 4%;
		bottom: 0.5rem;
		width: 92%;
		max-height: 80%;
		padding: 0.55rem;
		font-size: 0.85rem;
		overflow: auto;
	}

	.cf-home-hero .nivo-caption h1 {
		font-size: 1.15rem;
	}

	.cf-story-grid {
		grid-template-columns: 1fr;
	}

	.cf-story-grid .caption {
		min-height: 0;
	}

	.cf-footer-grid {
		grid-template-columns: 1fr;
	}

	.cf-footer-grid .contentBox2a,
	.cf-footer-grid .contentBox2b {
		width: 100%;
		margin: 0;
		float: none;
	}

	input.veryshortfield,
	input.shortfield,
	input.medfield,
	input.medpwdfield,
	input.longfield,
	input.longerfield,
	input.verylongfield,
	.forgotfield,
	.loginfield,
	.pwdfield {
		width: 100% !important;
	}

	.searchformbox {
		width: 100%;
		margin-right: 0;
	}

	.LB_window {
		position: fixed !important;
		top: 0.5rem !important;
		left: 0.5rem !important;
		width: calc(100vw - 1rem) !important;
		height: calc(100dvh - 1rem) !important;
	}

	.LB_content {
		width: 100% !important;
		height: calc(100dvh - 3.5rem) !important;
	}

	#loginblock .pwdicon {
		position: absolute;
		right: 1rem;
	}

	.img-frame-left,
	.img-frame-right,
	.img-left,
	.img-right,
	.defphoto {
		float: none;
		max-width: 100%;
		margin: 0.5rem auto 1rem;
	}

	.cookie-banner {
		right: 0.6rem;
		bottom: 0.6rem;
		width: calc(100% - 1.2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.nav-menu,
	.cf-menu-toggle,
	.scroll-to-top {
		display: none !important;
	}

	body > .container {
		width: 100%;
		max-width: none;
	}
}

/* ========================================================================== 
   CamFam 2026 public experience layer
   Person, family, discovery, media, navigation, accessibility, and performance
   ========================================================================== */

.cf-skip-link {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 10000;
	padding: 0.7rem 1rem;
	border-radius: 0.55rem;
	background: #fff;
	color: var(--cf-navy-950) !important;
	box-shadow: var(--cf-shadow);
	font-weight: 800;
	transform: translateY(-160%);
}

.cf-skip-link:focus {
	transform: translateY(0);
}

header,
header .brand img,
header .brand a,
header .slogan,
header .headerBox25Right {
	transition: padding 180ms ease, width 180ms ease, font-size 180ms ease, opacity 180ms ease, margin 180ms ease;
}

body.cf-header-condensed header {
	padding-block: 0.45rem;
}

body.cf-header-condensed header .brand img,
body.cf-header-condensed header .brand .img-left {
	width: clamp(3.2rem, 4vw, 4.25rem);
}

body.cf-header-condensed header .brand,
body.cf-header-condensed header .brand a {
	font-size: clamp(1.5rem, 2.1vw, 2.4rem);
}

body.cf-header-condensed header .slogan {
	margin-left: clamp(3.9rem, 5.4vw, 5.3rem);
	font-size: 0.88rem;
}

body.cf-header-condensed header .headerBox25Right {
	opacity: 0.82;
}

.nav-menu .cf-nav-direct {
	padding-right: 0.85rem !important;
	background-image: none !important;
}

.nav-menu a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.18);
	box-shadow: inset 0 -3px 0 var(--cf-focus);
}

/* Shared modern actions */
.cf-profile-actions,
.cf-discovery-links,
.cf-home-actions,
.cf-search-chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.cf-action-link,
.cf-discovery-links a,
.cf-search-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--cf-line);
	border-radius: 999px;
	background: #fff !important;
	box-shadow: var(--cf-shadow-sm);
	color: var(--cf-navy-800) !important;
	-webkit-text-fill-color: var(--cf-navy-800);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
}

.cf-action-link:hover,
.cf-discovery-links a:hover,
.cf-search-chip:hover {
	border-color: var(--cf-blue-600);
	background: var(--cf-blue-50) !important;
	color: var(--cf-navy-950) !important;
	-webkit-text-fill-color: var(--cf-navy-950);
	text-decoration: none;
}

/* Person and family identity cards */
.cf-identity-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	align-items: center;
	margin: 0 0 clamp(1rem, 2.5vw, 2rem);
	padding: clamp(1rem, 2.5vw, 2rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background:
		radial-gradient(circle at 100% 0%, rgba(63, 79, 181, 0.13), transparent 38%),
		linear-gradient(145deg, #fff, var(--cf-blue-50));
	box-shadow: var(--cf-shadow-sm);
}

.cf-identity-card .defphoto {
	float: none;
	width: clamp(5.5rem, 10vw, 9rem);
	margin: 0;
	padding: 0;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: var(--cf-shadow-sm);
}

.cf-identity-card .defphoto img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 11rem;
	object-fit: cover;
}

.cf-identity-copy {
	min-width: 0;
}

.cf-identity-copy #nameheader {
	margin: 0 0 0.35rem !important;
	font-size: clamp(1.85rem, 3vw, 3.45rem);
	overflow-wrap: anywhere;
}

.cf-identity-copy > .normal {
	margin-bottom: 0.9rem;
	color: var(--cf-muted);
	font-size: clamp(1rem, 1.2vw, 1.25rem);
}

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

body.cf-page-getperson #tngmenu,
body.cf-page-familygroup #tngmenu {
	margin-top: 0;
}

body.cf-page-getperson #pub-innermenu,
body.cf-page-familygroup #pub-innermenu {
	position: sticky;
	top: calc(var(--cf-nav-height) + 0.35rem);
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem;
	background: rgba(245, 246, 253, 0.96);
	backdrop-filter: blur(10px);
	box-shadow: var(--cf-shadow-sm);
}

body.cf-page-getperson #pub-innermenu a,
body.cf-page-familygroup #pub-innermenu a,
body.cf-page-getperson #pub-innermenu .lightlink3,
body.cf-page-familygroup #pub-innermenu .lightlink3 {
	display: inline-flex;
	align-items: center;
	min-height: 2.35rem;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	color: var(--cf-navy-800) !important;
	-webkit-text-fill-color: var(--cf-navy-800);
	font-weight: 750;
	text-decoration: none;
}

body.cf-page-getperson #pub-innermenu .lightlink3,
body.cf-page-familygroup #pub-innermenu .lightlink3 {
	background: var(--cf-navy-800);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.cf-record-section {
	margin-block: 0 1.5rem;
	scroll-margin-top: calc((2 * var(--cf-nav-height)) + 1rem);
}

.cf-record-section > .cf-table-scroll {
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.cf-event-table {
	display: block;
	width: 100%;
	background: transparent;
	border-spacing: 0 0.55rem !important;
}

.cf-event-table > tbody {
	display: grid;
	gap: 0.6rem;
}

.cf-event-table .cf-event-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(9rem, 0.65fr) minmax(8rem, 0.8fr) minmax(13rem, 2fr);
	min-width: 0;
	border: 1px solid var(--cf-line);
	border-left: 4px solid var(--cf-blue-600);
	border-radius: var(--cf-radius);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
	overflow: hidden;
}

.cf-event-table .cf-event-row > td {
	display: block;
	width: auto !important;
	min-width: 0;
	padding: 0.75rem 0.9rem !important;
	border: 0;
	background: #fff;
	overflow-wrap: anywhere;
}

.cf-event-table .cf-event-row > .fieldnameback {
	background: var(--cf-blue-50);
	color: var(--cf-navy-800);
	font-weight: 800;
}

/* TNG represents multi-line events with one row-spanning label cell. Event
   cards use CSS Grid, so add a visual continuation of that label column to
   keep later facts aligned without repeating the label for screen readers. */
.cf-event-table .cf-event-row > .cf-rowspan-placeholder {
	pointer-events: none;
}

.cf-event-table .cf-event-row > .fieldnameback .fieldname,
.cf-event-table .cf-event-row > .fieldnameback a {
	color: var(--cf-navy-800) !important;
	-webkit-text-fill-color: var(--cf-navy-800);
}

.cf-event-table .cf-event-row > td[colspan="2"] {
	grid-column: span 2;
}

.cf-event-table .cf-event-row > td[colspan="3"] {
	grid-column: 1 / -1;
}

.cf-family-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.cf-family-member-card,
body.cf-page-familygroup .cf-record-section > .titlebox {
	min-width: 0;
	margin: 0 !important;
	padding: clamp(0.9rem, 2vw, 1.35rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
}

.cf-family-member-card > table:first-child td {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
}

.cf-family-member-card > table:first-child img.thumb {
	grid-row: 1 / span 3;
	width: 5rem;
	height: 5rem;
	object-fit: cover;
	border-radius: 0.75rem;
}

body.cf-page-familygroup .cf-family-member-card .cf-table-scroll {
	margin-bottom: 0;
	box-shadow: none;
}

/* Search and discovery */
.cf-search-intro,
.cf-recent-searches {
	margin-bottom: 1rem;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: linear-gradient(145deg, var(--cf-blue-50), #fff);
	box-shadow: var(--cf-shadow-sm);
}

.cf-search-intro h2,
.cf-recent-searches h3 {
	margin: 0 0 0.5rem;
}

.cf-search-intro p {
	max-width: var(--cf-readable);
	margin-top: 0;
}

.cf-search-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
	gap: clamp(1rem, 2.5vw, 2rem);
	align-items: start;
	padding: 0 !important;
	background: transparent !important;
}

.cf-search-workspace .searchformbox {
	width: 100%;
	margin: 0;
}

.cf-search-workspace .searchsidebar {
	position: sticky;
	top: calc(var(--cf-nav-height) + 1rem);
	padding: 1rem;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
}

body.cf-page-searchform .searchformbox .rounded-table,
body.cf-page-famsearchform .searchformbox .rounded-table,
body.cf-page-searchform .searchformbox .rounded-table > tbody,
body.cf-page-famsearchform .searchformbox .rounded-table > tbody {
	display: block;
	width: 100%;
}

body.cf-page-searchform .searchformbox .rounded-table tr,
body.cf-page-famsearchform .searchformbox .rounded-table tr {
	display: grid;
	grid-template-columns: minmax(8rem, 0.6fr) minmax(0, 1.4fr);
	margin-bottom: 0.5rem;
	border: 1px solid var(--cf-line);
	border-radius: 0.7rem;
	overflow: hidden;
}

body.cf-page-searchform .searchformbox .rounded-table td,
body.cf-page-famsearchform .searchformbox .rounded-table td {
	display: block;
	width: auto !important;
	padding: 0.65rem !important;
	border: 0;
}

body.cf-page-searchform .searchformbox .rounded-table .fieldnameback,
body.cf-page-famsearchform .searchformbox .rounded-table .fieldnameback {
	display: flex;
	align-items: center;
	background: var(--cf-blue-50);
	color: var(--cf-navy-800);
}

body.cf-page-searchform .searchformbox .rounded-table .fieldname,
body.cf-page-famsearchform .searchformbox .rounded-table .fieldname {
	color: var(--cf-navy-800) !important;
	-webkit-text-fill-color: var(--cf-navy-800);
}

.cf-search-chip {
	min-height: 2.35rem;
	font-size: 0.84rem;
}

/* Media library and viewer */
.cf-media-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: clamp(0.8rem, 2vw, 1.25rem);
	margin-block: 1rem 2rem;
}

.cf-media-gallery .gallery {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 11rem;
	padding: 0.75rem;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
}

.cf-media-gallery .gallery img {
	display: block;
	width: 100%;
	max-height: 16rem;
	object-fit: contain;
	border-radius: 0.55rem;
}

body.cf-page-showmedia #slidepane,
body.cf-page-showmedia .slidepane,
body.cf-page-showmedia #imgdiv,
body.cf-page-showmedia #slidearea,
.cf-media-viewer {
	max-width: min(100%, 100rem);
	margin-inline: auto;
	border-radius: var(--cf-radius-lg);
	overflow: auto;
}

body.cf-page-showmedia #theimage,
body.cf-page-showmedia #slidearea img,
body.cf-page-showmedia video {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 78dvh;
	margin-inline: auto;
	object-fit: contain;
}

body.cf-page-showmedia object[type="application/pdf"] {
	min-height: 70dvh;
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius);
}

/* A shorter, task-led homepage */
.cf-home-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.cf-home-actions .cf-action-link {
	min-height: 4rem;
	border-radius: var(--cf-radius);
	background: linear-gradient(145deg, #fff, var(--cf-blue-50)) !important;
	font-size: clamp(0.92rem, 0.4vw + 0.85rem, 1.08rem);
}

.cf-home-more {
	margin-block: clamp(2rem, 4vw, 4rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: var(--cf-surface-soft);
	box-shadow: var(--cf-shadow-sm);
	overflow: hidden;
}

.cf-home-stories {
	margin-block: clamp(1.5rem, 3vw, 3rem);
	border: 1px solid var(--cf-line);
	border-radius: var(--cf-radius-lg);
	background: #fff;
	box-shadow: var(--cf-shadow-sm);
	overflow: hidden;
}

.cf-home-stories > summary {
	padding: 1rem 1.25rem;
	color: var(--cf-navy-800);
	font-size: clamp(1.1rem, 1vw + 0.9rem, 1.45rem);
	font-weight: 800;
	cursor: pointer;
	list-style-position: inside;
}

.cf-home-stories[open] > summary {
	border-bottom: 1px solid var(--cf-line);
}

.cf-home-stories-content {
	padding: 0 clamp(1rem, 2vw, 1.5rem) 0.1rem;
}

.cf-home-stories-content > h2,
.cf-home-stories-content > h3,
.cf-home-stories-content > h4 {
	margin-block: 1.25rem 0;
}

.cf-home-more > summary {
	padding: 1rem 1.25rem;
	color: var(--cf-navy-800);
	font-size: clamp(1.1rem, 1vw + 0.9rem, 1.45rem);
	font-weight: 800;
	cursor: pointer;
	list-style-position: inside;
}

.cf-home-more[open] > summary {
	border-bottom: 1px solid var(--cf-line);
}

.cf-home-more-content {
	padding: 0 clamp(1rem, 2.5vw, 2rem) 0.1rem;
}

.cf-home-more .cf-honor-story,
.cf-home-more .cf-surname-panel {
	margin-block: clamp(1rem, 2vw, 2rem);
}

/* Template 101's ornamental rules used an 80px background image. The modern
   cards already provide separation, so these created large blank bands. */
body.index > .container > hr.fancy,
body.index > .container > br {
	display: none;
}

/* Delay rendering of lower-page sections without affecting document search or print. */
@supports (content-visibility: auto) {
	.cf-story-grid,
	.cf-record-section,
	.cf-media-gallery {
		content-visibility: auto;
		contain-intrinsic-size: auto 30rem;
	}
}

@media (max-width: 75rem) and (min-width: 56.251rem) {
	.nav-menu a.tngsmallicon,
	.nav-menu .icons-rt a,
	ul.tngdd .menulink,
	ul.tngdd .menuhover {
		padding-inline: 0.55rem;
		font-size: 0.78rem !important;
	}

	ul.tngdd .menulink,
	ul.tngdd .menuhover {
		padding-right: 1.25rem;
	}
}

@media (max-width: 56.25rem) {
	body.cf-header-condensed header .headerBox25Right {
		display: none;
	}

	.cf-search-workspace {
		grid-template-columns: 1fr;
	}

	.cf-search-workspace .searchsidebar {
		position: static;
	}

	.cf-home-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cf-family-grid {
		grid-template-columns: 1fr;
	}

	body.cf-page-getperson #pub-innermenu,
	body.cf-page-familygroup #pub-innermenu {
		position: static;
	}
}

@media (max-width: 40rem) {
	.cf-identity-card {
		grid-template-columns: 4.75rem minmax(0, 1fr);
		gap: 0.85rem;
		padding: 0.9rem;
	}

	.cf-identity-card .defphoto {
		width: 4.75rem;
		align-self: start;
	}

	.cf-identity-copy #nameheader {
		font-size: clamp(1.45rem, 7vw, 2rem);
	}

	.cf-profile-actions {
		grid-column: 1 / -1;
	}

	.cf-action-link,
	.cf-discovery-links a {
		flex: 1 1 10rem;
	}

	.cf-event-table .cf-event-row {
		grid-template-columns: 1fr;
	}

	.cf-event-table .cf-event-row > td,
	.cf-event-table .cf-event-row > td[colspan="2"],
	.cf-event-table .cf-event-row > td[colspan="3"] {
		grid-column: 1;
	}

	.cf-event-table .cf-event-row > .fieldnameback {
		padding-bottom: 0.4rem !important;
		border-bottom: 1px solid var(--cf-line);
	}

	.cf-event-table .cf-event-row > .cf-rowspan-placeholder {
		display: none;
	}

	body.cf-page-searchform .searchformbox .rounded-table tr,
	body.cf-page-famsearchform .searchformbox .rounded-table tr {
		grid-template-columns: 1fr;
	}

	body.cf-page-searchform .searchformbox select,
	body.cf-page-searchform .searchformbox input:not([type="checkbox"]),
	body.cf-page-famsearchform .searchformbox select,
	body.cf-page-famsearchform .searchformbox input:not([type="checkbox"]) {
		width: 100% !important;
		margin-bottom: 0.4rem;
	}

	.cf-home-actions {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.cf-home-actions .cf-action-link {
		min-height: 3.2rem;
	}

	.cf-family-member-card > table:first-child td {
		grid-template-columns: 4rem minmax(0, 1fr);
	}

	.cf-family-member-card > table:first-child img.thumb {
		width: 4rem;
		height: 4rem;
	}

	#loginblock input.medpwdfield,
	#loginblock input[type="password"],
	#loginblock input[type="text"] {
		padding-right: 3.1rem;
	}

	#loginblock .pwdicon {
		position: relative !important;
		right: auto !important;
		display: inline-block;
		width: 2.1rem;
		height: 2.1rem;
		margin-left: -2.8rem;
		vertical-align: middle;
		transform: translateY(-0.05rem);
		z-index: 2;
	}
}

@media print {
	.cf-skip-link,
	.cf-home-actions,
	.cf-home-stories > summary,
	.cf-profile-actions,
	.cf-recent-searches {
		display: none !important;
	}

	.cf-home-more:not([open]) > .cf-home-more-content {
		display: block !important;
	}

	.cf-home-stories:not([open]) > .cf-home-stories-content {
		display: block !important;
	}

	.cf-event-table .cf-event-row,
	.cf-identity-card,
	.cf-family-member-card {
		box-shadow: none;
		break-inside: avoid;
	}
}
