/*
 * בתי דין בפריסה ארצית — design 1a (night-blue & gold), RTL.
 * All rules are scoped under .bda-root so the plugin never fights the theme.
 */

.bda-root {
	--bda-bg: #11151d;
	--bda-bg-alt: #0d1015;
	--bda-gold: #c9a24a;
	--bda-text: #efe6d3;
	--bda-muted: #cfc6b4;
	--bda-dim: #a8a091;
	--bda-line: rgba(201, 162, 74, .18);
	--bda-line-soft: rgba(201, 162, 74, .2);
	--bda-serif: "Suez One", Georgia, "Times New Roman", serif;
	--bda-sans: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--bda-script: "Cormorant Garamond", Georgia, serif;
	--bda-maxw: 1160px;
	--bda-pad: 44px;

	direction: rtl;
	background: var(--bda-bg);
	color: var(--bda-text);
	font-family: var(--bda-sans);
	line-height: 1.6;
	overflow-x: hidden;
}

.bda-root *,
.bda-root *::before,
.bda-root *::after {
	box-sizing: border-box;
}

.bda-root img {
	max-width: 100%;
	height: auto;
	display: block;
}

.bda-root h1,
.bda-root h2,
.bda-root h3 {
	font-family: var(--bda-serif);
	margin: 0;
	line-height: 1.25;
}

.bda-root a {
	color: inherit;
	text-decoration: none;
}

.bda-center {
	text-align: center;
}

.bda-gold {
	color: var(--bda-gold);
}

/* ---- CTA buttons ---- */
.bda-cta {
	display: inline-block;
	padding: 15px 32px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .3px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
	min-height: 44px;
}

.bda-cta--solid {
	background: var(--bda-gold);
	color: var(--bda-bg);
}
.bda-cta--solid:hover {
	background: #d9b25c;
}

.bda-cta--outline {
	border-color: rgba(239, 230, 211, .3);
	color: var(--bda-text);
}
.bda-cta--outline:hover {
	border-color: var(--bda-gold);
	color: var(--bda-gold);
}

.bda-cta--ghost {
	padding: 11px 24px;
	border-color: var(--bda-gold);
	color: var(--bda-gold);
	font-size: 13px;
	font-weight: 500;
	min-height: 0;
}
.bda-cta--ghost:hover {
	background: var(--bda-gold);
	color: var(--bda-bg);
}

/* ---- Header ---- */
.bda-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--bda-pad);
	border-bottom: 1px solid var(--bda-line);
	flex-wrap: wrap;
}

.bda-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bda-brand-mark {
	width: 38px;
	height: 38px;
	border: 1.5px solid var(--bda-gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: none;
	background: #fff;
}
.bda-brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 3px;
}
.bda-brand-name {
	font-family: var(--bda-serif);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: .5px;
}

.bda-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 14px;
	color: var(--bda-muted);
	flex-wrap: wrap;
}
.bda-nav a:hover {
	color: var(--bda-gold);
}
.bda-nav a[aria-current="page"] {
	color: var(--bda-gold);
}
.bda-nav-pending {
	color: var(--bda-dim);
	opacity: .5;
	cursor: help;
	border-bottom: 1px dashed var(--bda-dim);
}
.bda-nav-donate {
	color: var(--bda-gold) !important;
	font-weight: 600;
}

/* ---- Nav dropdowns (בית הדין / בית ההוראה / פעילויות) ---- */
.bda-nav-item {
	position: relative;
	display: flex;
	align-items: center;
}
.bda-has-dropdown {
	gap: 2px;
}
.bda-nav-toggle {
	background: none;
	border: none;
	color: inherit;
	font-size: 10px;
	cursor: pointer;
	padding: 4px;
}
.bda-nav-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 220px;
	/* No margin-top: any gap here is dead space (not part of the trigger or
	   the menu), which breaks the :hover chain the instant the pointer
	   crosses it — the menu would close before a click could land. The
	   8px of breathing room is padding-top on the menu itself instead. */
	margin: 0;
	padding: 14px 0 8px;
	list-style: none;
	background: var(--bda-bg-alt);
	border: 1px solid var(--bda-line);
	border-radius: 4px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
	display: none;
	z-index: 40;
}
.bda-has-dropdown.is-open .bda-nav-dropdown,
.bda-has-dropdown:hover .bda-nav-dropdown,
.bda-has-dropdown:focus-within .bda-nav-dropdown {
	display: block;
}
.bda-nav-dropdown li a {
	display: block;
	padding: 8px 18px;
	font-size: 13px;
	white-space: nowrap;
}
.bda-nav-dropdown li a:hover {
	background: rgba(201, 162, 74, .1);
}

