:root {
	--bg-top: #04070d;
	--bg-bottom: #1b3047;
	--shell-top: rgba(5, 10, 18, 0.88);
	--shell-bottom: rgba(16, 28, 43, 0.82);
	--panel: rgba(14, 24, 38, 0.54);
	--panel-strong: rgba(28, 45, 68, 0.78);
	--panel-border: rgba(148, 163, 184, 0.3);
	--text-strong: #e2e8f0;
	--text-muted: #b6c2d2;
	--text-on-warm: #172033;
	--link-on-warm: #0f4c81;
	--header-text: #f8fafc;
	--accent-start: #009bff;
	--accent-end: #5541ff;
	--accent-soft: #0f172a;
	--success-start: #004bfc;
	--success-end: #3313f0;
	--warm-start: rgba(233, 245, 11, 0.88);
	--warm-end: rgba(185, 234, 8, 0.8);
	--shadow-soft: 0 32px 80px rgba(2, 6, 12, 0.48);
	--shadow-card: 0 18px 38px rgba(2, 6, 12, 0.34);
	--shadow-raise: 0 18px 34px rgba(2, 6, 12, 0.42);
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 12px;
}

html {
	background: var(--bg-bottom);
}

body {
	margin: 0;
	padding: 0;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	color: var(--text-strong);
	background:
		radial-gradient(circle at 18% 12%, rgba(0, 155, 255, 0.18), transparent 18%),
		radial-gradient(circle at 82% 18%, rgba(85, 65, 255, 0.16), transparent 18%),
		radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.3), transparent 28%),
		linear-gradient(180deg, var(--bg-top) 0%, #09111d 22%, #102033 58%, var(--bg-bottom) 100%);
}

body.modal-open {
	overflow: hidden;
}

