:root {
	--blue: #1E4FD6;
	--blue-2: #4B7BFF;
	--blue-ink: #0F2A6B;
	--bg: #F5F7FB;
	--card: #ffffff;
	--text: #152238;
	--ink: #152238;
	--muted: #5C6B86;
	--line: #E2E8F4;
	--ok: #0F7B4B;
	--err: #B42318;
	--accent: #1E4FD6;
	--accent-ink: #0F2A6B;
	--radius: 10px;
	--shadow: 0 8px 24px rgba(15, 42, 107, 0.06);
	--font: "DM Sans", "Segoe UI", system-ui, sans-serif;
	--max: 720px;
	--jsa-pwa-theme: #1E4FD6;
}

*, *::before, *::after { box-sizing: border-box; }
html {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	margin: 0;
	padding: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
	min-height: 100dvh;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, iframe, svg, canvas { max-width: 100%; height: auto; display: block; }
iframe { width: 100%; }

.container {
	width: min(var(--max), calc(100% - 1.5rem));
	max-width: 100%;
	margin-inline: auto;
	min-width: 0;
}
.page {
	padding: 1rem 0 2rem;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}

/* —— Header —— */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255,255,255,0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
/* PWA: keep logo / login below Dynamic Island & clock (sticky header needs its own inset) */
html.jsa-standalone .site-header,
body.jsa-standalone .site-header {
	padding-top: constant(safe-area-inset-top);
	padding-top: env(safe-area-inset-top, 0px);
	background:
		linear-gradient(var(--blue, #1E4FD6), var(--blue, #1E4FD6)) top / 100% env(safe-area-inset-top, 0px) no-repeat,
		rgba(255,255,255,0.96);
}
@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen) {
	.site-header {
		padding-top: constant(safe-area-inset-top);
		padding-top: env(safe-area-inset-top, 0px);
		background:
			linear-gradient(var(--blue, #1E4FD6), var(--blue, #1E4FD6)) top / 100% env(safe-area-inset-top, 0px) no-repeat,
			rgba(255,255,255,0.96);
	}
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: .65rem; min-height: 56px;
	width: min(960px, calc(100% - 1.5rem));
	max-width: 100%;
	margin-inline: auto;
	min-width: 0;
}
.brand {
	display: inline-flex; align-items: center; gap: .65rem;
	color: inherit; text-decoration: none;
	min-width: 0; flex-shrink: 0;
}
.brand img, .site-logo { border-radius: 8px; width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--blue-ink); font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-center { justify-content: center; margin-bottom: 1rem; flex-direction: column; gap: .5rem; }

.header-right {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: auto;
	min-width: 0;
}
.header-auth {
	display: flex;
	align-items: center;
	gap: .55rem;
	flex-shrink: 0;
}
.header-auth-link {
	color: var(--text);
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	padding: .35rem .15rem;
	white-space: nowrap;
}
.header-auth-link:hover { color: var(--blue); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap; }
.site-nav a { color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--blue); }

/* Shared bars icon (admin hamburger only on public revert) */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--blue-ink);
	border-radius: 2px;
	position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.btn, button.btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--blue); color: #fff; border: 0; border-radius: 8px;
	padding: .65rem 1.1rem; font-weight: 700; font: inherit; cursor: pointer; text-decoration: none;
	max-width: 100%;
	box-sizing: border-box;
}
.btn:hover { background: var(--blue-ink); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: .4rem .75rem; font-size: .88rem; }
.linkish { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.inline { display: inline; }

/* —— Feed / bulletin home (Pocket Church style) —— */
.app-welcome {
	padding: .25rem 0 1rem;
}
.app-welcome h1 {
	margin: 0 0 .35rem;
	font-size: clamp(1.45rem, 4vw, 1.85rem);
	letter-spacing: -0.03em;
	color: var(--blue-ink);
}
.app-welcome p { margin: 0; color: var(--muted); max-width: 36rem; }

.feed-list { display: grid; gap: 1rem; }
.feed-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
	display: block;
	transition: border-color .15s ease, transform .15s ease;
}
.feed-card:hover { border-color: #c5d2ef; text-decoration: none; transform: translateY(-1px); }
.feed-card img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	background: #e8eefc;
}
.feed-card-body { padding: 1rem 1.1rem 1.15rem; }
.feed-card-body h2 {
	margin: 0 0 .4rem;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--blue-ink);
	line-height: 1.3;
}
.feed-meta {
	display: flex; flex-wrap: wrap; gap: .35rem .75rem;
	color: var(--muted); font-size: .82rem; margin-bottom: .45rem;
}
.feed-card-body p { margin: 0; color: var(--muted); font-size: .95rem; }