/* ---- Nav search ---- */
.bda-nav-search-wrap {
	position: relative;
}
.bda-nav-search {
	display: flex;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--bda-line);
	border-radius: 20px;
	padding: 2px 4px 2px 10px;
}
.bda-nav-search input[type="search"] {
	background: transparent;
	border: none;
	color: var(--bda-text);
	font-size: 13px;
	width: 96px;
	padding: 4px 0;
}
.bda-nav-search input[type="search"]:focus {
	outline: none;
	width: 140px;
}
.bda-nav-search-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 6px;
	border-radius: 50%;
}
.bda-nav-search-btn:hover {
	background: rgba(201, 162, 74, .15);
}
.bda-search-results {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	width: 320px;
	max-width: 80vw;
	max-height: 380px;
	overflow-y: auto;
	background: var(--bda-bg);
	border: 1px solid var(--bda-line);
	border-radius: 6px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
	padding: 6px;
	z-index: 60;
}
.bda-search-result {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 4px;
	text-decoration: none;
	color: var(--bda-text);
}
.bda-search-result:hover,
.bda-search-result.is-active {
	background: rgba(201, 162, 74, .12);
}
.bda-search-result-title {
	font-size: 13.5px;
	font-weight: 600;
}
.bda-search-result-page {
	font-size: 11px;
	color: var(--bda-gold);
}
.bda-search-result-excerpt {
	font-size: 12px;
	color: var(--bda-dim);
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bda-search-empty {
	margin: 0;
	padding: 12px;
	font-size: 13px;
	color: var(--bda-dim);
	text-align: center;
}
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---- Hero ---- */
.bda-hero {
	position: relative;
	padding: 90px var(--bda-pad) 70px;
	overflow: hidden;
}
.bda-hero--compact {
	padding: 64px var(--bda-pad) 48px;
}
.bda-hero--compact .bda-hero-lead {
	max-width: 640px;
}
.bda-hero::before,
.bda-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(10px);
	pointer-events: none;
}
.bda-hero::before {
	top: -140px;
	left: -100px;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(201, 162, 74, .28), transparent 70%);
}
.bda-hero::after {
	bottom: -180px;
	right: -120px;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(139, 163, 201, .16), transparent 70%);
}
.bda-hero-inner {
	position: relative;
	max-width: 720px;
}

/* Hero video strip — a separate full-bleed band between the hero and the
   marquee. The title never sits on top of the footage; the video gets its
   own uninterrupted, full-width stage. The box matches the source video's
   16:9 aspect ratio exactly, so nothing is ever cropped top/bottom. */
