:root {
	--bg-page: #f4f1ea;
	--bg-surface: #fbf8f3;
	--bg-card: #ffffff;
	--bg-muted: #f1ece4;
	--bg-dark: #2a211b;
	--text-strong: #1f1c18;
	--text-body: #403a34;
	--text-muted: #766d64;
	--text-soft: #9a8f84;
	--text-inverse: #f8f4ef;
	--line-soft: #e7dfd4;
	--line-strong: #d7ccbd;
	--brand-primary: #7a5c45;
	--brand-primary-hover: #684c37;
	--brand-secondary: #d8c6b2;
	--brand-accent: #a4876a;
	--success: #547a5a;
	--warning: #9a7342;
	--danger: #9b4d43;
	--info: #52697a;
	--overlay-dark: rgba(31, 28, 24, 0.38);
	--overlay-soft: linear-gradient(180deg, rgba(28, 23, 19, 0.18) 0%, rgba(28, 23, 19, 0.68) 100%);
	--shadow-soft: 0 8px 24px rgba(45, 35, 25, 0.08);
	--shadow-card: 0 4px 16px rgba(45, 35, 25, 0.06);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--space-4: 4px;
	--space-8: 8px;
	--space-12: 12px;
	--space-16: 16px;
	--space-20: 20px;
	--space-24: 24px;
	--space-32: 32px;
	--space-40: 40px;
	--space-48: 48px;
	--space-64: 64px;
	--container-sm: 740px;
	--container-info: 1108px;
	--container-footer: 1108px;
	--container-reading: 920px;
	--container-state: 780px;
	--container-md: 980px;
	--container-lg: 1140px;
	--font-ui: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-reading: Georgia, "Times New Roman", serif;
	--fs-12: 12px;
	--fs-14: 14px;
	--fs-16: 16px;
	--fs-18: 18px;
	--fs-20: 20px;
	--fs-24: 24px;
	--fs-32: 32px;
	--fs-40: 40px;
	--lh-tight: 1.2;
	--lh-normal: 1.5;
	--lh-reading: 1.8;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-ui);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	background: var(--bg-page);
	color: var(--text-body);
}

body {
	background: linear-gradient(180deg, #f7f3ed 0%, var(--bg-page) 100%);
	color: var(--text-body);
	font-size: var(--fs-16);
	line-height: var(--lh-normal);
}

#shopify-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: min(calc(100vw - 24px), 420px);
	z-index: 9999;
	pointer-events: none;
}

.shopify-toast-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border-radius: 18px;
	border: 1px solid rgba(215, 204, 189, 0.88);
	background: rgba(255, 251, 246, 0.96);
	box-shadow: 0 14px 30px rgba(45, 35, 25, 0.12);
	backdrop-filter: blur(12px);
	color: var(--text-strong);
	animation: toastSlideIn 0.28s ease forwards;
	pointer-events: auto;
}

.shopify-toast-item.is-success {
	border-color: rgba(84, 122, 90, 0.24);
	background: linear-gradient(180deg, rgba(250, 248, 243, 0.98) 0%, rgba(240, 246, 239, 0.98) 100%);
}

.shopify-toast-item.is-error {
	border-color: rgba(155, 77, 67, 0.24);
	background: linear-gradient(180deg, rgba(255, 249, 247, 0.98) 0%, rgba(250, 239, 236, 0.98) 100%);
}

.shopify-toast-item.is-leaving {
	animation: toastFadeOut 0.28s ease forwards;
}

.shopify-toast-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	background: rgba(122, 92, 69, 0.12);
	color: var(--brand-primary);
	border: 1px solid rgba(122, 92, 69, 0.16);
}

.shopify-toast-item.is-success .shopify-toast-icon {
	background: rgba(84, 122, 90, 0.14);
	color: var(--success);
	border-color: rgba(84, 122, 90, 0.18);
}

