/**
 * Content pages: Bar Mitzvah, Print Mishnah Chart and Mishnah for Neshamos
 * (Israel). A hero, then one readable column of headings, text, lists, buttons
 * and an FAQ accordion.
 *
 * Sizes and spacing come from the Bricks theme variables (--h1..--h6,
 * --text-*, --space-*, --section-space-*) rather than values of our own.
 *
 * The sections carry mish-art-* / mish-isr-* classes set in Bricks. They are
 * doubled up (.brxe-section.mish-*) so they beat Bricks' per-section padding.
 */

/* ---- Hero ---------------------------------------------------------------- */
.mish-art-hero {
	color: #fff;
}

.brxe-section.mish-art-hero {
	padding: var(--section-space-s) var(--space-m);
}

.mish-art-hero > .brxe-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
	width: 100%;
	max-width: var(--container-width, 1280px);
	margin-inline: auto;
}

.mish-art-hero h1 {
	margin: 0;
	font-family: "Mishnah Display", Georgia, serif;
	font-size: var(--h1);
	font-weight: 400;
	line-height: 1.06;
	color: #fff;
}

.mish-art-hero h1::before {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-bottom: var(--space-xs);
	border-radius: 2px;
	background: var(--secondary, #ffd36b);
}

.mish-art-hero .brxe-text-basic {
	max-width: 560px;
	margin: 0;
	font-size: var(--text-m);
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}

/* Print Mishnah Chart: the hero is a container inside the page section, so its
   sky band is drawn full-bleed with a spread shadow instead of a background. */
.mish-art-hero--sky,
.brxe-container.mish-art-hero--sky {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
	width: 100%;
	max-width: 820px;
	margin-inline: auto;
	padding: var(--section-space-s) 0;
	background: #eef4fc;
	box-shadow: 0 0 0 100vmax #eef4fc;
	clip-path: inset(0 -100vmax);
	color: #0a1a2e;
}

.mish-art-hero--sky h1 {
	color: #0a1a2e;
}

.mish-art-hero--sky .brxe-heading:not(h1) {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: var(--text-m);
	color: #26364d;
}

/* ---- Buttons ------------------------------------------------------------- */
a.mish-art-btn,
.brxe-button.mish-art-btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 54px;
	padding: 0 var(--space-s);
	border: 0;
	border-radius: 99px;
	background: #0a1a2e;
	color: #fff;
	font-size: var(--text-s);
	font-style: normal;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s, transform .2s;
}