.bda-hero-strip {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-top: 1px solid var(--bda-line);
	border-bottom: 1px solid var(--bda-line);
}
.bda-hero-strip-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--bda-bg-alt);
	display: block;
}
.bda-hero-title {
	font-size: 52px;
	line-height: 1.22;
	font-weight: 700;
	margin: 0 0 22px;
}
.bda-hero-lead {
	font-size: 17px;
	line-height: 1.7;
	color: var(--bda-muted);
	max-width: 560px;
	margin: 0 0 30px;
}
.bda-hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ---- Marquee ---- */
.bda-marquee {
	border-top: 1px solid var(--bda-line);
	border-bottom: 1px solid var(--bda-line);
	padding: 16px 0;
	overflow: hidden;
	white-space: nowrap;
}
.bda-marquee-track {
	display: inline-flex;
	gap: 48px;
	font-family: var(--bda-serif);
	font-size: 22px;
	color: rgba(239, 230, 211, .5);
	animation: bda-marquee 26s linear infinite;
	will-change: transform;
}
@keyframes bda-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---- About ---- */
.bda-about {
	padding: 70px var(--bda-pad);
	display: flex;
	gap: 50px;
	align-items: center;
}
.bda-about-text { flex: 1; }
.bda-about-media { flex: 1; }
.bda-about--rev {
	flex-direction: row-reverse;
	background: var(--bda-bg-alt);
}
.bda-about-media img {
	width: 100%;
	max-height: 320px;
	object-fit: contain;
	border-radius: 4px;
}
.bda-about h2 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 18px;
}
.bda-about-body {
	font-size: 15.5px;
	line-height: 1.9;
	color: var(--bda-muted);
	margin: 0 0 16px;
}
/* ---- Branches ---- */
.bda-branches {
	padding: 70px var(--bda-pad);
	background: var(--bda-bg-alt);
}
.bda-branches h2 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 36px;
}
.bda-branch-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	max-width: var(--bda-maxw);
	margin: 0 auto;
}
.bda-branch-card {
	position: relative;
	border: 1px solid var(--bda-line-soft);
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, .02);
	transition: border-color .2s ease, transform .2s ease;
}
.bda-branch-card:hover {
	border-color: var(--bda-gold);
	transform: translateY(-3px);
}
.bda-card--linked {
	cursor: pointer;
}
/* "Stretched link" — the visible link stays on the branch/location name,
   but its ::after covers the whole card so a click anywhere lands on it.
   Any other real link in the card (e.g. the phone number) needs its own
   stacking context above the overlay — see .bda-branch-phone below. */
.bda-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.bda-branch-body {
	padding: 4px 22px 22px;
	text-align: center;
}
.bda-branch-body h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 10px;
	color: var(--bda-gold);
}
.bda-branch-body h3 a:hover {
	text-decoration: underline;
}
.bda-branch-address,
.bda-branch-note,
.bda-branch-secretary {
	font-size: 14px;
	color: var(--bda-muted);
	margin: 0 0 6px;
}
.bda-branch-note {
	color: var(--bda-dim);
	font-style: italic;
}
.bda-branch-phone {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--bda-text);
	direction: ltr;
}
.bda-branch-phone:hover {
	color: var(--bda-gold);
}

/* ---- Process ---- */
.bda-process {
	padding: 70px var(--bda-pad);
}
.bda-process h2 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 14px;
}
.bda-process-intro {
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--bda-dim);
	margin: 0 0 36px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
}
.bda-process-intro a {
	color: var(--bda-gold);
}
.bda-process-grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: var(--bda-maxw);
}
.bda-process-step {
	border-bottom: 1px solid var(--bda-line);
	padding-bottom: 28px;
}
.bda-process-step:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.bda-process-num {
	display: block;
	font-family: var(--bda-serif);
	font-size: 34px;
	color: var(--bda-gold);
	margin-bottom: 10px;
}
.bda-process-step h3 {
	font-family: var(--bda-sans);
	font-size: 16.5px;
	font-weight: 700;
	margin: 0 0 8px;
}
.bda-process-step p {
	font-size: 14px;
	color: var(--bda-dim);
	line-height: 1.7;
	margin: 0;
	max-width: 720px;
}
.bda-process-sublist {
	margin: 12px 0 0;
	padding-inline-start: 20px;
	max-width: 720px;
}
.bda-process-sublist li {
	font-size: 14px;
	color: var(--bda-dim);
	line-height: 1.7;
}
.bda-process-link {
	margin: 10px 0 0;
	font-size: 13.5px;
}
.bda-process-link a {
	color: var(--bda-gold);
	text-decoration: underline;
}
.bda-process-link--pending {
	color: var(--bda-dim);
	font-style: italic;
}

/* ---- Blog ---- */
.bda-blog {
	padding: 70px var(--bda-pad);
}
.bda-blog h2 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 30px;
}
.bda-blog-grid {
	display: flex;
	gap: 24px;
	max-width: var(--bda-maxw);
	flex-wrap: wrap;
}
.bda-blog-card {
	flex: 1 1 320px;
	border: 1px solid rgba(201, 162, 74, .2);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color .2s ease;
}
.bda-blog-card:hover {
	border-color: var(--bda-gold);
}
.bda-blog-media {
	height: 160px;
	background: #1a2030;
	overflow: hidden;
}
.bda-blog-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bda-blog-media-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(135deg, #1a2030, #1a2030 12px, #20273a 12px, #20273a 24px);
}
.bda-blog-body {
	padding: 20px;
}
.bda-blog-body h3 {
	font-family: var(--bda-sans);
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
}
.bda-blog-body p {
	font-size: 13px;
	color: var(--bda-dim);
	line-height: 1.6;
	margin: 0;
}