.shopify-toast-item.is-error .shopify-toast-icon {
	background: rgba(155, 77, 67, 0.14);
	color: var(--danger);
	border-color: rgba(155, 77, 67, 0.18);
}

.shopify-toast-message {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.01em;
}

img {
	display: block;
	max-width: 100%;
}

ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

.container {
	max-width: var(--container-lg);
	margin: 0 auto;
	padding: 0 var(--space-16);
	background: transparent;
}

.content-narrow,
.shopify-form,
.profile-info,
.story-card,
.state-card,
.nodata {
	max-width: var(--container-sm);
	margin-left: auto;
	margin-right: auto;
}

.section-card,
.story-card,
.state-card,
.nodata,
.profile-info,
.shopify-form {
	background: var(--bg-card);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: var(--space-24);
}

.shopify-form {
	color: var(--text-body);
	margin-top: var(--space-24);
	margin-bottom: var(--space-24);
}

.flow-shell {
	min-height: calc(100vh - 150px);
	padding-top: var(--space-32);
	padding-bottom: var(--space-48);
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.flow-card {
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.flow-panel {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(215, 204, 189, 0.78);
	border-radius: 28px;
	box-shadow: var(--shadow-soft);
	overflow: hidden;
}

.flow-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	min-height: 100%;
}

.flow-intro {
	padding: 36px 32px;
	background: linear-gradient(180deg, #f7f1e8 0%, #efe4d5 100%);
	border-right: 1px solid rgba(215, 204, 189, 0.78);
	position: relative;
}

.flow-intro::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 50%);
	pointer-events: none;
}

.flow-kicker {
	position: relative;
	z-index: 1;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-bottom: 14px;
}

.flow-title {
	position: relative;
	z-index: 1;
	font-family: var(--font-reading);
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1.1;
	color: var(--text-strong);
	margin-bottom: 16px;
}

.flow-desc {
	position: relative;
	z-index: 1;
	font-size: 15px;
	line-height: 1.8;
	color: var(--text-body);
	margin-bottom: 24px;
}

.flow-points {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 14px;
}

.flow-point {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(215, 204, 189, 0.76);
}

.flow-point-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-bottom: 6px;
}

.flow-point-desc {
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-body);
}

.flow-form {
	padding: 36px 32px;
	background: rgba(255, 255, 255, 0.98);
}

.flow-form.shopify-form {
	max-width: none;
	margin: 0;
	background: rgba(255, 255, 255, 0.98);
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.flow-form .title {
	font-size: clamp(28px, 3vw, 34px);
	margin-bottom: 10px;
}

.desktop-only {
	display: block;
}

.mobile-only {
	display: none;
}

.flow-form .desc {
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-muted);
}

.flow-help {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-muted);
}

.flow-microcopy {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--text-soft);
}

.flow-mobile-note {
	display: none;
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(122, 92, 69, 0.07);
	border: 1px solid rgba(122, 92, 69, 0.12);
	font-size: 13px;
	line-height: 1.7;
	color: var(--text-body);
}

.flow-help a {
	color: var(--brand-primary);
	font-weight: 600;
}

.flow-success {
	padding: 52px 32px;
	text-align: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 239, 0.98) 100%);
}

.flow-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(84, 122, 90, 0.12);
	color: var(--success);
	font-size: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flow-success .title {
	font-size: clamp(28px, 3vw, 34px);
	margin-bottom: 10px;
}

.flow-success-steps {
	max-width: 520px;
	margin: 20px auto 0;
	display: grid;
	gap: 12px;
	text-align: left;
}

.flow-step {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(215, 204, 189, 0.7);
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-body);
}

.flow-inline-note {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(82, 105, 122, 0.08);
	border: 1px solid rgba(82, 105, 122, 0.14);
	font-size: 13px;
	line-height: 1.7;
	color: var(--text-body);
}

.qresult-page {
	min-height: 100vh;
	background:
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0) 42%),
		linear-gradient(180deg, #f7f2ea 0%, #eee4d7 100%);
}