a.mish-art-btn:hover,
.brxe-button.mish-art-btn:hover {
	background: var(--primary, #2e77d1);
	color: #fff;
	transform: translateY(-2px);
}

.mish-art-hero a.mish-art-btn,
.mish-art-hero .brxe-button.mish-art-btn,
.mish-isr-hero a.mish-art-btn {
	background: var(--secondary, #ffd36b);
	color: #0a1a2e;
}

.mish-art-hero a.mish-art-btn:hover,
.mish-art-hero .brxe-button.mish-art-btn:hover,
.mish-isr-hero a.mish-art-btn:hover {
	background: #fff;
	color: #0a1a2e;
}

.mish-art-hero--sky a.mish-art-btn,
.mish-art-hero--sky .brxe-button.mish-art-btn {
	background: #0a1a2e;
	color: #fff;
}

.mish-art-hero--sky a.mish-art-btn:hover,
.mish-art-hero--sky .brxe-button.mish-art-btn:hover {
	background: var(--primary, #2e77d1);
	color: #fff;
}

/* ---- Article column ------------------------------------------------------ */
.brxe-section.mish-art-body {
	padding: 0 var(--space-m);
}

.mish-article.brxe-container,
.mish-art-body > .mish-article {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	width: 100%;
	max-width: 820px;
	margin-inline: auto;
	padding-block: var(--section-space-xs);
	background: transparent;
}

.mish-article .brxe-text,
.mish-article .brxe-text-basic {
	color: #26364d;
	font-size: var(--text-m);
	line-height: 1.75;
}

.mish-article p {
	margin: 0 0 1em;
}

.mish-article p:last-child {
	margin-bottom: 0;
}

.mish-article .brxe-heading {
	align-self: stretch;
	margin: var(--space-s) 0 0;
	padding-top: var(--space-xs);
	border-top: 1px solid rgba(10, 26, 46, .12);
	font-family: "Mishnah Display", Georgia, serif;
	font-size: var(--h3);
	font-weight: 400;
	line-height: 1.15;
	color: #0a1a2e;
}

.mish-article a:not(.mish-art-btn) {
	color: var(--primary, #2e77d1);
	text-underline-offset: 3px;
}

.mish-article a:not(.mish-art-btn):hover {
	color: #0a1a2e;
}

.mish-article ul:not(.brxe-block) {
	margin: 0 0 1em;
	padding-inline-start: 1.3em;
}

.mish-article li::marker {
	color: var(--primary, #2e77d1);
}

/* Checklist of benefits (Print Mishnah Chart). */
.mish-article ul.brxe-block {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mish-article ul.brxe-block > li {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-2xs);
	font-size: var(--text-m);
	color: #26364d;
}

.mish-article ul.brxe-block > li .brxe-icon {
	flex: none;
	font-size: var(--text-m);
	color: var(--primary, #2e77d1);
}

/* ---- FAQ accordion (nested accordion in the article) --------------------- */
.mish-article .brxe-accordion-nested {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	width: 100%;
	margin-top: var(--space-xs);
}

.mish-article .brxe-accordion-nested > .brxe-block {
	overflow: hidden;
	border: 1px solid rgba(10, 26, 46, .1);
	border-radius: 16px;
	background: #fff;
}

.mish-article .accordion-title-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2xs);
	width: 100%;
	min-height: 0;
	padding: var(--space-2xs) var(--space-xs);
	background: #eef4fc;
	color: #0a1a2e;
	text-align: start;
	cursor: pointer;
}

.mish-article .accordion-title-wrapper .brxe-heading {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	font-family: Inter, sans-serif;
	font-size: var(--text-m);
	font-weight: 600;
	line-height: 1.35;
	color: #0a1a2e;
}

.mish-article .accordion-title-wrapper .brxe-icon {
	flex: none;
	font-size: var(--text-s);
	color: var(--primary, #2e77d1);
	transition: transform .2s ease-in-out;
}

.mish-article .brx-open > .accordion-title-wrapper .brxe-icon {
	transform: rotate(180deg);
}

.mish-article .accordion-content-wrapper {
	padding: var(--space-2xs) var(--space-xs) var(--space-xs);
	background: #fff;
}

.mish-article .accordion-content-wrapper .brxe-text {
	padding-inline: var(--space-xs);
	font-size: var(--text-m);
	line-height: 1.7;
}

/* ---- Mishnah for Neshamos (Israel) --------------------------------------- *
 * The animated hero card and the Hebrew-letter animation are Code elements
 * that still reference the old framework's colour names, so those names are
 * given values here, for this page only.
 */
.page-id-7255 {
	--primary-light: var(--primary-l-7);
	--action: #da6648;
	--accent: var(--secondary);
}

.brxe-section.mish-isr-hero {
	padding-inline: var(--space-m);
	color: #fff;
}

.mish-isr-hero > .brxe-container {
	width: 100%;
	max-width: var(--container-width, 1280px);
	margin-inline: auto;
}

.mish-isr-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
	padding-block: var(--section-space-s);
}

.mish-isr-hero h1 {
	margin: 0;
	font-family: "Mishnah Display", Georgia, serif;
	font-size: var(--h1);
	font-weight: 400;
	line-height: 1.06;
	color: #fff;
}

.mish-isr-hero h1.mish-isr-big {
	font-size: var(--display-m, var(--h1));
	line-height: 1;
}

.mish-isr-hero h1 em {
	font-style: italic;
	color: var(--secondary, #ffd36b);
}

.mish-isr-mission h1 em {
	font-style: italic;
	color: inherit;
}

.mish-isr-hero .brxe-text-basic {
	max-width: 520px;
	margin: 0;
	font-size: var(--text-m);
	line-height: 1.6;
	color: rgba(255, 255, 255, .9);
}

.brxe-section.mish-isr-mission {
	padding: var(--section-space-m) var(--space-m);
	background: #eef4fc;
}

.brxe-section.mish-isr-more {
	padding: var(--section-space-m) var(--space-m);
}

.mish-isr-mission > .brxe-container,
.mish-isr-more > .brxe-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-l);
	align-items: center;
	width: 100%;
	max-width: var(--container-width, 1280px);
	margin-inline: auto;
}

.mish-isr-mission .brxe-block,
.mish-isr-more .brxe-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
}

.mish-isr-mission h2.brxe-heading,
.mish-isr-more h2.brxe-heading {
	margin: 0;
	font-family: "Mishnah Display", Georgia, serif;
	font-size: var(--h2);
	font-weight: 400;
	line-height: 1.1;
	color: #0a1a2e;
}

.mish-isr-mission h2.brxe-heading {
	font-family: Inter, sans-serif;
	font-size: var(--text-s);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--primary, #2e77d1);
}

.mish-isr-mission h1.brxe-heading {
	margin: 0;
	font-family: "Mishnah Display", Georgia, serif;
	font-size: var(--h1);
	font-weight: 400;
	color: #da6648;
}

.mish-isr-mission .brxe-text,
.mish-isr-more .brxe-text {
	font-size: var(--text-m);
	line-height: 1.7;
	color: #26364d;
}

.mish-isr-eyebrow {
	font-size: var(--text-s);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--primary, #2e77d1);
}

@media (max-width: 767px) {
	.mish-isr-mission > .brxe-container,
	.mish-isr-more > .brxe-container {
		grid-template-columns: minmax(0, 1fr);
	}
}