/* ---- Contact ---- */
.bda-contact {
	padding: 70px var(--bda-pad);
	background: var(--bda-bg-alt);
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
}
.bda-contact-info { flex: 1 1 320px; }
.bda-contact-form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.bda-contact h2 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 18px;
}
.bda-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bda-contact-list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bda-contact-label {
	font-size: 12px;
	letter-spacing: .5px;
	color: var(--bda-dim);
}
.bda-contact-list a {
	color: var(--bda-gold);
	direction: ltr;
	align-self: flex-start;
}
.bda-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bda-field-label {
	font-size: 13px;
	color: var(--bda-muted);
}
.bda-field input,
.bda-field textarea {
	width: 100%;
	padding: 13px 16px;
	background: transparent;
	border: 1px solid rgba(239, 230, 211, .25);
	border-radius: 2px;
	color: var(--bda-text);
	font-family: inherit;
	font-size: 14px;
}
.bda-field input:focus,
.bda-field textarea:focus {
	outline: none;
	border-color: var(--bda-gold);
}
.bda-form-submit {
	border: none;
	margin-top: 6px;
	text-align: center;
}
.bda-form-status {
	font-size: 14px;
	min-height: 0;
}
.bda-form-status.is-success { color: #8fd18f; }
.bda-form-status.is-error   { color: #e79a9a; }
.bda-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Footer ---- */
.bda-footer {
	padding: 26px var(--bda-pad);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12.5px;
	color: var(--bda-dim);
	border-top: 1px solid rgba(201, 162, 74, .15);
	flex-wrap: wrap;
}

/* ---- Ask-the-Rav floating button ---- */
.bda-ask-bubble {
	position: fixed;
	inset-inline-end: 22px;
	inset-block-end: 22px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--bda-gold);
	color: var(--bda-bg);
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
	transition: transform .18s ease, box-shadow .18s ease;
}
.bda-ask-bubble:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
}
@media (max-width: 640px) {
	.bda-ask-bubble-label { display: none; }
	.bda-ask-bubble { padding: 14px; font-size: 18px; }
}

/* ---- Ask form (forum page) ---- */
.bda-ask {
	background: var(--bda-bg-alt);
}

/* ---- FAQ accordion (forum page) ---- */
.bda-faq-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: var(--bda-maxw);
	margin: 0 auto;
}
.bda-faq-item {
	border: 1px solid var(--bda-line-soft);
	border-radius: 6px;
	background: rgba(255, 255, 255, .02);
	overflow: hidden;
}
.bda-faq-item[open] {
	border-color: var(--bda-gold);
}
.bda-faq-question {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--bda-text);
}
.bda-faq-question::-webkit-details-marker {
	display: none;
}
.bda-faq-question::after {
	content: "+";
	margin-inline-start: auto;
	color: var(--bda-gold);
	font-size: 20px;
	line-height: 1;
	flex: none;
}
.bda-faq-item[open] .bda-faq-question::after {
	content: "−";
}
.bda-faq-q-mark,
.bda-faq-a-mark {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bda-serif);
	font-size: 13px;
	font-weight: 700;
}
.bda-faq-q-mark {
	background: rgba(201, 162, 74, .15);
	color: var(--bda-gold);
}
.bda-faq-a-mark {
	background: var(--bda-gold);
	color: var(--bda-bg);
}
.bda-faq-answer {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 0 22px 20px;
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--bda-muted);
}
.bda-faq-answer p {
	margin: 0 0 10px;
}
.bda-faq-answer p:last-child {
	margin-bottom: 0;
}
.bda-faq-answerer {
	margin-top: 12px !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--bda-gold);
}