.section-label {
	font-size: .75rem; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--muted); margin: 1.25rem 0 .65rem;
}

.hero, .hero-copy, .module-card, .card, .ad-card, .auth-card, .phase-note, .section-head, .article, .note-item, .form-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.hero-copy { padding: 1.25rem; }
.hero h1 { margin: 0 0 .5rem; color: var(--blue-ink); font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -0.02em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

.grid-modules {
	display: grid; grid-template-columns: repeat(2, 1fr);
	gap: .75rem; margin: 1rem 0 1.5rem;
}
.module-card { padding: 1rem; color: inherit; text-decoration: none; }
.module-card:hover { border-color: var(--blue-2); text-decoration: none; }
.module-card h2 { margin: 0 0 .25rem; color: var(--blue); font-size: 1rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .85rem; }

.ad-rail { display: grid; gap: .75rem; margin: 1rem 0; }
.ad-card { position: relative; overflow: hidden; padding: .75rem; color: inherit; text-decoration: none; }
.ad-card img { width: 100%; border-radius: 8px; margin-bottom: .5rem; aspect-ratio: 16/9; object-fit: cover; background: #e8eefc; }
.ad-label {
	position: absolute; top: .95rem; left: .95rem;
	background: rgba(15,42,107,.85); color: #fff; font-size: .7rem;
	padding: .15rem .45rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.phase-note, .section-head {
	padding: 1.15rem;
	margin-top: 0;
	margin-bottom: 1rem;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}
.section-head h1 { margin: 0 0 .25rem; color: var(--blue-ink); font-size: 1.45rem; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; margin-top: 2rem; background: #fff; }
.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	width: min(960px, calc(100% - 1.5rem));
	max-width: 100%;
	margin-inline: auto;
	align-items: flex-end;
	min-width: 0;
}
.footer-inner > div { min-width: 0; flex: 1 1 12rem; }
.footer-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; min-width: 0; }
.footer-copy { margin: 0; }
.fn-credit {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.55rem 0.28rem 0.28rem;
	border-radius: 999px;
	border: 1px solid rgba(15, 42, 107, 0.12);
	background: #fff;
	text-decoration: none;
	color: var(--blue-ink);
	white-space: nowrap;
	flex-shrink: 0;
	max-width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fn-credit:hover {
	text-decoration: none;
	border-color: var(--blue);
	box-shadow: 0 4px 14px rgba(15, 42, 107, 0.08);
}
.fn-credit__mark {
	display: grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	background: linear-gradient(145deg, #1E4FD6 0%, #0F2A6B 100%);
	color: #f0d78a;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: -0.04em;
	line-height: 1;
	box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3);
}
.fn-credit__by {
	font-size: 0.68rem;
	font-weight: 500;
	color: var(--muted);
}
.fn-credit__name {
	font-size: 0.84rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	color: var(--blue-ink);
}
@media (max-width: 720px) {
	.footer-end { align-items: flex-start; }
}

.flash-wrap { display: grid; gap: .5rem; margin-bottom: 1rem; }
.flash { padding: .75rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.flash-success { border-color: #9AD4B7; background: #EAF8F0; color: var(--ok); }
.flash-error { border-color: #F0B4AE; background: #FDECEC; color: var(--err); }

.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 1rem; background:
	radial-gradient(ellipse at top left, rgba(30,79,214,.12), transparent 50%),
	var(--bg); }
.auth-card { width: min(420px, 100%); padding: 1.5rem; }
.stack { display: grid; gap: .85rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], textarea, select {
	width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px;
	font: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(30,79,214,.22); border-color: var(--blue); }

.admin-body {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 100%;
	overflow-x: clip;
}
.admin-nav { background: var(--blue-ink); color: #fff; padding: 1rem; }
.admin-nav .brand { color: #fff; margin-bottom: 1rem; }
.admin-nav nav { display: grid; gap: .45rem; }
.admin-nav a { color: #d7e4ff; text-decoration: none; padding: .45rem .55rem; border-radius: 8px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.muted { opacity: .55; pointer-events: none; }
.admin-main {
	padding: 1.25rem;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}
.admin-top { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; min-width: 0; }
.badge { background: #E8EEFC; color: var(--blue-ink); border-radius: 999px; padding: .15rem .55rem; font-size: .8rem; font-weight: 700; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.admin-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .85rem;
}
.admin-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	min-height: 132px;
	padding: 1rem .75rem .9rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: inherit;
	text-decoration: none;
	text-align: center;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.admin-tile:hover {
	border-color: var(--blue-2);
	transform: translateY(-2px);
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(15, 42, 107, 0.1);
}
.admin-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background: #EEF3FF;
	color: var(--blue);
}
.admin-tile__label {
	font-weight: 700;
	font-size: .98rem;
	color: var(--blue-ink);
	letter-spacing: -0.01em;
}
.admin-tile__hint {
	font-size: .78rem;
	color: var(--muted);
	line-height: 1.25;
}
.admin-tile__count {
	position: absolute;
	top: .55rem;
	right: .55rem;
	min-width: 1.5rem;
	padding: .1rem .4rem;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.3;
}
.card { padding: 1rem; }
.card h3 { margin: 0 0 .35rem; color: var(--blue-ink); }
.card p { margin: 0; color: var(--muted); }

.row-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
	min-width: 0;
}
.table-scroll,
.table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1rem 0;
}
.table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	margin: 1rem 0;
}
.table th, .table td {
	padding: .7rem .8rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	font-size: .92rem;
	word-break: break-word;
}
.table th { background: #EEF3FF; color: var(--blue-ink); }
.actions {
	display: flex;
	gap: .5rem;
	align-items: center;
	flex-wrap: wrap;
	min-width: 0;
}
.danger { color:var(--err) !important; }
.inline-form { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; margin:.75rem 0; }
.form-card { max-width:720px; padding:1.25rem; }
.thumb { max-width:220px; border-radius:8px; margin-top:.5rem; }
.card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.card-grid .card { padding:1rem; }
.card-grid img, .article-cover { width:100%; border-radius:8px; margin-bottom:.75rem; aspect-ratio:16/9; object-fit:cover; background:#e8eefc; }
.price { color:var(--blue-ink); font-weight:800; margin:.35rem 0; }
.price.big { font-size:1.4rem; }
.img-ph { background:#e8eefc; border-radius:8px; aspect-ratio:16/9; display:grid; place-items:center; color:var(--muted); margin-bottom:.75rem; }
.img-ph.tall { min-height:240px; aspect-ratio:1; }
.product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 1.25rem;
	max-width: 100%;
	min-width: 0;
}
.wa-btn { background:#25D366 !important; }
.wa-btn:hover { background:#1da851 !important; }
.video-wrap { position:relative; padding-top:56.25%; margin:1rem 0; background:#000; border-radius:10px; overflow:hidden; }
.video-wrap iframe { position:absolute; inset:0; width:100%; height:100%; max-height:none; border:0; background:#000; }
.live { background:#E11D48; color:#fff; font-size:.7rem; padding:.15rem .4rem; border-radius:999px; vertical-align:middle; }
.note-item { padding:.75rem 1rem; margin:.5rem 0; }
.pager { display:flex; justify-content:space-between; margin-top:1rem; }
.prose {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}
.article {
	padding: 1.25rem;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}
.tv-notes-block { margin-top: 1.5rem; }
.tv-notes-block h2 { margin: 0 0 .75rem; font-size: 1.15rem; color: var(--blue-ink); }
.source-pill {
	display:inline-block; font-size:.7rem; font-weight:700; text-transform:uppercase;
	letter-spacing:.04em; padding:.12rem .45rem; border-radius:999px;
	background:#EEF3FF; color:var(--blue-ink);
}
.source-pill.mother { background:#F3F0E8; color:#6B5420; }

/* Shop search */
.search-shop {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 1rem;
}
.search-shop input[type="search"] {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	font: inherit;
}
.search-bible {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 1rem;
}
.search-bible input[type="search"] {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	font: inherit;
}
.search-bible select {
	width: auto;
	min-width: 5.5rem;
	padding: 0.65rem 0.7rem;
	border-radius: 10px;
}
.bible-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 1.15rem;
}
.bible-chip {
	display: inline-flex;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--blue-ink);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}
.bible-chip:hover { border-color: var(--blue); text-decoration: none; }
.bible-passage {
	margin: 0 0 1.25rem;
	padding: 1.15rem 1.2rem;
}
.bible-passage__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
.bible-passage__head h2 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--blue-ink);
}
.bible-pager {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 0.5rem;
	align-items: center;
	margin: 0.75rem 0;
	max-width: 100%;
}
.bible-pager .btn {
	width: 100%;
	white-space: nowrap;
}
.bible-pager__jump {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	min-width: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--blue-ink);
}
.bible-pager__jump select {
	width: auto;
	min-width: 7.2rem;
	max-width: 100%;
	padding: 0.4rem 0.45rem;
}
.bible-pager__place {
	text-align: center;
	font-size: 0.85rem;
	font-weight: 700;
}
.feature-toggle {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
}
.feature-toggle input { width: auto; margin-top: 0.2rem; }
.bible-verses { display: grid; gap: 0.65rem; }
.bible-verse { margin: 0; line-height: 1.55; font-size: 1.02rem; }
.bible-verse__n {
	color: var(--blue);
	font-weight: 700;
	margin-right: 0.25rem;
	font-size: 0.75rem;
}
.bible-verse-block { margin: 0; line-height: 1.6; white-space: pre-wrap; }
.bible-books { margin-top: 1.5rem; }
.bible-book-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
}
@media (min-width: 720px) {
	.bible-book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bible-book {
	display: block;
	padding: 0.55rem 0.45rem;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--blue-ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	text-decoration: none;
	line-height: 1.25;
}
.bible-book.nt { background: #F7F9FF; }
.bible-book:hover { border-color: var(--blue); text-decoration: none; }
.section-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--blue-ink);
	margin: 0 0 0.5rem;
}
.shop-cats { margin-bottom: 1rem; max-width: 100%; min-width: 0; }
.shop-location {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem;
	margin: 0 0 1.15rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.loc-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
	flex: 1 1 9rem;
	min-width: 0;
	max-width: 100%;
}
.loc-field select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	font: inherit;
	color: var(--ink);
	background: #fff;
}
.vendor-cta-btn {
	flex-shrink: 0;
	white-space: nowrap;
	max-width: 100%;
}
.vendor-cta-mobile { display: none; margin: 0 0 1rem; max-width: 100%; }
.shop-page { max-width: 100%; min-width: 0; overflow-x: clip; }
.shop-page .section-head.row-between {
	align-items: flex-start;
	max-width: 100%;
}
.shop-page .section-head > div { min-width: 0; flex: 1 1 auto; }
@media (max-width: 560px) {
	.shop-page .section-head.row-between .vendor-cta-btn { display: none; }
	.vendor-cta-mobile { display: block; }
	.vendor-cta-mobile .vendor-cta-btn {
		width: 100%;
		max-width: 100%;
		text-align: center;
		display: inline-flex;
		justify-content: center;
		white-space: normal;
	}
	.shop-location {
		padding: 0.75rem;
		gap: 0.55rem;
	}
	.loc-field {
		flex: 1 1 100%;
	}
	.shop-location .btn {
		width: 100%;
	}
}
.shop-count { margin: 0 0 0.75rem; }

.shop-cta-stack {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.15rem;
	max-width: 100%;
}
.shop-cta-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	padding: 0.9rem 1rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	min-width: 0;
}
.shop-cta-desc {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.shop-cta-btn,
.shop-cta-card .vendor-cta-btn {
	width: 100%;
	justify-content: center;
	text-align: center;
	white-space: normal;
}
.shop-cta-card--vendor {
	background: #F7F9FF;
}

/* Signup form builder */
.form-builder { max-width: 720px; padding: 1.15rem; }
.form-builder__toolbar { margin-bottom: 1rem; flex-wrap: wrap; }
.form-builder__list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}
.form-builder__item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.65rem;
	align-items: start;
	padding: 0.85rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	cursor: grab;
}
.form-builder__item.is-dragging { opacity: 0.55; }
.form-builder__item.is-locked { cursor: default; background: #F7F9FF; }
.form-builder__handle {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.2;
	padding-top: 0.35rem;
	user-select: none;
}
.form-builder__fields {
	display: grid;
	gap: 0.55rem;
	min-width: 0;
}
.form-builder__check {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
}
.form-builder__opts { grid-column: 1 / -1; }
@media (max-width: 640px) {
	.form-builder__item {
		grid-template-columns: 1fr;
	}
}

/* Category grid — icon + label, 4 columns */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
	gap: 0.5rem;
	max-width: 100%;
}
.cat-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
}
.cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	padding: 0.65rem 0.35rem;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--blue-ink);
	text-decoration: none;
	text-align: center;
	overflow: hidden;
}
.cat-card:hover { border-color: var(--blue); text-decoration: none; }
.cat-card.on {
	border-color: var(--blue);
	background: #EEF3FF;
}
.cat-label {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.25;
	word-break: break-word;
	overflow-wrap: anywhere;
	max-width: 100%;
}
.cat-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 8px;
	flex-shrink: 0;
}
.cat-icon-ph {
	display: block;
	background: #e8eefc;
	border-radius: 8px;
}
.cat-icon-all::before {
	content: "☰";
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	font-size: 1rem;
	color: var(--muted);
}