.qresult-page-error {
	background:
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 42%),
		linear-gradient(180deg, #fbf3ea 0%, #f2dfcf 100%);
}

.qresult-shell-wrap {
	align-items: center;
	padding-top: 48px;
	padding-bottom: 48px;
}

.qresult-card-wrap {
	max-width: 680px;
	width: 100%;
	padding: 0;
}

.qresult-panel {
	overflow: visible;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 24px 60px rgba(45, 35, 25, 0.12);
}

.qresult-panel-inner {
	padding: 42px 40px 38px;
	text-align: center;
}

.qresult-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-bottom: 18px;
}

.qresult-icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.qresult-icon {
	width: 84px;
	height: 84px;
	border-radius: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(84, 122, 90, 0.12) 0%, rgba(84, 122, 90, 0.06) 100%);
	border: 1px solid rgba(84, 122, 90, 0.16);
	box-shadow: 0 16px 34px rgba(84, 122, 90, 0.12);
	color: var(--success);
}

.qresult-page-error .qresult-kicker {
	color: var(--danger);
}

.qresult-page-error .qresult-icon {
	background: linear-gradient(180deg, rgba(155, 77, 67, 0.12) 0%, rgba(155, 77, 67, 0.06) 100%);
	border-color: rgba(155, 77, 67, 0.16);
	box-shadow: 0 16px 34px rgba(155, 77, 67, 0.12);
	color: var(--danger);
}

.icon_success,
.icon_faild {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--font-reading);
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
}

.qresult-title {
	margin: 0 0 14px;
	font-family: var(--font-reading);
	font-size: clamp(34px, 5vw, 48px);
	line-height: 1.02;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--text-strong);
}

.qresult-desc {
	margin: 0 auto;
	max-width: 520px;
	font-size: 16px;
	line-height: 1.85;
	color: var(--text-muted);
}

.qresult-actions {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	}

.qresult-btn {
	min-width: 220px;
	width: auto;
	justify-content: center;
	border-radius: 999px;
	box-shadow: var(--shadow-card);
}

.qresult-note {
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-muted);
}

.flow-textarea {
	min-height: 112px;
	resize: vertical;
}

.flow-check-card {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid rgba(215, 204, 189, 0.82);
	background: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.flow-check-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.flow-check-card.active {
	border-color: rgba(122, 92, 69, 0.5);
	background: rgba(249, 244, 237, 0.98);
	box-shadow: 0 8px 20px rgba(45, 35, 25, 0.06);
}

.flow-check-mark {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 6px;
	border: 1px solid rgba(165, 145, 123, 0.9);
	background: #fff;
	position: relative;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.flow-check-card.active .flow-check-mark {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
}

.flow-check-card.active .flow-check-mark::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.flow-check-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--text-strong);
}

.flow-check-desc {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-muted);
}

.flow-auth-fields {
	margin-top: 16px;
	padding: 4px 0 0;
	border-radius: 0;
	background: transparent;
	border: 0;
}

.flow-error {
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--danger);
}

.flow-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.title {
	font-size: clamp(28px, 4vw, 40px);
	line-height: var(--lh-tight);
	color: var(--text-strong);
	letter-spacing: -0.02em;
	margin-bottom: var(--space-12);
}

.desc {
	color: var(--text-muted);
	font-size: var(--fs-14);
	line-height: 1.7;
	margin: var(--space-8) 0 var(--space-20);
}

.erro,
.error-text {
	margin-top: var(--space-8);
	font-size: 13px;
	line-height: 1.5;
	color: var(--danger);
	text-align: left;
}

.form-group {
	margin-bottom: var(--space-24);
}

.form-label {
	display: block;
	margin-bottom: var(--space-8);
	font-size: var(--fs-14);
	font-weight: 600;
	color: var(--text-body);
	letter-spacing: 0.01em;
}