/* ---- Books grid (books page) ---- */
.bda-books-form {
	max-width: var(--bda-maxw);
	margin: 0 auto;
}
.bda-book-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-bottom: 56px;
}
.bda-book-card {
	border: 1px solid var(--bda-line-soft);
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, .02);
	transition: border-color .2s ease, transform .2s ease;
}
.bda-book-card.is-selected {
	border-color: var(--bda-gold);
	box-shadow: 0 0 0 1px var(--bda-gold);
}
.bda-book-select {
	position: relative;
	display: block;
	cursor: pointer;
}
.bda-book-check {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	width: 20px;
	height: 20px;
	z-index: 1;
	accent-color: var(--bda-gold);
	cursor: pointer;
}
.bda-book-media {
	display: block;
	aspect-ratio: 3 / 4;
	background: #1a2030;
	overflow: hidden;
}
.bda-book-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bda-book-body {
	padding: 18px;
}
.bda-book-body h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--bda-gold);
}
.bda-book-body .bda-branch-address {
	min-height: 40px;
}
.bda-book-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	gap: 10px;
}
.bda-book-price {
	font-weight: 700;
	font-size: 15px;
}
.bda-book-qty {
	display: flex;
	align-items: center;
	gap: 6px;
}
.bda-qty-btn {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--bda-line-soft);
	background: transparent;
	color: var(--bda-text);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
.bda-qty-btn:hover {
	border-color: var(--bda-gold);
	color: var(--bda-gold);
}
.bda-book-qty-input {
	width: 34px;
	text-align: center;
	background: transparent;
	border: none;
	color: var(--bda-text);
	font-size: 14px;
	-moz-appearance: textfield;
}
.bda-book-qty-input::-webkit-outer-spin-button,
.bda-book-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- Order summary (books page) ---- */
.bda-order-summary {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: var(--bda-muted);
}
.bda-order-empty {
	color: var(--bda-dim);
	font-style: italic;
}
.bda-order-total {
	font-size: 16px;
	margin: 0 0 14px;
}
.bda-order-total strong {
	color: var(--bda-gold);
}
.bda-order-note {
	font-size: 13px;
	color: var(--bda-dim);
	line-height: 1.7;
	margin: 0;
}

/* ---- Pills (shared: branches list, gallery filters) ---- */
.bda-pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border: 1px solid var(--bda-line-soft);
	border-radius: 999px;
	background: transparent;
	color: var(--bda-muted);
	font-family: var(--bda-sans);
	font-size: 13.5px;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.bda-pill:hover {
	border-color: var(--bda-gold);
	color: var(--bda-text);
}
.bda-pill.is-active {
	background: var(--bda-gold);
	border-color: var(--bda-gold);
	color: var(--bda-bg);
	font-weight: 600;
}

/* ---- Activities gallery ---- */
.bda-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding: 44px var(--bda-pad) 0;
	max-width: var(--bda-maxw);
	margin: 0 auto;
}

.bda-flip-section {
	padding: 32px var(--bda-pad) 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.bda-flip-stage {
	position: relative;
	width: 100%;
	max-width: 860px;
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--bda-line-soft);
	background: var(--bda-bg-alt);
	perspective: 1400px;
	outline: none;
}
.bda-flip-stage:focus-visible {
	border-color: var(--bda-gold);
}
.bda-flip-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: center;
	transition: transform .28s ease, opacity .28s ease;
	backface-visibility: hidden;
}
.bda-flip-img.is-turning {
	transform: rotateY(90deg);
	opacity: 0;
}
.bda-flip-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(239, 230, 211, .3);
	background: rgba(13, 16, 21, .55);
	color: var(--bda-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(3px);
	transition: border-color .2s ease, background .2s ease;
}
.bda-flip-nav:hover {
	border-color: var(--bda-gold);
	background: rgba(13, 16, 21, .8);
}
.bda-flip-prev { right: 16px; }
.bda-flip-next { left: 16px; }
.bda-flip-play,
.bda-flip-expand {
	position: absolute;
	top: 14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(239, 230, 211, .3);
	background: rgba(13, 16, 21, .55);
	color: var(--bda-text);
	font-size: 14px;
	cursor: pointer;
	backdrop-filter: blur(3px);
}
.bda-flip-play:hover,
.bda-flip-expand:hover {
	border-color: var(--bda-gold);
}
.bda-flip-play { left: 14px; }
.bda-flip-expand { left: 56px; }
.bda-flip-caption {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	padding: 30px 20px 14px;
	background: linear-gradient(to top, rgba(13, 16, 21, .88), transparent);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	color: var(--bda-muted);
}
.bda-flip-group {
	font-family: var(--bda-serif);
	font-size: 15px;
	color: var(--bda-text);
}
.bda-flip-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 700px;
}
.bda-flip-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(239, 230, 211, .25);
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, transform .2s ease;
}
.bda-flip-dot:hover {
	background: rgba(201, 162, 74, .6);
}
.bda-flip-dot.is-active {
	background: var(--bda-gold);
	transform: scale(1.3);
}