body.bigbook-page {
	background:
		radial-gradient(circle at 15% 10%, rgba(0, 155, 255, 0.14), transparent 20%),
		radial-gradient(circle at 85% 18%, rgba(85, 65, 255, 0.14), transparent 22%),
		linear-gradient(180deg, #050a12 0%, #0b1320 38%, #122236 100%);
}

#install_button,
#share_button {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
		linear-gradient(135deg, var(--success-start), var(--success-end));
	color: #f8fafc;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	text-transform: capitalize;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	border: 1px solid rgba(148, 163, 184, 0.24);
	font-size: 16px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.01em;
	box-shadow: 0 14px 24px rgba(2, 6, 12, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#install_button:hover,
#share_button:hover {
	filter: brightness(1.03);
	transform: translateY(-2px);
	box-shadow: 0 18px 32px rgba(2, 6, 12, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.container {
	max-width: 500px;
	display: block;
	margin: 18px auto;
	padding: 0;
	position: relative;
	min-height: 100vh;

	overflow: hidden;

}

.header-fixed {
	position: relative;
	padding: 18px 18px 16px;
	background:
		radial-gradient(circle at top, rgba(0, 155, 255, 0.18), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
		linear-gradient(160deg, var(--shell-top), var(--shell-bottom));
	border-bottom: 1px solid rgba(148, 163, 184, 0.16);
	box-shadow: 0 18px 36px rgba(2, 6, 12, 0.4);
}

.header-fixed a,
.header-fixed button {
	text-align: center;
}

.center {
	text-align: center;
}

h1.center {
	text-transform: uppercase;
	color: var(--header-text);
	margin: 0 0 14px;
	font-size: 32px;
	letter-spacing: 0.08em;
	text-shadow: 0 10px 30px rgba(2, 6, 12, 0.55);
}

footer {
	position: relative;
	padding: 18px 24px 32px;
	background: #e9edf5;
	text-align: center;
	text-transform: uppercase;
	color: #4b5168;
	font-size: 12px;
}

.content {
	position: relative;
	min-height: 100vh;
	overflow-y: auto;
	padding: 12px 12px 40px;
	background:
		linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(2, 6, 12, 0.08));
}

table {
	top: 0;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

table tr {
	display: flex;
	justify-content: space-between;
	align-content: stretch;
	padding: 14px 16px 30px;
	align-items: center;
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	margin-bottom: -18px;
	position: relative;
	background:
		linear-gradient(180deg, rgba(36, 53, 77, 0.9), rgba(16, 25, 39, 0.82));
	box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(18px) saturate(140%);
}

td {
	width: 100%;
	white-space: nowrap;
	font-size: 18px;
	color: var(--text-strong);
}

.lname {
	text-transform: capitalize;
}



td.phnum {
	text-align: center;
}

td.ldate {
	position: relative;
	padding: 5px;
	text-align: right;
	color: var(--text-muted);
	font-weight: 600;
}







.ath-container {
	background: #a6c0d4 !important;

}

thead>tr {
	background: linear-gradient(135deg, rgba(71, 85, 105, 0.94), rgba(30, 41, 59, 0.98));
	text-transform: uppercase;
	padding: 12px 16px;
	position: sticky;
	top: 0;
	z-index: 5;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
	border-radius: 0;
	margin: 0 -12px;
	width: calc(100% + 24px);
	border: 0;
}

tr:first-child th {
	color: #fff;
	font-size: 14px;
	letter-spacing: 0.08em;
}

td.phnum>a {
	color: #67f9de;
	font-weight: 600;
	text-decoration: none;
}

/* Highlight rows for current month anniversaries */
.current-month-anniversary {
	background: linear-gradient(135deg, var(--warm-start), var(--warm-end)) !important;
	box-shadow: 0 18px 34px rgba(202, 138, 4, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.current-month-anniversary td {
	color: var(--text-on-warm);
}

.current-month-anniversary td.phnum>a {
	color: var(--link-on-warm);
}

.current-month-anniversary td.ldate {
	color: rgba(23, 32, 51, 0.72);
}

.button-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	padding-bottom: 15px;
}

.title-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 5px;
	flex-wrap: wrap;
}

#bigbook-link,
#bigbook_bookmark_link {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
		linear-gradient(135deg, var(--accent-start), var(--accent-end));
	border: 1px solid rgba(148, 163, 184, 0.22);
	color: #eff6ff;
	padding: 10px 18px 9px;
	font-family: inherit;
	font-size: 16px;
	font-style: normal;
	text-transform: capitalize;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	margin: 0;
	border-radius: 999px;
	letter-spacing: 0.03em;
	box-shadow: 0 14px 24px rgba(2, 6, 12, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#bigbook-link:hover,
#bigbook_bookmark_link:hover {
	color: #fff;
	border-color: rgba(148, 163, 184, 0.42);
	filter: brightness(1.05);
	transform: translateY(-2px);
	box-shadow: 0 18px 30px rgba(2, 6, 12, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}


/*The Bookmark functionality and links*/
#basix_bookmark_link {
	background-color: rgb(83, 133, 48);
	border: 2px solid #eee;
	color: #eee;
	padding: 8px 10px 6px;
	font-family: arial;
	font-size: 16px;
	font-style: normal;
	text-transform: capitalize;
	font-weight: 400;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	margin: 0;
	border-radius: 8px;
	animation: blinker 750ms linear infinite;
	animation-iteration-count: 4;
}

@keyframes blinker {
	50% {
		opacity: 30%;
	}
}

#basix_bookmark_link:hover {
	color: #333;
	border: 2px solid #fff;
}

#basix_bookmark_div {
	position: absolute;
	text-align: center;
	padding: 15px;
	font-family: arial;
	font-size: 16px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: solid #ddd 1px;
	border-radius: 6px;
	box-shadow: #ccc 1px 2px;
	display: none;
	z-index: 999;
	background-color: #a6c0d4;
	top: 130px;
}

#basix_bookmark_div #close_link {
	cursor: pointer;
	text-decoration: underline;
}

#basix_bookmark_div #bookmark_title {
	font-size: 1.2rem;
	padding: 10px;
}

#basix_bookmark_div #bookmark_content {
	margin-bottom: 10px;
}

.bigbook-page .container {
	max-width: 500px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	margin-top: 0;
	margin-bottom: 0;
}

.bigbook-page .header-fixed {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(100%, 760px);
	box-sizing: border-box;
	z-index: 50;
	padding: 12px;
	background:
		radial-gradient(circle at top, rgba(0, 155, 255, 0.16), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
		linear-gradient(160deg, var(--shell-top), var(--shell-bottom));
}

.content.bigbook {
	padding: 94px 12px 36px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: transparent;
}

.section-row,
#audio {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 18px 16px;
}

