/* PureRead Books — foreign-language Phase 3 surfaces
 * (banner, footer language picker, /<code>/ landing block, per-book switcher) */

/* ===== Browser-language banner ===== */
.prb-lang-banner {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem 1.1rem;
	background: #3d5a73;
	color: #fff;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 1.05rem;
	border-bottom: 2px solid #d4a34a;
}
.prb-lang-banner-go {
	color: #fff !important;            /* defeat host-theme anchor color */
	text-decoration: underline;
	text-decoration-color: rgba(255,255,255,0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	font-weight: 600;
	flex: 1;
	transition: color .15s ease, text-decoration-color .15s ease;
}
.prb-lang-banner-go:hover,
.prb-lang-banner-go:focus {
	color: #f4c869 !important;         /* warm gold matching the bottom accent line */
	text-decoration: underline;
	text-decoration-color: #f4c869;
	text-decoration-thickness: 2px;
}
.prb-lang-banner-dismiss {
	background: transparent;
	border: none;
	color: #fff !important;
	font-size: 1.4rem;
	line-height: 1;
	padding: 0 .25rem;
	cursor: pointer;
	opacity: .85;
}
.prb-lang-banner-dismiss:hover { opacity: 1; color: #f4c869 !important; }

/* ===== Footer language picker ===== */
.prb-lang-footer-picker {
	padding: 1rem;
	text-align: center;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: .9rem;
	color: #5b6b7c;
}
.prb-lang-footer-label { margin-right: .5rem; font-weight: 600; }
.prb-lang-footer-link {
	color: #3d5a73;
	text-decoration: none;
	padding: 0 .25rem;
}
.prb-lang-footer-link:hover { text-decoration: underline; }
.prb-lang-footer-link.is-current { color: #5b6b7c; font-weight: 700; pointer-events: none; }

/* ===== /<code>/ landing block ===== */
.prb-lang-landing {
	padding: 2.25rem 1.5rem;
	margin: 1.5rem 0 2rem;
	background: linear-gradient(135deg, #f6f1e7 0%, #ece3d2 100%);
	border-radius: 6px;
	text-align: center;
	font-family: "Lora", Georgia, serif;
	color: #2d4257;
}
.prb-lang-landing-title { margin: 0 0 .75rem; font-size: 1.65rem; font-weight: 700; }
.prb-lang-landing-intro { margin: 0 auto 1.25rem; max-width: 640px; line-height: 1.55; font-size: 1.05rem; }
.prb-lang-landing-cta {
	display: inline-block;
	padding: .65rem 1.4rem;
	background: #3d5a73;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-weight: 600;
}
.prb-lang-landing-cta:hover { background: #2d4257; color: #fff; }

/* ===== Per-book switcher (renders after the book title, inside the themed hero) =====
 * The book hero has a dark blue/colored background; the switcher's text colors must be
 * light to remain readable. */
.prb-lang-switcher {
	margin: .7rem 0 1.1rem;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 1.15rem;
	line-height: 1.5;
	color: rgba(255,255,255,0.85);
}
.prb-lang-switcher-icon {
	display: inline-block;
	width: 19px;
	height: 19px;
	margin-right: .55rem;
	vertical-align: -4px;
	opacity: .85;
}
.prb-lang-switcher-label { font-weight: 600; margin-right: .4rem; color: rgba(255,255,255,0.85); }
.prb-lang-switcher-link {
	color: #fff;
	text-decoration: none;
	padding: 0 .15rem;
	border-bottom: 1px solid rgba(255,255,255,0.42);
	font-weight: 600;
}
.prb-lang-switcher-link:hover { border-bottom-color: rgba(255,255,255,0.95); }