.form-input,
.form-textarea,
.form-select {
	width: 100%;
	padding: 14px 16px;
	font-size: var(--fs-16);
	line-height: 1.4;
	color: var(--text-body);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: var(--text-soft);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-input[type="date"]:focus,
.form-input[type="datetime-local"]:focus,
.form-input[type="month"]:focus {
	outline: none;
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 4px rgba(122, 92, 69, 0.12);
}

.form-input[type="date"],
.form-input[type="datetime-local"],
.form-input[type="month"] {
	min-height: 52px;
	line-height: 1;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.form-textarea {
	min-height: 150px;
	resize: vertical;
	line-height: 1.7;
}

.form-error {
	border-color: var(--danger) !important;
	box-shadow: 0 0 0 4px rgba(155, 77, 67, 0.12) !important;
}

.btn-primary,
.btn-secondary,
.btn-primary2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-8);
	min-height: 52px;
	padding: 14px 20px;
	border-radius: var(--radius-sm);
	font-size: var(--fs-16);
	font-weight: 600;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	width: 100%;
	text-align: center;
	line-height: 1.2;
}

.btn-primary {
	background: var(--brand-primary);
	color: var(--text-inverse);
	box-shadow: var(--shadow-card);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--brand-primary-hover);
	transform: translateY(-1px);
}

.btn-primary2 {
	background: var(--info);
	color: var(--text-inverse);
}

.btn-secondary {
	background: var(--bg-card);
	color: var(--text-body);
	border: 1px solid var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: var(--bg-muted);
	border-color: var(--brand-accent);
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-primary2:disabled {
	background: #cfc6ba !important;
	border-color: #cfc6ba !important;
	color: #f8f4ef !important;
	cursor: not-allowed !important;
	opacity: 0.8;
	transform: none !important;
}

@media (min-width: 640px) {
	.form-row {
		display: flex;
		gap: var(--space-20);
	}

	.form-row .form-group {
		flex: 1;
	}

	.btn-primary,
	.btn-secondary,
	.btn-primary2 {
		width: auto;
		min-width: 220px;
	}

	.shopify-form .btn-primary,
	.shopify-form .btn-secondary,
	.shopify-form .btn-primary2 {
		width: 100%;
	}
}

.header {
	position: sticky;
	top: 0;
	z-index: 30;
	backdrop-filter: blur(14px);
	background: rgba(251, 248, 243, 0.94);
	border-bottom: 1px solid rgba(215, 204, 189, 0.72);
	box-shadow: 0 8px 24px rgba(45, 35, 25, 0.05);
}

.header-inner {
	max-width: var(--container-lg);
	margin: 0 auto;
	padding: 12px var(--space-16);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-16);
	position: relative;
}

.header-flow {
	position: sticky;
	top: 0;
	z-index: 20;
}

.header-inner-flow {
	justify-content: center;
	padding-top: 14px;
	padding-bottom: 14px;
}

.brandmark {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	min-width: 0;
}

.logo {
	height: 40px;
	width: 40px;
	object-fit: cover;
	box-shadow: var(--shadow-card);
	flex-shrink: 0;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.brand-label {
	font-size: var(--fs-14);
	font-weight: 700;
	color: var(--text-strong);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.brand-subtle {
	font-size: var(--fs-12);
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-12);
	position: relative;
}

.role-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border: 1px solid rgba(122, 92, 69, 0.18);
	border-radius: 999px;
	background: rgba(122, 92, 69, 0.08);
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--brand-primary);
}

.menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--bg-card);
	font-size: var(--fs-14);
	font-weight: 700;
	color: var(--text-body);
	box-shadow: var(--shadow-card);
}

.menu-popup {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	min-width: 220px;
	padding: var(--space-8);
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	display: none;
	z-index: 50;
}

.menu-popup.show {
	display: block;
}

.menu-popup a {
	display: block;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	font-size: var(--fs-14);
	font-weight: 600;
	color: var(--text-body);
}