.section-row h3,
#audio>h3,
.bigbook-audio h3 {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-strong);
	padding-top: 0;
	border-top: 0;
}

#audio>div:first-child {
	display: none;
}

.row-content {
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.row-content:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

.views-row {
	margin-bottom: 0;
	font-size: 18px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.views-row a {
	display: block;
	padding: 14px 2px;
	line-height: 1.35;
	color: var(--text-strong);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.views-row a:hover {
	background: transparent;
	color: #67e8f9;
}

.bigbook-audio {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bigbook-audio .audio-title {
	margin-bottom: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-strong);
	line-height: 1.35;
	padding-top: 10px;
}

.field__item {
	margin-bottom: 14px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.field__item iframe {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

.bigbook-button-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 0;
	background: transparent;
}

.bigbook-page a#bigbook-link {
	flex-grow: 1;
	border-radius: 16px;
	padding: 12px 10px;
	font-size: 15px;
}

@media (max-width: 640px) {

	.section-row,
	#audio {
		padding: 16px 14px;
		border-radius: 18px;
	}

	.section-row h3,
	#audio>h3,
	.bigbook-audio h3 {
		font-size: 21px;
	}

	.bigbook-page a#bigbook-link {
		font-size: 14px;
		padding: 12px 8px;
	}

	.views-row a {
		padding: 14px 16px;
	}
}

.share-modal {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	background: #ffffff;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.share-modal.is-open {
	display: flex;
}

.share-modal__content {
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	text-align: center;
	padding: 20px 0;
	box-sizing: border-box;
}

.share-modal__content h2 {
	display: none;
}

.share-modal__image {
	width: min(100%, 360px);
	height: auto;
	display: block;
}

.share-modal__close {
	position: static;
	transform: none;
	background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 18px;
	text-transform: capitalize;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(85, 65, 255, 0.24);
}

.print-button {
	background: linear-gradient(135deg, #004bfc, #070a1b);
	color: #eff6ff;
	border: 0;
	border-radius: 999px;
	padding: 6px 18px;
	font: inherit;
	font-weight: 600;
	text-transform: capitalize;
	letter-spacing: 0.02em;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.admin-link {
	display: block;
	margin-top: 18px;
	color: #004bfc;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.06em;
}

@media (max-width: 640px) {
	.container {
		margin: 0;
		border-radius: 0;
		min-height: 100vh;
	}

	.content {
		padding: 10px 10px 56px;
	}

	table tr {
		padding: 28px 14px;
	}

	td {
		font-size: 16px;
	}


}

a span.memorium {
	color: #777777;
	text-decoration: none;
	cursor: none;
	font-weight: 900;
	font-size: 12px;

}

h2.print-only {
	display: none;
}


@page {
	size: landscape;
	margin: 0.32in 0.38in;
}



/* print css */
@media print {
	body {
		background: #fff !important;
		color: #000 !important;
	}

	body * {
		visibility: hidden;
	}

	.content,
	.content * {
		visibility: visible;
	}

	.container,
	.content {
		max-width: none;
		min-height: auto;
		margin: 0;
		padding: 0;
		position: static;
		background: none !important;
		overflow: visible;
	}

	.print-button,
	header,
	footer,
	.title-wrapper,
	.button-wrapper,
	#install_button,
	#share_button,
	#basix_bookmark_div,
	#custom-alert,
	#share-modal {
		display: none !important;
	}

	h2.print-only {
		display: block !important;
		visibility: visible !important;
		margin: 0 0 0.18in;
		font-size: 20px;
		line-height: 1.2;
		letter-spacing: 0.02em;
		text-align: left;
		text-transform: uppercase;
		color: #000 !important;
		break-after: avoid;
	}

	.content {
		column-count: 3;
		column-gap: 0.82in;
		column-fill: auto;
	}

	.content table,
	table,
	.content tbody,
	tbody {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent !important;
	}

	.content tr,
	table tr,
	.current-month-anniversary {
		display: grid;
		grid-template-columns: 35% 45% 20%;
		column-gap: 2px;
		width: 100%;
		break-inside: avoid;
		background: transparent !important;
		box-shadow: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		margin: 0 !important;
		padding: 2px 0 !important;
		backdrop-filter: none !important;
	}

	.content td,
	table td {
		display: block;
		width: auto;
		min-width: 0;
		padding: 0;
		margin: 0;
		font-size: 15px;
		line-height: 1.12;
		font-weight: 400;
		text-align: left;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		color: #000 !important;
		background: transparent !important;
		border: 0;
	}

	span.memorium {
		font-size: 12px !important;
	}

	td.phnum,
	td.phnum>a,
	a[href^="tel:"] {
		color: #000 !important;
		text-decoration: none;
		font-weight: 400;
	}

	td.ldate {
		overflow: visible;
		text-overflow: clip;
		text-align: left;
	}

	td.ldate::after {
		content: none !important;
		display: none !important;
	}
}
/* "Powered by callist" credit in list footers */
.powered {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: #4b5168;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: none;
	text-decoration: none;
}

.powered img {
	width: 20px;
	height: 20px;
}

@media print {
	.powered { display: none !important; }
}

/* ---------- sober forever: readable but clearly not callable ---------- */
/* Mute the text, not the row: rows overlap, so a see-through row shows the edge of the one above */
tr.sober td {
	opacity: 0.45;
}

span.memorium {
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

/* ---------- admin ---------- */
.btn {
	background: linear-gradient(135deg, #009bff, #004bfc 55%, #5541ff);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--panel-border); }
.btn.danger { background: #dc2626; }

.admin-bar {
	margin: -6px 0 14px;
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	letter-spacing: 0.04em;
}

.admin-bar a { color: var(--accent-start); }

.admin-who {
	margin: 0 0 10px;
	text-transform: none;
}

.flash {
	margin: 12px 12px 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(34, 197, 94, 0.16);
	color: #bbf7d0;
	text-align: center;
}

td.ledit {
	width: auto;
	flex: 0 0 auto;
	margin-left: 6px;
}

.edit-btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-strong);
	cursor: pointer;
}

.current-month-anniversary .edit-btn { background: rgba(23, 32, 51, 0.12); color: var(--text-on-warm); }

.card {
	background: #13213a;
	border: 1px solid var(--panel-border);
	border-radius: 18px;
	padding: 24px 20px;
	color: var(--text-strong);
	box-shadow: var(--shadow-soft);
}

.card h2 { margin: 0 0 16px; font-size: 20px; }
.card p { margin: 0 0 14px; line-height: 1.5; }

.card label {
	display: block;
	margin: 0 0 14px;
	text-align: left;
	font-size: 14px;
	color: var(--text-muted);
}

.card input[type="email"],
.card input[type="tel"],
.card input[type="date"],
.card input:not([type]) {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 12px;
	border: 1px solid var(--panel-border);
	border-radius: 10px;
	background: #0b1424;
	color: #fff;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	color-scheme: dark;
}

.card input:disabled { opacity: 0.4; }

.card label.check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: var(--text-strong);
	font-size: 16px;
}

.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: #5541ff; }
.check small { display: block; color: var(--text-muted); font-size: 13px; }

.actions { display: flex; gap: 10px; margin-top: 6px; }
.actions .btn { flex: 1; }

.link-danger {
	display: block;
	margin: 18px auto 0;
	background: none;
	border: 0;
	color: #fca5a5;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

dialog {
	width: min(92vw, 400px);
	padding: 0;
	border: 0;
	background: transparent;
}

dialog::backdrop { background: rgba(2, 6, 12, 0.72); }

/* login: one small centered card */
.login-page {
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 16px;
	box-sizing: border-box;
}

.login-card { width: min(100%, 380px); text-align: center; }
.login-card h1 { margin: 0; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--header-text); }
.login-card .sub { margin: 4px 0 20px; color: var(--text-muted); }
.login-card .error { color: #fca5a5; }
.login-card .hint, .login-card .back { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); }
.login-card a { color: var(--accent-start); }
.login-card .steps { margin: 0 0 16px; padding-left: 20px; text-align: left; line-height: 1.5; }
.login-card .steps li { margin-bottom: 6px; }
.login-page > .powered { color: var(--text-muted); }

.link-danger[hidden] { display: none; }

.empty {
	margin: 32px 16px;
	text-align: center;
	color: var(--text-muted);
}
