/* Cyber Grapes Bible Reader -- mobile-first styles */

.cgbr-chapter-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 20px 40px;
	font-size: 18px;
	line-height: 1.7;
}

.cgbr-chapter-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0 16px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 20px;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 5;
}

.cgbr-back-link {
	color: #003087;
	font-weight: 600;
	text-decoration: none;
	font-size: 15px;
}

.cgbr-book-name {
	color: #6b6b6b;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cgbr-featured-image {
	margin: 0 -20px 20px;
}

.cgbr-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

@media (min-width: 480px) {
	.cgbr-featured-image {
		margin: 0 0 20px;
		border-radius: 12px;
		overflow: hidden;
	}
}

.cgbr-chapter-title {
	font-size: 28px;
	margin: 0 0 20px;
	color: #003087;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.cgbr-translation-badge {
	font-size: 12px;
	background: #C9A84C;
	color: #fff;
	padding: 3px 8px;
	border-radius: 4px;
	vertical-align: middle;
}

.cgbr-translation-switcher {
	margin: 0 0 20px;
}

.cgbr-translation-select {
	font-size: 14px;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
	color: #003087;
	background: #f4f6fb;
}

.cgbr-verse {
	margin: 0 0 14px;
}

.cgbr-verse-num {
	color: #C9A84C;
	font-weight: 700;
	margin-right: 4px;
}

.cgbr-chapter-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.cgbr-nav-prev,
.cgbr-nav-next {
	flex: 1;
	text-align: center;
	padding: 14px 10px;
	border-radius: 8px;
	background: #f4f6fb;
	color: #003087;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.cgbr-nav-disabled {
	flex: 1;
	text-align: center;
	padding: 14px 10px;
	color: #b3b3b3;
	font-size: 14px;
}

.cgbr-nav-spacer {
	flex: 1;
}

.cgbr-donate-strip {
	text-align: center;
	margin-top: 24px;
}

.cgbr-donate-link {
	font-size: 13px;
	color: #C9A84C;
	text-decoration: underline;
}

/* Browser (app-style index) */

.cgbr-browser {
	max-width: 720px;
	margin: 0 auto;
	padding: 10px 16px 40px;
}

.cgbr-toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.cgbr-browser-search {
	flex: 1;
	min-width: 200px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	box-sizing: border-box;
}

.cgbr-view-toggle {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.cgbr-view-btn {
	border: none;
	background: #f9fafc;
	color: #003087;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.cgbr-view-btn.is-active {
	background: #003087;
	color: #fff;
}

.cgbr-grid-group-label {
	font-size: 13px;
	font-weight: 600;
	color: #6b6b6b;
	margin: 10px 0 8px;
}

.cgbr-book-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 8px;
}

.cgbr-book-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	text-decoration: none;
	background: #f9fafc;
}

.cgbr-tile-name {
	color: #003087;
	font-weight: 600;
	font-size: 15px;
}

.cgbr-tile-meta {
	color: #999;
	font-size: 12px;
}

.cgbr-tile-pending {
	opacity: 0.6;
}

.cgbr-tile-pending .cgbr-tile-name {
	color: #6b6b6b;
}

@media (min-width: 480px) {
	.cgbr-book-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.cgbr-testament-block {
	margin-bottom: 20px;
}

.cgbr-testament-heading {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #C9A84C;
	font-weight: 700;
	margin: 0 0 10px;
}

.cgbr-group {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	margin-bottom: 10px;
	overflow: hidden;
}

.cgbr-group-header {
	width: 100%;
	text-align: left;
	background: #f9fafc;
	border: none;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #003087;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.cgbr-group-body {
	display: none;
	padding: 6px 10px 10px;
}

.cgbr-group.is-open .cgbr-group-body {
	display: block;
}

.cgbr-book-row {
	display: block;
	padding: 10px 8px;
	text-decoration: none;
	color: #222;
	border-bottom: 1px solid #f0f0f0;
	font-size: 15px;
}

.cgbr-book-row:last-child {
	border-bottom: none;
}

.cgbr-book-status-pending {
	color: #b3b3b3;
	font-style: italic;
}

/* Book intro page */

.cgbr-intro-block {
	margin-bottom: 22px;
}

.cgbr-intro-heading {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #C9A84C;
	font-weight: 700;
	margin: 0 0 8px;
}

.cgbr-intro-body p {
	margin: 0 0 12px;
}

.cgbr-scholarly-details {
	margin: 0 0 22px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px 16px;
}

.cgbr-scholarly-summary {
	font-weight: 600;
	color: #003087;
	cursor: pointer;
}

.cgbr-scholarly-details .cgbr-intro-body {
	margin-top: 14px;
}

/* Chapter FAQ / reflection */

.cgbr-faq-section,
.cgbr-reflection-section {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
}

.cgbr-section-heading {
	font-size: 20px;
	color: #003087;
	margin: 0 0 14px;
}

.cgbr-faq-item {
	margin-bottom: 16px;
}

.cgbr-faq-question {
	font-weight: 700;
	margin: 0 0 4px;
}

.cgbr-faq-answer {
	margin: 0;
	color: #333;
}

.cgbr-reflection-list {
	margin: 0;
	padding-left: 20px;
}

.cgbr-reflection-list li {
	margin-bottom: 10px;
}

.cgbr-chatbot-prompt {
	font-size: 14px;
	color: #6b6b6b;
	margin-top: 12px;
	font-style: italic;
}

@media (min-width: 600px) {
	.cgbr-chapter-page {
		font-size: 19px;
	}
}