.menu-popup a:hover {
	background: var(--bg-muted);
	color: var(--brand-primary-hover);
}

.memorial-hero {
	min-height: 292px;
	background-size: cover;
	background-position: center;
	background-color: #b9aa97;
	position: absolute;
	inset: 0;
	transform: none;
}

.memorial-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: transparent;
}

.profile-photo-container,
.profile-photo,
.memorial-name,
.info-wrapper,
.info-born,
.info-died,
.info-memorial,
.info-avatar-placeholder {
	display: none;
}

.memorial-main {
	padding-top: var(--space-20);
	padding-bottom: var(--space-16);
}


.tab {
	display: flex;
	gap: var(--space-8);
	overflow-x: auto;
	padding-bottom: var(--space-4);
	scrollbar-width: none;
}

.tab::-webkit-scrollbar {
	display: none;
}

.tab li {
	flex: 0 0 auto;
	border-radius: 999px;
	border: 1px solid var(--line-soft);
	background: rgba(255, 255, 255, 0.7);
	box-shadow: var(--shadow-card);
}

.tab a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	font-size: var(--fs-14);
	font-weight: 600;
	color: var(--text-muted);
	white-space: nowrap;
}

.tab .active {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
}

.tab .active a {
	color: var(--text-inverse);
}

.tab li:hover {
	border-color: var(--brand-accent);
	background: var(--bg-card);
}

.tab li:hover a {
	color: var(--brand-primary-hover);
}

.memorial-tabs {
	justify-content: flex-start;
	gap: 22px;
	padding: 0;
	border-bottom: 1px solid rgba(215, 204, 189, 0.66);
}

.memorial-tabs li {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	margin-bottom: -1px;
}

.memorial-tabs a {
	padding: 14px 2px 15px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7b7167;
	border-bottom: 2px solid transparent;
}

.memorial-tabs .active {
	background: transparent;
	border-color: transparent;
}

.memorial-tabs .active a {
	color: #3c322a;
	border-bottom-color: #8b674b;
}

.memorial-tabs li:hover {
	border-color: transparent;
	background: transparent;
}

.memorial-tabs li:hover a {
	color: #5a4636;
}

.tab2 {
	display: flex;
	justify-content: center;
	gap: var(--space-24);
	padding: 4px 0 var(--space-20);
	flex-wrap: wrap;
}

.tab2 a {
	padding: 8px 0;
	font-size: var(--fs-14);
	font-weight: 700;
	color: var(--text-muted);
	border-bottom: 2px solid transparent;
}

.tab2 .active {
	color: var(--brand-primary);
	border-bottom-color: var(--brand-primary);
}

.story-card {
	margin-top: var(--space-8);
	margin-bottom: var(--space-32);
	padding: clamp(24px, 4vw, 40px);
	background: rgba(255, 255, 255, 0.94);
	border-radius: var(--radius-xl);
	border: 1px solid rgba(215, 204, 189, 0.7);
	box-shadow: var(--shadow-soft);
}

.profile-info {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--text-body);
	line-height: var(--lh-reading);
}

.info-container {
	max-width: var(--container-lg);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	background-color: #fff;
	margin-bottom: 10px;
	padding-bottom: 24px;
	border-bottom-left-radius: 16px;
	border-bottom-right-radius: 16px;
	border: 1px solid rgba(215, 204, 189, 0.7);
	flex-direction: column;
}

.memorial-people {
	display: grid;
	gap: 26px;
	margin-top: -94px;
	position: relative;
	z-index: 2;
}

.memorial-people-double {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.memorial-people-single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.memorial-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 8px;
}

.memorial-person-photo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.memorial-person-photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 10px solid #fff;
	background: #fff;
	object-fit: cover;
	box-shadow: 0 14px 30px rgba(45, 35, 25, 0.1);
}

.memorial-person-name h1,
.memorial-person-name h2 {
	font-family: var(--font-reading);
	font-size: clamp(32px, 4.2vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #222;
	margin: 0;
}

.memorial-person-life {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #7a6d61;
}

.memorial-person-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(215, 204, 189, 0.82);
}