/* Thumbnail grid — real, crawlable <img> tags grouped by activity. */
.bda-gallery-group {
	margin-bottom: 44px;
}
.bda-gallery-group:last-child {
	margin-bottom: 0;
}
.bda-gallery-group.is-hidden {
	display: none;
}
.bda-gallery-group h2 {
	font-size: 18px;
	font-weight: 600;
	color: var(--bda-gold);
	margin: 0 0 16px;
	text-align: center;
}
.bda-thumb-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}
.bda-gallery-pending {
	text-align: center;
	color: var(--bda-dim);
	font-size: 14px;
	padding: 18px;
	border: 1px dashed var(--bda-line);
	border-radius: 4px;
}
.bda-thumb {
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	background: #1a2030;
	aspect-ratio: 1;
	cursor: pointer;
	transition: border-color .2s ease, transform .2s ease;
}
.bda-thumb:hover {
	border-color: var(--bda-gold);
	transform: translateY(-2px);
}
.bda-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lightbox */
.bda-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(8, 10, 14, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.bda-lightbox[hidden] {
	display: none;
}
.bda-lightbox-img {
	max-width: min(1100px, 90vw);
	max-height: 86vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.bda-lightbox-close {
	position: absolute;
	top: 20px;
	inset-inline-end: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(239, 230, 211, .3);
	background: transparent;
	color: var(--bda-text);
	font-size: 16px;
	cursor: pointer;
}
.bda-lightbox-close:hover {
	border-color: var(--bda-gold);
	color: var(--bda-gold);
}
.bda-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(239, 230, 211, .3);
	background: transparent;
	color: var(--bda-text);
	font-size: 24px;
	cursor: pointer;
}
.bda-lightbox-nav:hover {
	border-color: var(--bda-gold);
	color: var(--bda-gold);
}
.bda-lightbox-prev { right: 24px; }
.bda-lightbox-next { left: 24px; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.bda-root { --bda-pad: 28px; }
	.bda-hero-title { font-size: 40px; }
	.bda-branch-grid { grid-template-columns: repeat(2, 1fr); }
	.bda-about,
	.bda-about--rev { flex-direction: column; align-items: stretch; }
	.bda-book-grid { grid-template-columns: repeat(3, 1fr); }
	.bda-thumb-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
	.bda-root { --bda-pad: 20px; }
	.bda-header { justify-content: center; }
	.bda-header-cta { display: none; }
	.bda-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
	.bda-hero { padding: 56px var(--bda-pad) 48px; }
	.bda-hero-title { font-size: 30px; }
	.bda-branch-grid { grid-template-columns: 1fr; }
	.bda-contact { gap: 32px; }
	.bda-book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.bda-faq-question { font-size: 14.5px; padding: 15px 16px; }
	.bda-faq-answer { padding: 0 16px 16px; }
	.bda-thumb-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.bda-flip-nav { width: 36px; height: 36px; font-size: 18px; }
	.bda-flip-prev { right: 8px; }
	.bda-flip-next { left: 8px; }
	.bda-lightbox { padding: 16px; }
	.bda-lightbox-prev { right: 4px; }
	.bda-lightbox-next { left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.bda-marquee-track { animation: none; }
	.bda-flip-img { transition: none; }
}

/* ---- Accessibility widget ----
   A tab attached to the screen's left edge, vertically centered so it never
   competes with the header (top) or the "ask the Rav" bubble (bottom-left).
   Collapsed it's just an icon; clicking slides a hidden panel out from it. */
.bda-a11y {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 70;
}
.bda-a11y-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 64px;
	border-radius: 0 10px 10px 0;
	border: 1px solid var(--bda-gold);
	border-inline-start: none;
	background: var(--bda-bg);
	color: var(--bda-gold);
	font-size: 22px;
	cursor: pointer;
	box-shadow: 3px 0 16px rgba(0, 0, 0, .4);
	transition: width .18s ease, box-shadow .18s ease;
}
.bda-a11y-toggle:hover,
.bda-a11y-toggle[aria-expanded="true"] {
	width: 50px;
	box-shadow: 5px 0 20px rgba(0, 0, 0, .5);
}
.bda-a11y-panel {
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-inline-start: 10px;
	width: 300px;
	max-width: min(84vw, 300px);
	max-height: min(80vh, 480px);
	overflow-y: auto;
	background: var(--bda-bg);
	border: 1px solid var(--bda-line);
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
	padding: 16px;
}
.bda-a11y-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--bda-serif);
	font-size: 16px;
	color: var(--bda-gold);
	margin-bottom: 14px;
}
.bda-a11y-close {
	background: none;
	border: none;
	color: var(--bda-dim);
	font-size: 16px;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}