/* Shop products — 2 columns */
.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	max-width: 100%;
}
.product-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	color: var(--blue-ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	padding-bottom: 0.65rem;
	min-width: 0;
	max-width: 100%;
}
.product-card:hover { border-color: var(--blue); text-decoration: none; }
.product-card img, .product-ph {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	background: #e8eefc;
	display: block;
}
.product-name {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
	padding: 0 0.55rem;
	overflow-wrap: anywhere;
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-price {
	font-weight: 800;
	color: var(--blue-ink);
	padding: 0 0.55rem;
	font-size: 0.92rem;
	overflow-wrap: anywhere;
}
.product-meta {
	font-size: 0.72rem;
	padding: 0 0.55rem;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.social-meta { display:flex; justify-content:space-between; gap:.75rem; margin-bottom:.35rem; }
.social-actions { display:flex; flex-wrap:wrap; gap:.85rem; align-items:center; margin-top:.5rem; }

/* —— Bottom tab bar (mobile + PWA) —— */
.site-tabbar { display: none !important; }
.tab-ico { display: block; }
@media (max-width: 860px), (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen) {
	body.has-tabbar {
		padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
	}
	body.has-tabbar .site-header .site-nav { display: none; }
	body.has-tabbar .site-footer { display: block; }
	body.has-tabbar .header-auth { display: flex; }
	.site-tabbar {
		display: flex !important;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 80;
		align-items: stretch;
		justify-content: space-around;
		gap: 0.1rem;
		padding: 0.3rem 0.2rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
		height: auto;
		min-height: 55px;
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 -4px 16px rgba(15, 42, 107, 0.08);
	}
	.tabbar-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.12rem;
		min-width: 0;
		padding: 0.3rem 0.15rem;
		color: var(--muted);
		text-decoration: none;
		font-size: 0.68rem;
		font-weight: 600;
		line-height: 1.1;
	}
	.tabbar-item:hover { text-decoration: none; color: var(--ink); }
	.tabbar-item.is-active { color: var(--blue); }
	.tabbar-ico {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.5rem;
		height: 1.5rem;
	}
	.tabbar-label {
		font-size: 0.62rem;
		font-weight: 600;
		line-height: 1.1;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}
@media (min-width: 861px) and (display-mode: browser) {
	.site-tabbar { display: none !important; }
	body.has-tabbar { padding-bottom: 0 !important; }
	body.has-tabbar .site-header .site-nav { display: flex !important; }
	body.has-tabbar .site-footer { display: block !important; }
}

/* Desktop: nav + auth inline on the right */
@media (min-width: 861px) {
	.header-inner { flex-wrap: nowrap; }
	.header-right {
		display: flex;
		align-items: center;
		gap: 1.15rem;
		margin-left: auto;
	}
	.site-nav { display: flex; }
	.header-auth { display: flex; margin-left: 0; }
}

/* Mobile / PWA: auth in header; modules via bottom tabs */
@media (max-width: 860px) {
	.site-nav { display: none; }
	.header-right {
		margin-left: auto;
		gap: 0;
	}
	.header-auth { display: flex; }
}

@media (max-width: 800px) {
	.product-layout { grid-template-columns: 1fr; gap: 1rem; }
	.admin-body { grid-template-columns: 1fr; }
	.grid-modules { grid-template-columns: 1fr 1fr; }
	.inline-form { max-width: 100%; }
	.thumb { max-width: min(220px, 100%); }
}

/* Admin mobile hamburger drawer */
.admin-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.admin-nav__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1rem;
}
.admin-nav__top .brand { margin-bottom: 0; }
.admin-nav-close {
	display: none;
	border: 0;
	background: none;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.admin-scrim {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(15, 42, 107, 0.45);
}
.admin-scrim[hidden] { display: none !important; }

@media (max-width: 800px) {
	.admin-menu-toggle { display: inline-flex; }
	.admin-nav-close { display: block; }
	.admin-body { grid-template-columns: 1fr; }
	.admin-nav {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 100;
		width: min(280px, 86vw);
		height: 100vh;
		height: 100dvh;
		padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
		transform: translateX(-105%);
		transition: transform .22s ease;
		overflow-y: auto;
	}
	body.admin-nav-open .admin-nav { transform: translateX(0); }
	body.admin-nav-open .admin-scrim {
		display: block;
	}
	body.admin-nav-open { overflow: hidden; }
}
.jsa-pwa-modal {
	position: fixed; inset: 0; z-index: 200;
	display: flex; align-items: flex-end; justify-content: center;
	padding: 1rem;
	pointer-events: none;
}
.jsa-pwa-modal[hidden] { display: none !important; }
.jsa-pwa-modal.is-open { pointer-events: auto; }
.jsa-pwa-modal__scrim {
	position: absolute; inset: 0;
	background: rgba(15, 42, 107, 0.35);
	opacity: 0; transition: opacity .2s ease;
}
.jsa-pwa-modal.is-open .jsa-pwa-modal__scrim { opacity: 1; }
.jsa-pwa-modal__dialog {
	position: relative;
	width: min(100%, 420px);
	background: #fff;
	border-radius: 14px 14px 10px 10px;
	padding: 1.25rem 1.15rem 1.35rem;
	box-shadow: 0 16px 40px rgba(15,42,107,.18);
	transform: translateY(12px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}
.jsa-pwa-modal.is-open .jsa-pwa-modal__dialog {
	transform: translateY(0);
	opacity: 1;
}
.jsa-pwa-modal__dialog h3 { margin: 0 0 .75rem; color: var(--blue-ink); }
.jsa-pwa-modal__close {
	position: absolute; top: .55rem; right: .65rem;
	border: 0; background: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.jsa-pwa-modal__dialog.jsa-pwa-prompt-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: .75rem;
	padding-right: 2.2rem;
	max-width: 100%;
}
.jsa-pwa-prompt-card__icon img { border-radius: 10px; }
.jsa-pwa-prompt-card__body { min-width: 0; }
.jsa-pwa-prompt-card__text {
	margin: 0;
	font-weight: 600;
	color: var(--text);
	font-size: .95rem;
	overflow-wrap: anywhere;
}
.jsa-pwa-prompt-card__btn {
	border: 0; border-radius: 8px; padding: .55rem .9rem;
	background: var(--jsa-pwa-theme, var(--blue));
	color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.jsa-pwa-steps { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.jsa-pwa-steps li { margin: .35rem 0; }
body.jsa-pwa-lock { overflow: hidden; }
@media (min-width: 640px) {
	.jsa-pwa-modal { align-items: center; }
}

/* —— PWA splash screen —— */
html.jsa-splash-active,
html.jsa-splash-active body {
	overflow: hidden;
}
.jsa-splash {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--jsa-splash-bg, var(--bg, #F5F7FB));
	opacity: 0;
	transition: opacity .3s ease;
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.jsa-splash[hidden] { display: none !important; }
.jsa-splash.is-visible { opacity: 1; }
.jsa-splash.is-hiding { opacity: 0; }
.jsa-splash__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 420px);
	padding: 1.5rem;
	text-align: center;
}
.jsa-splash__logo {
	width: min(148px, 42vw);
	height: auto;
	border-radius: 22px;
	animation: jsa-splash-pop .55s ease both;
}
.jsa-splash__image {
	max-width: min(320px, 86vw);
	max-height: 70vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	animation: jsa-splash-pop .55s ease both;
}
.jsa-splash__custom {
	width: 100%;
	color: var(--blue-ink, #0F2A6B);
	animation: jsa-splash-pop .55s ease both;
}
.jsa-splash__custom img { margin-inline: auto; max-width: 100%; }
@keyframes jsa-splash-pop {
	from { opacity: 0; transform: scale(.92); }
	to { opacity: 1; transform: scale(1); }
}

/* —— Mobile UI polish + overflow lockdown —— */
@media (max-width: 860px) {
	.container,
	.header-inner,
	.footer-inner {
		width: min(var(--max), calc(100% - 1.25rem));
	}
	.page { padding: 0.85rem 0 1.5rem; }
	.header-auth { gap: 0.35rem; }
	.header-auth-link { font-size: 0.85rem; padding: 0.3rem 0.1rem; }
	.header-auth .btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
	.section-head {
		padding: 1rem;
		max-width: 100%;
		min-width: 0;
	}
	.section-head h1 {
		font-size: 1.25rem;
		overflow-wrap: anywhere;
	}
	.section-head .actions {
		width: 100%;
	}
	.section-head .actions .btn,
	.section-head .actions form {
		flex: 1 1 auto;
	}
	.form-card {
		max-width: 100%;
		padding: 1rem;
		min-width: 0;
	}
	.auth-card {
		width: min(420px, 100%);
		padding: 1.15rem;
	}
	.hero-copy { padding: 1rem; }
	.feed-card-body { padding: 0.9rem 0.95rem 1rem; }
	.feed-card-body h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
	.search-shop,
	.search-bible {
		width: 100%;
		max-width: 100%;
	}
	.search-shop .btn,
	.search-bible .btn {
		flex: 0 0 auto;
	}
	.search-bible select {
		flex: 1 1 5rem;
		min-width: 0;
		max-width: 100%;
	}
	.bible-book-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.bible-book {
		font-size: 0.7rem;
		padding: 0.5rem 0.25rem;
		overflow-wrap: anywhere;
	}
	.bible-passage { padding: 1rem; }
	.product-grid { gap: 0.55rem; }
	.product-name { font-size: 0.82rem; padding: 0 0.45rem; }
	.product-price { font-size: 0.86rem; padding: 0 0.45rem; }
	.product-meta { padding: 0 0.45rem; }
	.cat-grid-4 { gap: 0.35rem; }
	.cat-card { padding: 0.5rem 0.2rem; }
	.cat-label { font-size: 0.65rem; }
	.cat-icon,
	.cat-icon-all::before {
		width: 32px;
		height: 32px;
	}
	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.85rem;
	}
	.footer-end { align-items: flex-start; }
	.fn-credit { align-self: flex-start; }
	.social-meta,
	.social-actions {
		max-width: 100%;
		min-width: 0;
	}
	.social-actions .btn,
	.wa-btn,
	.product-detail .btn {
		max-width: 100%;
	}
	.product-detail h1 {
		font-size: 1.25rem;
		overflow-wrap: anywhere;
	}
	.video-wrap { margin: 0.75rem 0; border-radius: 8px; }
	.pager {
		gap: 0.5rem;
		flex-wrap: wrap;
		font-size: 0.9rem;
	}
	.jsa-pwa-modal {
		padding: 0.65rem;
		padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
	}
	.jsa-pwa-modal__dialog {
		width: 100%;
		max-width: 100%;
		padding: 1.1rem 1rem 1.2rem;
	}
	.jsa-pwa-modal__dialog.jsa-pwa-prompt-card {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
	}
	.jsa-pwa-prompt-card__btn {
		grid-column: 1 / -1;
		width: 100%;
		justify-self: stretch;
	}
	.jsa-pwa-prompt-card__text { font-size: 0.88rem; }
	.admin-main { padding: 0.85rem 0.75rem 1.5rem; }
	.admin-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
	.admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.admin-tile { min-height: 118px; padding: 0.85rem 0.5rem; }
	.admin-tile__label { font-size: 0.9rem; }
	.admin-tile__hint { font-size: 0.72rem; }
	/* Tables: horizontal scroll instead of page overflow */
	table.table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-radius: 10px;
	}
	table.table thead,
	table.table tbody {
		display: table;
		width: 100%;
		min-width: 560px;
	}
	table.table th,
	table.table td {
		font-size: 0.82rem;
		padding: 0.55rem 0.6rem;
		white-space: nowrap;
	}
	.flash { padding: 0.65rem 0.85rem; overflow-wrap: anywhere; }
	code { overflow-wrap: anywhere; word-break: break-all; }
}

@media (max-width: 380px) {
	.cat-grid-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.product-grid { gap: 0.45rem; }
	.header-auth-link { display: none; }
	.bible-book-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.grid-modules { gap: 0.55rem; }
	.module-card { padding: 0.85rem; }
}