.memorial-person-fact h3,
.memorial-shared-location h3 {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8d8278;
	margin-bottom: 6px;
}

.memorial-person-fact p,
.memorial-dedication p,
.memorial-shared-location p {
	font-size: 14px;
	line-height: 1.55;
	color: #5f554d;
	margin: 0;
}

.memorial-dedication,
.memorial-shared-location {
	text-align: center;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}


.memorial-dedication {
	grid-column: 1 / -1;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(215, 204, 189, 0.82);
}

.memorial-dedication p {
	font-family: var(--font-reading);
	font-size: clamp(19px, 2.2vw, 24px);
	line-height: 1.5;
	color: #493e35;
}

.memorial-shared-location {
	margin-top: 18px;
	padding-top: 20px;
	padding-bottom: 4px;
	border-top: 1px solid rgba(215, 204, 189, 0.82);
}

.memorial-shared-location::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	margin: 0 auto 10px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #8b674b;
	box-shadow: 0 6px 16px rgba(139, 103, 75, 0.18);
}

.memorial-shared-location p {
	max-width: 52ch;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
	color: #4d433b;
}

.container > .memorial-hero {
	width: 100%;
	height: 340px;
	min-height: 340px;
	position: relative;
	z-index: 1;
	border-radius: 0;
	border: 0;
	box-shadow: none;
}

.container > .memorial-hero::after {
	display: none;
}

.container > .profile-info,
.container .profile-info {
	max-width: 740px;
	margin: 0 auto;
	line-height: 1.5;
	color: #666;
	padding: 15px;
}

body.info-page .container > .profile-info,
body.info-page .container .profile-info,
body.info-page .private-block,
body.info-page .nodata,
body.info-page .story-card,
body.info-page .state-card {
	max-width: var(--container-info);
	margin-left: auto;
	margin-right: auto;
}

body.info-page .private-block,
body.info-page .nodata,
body.info-page .story-card,
body.info-page .state-card {
	border-radius: 16px;
}

.info-story-card {
	max-width: var(--container-info);
	margin: 0 auto 24px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(215, 204, 189, 0.7);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(45, 35, 25, 0.08);
	padding: 24px;
}

.info-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-bottom: 12px;
}

.info-title {
	font-family: var(--font-reading);
	font-size: clamp(28px, 3vw, 34px);
	line-height: 1.2;
	color: var(--text-strong);
	margin-bottom: 12px;
}

.info-story-head,
.info-section-head {
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(215, 204, 189, 0.7);
}

.info-story-head .info-title,
.info-section-head .info-title {
	margin-bottom: 0;
}

.info-desc {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-muted);
	max-width: 58ch;
}

body.info-page .info-story-card .profile-info {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	line-height: var(--lh-reading);
	color: var(--text-body);
}

body.info-page .info-story-card .profile-info p:first-child {
	font-size: 17px;
	line-height: 1.9;
	color: #3f372f;
	max-width: 60ch;
	margin-bottom: 20px;
}

.profile-info p,
.memorial-body p {
	margin-bottom: var(--space-16);
}

.memorial-body {
	font-size: var(--fs-16);
	line-height: var(--lh-reading);
	color: var(--text-body);
	max-width: none;
}

.memorial-body p:first-child {
	font-size: 17px;
	line-height: 1.9;
	color: #3d362f;
}

.memorial-story-body .profile-info {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.memorial-body strong,
.memorial-body b {
	color: var(--text-strong);
}

.state-card,
.private-block,
.nodata {
	text-align: center;
	margin-top: var(--space-8);
	margin-bottom: var(--space-32);
	/*background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 239, 0.98) 100%); */
}

.private-block {
	max-width: var(--container-state);
	padding: 36px 24px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line-soft);
	box-shadow: var(--shadow-card);
}