.bda-a11y-close:hover {
	color: var(--bda-text);
}
.bda-a11y-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.bda-a11y-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	background: var(--bda-bg-alt);
	border: 1px solid var(--bda-line);
	border-radius: 6px;
	color: var(--bda-text);
	font-size: 12px;
	text-align: center;
	cursor: pointer;
	line-height: 1.35;
}
.bda-a11y-option:hover {
	border-color: var(--bda-gold);
}
.bda-a11y-option[aria-pressed="true"] {
	background: rgba(201, 162, 74, .18);
	border-color: var(--bda-gold);
	color: var(--bda-gold);
}
.bda-a11y-icon {
	font-size: 20px;
}
.bda-a11y-icon-text {
	font-family: var(--bda-sans);
	font-weight: 700;
	font-size: 15px;
}
.bda-a11y-reset {
	width: 100%;
	margin-top: 12px;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--bda-line);
	border-radius: 6px;
	color: var(--bda-dim);
	font-size: 13px;
	cursor: pointer;
}
.bda-a11y-reset:hover {
	border-color: var(--bda-gold);
	color: var(--bda-gold);
}

/* Effects, toggled via classes on <html> so they persist/apply across the
   whole page while staying scoped under .bda-root per the plugin's styling
   convention (never touching the active theme's own markup). */
html.bda-a11y-links .bda-root a {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
	background: rgba(201, 162, 74, .15);
}
html.bda-a11y-contrast .bda-root,
html.bda-a11y-contrast .bda-root * {
	background-color: #000 !important;
	color: #fff !important;
	border-color: #fff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
html.bda-a11y-contrast .bda-root a {
	color: #ffd84d !important;
}
html.bda-a11y-spacing .bda-root {
	letter-spacing: .04em;
	word-spacing: .12em;
}
html.bda-a11y-spacing .bda-root p,
html.bda-a11y-spacing .bda-root li,
html.bda-a11y-spacing .bda-root a {
	line-height: 1.9 !important;
}
html.bda-a11y-large-text .bda-root {
	zoom: 1.18;
}
html.bda-a11y-no-animations .bda-root,
html.bda-a11y-no-animations .bda-root * {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}
html.bda-a11y-hide-images .bda-root img,
html.bda-a11y-hide-images .bda-root .bda-hero-strip,
html.bda-a11y-hide-images .bda-root video {
	display: none !important;
}

@media (max-width: 640px) {
	.bda-a11y-toggle { width: 38px; height: 56px; font-size: 18px; }
	.bda-a11y-panel { width: 260px; }
}

.bda-root .bda-nav-toggle-arrow {
	display: inline-block !important;
	width: 10px !important;
	height: 6px !important;
	border: none !important;
	background: no-repeat center / contain !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cfc6b4' stroke-width='1.6'/%3E%3C/svg%3E") !important;
}
.bda-root .bda-nav-toggle {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}
