/**
 * Fans Who Love Me — Scripture Moments
 * Frontend styles
 *
 * Brand palette:
 *   Tiffany Blue  #81D8D0
 *   Gold          #D4AF37
 *   Navy          #1A1F36
 *   Soft Cream    #FFF8EA
 */

.fwlm-scripture-moment {
	--fwlm-tiffany: #81D8D0;
	--fwlm-gold:    #D4AF37;
	--fwlm-navy:    #1A1F36;
	--fwlm-cream:   #FFF8EA;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--fwlm-navy);
	margin: 2.5rem 0;
	line-height: 1.65;
	max-width: 100%;
	box-sizing: border-box;
}

.fwlm-scripture-moment *,
.fwlm-scripture-moment *::before,
.fwlm-scripture-moment *::after {
	box-sizing: border-box;
}

/* ─────────────────────────────────────────────
   Defining Moment callout
   ───────────────────────────────────────────── */

.fwlm-defining-moment {
	margin: 0 0 1.5rem;
}

.fwlm-defining-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fwlm-navy);
	background: var(--fwlm-tiffany);
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	margin-bottom: 0.85rem;
	line-height: 1;
}

.fwlm-defining-callout {
	background: var(--fwlm-cream);
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-left: 4px solid var(--fwlm-gold);
	border-radius: 14px;
	padding: 1.6rem 1.85rem;
	box-shadow: 0 1px 3px rgba(26, 31, 54, 0.06);
}

.fwlm-defining-text {
	font-size: 1.2rem;
	font-style: italic;
	color: var(--fwlm-navy);
	margin: 0 0 1rem;
}

.fwlm-defining-text p {
	margin: 0 0 0.75rem;
}

.fwlm-defining-text p:last-child {
	margin-bottom: 0;
}

.fwlm-defining-ref {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--fwlm-navy);
}

.fwlm-defining-ref .fwlm-ref {
	letter-spacing: 0.02em;
}

.fwlm-defining-ref .fwlm-translation-tag {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	background: var(--fwlm-gold);
	color: var(--fwlm-navy);
	padding: 0.22rem 0.6rem;
	border-radius: 999px;
	line-height: 1;
}

/* ─────────────────────────────────────────────
   Collapsible chapter
   ───────────────────────────────────────────── */

.fwlm-chapter-details {
	margin: 1.25rem 0;
	border: 1px solid rgba(26, 31, 54, 0.12);
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
}

.fwlm-chapter-summary {
	cursor: pointer;
	padding: 1rem 1.25rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: var(--fwlm-cream);
	font-weight: 600;
	color: var(--fwlm-navy);
	transition: background 0.18s ease;
}

.fwlm-chapter-summary::-webkit-details-marker,
.fwlm-chapter-summary::marker {
	display: none;
	content: "";
}

.fwlm-chapter-summary:hover,
.fwlm-chapter-summary:focus-visible {
	background: #fff3d6;
	outline: none;
}

.fwlm-chapter-summary-label {
	flex: 1 1 auto;
}

.fwlm-chapter-summary-ref {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(26, 31, 54, 0.7);
}

.fwlm-chapter-summary-icon {
	display: inline-block;
	transition: transform 0.22s ease;
	color: var(--fwlm-gold);
	font-size: 1.05rem;
}

.fwlm-chapter-details[open] .fwlm-chapter-summary-icon {
	transform: rotate(180deg);
}

.fwlm-chapter-body {
	padding: 1.6rem 1.85rem;
	background: #ffffff;
	border-top: 1px solid rgba(26, 31, 54, 0.08);
}

.fwlm-chapter-text {
	font-size: 1.02rem;
	line-height: 1.8;
	color: var(--fwlm-navy);
}

.fwlm-chapter-text p {
	margin: 0 0 1rem;
}

.fwlm-chapter-text p:last-child {
	margin-bottom: 0;
}

/* Verse highlight inside the chapter */
.fwlm-verse-highlight {
	background: linear-gradient(transparent 60%, rgba(129, 216, 208, 0.55) 60%);
	color: var(--fwlm-navy);
	padding: 0 0.1em;
	border-radius: 2px;
	font-weight: 500;
}

/* ─────────────────────────────────────────────
   Attribution
   ───────────────────────────────────────────── */

.fwlm-attribution {
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: rgba(26, 31, 54, 0.04);
	font-size: 0.82rem;
	color: rgba(26, 31, 54, 0.78);
	line-height: 1.55;
}

.fwlm-attribution-name {
	font-weight: 600;
	display: block;
	margin-bottom: 0.25rem;
	color: var(--fwlm-navy);
}

.fwlm-attribution-text {
	margin: 0;
}

/* ─────────────────────────────────────────────
   Empty / not-yet-configured notice (admins only)
   ───────────────────────────────────────────── */

.fwlm-notice {
	border: 1px dashed rgba(26, 31, 54, 0.25);
	background: rgba(255, 248, 234, 0.6);
	color: rgba(26, 31, 54, 0.75);
	padding: 0.85rem 1rem;
	border-radius: 10px;
	font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   Mobile
   ───────────────────────────────────────────── */

@media (max-width: 640px) {
	.fwlm-scripture-moment {
		margin: 2rem 0;
	}
	.fwlm-defining-callout {
		padding: 1.25rem 1.25rem;
		border-radius: 12px;
	}
	.fwlm-defining-text {
		font-size: 1.08rem;
	}
	.fwlm-chapter-body {
		padding: 1.25rem;
	}
	.fwlm-chapter-summary {
		padding: 0.9rem 1rem;
		flex-wrap: wrap;
	}
	.fwlm-chapter-summary-ref {
		width: 100%;
		order: 3;
		margin-top: 0.15rem;
	}
}