.private-icon {
	font-size: 34px;
	color: var(--brand-accent);
	margin-bottom: var(--space-16);
}

.private-title {
	font-size: var(--fs-20);
	font-weight: 700;
	color: var(--text-strong);
	margin-bottom: var(--space-12);
}

.private-desc {
	max-width: 520px;
	margin: 0 auto;
	font-size: var(--fs-14);
	line-height: 1.7;
	color: var(--text-muted);
}

.private-actions {
	margin-top: var(--space-20);
	display: flex;
	justify-content: center;
	gap: var(--space-12);
	flex-wrap: wrap;
}

.private-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	min-width: 180px;
	border-radius: 999px;
	font-size: var(--fs-14);
	font-weight: 700;
}

.private-actions .action-primary {
	background: var(--brand-primary);
	color: var(--text-inverse);
}

.private-actions .action-secondary {
	background: var(--bg-card);
	border: 1px solid var(--line-strong);
	color: var(--text-body);
}

.nodata {
	padding: 36px 24px;
	color: var(--text-muted);
	font-size: var(--fs-16);
	line-height: 1.7;
	border-style: solid;
}

.site-footer {
	margin-top: var(--space-32);
	padding: 28px var(--space-16) 40px;
	text-align: center;
	color: var(--text-soft);
	font-size: var(--fs-13, 13px);
	line-height: 1.7;
}

.site-footer-inner {
	max-width: var(--container-footer);
	margin: 0 auto;
	padding-top: 18px;
	border-top: 1px solid rgba(215, 204, 189, 0.72);
}

.site-footer-brand {
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 6px;
}

.site-footer-copy {
	font-size: var(--fs-14);
	color: var(--text-soft);
}

@media (max-width: 768px) {
	.desktop-only {
		display: none;
	}

	.mobile-only {
		display: block;
	}

	#shopify-toast {
		top: 50%;
		width: calc(100vw - 20px);
	}

	.shopify-toast-item {
		padding: 13px 14px;
		border-radius: 16px;
		gap: 10px;
	}

	.shopify-toast-icon {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	.shopify-toast-message {
		font-size: 13px;
	}

	.container {
		padding: 0 12px;
	}

	.flow-shell {
		padding-left: 0;
		padding-right: 0;
		padding-top: 14px;
		padding-bottom: 24px;
	}

	.flow-card {
		width: 100%;
		max-width: none;
	}

	.flow-panel {
		border-radius: 20px;
	}

	.flow-grid {
		grid-template-columns: 1fr;
	}

	.flow-intro,
	.flow-form,
	.flow-success {
		padding: 18px 16px;
	}

	.flow-intro {
		order: 2;
		border-right: 0;
		border-bottom: 1px solid rgba(215, 204, 189, 0.78);
		background: linear-gradient(180deg, #f9f5ee 0%, #f5ede2 100%);
	}

	.flow-form {
		order: 1;
	}

	.flow-grid-activate .flow-intro {
		display: none;
	}

	.flow-grid-activate .flow-form {
		order: initial;
	}

	.flow-grid-activate .flow-mobile-note {
		display: block;
	}

	.flow-grid-mobile-form-first .flow-intro {
		display: none;
	}

	.flow-grid-mobile-form-first .flow-form {
		order: initial;
	}

	.flow-grid-mobile-form-first .flow-mobile-note {
		display: block;
	}

	.flow-intro .flow-points {
		display: none;
	}

	.flow-intro .flow-title {
		font-size: 24px;
		margin-bottom: 10px;
	}

	.flow-intro .flow-desc {
		font-size: 14px;
		line-height: 1.7;
		margin-bottom: 0;
	}

	.flow-form .title {
		font-size: 26px;
		margin-bottom: 8px;
	}

	.flow-form .desc {
		margin-bottom: 16px;
	}

	.flow-inline-note,
	.flow-microcopy,
	.flow-help {
		font-size: 13px;
	}

	.flow-check-card {
		padding: 14px;
		border-radius: 14px;
	}

	.flow-auth-fields {
		padding: 2px 0 0;
	}

	.flow-mobile-note,
	.flow-inline-note {
		padding: 10px 12px;
	}

	.qresult-panel-inner {
		padding: 26px 20px 24px;
	}

	.qresult-title {
		font-size: 34px;
	}

	.qresult-desc {
		font-size: 18px;
		line-height: 1.75;
	}

	.qresult-btn {
		width: 100%;
		min-width: 0;
	}

	.memorial-main {
		padding-top: var(--space-24);
	}

	.shopify-form,
	.story-card,
	.state-card,
	.nodata,
	.private-block {
		padding: 20px;
	}

	.header-inner {
		padding: 12px var(--space-16);
	}

	.brand-subtle,
	.role-pill {
		display: none;
	}

	.menu-popup {
		min-width: 200px;
	}

	.memorial-hero {
		min-height: 300px;
	}

	.container > .memorial-hero {
		width: calc(100% + 24px);
		margin-left: -12px;
		margin-right: -12px;
		height: 200px;
		min-height: 200px;
	}

	.profile-photo {
		width: 82px;
		height: 82px;
		border-radius: 50%;
	}

	.info-container {
		padding: 0 16px 20px;
	}

	.memorial-people {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: -60px;
	}

	.memorial-people-double,
	.memorial-people-single {
		max-width: none;
	}

	.memorial-person {
		padding: 0;
	}

	.memorial-person-photo {
		width: 120px;
		height: 120px;
		border-width: 5px;
	}

	.memorial-person-name h1,
	.memorial-person-name h2 {
		font-size: 30px;
	}

	.memorial-person-life {
		font-size: 12px;
		margin-top: 6px;
	}

	.memorial-person-facts {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 12px;
		padding-top: 12px;
	}

	.memorial-person-fact h3,
	.memorial-shared-location h3 {
		font-size: 10px;
		letter-spacing: 0.07em;
		margin-bottom: 5px;
	}

	.memorial-person-fact p {
		font-size: 13px;
		line-height: 1.5;
	}

	.memorial-dedication {
		margin-top: 24px;
		padding-top: 18px;
	}

	.memorial-dedication p {
		font-size: 18px;
	}

	.memorial-shared-location {
		margin-top: 20px;
		padding-top: 18px;
	}

	.memorial-shared-location p {
		font-size: 14px;
		line-height: 1.65;
	}

	.tab {
		margin-top: var(--space-8);
		padding-bottom: var(--space-8);
	}

	.tab a {
		padding: 11px 16px;
	}

	.memorial-tabs {
		gap: 18px;
		padding-bottom: 0;
	}

	.memorial-tabs a {
		padding: 12px 0 13px;
		font-size: 12px;
		letter-spacing: 0.07em;
	}

	.memorial-body {
		max-width: none;
	}

	.memorial-body p:first-child {
		font-size: 16px;
		line-height: 1.8;
	}

	.private-actions a,
		.btn-primary,
		.btn-secondary,
		.btn-primary2 {
		width: 100%;
	}

	.info-story-card {
		padding: 20px;
		border-radius: 14px;
	}

	.info-story-head,
	.info-section-head {
		margin-bottom: 16px;
		padding-bottom: 14px;
	}

	body.info-page .info-story-card .profile-info p:first-child {
		font-size: 16px;
		line-height: 1.85;
		margin-bottom: 18px;
	}
}

@media (min-width: 769px) {
	.tab {
		justify-content: center;
	}

	.profile-photo-container {
		flex-shrink: 0;
	}

	.profile-photo {
		width: 110px;
		height: 110px;
		border-radius: 50%;
	}

	.memorial-hero {
		min-height: 332px;
	}

	.info-wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.info-born,
	.info-died,
	.info-memorial {
		padding-top: 14px;
	}

	.memorial-tabs {
		justify-content: flex-start;
	}
}
