/*
 * Mill Hill Synagogue — premium responsive redesign.
 * Presentation only: existing PHP, database content, routes and forms remain intact.
 */

:root {
	/* Exact logo colours, with accessible tonal companions for UI use. */
	--mhs-logo-blue: #1173ba;
	--mhs-logo-slate: #84898b;
	--mhs-ink: #22313b;
	--mhs-navy: #0d5b91;
	--mhs-navy-deep: #073b5d;
	--mhs-teal: var(--mhs-logo-blue);
	--mhs-teal-bright: #3c8fca;
	--mhs-gold: var(--mhs-logo-slate);
	--mhs-slate-light: #d8dcde;
	--mhs-paper: #f5f7f8;
	--mhs-mist: #eaf1f6;
	--mhs-white: #fff;
	--mhs-muted: #66747d;
	--mhs-line: #d6dfe4;
	--mhs-radius: 18px;
	--mhs-shadow: 0 22px 65px rgba(17, 82, 128, .12);
}

html { min-width: 0; background: var(--mhs-paper); scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
	min-width: 0;
	margin: 0;
	background: var(--mhs-paper);
	color: var(--mhs-ink);
	font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.58;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--mhs-teal); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--mhs-navy); text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
.app-only { display: none !important; }

#container {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: var(--mhs-white);
	box-shadow: none;
}

/* Global header */
#header {
	position: relative;
	z-index: 50;
	width: 100%;
	height: auto;
	background: var(--mhs-white);
	border: 0;
	box-shadow: 0 1px 0 rgba(17, 115, 186, .1);
}
.primary-header {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 52px);
	width: min(100% - 48px, 1280px);
	height: 98px;
	margin: 0 auto;
}
#header .brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}
#header #logo {
	position: static;
	display: block;
	width: clamp(220px, 20vw, 285px);
	height: auto;
	margin: 0;
}
#header .nav {
	position: static;
	display: flex;
	flex: 1 1 auto;
	align-self: stretch;
	width: auto;
	height: auto;
	margin: 0;
	background: transparent;
}
#header .nav li {
	position: relative;
	float: none;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 92px;
	padding: 0 10px;
	background: transparent !important;
	border: 0;
	color: var(--mhs-ink);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}
#header .nav li::after {
	position: absolute;
	right: 18%;
	bottom: 0;
	left: 18%;
	height: 3px;
	background: var(--mhs-gold);
	content: "";
	transform: scaleX(0);
	transition: transform .2s ease;
}
#header .nav li:hover::after { transform: scaleX(1); }
#header .nav li > a { color: var(--mhs-ink); }
#header .nav li > a:hover { color: var(--mhs-teal); }
#header .nav li .sub {
	top: 97px;
	left: 50%;
	display: none;
	width: 250px !important;
	margin-left: -125px;
	padding: 12px;
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 0 0 14px 14px;
	background: var(--mhs-navy) !important;
	box-shadow: 0 18px 45px rgba(7, 20, 39, .26);
}
#header .nav li .sub a {
	display: block;
	padding: 9px 11px;
	border-radius: 7px;
	color: rgba(255,255,255,.88);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
}
#header .nav li .sub a:hover { background: rgba(255,255,255,.1); color: #fff; }

#header .header-search {
	position: relative;
	flex: 0 1 205px;
	margin: 0;
}
#header .header-search form { position: relative; }
#header .header-search #q {
	width: 100%;
	height: 44px;
	padding: 0 43px 0 16px;
	border: 1px solid var(--mhs-line);
	border-radius: 11px;
	outline: 0;
	background: #f4f6f7;
	color: var(--mhs-ink);
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
#header .header-search #q:focus {
	border-color: var(--mhs-teal-bright);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(17,115,186,.14);
}
#header .header-search .submit-search {
	position: absolute;
	top: 12px;
	right: 13px;
	left: auto;
	width: 20px;
	height: 20px;
	margin: 0;
	opacity: .68;
}
#header .expand-mobile-header { display: none; }

/* Homepage */
.home-layout { display: block; width: 100%; background: var(--mhs-paper); }
.site-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 0;
	background-color: var(--mhs-navy-deep);
	background-image: url('/public/images/hero-sanctuary.jpg');
	background-position: center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}
.site-hero::after {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 170px;
	background: linear-gradient(to top, rgba(7,59,93,.48), transparent);
	content: "";
}
.hero-slideshow, .hero-slide { position: absolute; inset: 0; }
.hero-slideshow { z-index: 0; overflow: hidden; }
.hero-slide {
	background-position: center;
	background-size: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
	will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(4,35,56,.97) 0%, rgba(7,59,93,.9) 29%, rgba(7,59,93,.52) 58%, rgba(7,59,93,.17) 100%);
}
.hero-content {
	--hero-controls-width: min(100%, 750px);
	--hero-extra-vertical-space: 40px;
	position: relative;
	z-index: 2;
	width: min(100% - 48px, 1280px);
	margin: 0 auto;
	padding: calc(24px + var(--hero-extra-vertical-space)) 0 calc(28px + var(--hero-extra-vertical-space));
}
.hero-content h1 {
	max-width: 700px;
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 4.5vw, 60px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.045em;
}
.hero-content p {
	max-width: 660px;
	margin: 16px 0 0;
	color: rgba(255,255,255,.78);
	font-size: clamp(16px, 1.35vw, 20px);
	line-height: 1.42;
}
.hero-actions {
	display: grid;
	grid-template-areas: "visiting calendar contact hall gallery volunteers";
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	width: var(--hero-controls-width);
	max-width: 100%;
	margin-top: 20px;
}
.hero-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	width: 100%;
	height: 42px;
	padding: 0 10px;
	border: 1px solid rgba(255,255,255,.36);
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform .2s, background .2s, border-color .2s;
}
.hero-action-visiting { grid-area: visiting; }
.hero-action-calendar { grid-area: calendar; }
.hero-action-contact { grid-area: contact; }
.hero-action-hall { grid-area: hall; }
.hero-action-gallery { grid-area: gallery; }
.hero-action-volunteers { grid-area: volunteers; }
.hero-actions a:hover { transform: translateY(-2px); border-color: #fff; background: rgba(255,255,255,.09); color: #fff; }
.hero-actions .hero-primary { border-color: var(--mhs-logo-blue); background: var(--mhs-logo-blue); color: #fff; }
.hero-actions .hero-primary:hover { border-color: var(--mhs-navy); background: var(--mhs-navy); color: #fff; }

@media (orientation: portrait) {
	.hero-content { --hero-controls-width: min(100%, 438px); }
	.hero-actions {
		grid-template-areas:
			"visiting contact"
			"hall volunteers"
			"calendar gallery";
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.hero-content p { max-width: none; white-space: nowrap; }
}

.home-content {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 26px;
	width: min(100% - 48px, 1280px);
	margin: -70px auto 0;
	padding-bottom: 86px;
}
.home-content > br { display: none; }
.home-content #main { grid-column: span 8; }
.home-content #whatson { grid-column: span 4; }
.home-content:has(#whatson) #main,
.home-content:has(#whatson) #whatson,
.home-content:has(#whatson) #gallery { grid-column: span 4; }
.home-content #gallery { grid-column: span 4; }
.home-content #events-viewport { grid-column: 1 / -1; }
.home-content:has(.member-dashboard) { margin-top: 0; padding-top: 30px; }

.member-dashboard {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: stretch;
	gap: 12px;
	width: 100%;
}
.member-dashboard--count-1 { grid-template-columns: minmax(0, 1fr); }
.member-dashboard--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-dashboard--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-dashboard--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member-dashboard--count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member-dashboard--count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 158px;
	padding: 21px 21px 19px;
	border: 1px solid var(--mhs-line);
	border-radius: 17px;
	background: rgba(255,255,255,.94);
	box-shadow: 0 12px 32px rgba(17,82,128,.07);
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.member-card::before {
	position: absolute;
	top: 0;
	right: 28px;
	left: 28px;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: currentColor;
	opacity: 0;
	content: "";
	transition: opacity .2s ease;
}
.member-card:hover { transform: translateY(-3px); border-color: #aac9df; box-shadow: 0 18px 38px rgba(17,82,128,.11); }
.member-card:hover::before { opacity: .9; }
.member-card-heading { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 12px; }
.member-card-heading h2 {
	min-width: 0;
	margin: 0;
	color: #5f6b73;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -.01em;
}
.member-card-icon {
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}
.member-card-value {
	color: var(--mhs-navy-deep);
	font-size: clamp(27px, 2.15vw, 34px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.035em;
	white-space: nowrap;
}
.member-card-value--name { overflow: hidden; font-size: clamp(25px, 1.9vw, 31px); text-overflow: ellipsis; }
.member-card p { margin: 8px 0 0; color: #5f6b73; font-size: 14px; line-height: 1.3; }
.member-card-link { display: inline-flex; align-items: center; align-self: flex-start; margin-top: auto; padding-top: 9px; color: var(--mhs-teal); font-size: 14px; font-weight: 700; }
.member-card-link::after { margin-left: 8px; font-size: 19px; line-height: 1; content: "\2192"; transition: transform .2s ease; }
.member-card-link:hover { color: var(--mhs-navy); }
.member-card-link:hover::after { transform: translateX(3px); }
.member-card-status {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	justify-content: center;
	min-width: 59px;
	height: 40px;
	padding: 0 16px;
	border-radius: 14px;
	background: #00aa45;
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
}
.member-card--events, .member-card--eruv {
	height: var(--member-card-height, 310px);
	min-height: var(--member-card-height, 310px);
}
.member-card--events { max-height: var(--member-card-height, 310px); }
.member-card--events .member-card-heading { margin-bottom: 8px; }
.member-card--events .member-card-heading h2 { color: var(--mhs-navy-deep); font-weight: 700; }
.member-card--today { order: -2; color: var(--mhs-teal); }
.member-card--shabbat { order: -1; color: var(--mhs-navy-deep); }
.member-card--booking { color: #a73542; }
.member-card--more-events { color: #a77613; }
.member-card p.member-card-date { margin: 0 0 5px; color: var(--mhs-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.member-card-shabbat-times {
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid #d9e3e8;
	border-radius: 9px;
	background: #f4f8fa;
	overflow: hidden;
}
.member-card-shabbat-times--count-1 { grid-template-columns: minmax(0, 1fr); }
.member-card-shabbat-time {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 7px 8px 6px;
	color: var(--mhs-navy-deep);
	transition: background .2s ease, color .2s ease;
}
.member-card-shabbat-time + .member-card-shabbat-time { border-left: 1px solid #d9e3e8; }
a.member-card-shabbat-time:hover { background: #e6f0f5; color: var(--mhs-teal); }
.member-card-shabbat-time span { overflow: hidden; color: var(--mhs-muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; line-height: 1.25; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.member-card-shabbat-time strong { margin-top: 2px; font-size: 17px; line-height: 1.15; }
.member-card-community-lighting {
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 7px 2px 2px;
	color: var(--mhs-navy-deep);
	font-size: 11px;
	font-weight: 700;
}
.member-card-community-lighting:hover { color: var(--mhs-teal); }
.member-card-community-lighting span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card-community-lighting strong { font-size: 13px; white-space: nowrap; }
.member-card-shabbat-divider { flex: 0 0 auto; margin: 7px 0 6px; border-top: 1px solid var(--mhs-line); }
.member-card-event-browser {
	position: relative;
	display: flex;
	flex: 0 1 225px;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}
.member-card-event-list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	min-height: 0;
	max-height: 213px;
	margin: 4px 0 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.member-card-event-browser.has-overflow .member-card-event-list { padding-right: 41px; }
.member-card-event-list:focus { border-radius: 4px; outline: 2px solid currentColor; outline-offset: -2px; }
.member-card-event-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.member-card-event {
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 71px;
	padding: 10px 0;
	border-top: 1px solid var(--mhs-line);
	color: var(--mhs-ink);
}
.member-card-event:hover { color: var(--mhs-ink); }
.member-card-event-copy, .member-card-event-meta, .member-card-event-title, .member-card-event-status { display: block; }
.member-card-event-copy { min-width: 0; }
.member-card p.member-card-empty { margin: 8px 0; color: var(--mhs-muted); font-size: 13px; line-height: 1.4; }
.member-card-event-meta { margin-bottom: 2px; color: var(--mhs-muted); font-size: 11px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.member-card-event-title { display: -webkit-box; overflow: hidden; color: var(--mhs-navy-deep); font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.member-card--events:not(.member-card--booking) .member-card-event-browser { flex: 1 1 auto; }
.member-card--booking .member-card-event-browser { flex-basis: 200px; }
.member-card--booking .member-card-event-list { max-height: 188px; }
.member-card--booking .member-card-event { min-height: 94px; }
.member-card--shabbat .member-card-event { min-height: 54px; padding-top: 7px; padding-bottom: 7px; }
.member-card--shabbat .member-card-event--all-day { min-height: 22px; padding-top: 2px; padding-bottom: 2px; border-top: 0; }
.member-card-event--all-day strong { display: block; min-width: 0; overflow: hidden; color: var(--mhs-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.member-card-event-status {
	width: fit-content;
	margin-top: 5px;
	padding: 3px 7px;
	border-radius: 999px;
	background: #f8e3e6;
	color: #8d2632;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}
.member-card-event-arrow { color: currentColor; font-size: 17px; transition: transform .2s ease; }
.member-card-event:hover .member-card-event-arrow { transform: translateX(3px); }
.member-card-scroll-control {
	position: absolute;
	right: 3px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 9px rgba(4,35,56,.12);
	color: currentColor;
	font: inherit;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}
.member-card-scroll-control--up { top: 10px; }
.member-card-scroll-control--down { bottom: 14px; }
.member-card-event-browser.has-overflow .member-card-scroll-control { display: inline-flex; }
.member-card-scroll-control:hover:not(:disabled) { background: var(--mhs-navy-deep); color: #fff; transform: scale(1.05); }
.member-card-scroll-control:focus-visible { outline: 2px solid var(--mhs-navy-deep); outline-offset: 2px; }
.member-card-scroll-control:disabled { opacity: .28; cursor: default; }
.member-card--eruv-up { color: #00a943; }
.member-card--eruv-warning { color: #b7791f; }
.member-card--eruv-down { color: #c0392b; }
.member-card--eruv-unknown { color: #687385; }
.member-card--eruv-up .member-card-status { background: #087a3a; }
.member-card--eruv-warning .member-card-status { background: #8a5d00; }
.member-card--eruv-down .member-card-status { background: #c0392b; }
.member-card--eruv-unknown .member-card-status { background: #687385; }
.member-card--eruv-row-alone {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(18px, 3vw, 48px);
	height: auto;
	min-height: 96px;
	padding: 18px 24px;
}
.member-card--eruv-row-alone .member-card-heading { margin: 0; }
.member-card--eruv-row-alone .member-card-status { align-self: center; }
.member-card--eruv-row-alone p { margin: 0; }
.member-card--eruv-row-alone .member-card-link {
	align-self: center;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
button.member-card { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; appearance: none; }
.member-card--restricted.member-card {
	border-color: #0a4c78;
	background: linear-gradient(135deg, var(--mhs-navy-deep), var(--mhs-navy) 115%);
	box-shadow: 0 16px 36px rgba(7,59,93,.2);
	color: var(--mhs-slate-light);
}
.member-card--restricted:hover { border-color: #2c82bd; box-shadow: 0 20px 42px rgba(7,59,93,.28); }
.member-card--restricted .member-card-heading h2 { color: rgba(255,255,255,.72); }
.member-card--restricted .member-card-value { color: #fff; }
.member-card-value--login { font-size: clamp(23px, 1.8vw, 30px); white-space: normal; }
.member-card-login-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--mhs-slate-light); font-size: 13px; font-weight: 800; }
.member-card-login-link span { font-size: 18px; transition: transform .2s ease; }
.member-card--restricted:hover .member-card-login-link span { transform: translateX(3px); }

body.home-login-open { overflow: hidden; }
.home-login-modal {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
}
.home-login-modal[hidden] { display: none; }
.home-login-modal.is-open { opacity: 1; visibility: visible; }
.home-login-backdrop { position: absolute; inset: 0; background: rgba(4,35,56,.76); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.home-login-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 470px);
	padding: 38px 40px 34px;
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(2,13,30,.38);
	color: var(--mhs-ink);
	transform: translateY(16px) scale(.98);
	transition: transform .2s ease;
}
.home-login-modal.is-open .home-login-dialog { transform: translateY(0) scale(1); }
.home-login-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #d7e0e2;
	border-radius: 50%;
	background: #f6f8f8;
	color: #667382;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.home-login-close:hover { border-color: var(--mhs-teal); background: #e8f2f9; color: var(--mhs-navy); }
.home-login-lock { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 19px; border-radius: 16px; background: var(--mhs-navy-deep); color: var(--mhs-slate-light); }
.home-login-lock svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.home-login-kicker { display: block; margin-bottom: 7px; color: var(--mhs-teal); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-login-dialog h2 { margin: 0; color: var(--mhs-navy-deep); font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.home-login-dialog > p { margin: 12px 0 24px; color: #657181; font-size: 15px; line-height: 1.55; }
.home-login-form label { display: block; margin-bottom: 7px; color: var(--mhs-navy); font-size: 13px; font-weight: 800; }
.home-login-input-wrap { position: relative; }
.home-login-input-wrap svg { position: absolute; top: 50%; left: 15px; z-index: 1; width: 21px; height: 21px; fill: none; stroke: #81909b; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.home-login-form .auth-password { width: 100%; height: 52px; padding: 10px 14px 10px 47px; border-radius: 10px; background: #f7f9f9; color: var(--mhs-ink); font-size: 17px; }
.home-login-form .auth-password:focus { background: #fff; }
.home-login-form .auth-password.incorrect-password { border-color: #c85c51; }
.home-login-error { margin-top: 9px; color: #a23f36; font-size: 13px; font-weight: 700; }
.home-login-form .auth-password-submit { width: 100%; min-height: 50px; margin-top: 17px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.home-login-help { display: block; margin-top: 19px; color: var(--mhs-teal); font-size: 13px; font-weight: 700; text-align: center; }
.home-login-help:hover { color: var(--mhs-navy); }

.hero-content #announcement {
	display: block;
	float: none;
	width: var(--hero-controls-width);
	margin: 12px 0 0;
	padding: 13px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--mhs-slate-light);
	box-shadow: 0 12px 28px rgba(4,35,56,.24);
	color: var(--mhs-navy-deep);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	text-align: left;
}
.hero-content #announcement:hover { background: #fff; color: var(--mhs-navy-deep); }
.hero-content #announcement b { display: block; float: none; }
.announcement-snackbar {
	position: fixed;
	top: var(--announcement-snackbar-top, 98px);
	right: 24px;
	bottom: auto;
	z-index: 4000;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 34px;
	gap: 14px;
	align-items: start;
	width: min(calc(100vw - 48px), 440px);
	max-height: min(70vh, 360px);
	margin: 0;
	padding: 20px 18px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 16px;
	background: linear-gradient(135deg, var(--mhs-navy-deep), var(--mhs-navy) 115%);
	box-shadow: 0 24px 64px rgba(2,20,36,.32), 0 5px 16px rgba(2,20,36,.18);
	color: #fff;
	opacity: 0;
	overflow-y: auto;
	visibility: hidden;
	transform: translate3d(0, calc(100% + 48px), 0);
	transition: opacity .28s ease, transform .34s cubic-bezier(.22, 1, .36, 1), visibility .34s;
	pointer-events: none;
}
.announcement-snackbar[hidden] { display: none; }
.announcement-snackbar.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0);
	pointer-events: auto;
}
.announcement-snackbar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(187,214,215,.14);
	color: var(--mhs-slate-light);
}
.announcement-snackbar-icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}
.announcement-snackbar-copy { min-width: 0; padding-top: 2px; }
.announcement-snackbar-copy p { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.announcement-snackbar-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.announcement-snackbar-link span { font-size: 17px; transition: transform .2s ease; }
.announcement-snackbar-link:hover { color: var(--mhs-slate-light); }
.announcement-snackbar-link:hover span { transform: translateX(3px); }
.announcement-snackbar-link:focus-visible,
.announcement-snackbar-close:focus-visible { outline: 2px solid var(--mhs-slate-light); outline-offset: 3px; }
.announcement-snackbar-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -6px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: rgba(255,255,255,.68);
	font: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.announcement-snackbar-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.home-box {
	position: relative;
	float: none;
	width: 100% !important;
	height: auto;
	min-height: 315px;
	margin: 0;
	padding: 34px;
	border: 1px solid rgba(17,28,49,.09);
	border-radius: var(--mhs-radius);
	background: #fff !important;
	box-shadow: var(--mhs-shadow);
	overflow: hidden;
}
.home-box .box-heading {
	margin: -34px -34px 28px;
	padding: 20px 34px;
	background: var(--mhs-navy) !important;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}
.home-box .box-content { color: var(--mhs-ink); font-size: 16px !important; line-height: 1.55; }
.home-box .box-heading-side { float: right; margin: 3px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }
.home-box .box-heading-side a { color: inherit; }
.home-box .box-heading-side a:hover { color: #fff; }
.home-box.blocked { display: flex; align-items: stretch; padding: 42px; }
.home-box.blocked .box-heading { display: none; }
.home-box.blocked .box-content { width: 100%; }
.home-box.blocked .box-content form { margin-top: 24px; }
.auth-password {
	width: min(100%, 350px);
	height: 48px;
	padding: 10px 13px;
	border: 1px solid var(--mhs-line);
	border-radius: 8px 8px 0 0;
	outline: 0;
}
.auth-password:focus { border: 1px solid var(--mhs-teal-bright); box-shadow: 0 0 0 4px rgba(17,115,186,.14); }
.password-label {
	width: min(100%, 350px);
	margin: -1px 0 0;
	padding: 6px 13px;
	border: 1px solid var(--mhs-line);
	border-radius: 0 0 8px 8px;
	background: var(--mhs-mist);
	color: var(--mhs-muted);
}
.auth-password-submit {
	margin-top: 16px;
	padding: 11px 19px;
	border: 0;
	border-radius: 8px;
	background: var(--mhs-teal);
	color: #fff;
	font-weight: 700;
}
.auth-password-submit:hover { background: var(--mhs-navy); }

.tab-box .box-heading { padding: 8px 16px 0; }
.tab-box .tab { margin: 9px 3px 0; padding: 8px 12px 12px; border: 0; border-bottom: 2px solid transparent; color: rgba(255,255,255,.62); }
.tab-box .tab:first-child { border-bottom-color: var(--mhs-gold); color: #fff; }
.tab-box .box-heading-side { margin: 18px 16px 0; }
.tab-box .box-content { font-size: 15px; }
#whatson .event { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--mhs-line); }
#whatson .event small, #whatson .tab-dontmiss .event small { color: var(--mhs-muted); }

.home-lower-grid {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	width: 100%;
	margin-top: 8px;
}
.home-lower-grid #events-viewport { grid-column: auto; min-width: 0; }

#gallery {
	height: 360px;
	min-height: 360px;
	padding: 0;
	background-color: var(--mhs-navy) !important;
	background-image: linear-gradient(180deg, rgba(7,59,93,.08), rgba(4,35,56,.72)), url('/public/images/editorial-prayer.jpg') !important;
	background-position: center;
	background-size: cover !important;
}
#gallery .box-heading { position: relative; z-index: 2; width: auto; margin: 0; padding: 20px 26px; background: linear-gradient(180deg, rgba(4,35,56,.7), transparent) !important; }
#gallery .box-content { min-height: 290px; padding: 0; overflow: visible; }
#gallery .mhs_new_gallery { position: absolute; right: 25px; bottom: 24px; z-index: 4; display: block !important; }
#gallery .mhs_new_gallery a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 8px;
	background: rgba(4,35,56,.76);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	backdrop-filter: blur(8px);
}
#gallery .shul_gallery { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; background: transparent; }
#gallery .shul_gallery img.ShulGalleryElement { top: 0 !important; left: 0 !important; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
#gallery .shul_gallery:empty { display: none !important; }

#events-viewport {
	--news-item-height: 73px;
	--news-featured-height: 113px;
	position: relative;
	width: 100%;
	height: calc(70px + var(--news-featured-height) + var(--news-item-height) + var(--news-item-height) + var(--news-item-height));
	margin: 0;
	padding: 68px 0 0;
	border: 1px solid rgba(17,28,49,.1);
	border-radius: var(--mhs-radius);
	background: #fff;
	box-shadow: var(--mhs-shadow);
	overflow: hidden;
}
.news-widget-heading {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
	padding: 0 19px 0 25px;
	background: var(--mhs-navy);
}
.news-widget-heading h2 { margin: 0; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.news-widget-title { display: flex; align-items: center; gap: 11px; }
.news-widget-view-all { display: inline-flex; align-items: center; gap: 8px; color: var(--mhs-slate-light); font-size: 13px; font-weight: 700; white-space: nowrap; }
.news-widget-view-all span { font-size: 18px; transition: transform .2s; }
.news-widget-view-all:hover { color: #fff; }
.news-widget-view-all:hover span { transform: translateX(3px); }
.news-ticker-controls { display: flex; gap: 5px; }
.news-ticker-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.news-ticker-control:hover { border-color: var(--mhs-gold); background: var(--mhs-gold); color: var(--mhs-navy-deep); }
.news-ticker-control:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.news-ticker-control:disabled { opacity: .38; cursor: default; }
.news-ticker-control:disabled:hover { border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.news-feature-list {
	height: 100%;
	overflow: hidden;
	background: #fff;
}
.news-feature-track { display: flex; flex-direction: column; height: 100%; transform: translateY(0); will-change: transform; }
.news-feature-track.is-animating { transition: transform .24s ease-in-out; }
.news-feature {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	flex: 0 0 var(--news-item-height);
	gap: 14px;
	min-width: 0;
	min-height: 0;
	padding: 5px 19px;
	border-top: 1px solid var(--mhs-line);
	background: #fff;
	color: var(--mhs-ink);
	overflow: hidden;
	transition: background .2s;
}
.news-feature:first-child { flex-basis: var(--news-featured-height); border-top: 0; background: #fbfcfc; }
.news-feature:first-child.has-thumbnail { grid-template-columns: 34px minmax(0, 1fr) 86px auto; }
.news-feature:hover { background: #f5f7f6; color: var(--mhs-ink); }
.news-feature.is-static { cursor: default; }
.news-feature.is-static:hover { background: #fff; }
.news-feature.is-static:first-child:hover { background: #fbfcfc; }
.news-feature-copy { min-width: 0; overflow: hidden; }
.news-feature h3 { overflow: hidden; color: var(--mhs-navy); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.news-feature p { display: -webkit-box; margin: 0; overflow: hidden; color: #657082; -webkit-box-orient: vertical; }
.news-feature-number { color: #626a6e; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.news-feature h3 { margin: 0 0 1px; font-size: 18px; line-height: 1.14; }
.news-feature p { max-width: 100%; font-size: 14px; line-height: 1.22; overflow-wrap: anywhere; white-space: normal; -webkit-line-clamp: 2; }
.news-feature-thumbnail { display: none; }
.news-feature:first-child .news-feature-thumbnail {
	display: block;
	width: 86px;
	height: 86px;
	border-radius: 10px;
	box-shadow: 0 5px 14px rgba(19,35,63,.15);
	object-fit: cover;
}
.news-feature-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 31px;
	height: 31px;
	border: 1px solid #cdd9d9;
	border-radius: 50%;
	color: var(--mhs-teal);
	font-size: 17px;
	line-height: 1;
	transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.news-feature:hover .news-feature-arrow { border-color: var(--mhs-teal); background: var(--mhs-teal); color: #fff; transform: translateX(2px); }
.news-empty { margin: auto; padding: 24px; color: var(--mhs-muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.news-feature-track.is-animating { transition: none; }
}

/* Inner-page editorial headers */
h2.section-title, h2.search-title, h2.book-title, h2.news-title {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 285px;
	margin: 0;
	padding: 50px max(24px, calc((100% - 1280px) / 2));
	background-color: var(--mhs-navy-deep);
	background-image: linear-gradient(90deg, rgba(4,35,56,.96), rgba(7,59,93,.7), rgba(17,115,186,.28)), url('/public/images/editorial-prayer.jpg');
	background-position: center 45%;
	background-size: cover;
	color: #fff;
	font-size: clamp(46px, 5vw, 68px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.04em;
}
h2.section-title::before, h2.search-title::before, h2.book-title::before, h2.news-title::before {
	position: absolute;
	top: 49px;
	left: max(24px, calc((100% - 1280px) / 2));
	width: 54px;
	height: 2px;
	background: var(--mhs-gold);
	content: "";
}
h2.section-title img, h2.search-title img, h2.book-title img, h2.news-title img {
	position: absolute;
	right: max(24px, calc((100% - 1280px) / 2));
	bottom: 48px;
	float: none;
	height: 62px;
	margin: 0;
	filter: brightness(0) invert(1);
	opacity: .78;
}

.section-container {
	float: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-content: start;
	align-items: stretch;
	gap: 20px;
	counter-reset: section-topic;
	width: min(100% - 48px, 1280px);
	margin: 58px auto 34px;
}
.section-card {
	position: relative;
	min-height: 174px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mhs-line);
	border-radius: 16px;
	background: #fff !important;
	box-shadow: 0 12px 34px rgba(16,35,63,.08);
	overflow: hidden;
	list-style: none;
	counter-increment: section-topic;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.section-card:hover { transform: translateY(-5px); border-color: rgba(17,115,186,.42); box-shadow: 0 22px 48px rgba(17,82,128,.16); }
.section-card a {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	min-height: 174px;
	margin: 0;
	padding: 76px 62px 27px 26px;
	background: linear-gradient(145deg, #fff 0%, #f4f7f9 100%);
	color: var(--mhs-navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.015em;
	transition: background .2s ease, color .2s ease;
}
.section-card a::before {
	position: absolute;
	top: 24px;
	left: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mhs-mist);
	color: var(--mhs-teal);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	content: counter(section-topic, decimal-leading-zero);
}
.section-card:nth-child(3n+2) a::before { background: #edf0f1; color: #626a6e; }
.section-card:nth-child(3n+3) a::before { background: #e4eff7; color: var(--mhs-navy); }
.section-card a::after {
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(17,115,186,.28);
	border-radius: 50%;
	color: var(--mhs-teal);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	content: "→";
}
.section-card a:hover { background: linear-gradient(145deg, var(--mhs-navy), var(--mhs-navy-deep)); color: #fff; }
.section-card a:hover::before { background: rgba(255,255,255,.12); color: var(--mhs-slate-light); }
.section-card a:hover::after { border-color: var(--mhs-slate-light); background: var(--mhs-slate-light); color: var(--mhs-navy-deep); }
.section-card a:focus-visible { outline: 3px solid rgba(17,115,186,.48); outline-offset: -3px; }

/* Image-led section directory cards */
.section-card.has-image,
.section-card.has-image a {
	min-height: 238px;
}
.section-card.has-image {
	border-color: rgba(255,255,255,.16);
	background: var(--mhs-navy-deep) !important;
	box-shadow: 0 16px 38px rgba(7,59,93,.2);
}
.section-card.has-image:hover {
	border-color: rgba(132,137,139,.72);
	box-shadow: 0 25px 54px rgba(7,59,93,.3);
}
.section-card.has-image a,
.section-card.has-image a:hover {
	padding: 104px 64px 25px 25px;
	background-color: var(--mhs-navy-deep);
	background-image:
		linear-gradient(180deg, rgba(4,35,56,.04) 18%, rgba(7,59,93,.36) 50%, rgba(4,35,56,.96) 100%),
		var(--section-image);
	background-position: center, center;
	background-size: cover, cover;
	color: #fff;
	font-size: 19px;
	text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.section-card.has-image a::before,
.section-card.has-image:nth-child(3n+2) a::before,
.section-card.has-image:nth-child(3n+3) a::before,
.section-card.has-image a:hover::before {
	top: 20px;
	left: 20px;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255,255,255,.34);
	background: rgba(4,35,56,.64);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	text-shadow: none;
}
.section-card.has-image a::after,
.section-card.has-image a:hover::after {
	right: 20px;
	bottom: 20px;
	border-color: rgba(255,255,255,.48);
	background: rgba(4,35,56,.58);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	text-shadow: none;
}
.section-card.has-image a:hover::after {
	border-color: var(--mhs-slate-light);
	background: var(--mhs-slate-light);
	color: var(--mhs-navy-deep);
}

.article-section-more {
	float: none;
	clear: both;
	width: min(100% - 48px, 880px);
	margin: 0 auto 24px;
	padding: 0;
}
.article-section-more-heading {
	display: block;
	padding: 0 2px 20px;
	border-bottom: 1px solid rgba(7,59,93,.18);
}
.article-section-more-heading span {
	display: block;
	margin-bottom: 4px;
	color: var(--mhs-teal);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.article-section-more-heading h2 {
	margin: 0;
	color: var(--mhs-navy-deep);
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.1;
}
.article-section-more-heading > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--mhs-navy);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
.article-section-more-heading > a span { margin: 0; font-size: 18px; letter-spacing: 0; transition: transform .2s; }
.article-section-more-heading > a:hover span { transform: translateX(3px); }
.article-section-more .article-section-card-index {
	width: 100%;
	margin: 22px 0 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-page-canvas.has-section-context .article-box {
	order: 1;
	float: none;
	clear: both;
	width: min(100% - 48px, 880px) !important;
	margin: 42px auto 24px !important;
}
.article-page-canvas.has-section-context .article-section-more {
	order: 3;
	width: min(100% - 48px, 880px) !important;
	margin: 0 auto 24px !important;
}
.article-page-canvas.has-section-context .interested,
.article-page-canvas.has-section-context .articledates {
	float: none;
	clear: both;
	width: min(100% - 48px, 880px) !important;
	margin: 0 auto 24px !important;
}
.article-page-canvas.has-section-context { display: flex; flex-direction: column; }
.article-page-canvas.has-section-context .articledates { order: 2; margin-bottom: 24px !important; }
.article-page-canvas.has-section-context .interested { order: 4; margin-bottom: 80px !important; }

.article-box {
	float: left;
	width: min(calc(72% - 80px), 880px);
	margin: 58px 0 80px max(24px, calc((100% - 1280px) / 2));
	padding: 38px;
	border: 1px solid var(--mhs-line);
	border-radius: var(--mhs-radius);
	background: #fff !important;
	box-shadow: var(--mhs-shadow);
}
.article-box .box-heading { margin: -38px -38px 34px; padding: 25px 38px; border-radius: var(--mhs-radius) var(--mhs-radius) 0 0; background: var(--mhs-navy) !important; color: #fff; font-size: clamp(25px, 3vw, 36px); font-weight: 700; line-height: 1.15; }
.article-box .box-content { color: #2e3949; font-size: 17px; line-height: 1.75; }
.article-box .box-content a { color: var(--mhs-teal); text-decoration: underline; }
.article-box .box-content img { max-width: 100%; height: auto; border-radius: 10px; }
.article-box .mhs_s3_gallery { display: none; }
.article-box .s3_gallery {
	width: 100%;
	height: clamp(290px, 46vw, 500px);
	margin: 22px 0;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 14px;
	background: var(--mhs-navy-deep);
	box-shadow: 0 15px 38px rgba(7,59,93,.2);
}
.article-box .s3_gallery img.ShulGalleryElement {
	top: 0 !important;
	left: 0 !important;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border-radius: 14px;
	object-fit: contain;
}
.shul_gallery .shul-gallery-mode-switch {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 6;
	display: flex;
	gap: 3px;
	padding: 3px;
	border: 1px solid rgba(255,255,255,.38);
	border-radius: 999px;
	background: rgba(4,35,56,.78);
	box-shadow: 0 5px 18px rgba(4,35,56,.25);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}
.shul_gallery .shul-gallery-mode-button {
	padding: 7px 11px;
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255,255,255,.82);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.shul_gallery .shul-gallery-mode-button:hover { color: #fff; }
.shul_gallery .shul-gallery-mode-button.is-active {
	background: #fff;
	box-shadow: 0 2px 8px rgba(4,35,56,.2);
	color: var(--mhs-navy-deep);
}
.shul_gallery .shul-gallery-mode-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.shul_gallery .shul-gallery-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 58px;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid rgba(255,255,255,.38);
	border-radius: 999px;
	background: rgba(4,35,56,.7);
	box-shadow: 0 5px 18px rgba(4,35,56,.25);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}
.shul_gallery .shul-gallery-prev { left: 14px; }
.shul_gallery .shul-gallery-next { right: 14px; }
.shul_gallery .shul-gallery-nav:hover {
	border-color: rgba(255,255,255,.8);
	background: rgba(4,35,56,.9);
	transform: translateY(-50%) scale(1.04);
}
.shul_gallery .shul-gallery-nav:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.shul_gallery .shul-gallery-grid { display: none; }
.shul_gallery.shul-gallery-album-mode {
	height: auto !important;
	min-height: 0;
	padding: 66px 18px 18px;
	box-sizing: border-box;
	overflow: visible;
	background: var(--mhs-navy-deep);
}
.shul_gallery.shul-gallery-album-mode .shul-gallery-photo,
.shul_gallery.shul-gallery-album-mode .shul-gallery-nav { display: none !important; }
.shul_gallery.shul-gallery-album-mode .shul-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	width: 100%;
}
.shul_gallery .shul-gallery-thumbnail-link {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	box-shadow: 0 5px 16px rgba(4,35,56,.22);
	text-decoration: none !important;
}
.shul_gallery .shul-gallery-grid img.shul-gallery-thumbnail {
	position: static !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	max-height: none;
	border-radius: 9px !important;
	object-fit: cover;
	transition: transform .2s ease;
}
.shul_gallery .shul-gallery-thumbnail-link:hover img { transform: scale(1.04); }
.shul_gallery .shul-gallery-thumbnail-link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.shul-gallery-unavailable { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 700; }
.shul-gallery-unavailable span { padding: 10px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }

.article-page-canvas {
	position: relative;
	display: flow-root;
	isolation: isolate;
	min-height: 620px;
	overflow: hidden;
	background: var(--article-wash, #e8efee);
}
.article-page-canvas::before,
.article-page-canvas::after {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	pointer-events: none;
	content: "";
}
.article-page-canvas.has-photo::before {
	z-index: -2;
	top: -46px;
	right: -46px;
	left: -46px;
	height: 790px;
	background-image: var(--article-backdrop-image);
	background-position: center 32%;
	background-size: cover;
	filter: blur(22px) saturate(.76);
	opacity: .72;
	transform: scale(1.08);
}
.article-page-canvas.has-photo::after {
	z-index: -1;
	height: 880px;
	background: linear-gradient(180deg, rgba(244,247,249,.24) 0%, rgba(244,247,249,.6) 48%, var(--article-wash) 92%);
}
.article-page-canvas.no-photo::before {
	z-index: -1;
	height: 520px;
	background: radial-gradient(circle at 18% 8%, rgba(255,255,255,.62), transparent 48%);
}
.article-page-canvas > * { position: relative; z-index: 1; }
.article-page-canvas .article-box,
.article-page-canvas .interested,
.article-page-canvas .share,
.article-page-canvas .articledates {
	border-color: rgba(255,255,255,.7);
	background: rgba(255,255,255,.93) !important;
	box-shadow: 0 20px 54px rgba(7,59,93,.15);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.interested, .share, .articledates {
	float: right;
	width: min(calc(28% - 32px), 340px);
	margin: 58px max(24px, calc((100% - 1280px) / 2)) 0 0;
	padding: 24px;
	border: 1px solid var(--mhs-line);
	border-radius: 14px;
	background: #fff !important;
	box-shadow: 0 12px 38px rgba(16,35,63,.08);
	font-size: 15px;
}
.interested .box-heading, .share .box-heading, .articledates .box-heading { margin: -24px -24px 22px; padding: 18px 24px; border-radius: 14px 14px 0 0; background: var(--mhs-navy) !important; color: #fff; font-size: 16px; font-weight: 700; }
.interested .box-content b, .articledates .box-content b { color: var(--mhs-teal); }
.section-card-index + .interested {
	float: none;
	width: min(100% - 48px, 1280px);
	margin: 0 auto 80px;
	padding: 0;
	overflow: hidden;
}
.section-card-index + .interested .box-heading { margin: 0; padding: 20px 28px; border-radius: 14px 14px 0 0; }
.section-card-index + .interested .box-content { padding: 27px 28px 7px; columns: 3; column-gap: 44px; }

/* Lists, calendar, search and forms */
.search-box, .book-box, .news-box {
	width: min(100% - 48px, 1280px);
	min-height: 120px;
	margin: 45px auto 80px;
	padding: 34px;
	border: 1px solid var(--mhs-line);
	border-radius: var(--mhs-radius);
	background: #fff !important;
	box-shadow: var(--mhs-shadow);
}
.search-box li { margin-bottom: 27px; }
.book-box .event, .news-box .item { padding: 18px 0; margin: 0; border-bottom: 1px solid var(--mhs-line); }
.book-box .event:last-child, .news-box .item:last-child { border-bottom: 0; }
.book-box .event b, .news-box .item b { color: var(--mhs-navy); font-size: 23px; }
.news-box .item.has-thumbnail { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 28px; }
.news-list-copy { min-width: 0; }
.news-list-thumbnail-link { display: block; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(19,35,63,.14); }
.news-list-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.news-list-thumbnail-link:not(.is-static):hover .news-list-thumbnail { transform: scale(1.035); }

/* Search and contact */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.search-page, .contact-page {
	width: min(100% - 48px, 1180px);
	margin: 48px auto 82px;
}
.interior-intro {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 42px;
	min-height: 230px;
	padding: 42px 46px;
	border-radius: 22px;
	background:
		linear-gradient(105deg, rgba(4,35,56,.98), rgba(7,59,93,.95) 58%, rgba(17,115,186,.8)),
		url('/public/images/editorial-prayer.jpg') center 42% / cover;
	box-shadow: var(--mhs-shadow);
	color: #fff;
	overflow: hidden;
}
.interior-intro::after {
	position: absolute;
	top: -95px;
	right: -70px;
	width: 290px;
	height: 290px;
	border: 1px solid rgba(132,137,139,.3);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018);
	content: "";
}
.interior-intro-copy { position: relative; z-index: 1; flex: 0 0 auto; }
.interior-kicker { margin-bottom: 11px; color: var(--mhs-slate-light); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.interior-intro h1 { margin: 0; color: #fff; font-size: clamp(46px, 5vw, 66px); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.interior-intro p { margin: 17px 0 0; color: rgba(255,255,255,.74); font-size: 18px; font-weight: 600; }

.search-page-form {
	position: relative;
	z-index: 1;
	flex: 0 1 520px;
	margin-bottom: 3px;
}
.search-page-form input {
	display: block;
	width: 100%;
	height: 58px;
	padding: 0 66px 0 21px;
	border: 1px solid rgba(255,255,255,.33);
	border-radius: 12px;
	outline: 0;
	background: rgba(255,255,255,.12);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
	color: #fff;
	font-size: 17px;
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-page-form input::placeholder { color: rgba(255,255,255,.6); }
.search-page-form input:focus { border-color: var(--mhs-slate-light); background: rgba(255,255,255,.18); box-shadow: 0 0 0 4px rgba(132,137,139,.2); }
.search-page-form input::-webkit-search-cancel-button { filter: brightness(0) invert(1); opacity: .6; }
.search-page-form button {
	position: absolute;
	top: 7px;
	right: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: var(--mhs-logo-blue);
	color: #fff;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.search-page-form button:hover { background: var(--mhs-navy); transform: translateY(-1px); }
.search-page-form button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.search-results-panel {
	margin-top: 20px;
	border: 1px solid var(--mhs-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 42px rgba(12,28,51,.08);
	overflow: hidden;
}
.search-results-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 27px 32px;
	border-bottom: 1px solid var(--mhs-line);
	background: linear-gradient(135deg, #edf4f8, #fff);
}
.search-results-kicker { display: block; margin-bottom: 3px; color: var(--mhs-teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-results-heading h2 { margin: 0; color: var(--mhs-navy-deep); font-size: 27px; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.search-results-count { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: var(--mhs-teal); color: #fff; font-size: 12px; font-weight: 800; }
.search-result-list { margin: 0; padding: 0; counter-reset: search-result; list-style: none; }
.search-result-list li { margin: 0; counter-increment: search-result; }
.search-result-list li + li { border-top: 1px solid var(--mhs-line); }
.search-result-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 38px;
	align-items: center;
	gap: 21px;
	min-height: 134px;
	padding: 22px 27px;
	color: var(--mhs-ink);
	transition: background .2s;
}
.search-result-card:hover { background: #eef5fa; color: var(--mhs-ink); }
.search-result-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e3eff8;
	color: var(--mhs-teal);
	font-size: 12px;
	font-weight: 800;
}
.search-result-number::before { content: counter(search-result, decimal-leading-zero); }
.search-result-copy { display: block; min-width: 0; }
.search-result-title { display: block; margin-bottom: 3px; color: var(--mhs-navy); font-size: 20px; font-weight: 700; line-height: 1.25; }
.search-result-url { display: block; overflow: hidden; margin-bottom: 7px; color: var(--mhs-teal); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.search-result-summary { display: block; color: #687586; font-size: 14px; line-height: 1.45; }
.search-result-card mark { padding: 0 2px; border-radius: 3px; background: #dcecf7; color: inherit; font-weight: 800; }
.search-result-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid #cbd8d8;
	border-radius: 50%;
	color: var(--mhs-teal);
	font-size: 18px;
	transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.search-result-card:hover .search-result-arrow { border-color: var(--mhs-teal); background: var(--mhs-teal); color: #fff; transform: translateX(2px); }
.search-empty-state { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 230px; padding: 35px; color: #687586; }
.search-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: #e3eff8; color: var(--mhs-teal); }
.search-empty-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.search-empty-state strong { display: block; color: var(--mhs-navy); font-size: 21px; }
.search-empty-state p { margin: 4px 0 0; font-size: 15px; }

.contact-intro-mark { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 94px; height: 94px; margin: 0 34px 3px 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); color: var(--mhs-slate-light); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.contact-intro-mark svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.contact-form-card { margin-top: 20px; padding: 35px 38px 38px; border: 1px solid var(--mhs-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 42px rgba(12,28,51,.08); }
.contact-form-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--mhs-line); }
.contact-form-heading span { order: 2; color: var(--mhs-teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-form-heading h2 { margin: 0; color: var(--mhs-navy-deep); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.contact-field { display: block; color: var(--mhs-navy); font-size: 14px; font-weight: 700; }
.contact-field > span { display: block; margin-bottom: 7px; }
.contact-field input, .contact-field select, .contact-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d7dfe2;
	border-radius: 10px;
	outline: 0;
	background: #f8faf9;
	color: var(--mhs-ink);
	font-size: 16px;
	font-weight: 400;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-field input, .contact-field select { height: 50px; }
.contact-field textarea { min-height: 158px; resize: vertical; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--mhs-teal-bright); background: #fff; box-shadow: 0 0 0 4px rgba(17,115,186,.12); }
.contact-field-message { grid-column: 1 / -1; }
.contact-form-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-top: 25px; }
.contact-recaptcha { min-width: 304px; min-height: 78px; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-width: 145px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--mhs-teal); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.contact-submit span { color: var(--mhs-slate-light); font-size: 19px; }
.contact-submit:hover { background: var(--mhs-navy); box-shadow: 0 8px 20px rgba(17,82,128,.18); transform: translateY(-1px); }
.contact-form-status { margin-top: 22px; padding: 13px 16px; border: 1px solid; border-radius: 9px; font-size: 14px; font-weight: 700; }
.contact-form-status.is-error { border-color: #e0c2bd; background: #fbefed; color: #7d352c; }
.contact-form-status.is-success { border-color: #a9d0bf; background: #eaf6f0; color: #255e45; }
.contact-details-canvas { border-top: 1px solid #d7e0e3; background: linear-gradient(135deg, #e4eef5, #f2f4f5); }
.contact-details-canvas .article-box .box-heading { background: var(--mhs-navy-deep) !important; }

.calendar-page {
	width: min(100% - 48px, 1180px);
	margin: 48px auto 82px;
}
.calendar-intro {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	min-height: 230px;
	padding: 42px 46px;
	border-radius: 22px;
	background:
		linear-gradient(105deg, rgba(4,35,56,.98), rgba(7,59,93,.95) 58%, rgba(17,115,186,.8)),
		url('/public/images/editorial-prayer.jpg') center 42% / cover;
	box-shadow: var(--mhs-shadow);
	color: #fff;
	overflow: hidden;
}
.calendar-intro::after {
	position: absolute;
	top: -95px;
	right: -70px;
	width: 290px;
	height: 290px;
	border: 1px solid rgba(132,137,139,.3);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018);
	content: "";
}
.calendar-intro-copy, .calendar-navigation { position: relative; z-index: 1; }
.calendar-kicker { margin-bottom: 11px; color: var(--mhs-slate-light); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.calendar-intro h1 { margin: 0; color: #fff; font-size: clamp(46px, 5vw, 66px); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.calendar-intro p { margin: 17px 0 0; color: rgba(255,255,255,.74); font-size: 18px; font-weight: 600; }
.calendar-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.calendar-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 17px;
	border: 1px solid rgba(255,255,255,.34);
	border-radius: 9px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	backdrop-filter: blur(7px);
}
.calendar-navigation a:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.calendar-navigation a span { color: var(--mhs-slate-light); font-size: 18px; }
.calendar-navigation .calendar-navigation-current { border-color: var(--mhs-logo-blue); background: var(--mhs-logo-blue); color: #fff; }
.calendar-navigation .calendar-navigation-current:hover { border-color: #2d88c8; background: #2d88c8; color: #fff; }

.calendar-access-notice {
	display: flex;
	align-items: center;
	gap: 17px;
	margin: 20px 0;
	padding: 17px 21px;
	border: 1px solid #c6d4de;
	border-radius: 13px;
	background: #edf5fa;
	color: #3f5666;
}
.calendar-access-notice svg { flex: 0 0 auto; width: 28px; height: 28px; fill: none; stroke: var(--mhs-logo-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.calendar-access-notice strong { display: block; color: var(--mhs-navy-deep); font-size: 15px; }
.calendar-access-notice p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; }
.calendar-access-notice a { color: var(--mhs-navy); font-weight: 700; text-decoration: underline; }

.calendar-agenda { display: grid; gap: 13px; margin-top: 22px; }
.calendar-day {
	display: grid;
	grid-template-columns: 178px minmax(0, 1fr);
	min-height: 126px;
	border: 1px solid var(--mhs-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 9px 30px rgba(12,28,51,.055);
	overflow: hidden;
}
.calendar-day-heading {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 22px;
	border-right: 1px solid var(--mhs-line);
	background: #edf4f8;
}
.calendar-day-name { color: var(--mhs-teal); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calendar-day-date { display: flex; align-items: baseline; gap: 7px; margin-top: 1px; }
.calendar-day-date strong { color: var(--mhs-navy-deep); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.calendar-day-date span { color: #637080; font-size: 16px; font-weight: 700; }
.calendar-day-date .calendar-today-label { margin-left: 3px; padding: 3px 8px; border-radius: 999px; background: var(--mhs-teal); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.3; }
.calendar-all-day-events { display: grid; gap: 4px; width: 100%; margin: 9px 0 0; padding: 0; list-style: none; }
.calendar-all-day-events li { min-width: 0; }
.calendar-all-day-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; }
.calendar-all-day-entry > a { display: block; min-width: 0; overflow: hidden; color: var(--mhs-navy); font-size: 12px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calendar-all-day-entry > a:hover { color: var(--mhs-teal); text-decoration: underline; }
.calendar-add-control {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}
.calendar-add-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid #c8dbe7;
	border-radius: 9px;
	background: #fff;
	color: var(--mhs-teal);
	cursor: pointer;
	transition: border-color .18s, background .18s, color .18s, transform .18s, box-shadow .18s;
}
.calendar-add-trigger:hover { border-color: var(--mhs-teal); background: #e5f1f8; color: var(--mhs-navy); box-shadow: 0 5px 14px rgba(17,82,128,.12); transform: translateY(-1px); }
.calendar-add-trigger:focus-visible { outline: 3px solid rgba(17,115,186,.25); outline-offset: 2px; }
.calendar-add-icon { display: inline-flex; align-items: center; justify-content: center; }
.calendar-add-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.calendar-add-control--all-day .calendar-add-trigger { width: 28px; height: 28px; min-width: 28px; min-height: 28px; border-radius: 8px; }
.calendar-add-control--all-day .calendar-add-icon svg { width: 17px; height: 17px; }
.calendar-add-control--article { align-self: center; }
.calendar-add-control--article .calendar-add-trigger { flex-direction: column; gap: 5px; width: 88px; height: auto; min-height: 64px; padding: 4px; border: 0; background: transparent; box-shadow: none; }
.calendar-add-control--article .calendar-add-trigger:hover { background: #edf5fa; transform: none; }
.calendar-add-control--article .calendar-add-icon { width: 38px; height: 38px; border: 1px solid #c8dbe7; border-radius: 10px; background: #fff; }
.calendar-add-trigger-label { color: var(--mhs-navy); font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; }

.calendar-add-dialog {
	width: min(calc(100% - 32px), 430px);
	max-width: 430px;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #fff;
	color: var(--mhs-ink);
	box-shadow: 0 28px 80px rgba(4,35,56,.3);
	overflow: hidden;
}
.calendar-add-dialog:not([open]) { display: none; }
.calendar-add-dialog::backdrop { background: rgba(4,26,43,.68); backdrop-filter: blur(3px); }
.calendar-add-dialog-card { padding: 25px; }
.calendar-add-dialog-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 19px; border-bottom: 1px solid var(--mhs-line); }
.calendar-add-dialog-heading > .calendar-add-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #e5f1f8; color: var(--mhs-teal); }
.calendar-add-dialog-heading > .calendar-add-icon svg { width: 24px; height: 24px; }
.calendar-add-dialog-heading h2 { margin: 0; color: var(--mhs-navy-deep); font-size: 23px; font-weight: 700; line-height: 1.1; }
.calendar-add-dialog-heading p { margin: 4px 0 0; color: #637080; font-size: 14px; line-height: 1.35; }
.calendar-add-dialog-options { display: grid; gap: 9px; margin-top: 18px; }
.calendar-add-provider {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 11px;
	min-height: 52px;
	padding: 8px 12px;
	border: 1px solid #d5e1e8;
	border-radius: 11px;
	background: #f7fafb;
	color: var(--mhs-navy);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.calendar-add-provider:hover { border-color: #aecde1; background: #edf5fa; color: var(--mhs-navy); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17,82,128,.08); }
.calendar-add-provider:focus-visible { outline: 3px solid rgba(17,115,186,.25); outline-offset: 2px; }
.calendar-add-provider-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 800; }
.calendar-add-provider--google .calendar-add-provider-mark { background: #4285f4; }
.calendar-add-provider--outlook .calendar-add-provider-mark { background: #146ec5; }
.calendar-add-provider--apple .calendar-add-provider-mark { background: #29313a; }
.calendar-add-provider-arrow { color: #8a98a3; font-size: 17px; text-align: right; }
.calendar-add-dialog form { margin: 16px 0 0; }
.calendar-add-cancel { width: 100%; min-height: 44px; margin: 0; padding: 8px 15px; border: 1px solid #cdd8df; border-radius: 10px; background: #fff; color: #52616c; font-size: 14px; font-weight: 700; cursor: pointer; }
.calendar-add-cancel:hover { border-color: #9eafb9; background: #f3f6f7; color: var(--mhs-navy); }
.calendar-add-dialog.is-fallback-open { position: fixed; z-index: 1001; top: 50%; left: 50%; display: block; transform: translate(-50%, -50%); }
body.calendar-dialog-fallback-open::before { position: fixed; z-index: 1000; inset: 0; background: rgba(4,26,43,.68); content: ""; }
.calendar-day-events {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: center;
	gap: 9px;
	min-width: 0;
	padding: 14px;
}
.calendar-event {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 25px;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid #d8e4eb;
	border-radius: 10px;
	background: #f5f8fa;
	color: var(--mhs-ink);
	transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.calendar-event:hover { transform: translateY(-1px); border-color: #aecde1; background: #eaf3f9; box-shadow: 0 7px 18px rgba(17,82,128,.1); color: var(--mhs-ink); }
.calendar-event-main { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; align-self: stretch; gap: 12px; min-width: 0; color: var(--mhs-ink); }
.calendar-event-main:hover { color: var(--mhs-ink); text-decoration: none; }
.calendar-event-time { color: var(--mhs-teal); font-size: 13px; font-weight: 800; white-space: nowrap; }
.calendar-event-title { min-width: 0; overflow: hidden; color: var(--mhs-navy); font-size: 15px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-arrow { display: inline-flex; align-items: center; justify-content: center; width: 25px; min-height: 34px; color: #a6b0b8; font-size: 17px; text-align: center; transition: color .18s, transform .18s; }
.calendar-event-arrow:hover { color: var(--mhs-teal); }
.calendar-event:hover .calendar-event-arrow { color: var(--mhs-teal); transform: translateX(2px); }
.article-date-entry { display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; gap: 10px; padding: 0 0 16px; }
.article-date-entry + .article-date-entry { padding-top: 16px; border-top: 1px solid rgba(7,59,93,.13); }
.article-date-entry:last-child { padding-bottom: 0; }
.article-date-copy { min-width: 0; }
.article-date-meta { margin-top: 3px; color: #637080; font-size: 13px; }
.calendar-empty-state {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: center;
	gap: 11px;
	min-height: 66px;
	color: #8b949d;
	font-size: 14px;
}
.calendar-empty-state span { width: 9px; height: 9px; border: 2px solid #aab5bc; border-radius: 50%; }
.calendar-day.is-today { border: 2px solid var(--mhs-logo-blue); box-shadow: 0 13px 34px rgba(17,115,186,.15); }
.calendar-day.is-today .calendar-day-heading { border-right-color: #b8d3e5; background: #e4f0f8; }
.calendar-day.is-past { opacity: .62; }
.calendar-day.is-past .calendar-day-heading { background: #f2f2f1; }
.calendar-bottom-bar {
	position: relative;
	display: flex;
	justify-content: flex-end;
	min-height: 78px;
	margin-top: 18px;
	padding: 17px 20px;
	border-radius: 16px;
	background: linear-gradient(105deg, rgba(4,35,56,.98), rgba(7,59,93,.96) 62%, rgba(17,115,186,.86));
	box-shadow: 0 9px 30px rgba(17,82,128,.12);
	box-sizing: border-box;
	overflow: hidden;
}
.calendar-bottom-bar::after {
	position: absolute;
	top: -86px;
	right: -34px;
	width: 180px;
	height: 180px;
	border: 1px solid rgba(216,220,222,.18);
	border-radius: 50%;
	box-shadow: 0 0 0 27px rgba(255,255,255,.02);
	content: "";
}
.calendar-bottom-bar .calendar-navigation { align-items: center; }

.article-box.contact_box { float: none; width: min(100% - 48px, 1100px); height: auto; margin: 55px auto 80px; }
.article-box.contact_box .box-content input,
.article-box.contact_box .box-content select,
.article-box.contact_box .box-content textarea { padding: 10px 12px; border: 1px solid var(--mhs-line); border-radius: 7px; background: #fbfbfa; }
.article-box.contact_box .box-content input:focus,
.article-box.contact_box .box-content select:focus,
.article-box.contact_box .box-content textarea:focus { border-color: var(--mhs-teal-bright); box-shadow: 0 0 0 4px rgba(17,115,186,.12); }

#error { width: min(100% - 48px, 1280px); margin: 90px auto; }
.popup-front { border: 0; border-radius: 14px; box-shadow: var(--mhs-shadow); overflow: hidden; }
.popup-front h1 { background: var(--mhs-navy); }

/* Footer */
#footer { width: 100%; margin: 0; padding: 0 0 30px; background: var(--mhs-navy-deep); color: #c5ced9; }
.auth_bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; padding: 14px max(24px, calc((100% - 1280px) / 2)); border: 0; background: var(--mhs-teal); color: #fff; font-size: 14px; }
.auth_bar .auth-status, .auth_bar .auth-action { white-space: nowrap; }
.auth_bar a { color: #fff; font-weight: 700; }
.footer-main { display: flex; align-items: center; gap: 46px; width: min(100% - 48px, 1280px); min-height: 120px; margin: 0 auto; }
.footer-mark { flex: 0 0 auto; width: 60px; height: 64px; object-fit: contain; opacity: .96; }
.footer-links { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
#footer li { float: none; width: auto; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 12px; }
#footer li:first-of-type { margin-left: 0; }
#footer li a { display: block; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
#footer li a:hover { color: #fff; }
#footer .bottom-section { clear: both; display: flex; justify-content: space-between; gap: 24px; width: min(100% - 48px, 1280px); margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8f9bab; font-size: 12px; line-height: 1; text-align: left; white-space: nowrap; }
#footer .bottom-section a { color: #c8d0da; }

@media (max-width: 1120px) {
	.primary-header { gap: 20px; }
	#header #logo { width: 218px; }
	#header .nav li { min-width: 78px; padding: 0 6px; font-size: 14px; }
	#header .header-search { flex-basis: 170px; }
	.home-content #main, .home-content #gallery { grid-column: span 6; }
	.home-content:has(#whatson) #main,
	.home-content:has(#whatson) #whatson,
	.home-content:has(#whatson) #gallery { grid-column: span 6; }
	.member-dashboard { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.section-card-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-main { gap: 28px; }
	.footer-links { gap: 13px; }
	#footer li a { font-size: 12px; }
}

@media (max-width: 900px) {
	#header { display: flex; flex-direction: column; }
	.primary-header { order: 1; flex-wrap: wrap; width: 100%; height: auto; min-height: 82px; padding: 0 18px; }
	#header #logo { width: min(245px, 64vw); }
	#header .expand-mobile-header {
		position: absolute;
		top: 17px;
		right: 18px;
		left: auto;
		display: block;
		width: 48px;
		height: 48px;
		margin: 0;
		border: 1px solid var(--mhs-line);
		border-radius: 9px;
		background: #fff;
		cursor: pointer;
	}
	#header .expand-mobile-header span,
	#header .expand-mobile-header::before,
	#header .expand-mobile-header::after { position: absolute; left: 12px; width: 22px; height: 2px; content: ""; background: var(--mhs-navy); transition: transform .2s, opacity .2s; }
	#header .expand-mobile-header span { top: 22px; }
	#header .expand-mobile-header::before { top: 15px; }
	#header .expand-mobile-header::after { top: 29px; }
	#header.menu-open .expand-mobile-header span { opacity: 0; }
	#header.menu-open .expand-mobile-header::before { top: 22px; transform: rotate(45deg); }
	#header.menu-open .expand-mobile-header::after { top: 22px; transform: rotate(-45deg); }

	#header .nav { order: 3; flex: 0 0 100%; display: none; width: calc(100% + 36px); height: auto; margin: 0 -18px; padding: 10px 18px 4px; background: var(--mhs-navy); }
	#header .nav li { display: block; width: 100%; min-width: 0; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 17px; text-align: left; }
	#header .nav li::after { display: none; }
	#header .nav li > a { color: #fff; }
	#header .nav li .sub { position: static; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100% !important; margin: 8px 0 0; padding: 4px 0 2px 8px; border: 0; background: transparent !important; box-shadow: none; }
	#header .nav li .sub a { padding: 6px 4px; color: #bcc8d4; font-size: 14px; }
	#header .header-search { order: 4; flex: 0 0 calc(100% + 36px); display: none; margin: 0 -18px; padding: 14px 18px 18px; background: var(--mhs-navy); }
	#header .header-search #q { background: #fff; }

	.site-hero, .hero-slide { background-position: 60% center; }
	.site-hero { min-height: 0; }
	.hero-overlay { background: linear-gradient(90deg, rgba(4,35,56,.96), rgba(7,59,93,.76) 70%, rgba(17,115,186,.42)); }
	.hero-content { padding: calc(26px + var(--hero-extra-vertical-space)) 0 calc(30px + var(--hero-extra-vertical-space)); }
	.hero-content h1 { max-width: 620px; }
	.hero-actions { gap: 8px; }
	.hero-actions a { padding: 0 8px; font-size: 13px; }
	.home-content { margin-top: -55px; }
	.home-content #main, .home-content #whatson, .home-content #gallery,
	.home-content:has(#whatson) #main, .home-content:has(#whatson) #whatson, .home-content:has(#whatson) #gallery { grid-column: 1 / -1; }
	.member-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.member-card { min-height: 158px; }
	.calendar-page { width: calc(100% - 48px); margin-top: 32px; }
	.calendar-intro { min-height: 215px; padding: 34px; }
	.calendar-day { grid-template-columns: 154px minmax(0, 1fr); }
	.calendar-day-heading { padding: 18px; }
	.calendar-day-events { grid-template-columns: 1fr; }

	.section-container, .article-box { float: none; width: calc(100% - 48px); margin: 42px 24px; }
	.section-card-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.interested, .share, .articledates { float: none; width: calc(100% - 48px); margin: 24px; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.announcement-snackbar { right: 14px; grid-template-columns: 38px minmax(0, 1fr) 32px; gap: 11px; width: calc(100vw - 28px); margin: 0 !important; padding: 17px 14px; border-radius: 14px; }
	.announcement-snackbar-icon { width: 38px; height: 38px; border-radius: 10px; }
	.primary-header { min-height: 76px; }
	#header #logo { width: min(220px, 61vw); }
	#header .expand-mobile-header { top: 14px; right: 14px; }
	#header .nav li .sub { grid-template-columns: 1fr; }

	.site-hero { min-height: 0; background-position: 67% center; }
	.hero-slide { background-position: center; }
	.hero-overlay { background: linear-gradient(180deg, rgba(4,35,56,.7) 0%, rgba(7,59,93,.48) 48%, rgba(4,35,56,.8) 100%); }
	.hero-content { width: calc(100% - 36px); padding: calc(24px + var(--hero-extra-vertical-space)) 0 calc(28px + var(--hero-extra-vertical-space)); text-shadow: 0 2px 20px rgba(4,35,56,.68); }
	.hero-content h1 { font-size: clamp(38px, 11vw, 52px); }
	.hero-content p { margin-top: 16px; font-size: 16px; }
	.hero-actions a { min-width: 0; padding: 0 10px; }

	.home-content { display: block; width: calc(100% - 28px); margin-top: -42px; padding-bottom: 56px; }
	.home-content:has(.member-dashboard) { margin-top: 0; padding-top: 28px; }
	.home-content > * { margin-bottom: 18px !important; }
	.member-dashboard { display: grid; grid-template-columns: 1fr; gap: 12px; }
	.member-card { min-height: 148px; padding: 20px; border-radius: 14px; }
	.member-card--events, .member-card--eruv { height: auto; min-height: 0; }
	.member-card--events { max-height: none; }
	.member-card-event-browser,
	.member-card-event-list { flex: 0 0 auto; }
	.member-card-heading { margin-bottom: 11px; }
	.member-card-heading h2 { font-size: 17px; }
	.member-card-value { font-size: 32px; }
	.member-card-value--name { font-size: 29px; }
	.member-card p { margin-top: 7px; }
	.member-card p.member-card-date { margin-top: 0; }
	.member-card-event { padding: 12px 0; }
	.member-card-link { padding-top: 8px; }
	.home-login-modal { padding: 12px; }
	.home-login-dialog { padding: 31px 22px 25px; border-radius: 17px; }
	.shul_gallery .shul-gallery-mode-switch { top: 10px; right: 10px; }
	.shul_gallery .shul-gallery-mode-button { padding: 7px 9px; font-size: 12px; }
	.shul_gallery.shul-gallery-album-mode { padding: 58px 10px 10px; }
	.shul_gallery.shul-gallery-album-mode .shul-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.home-login-dialog h2 { padding-right: 27px; font-size: 27px; }
	.home-login-dialog > p { margin-bottom: 20px; font-size: 14px; }
	.home-login-close { top: 12px; right: 12px; }
	.home-box { min-height: 0; padding: 25px; border-radius: 14px; }
	.home-box .box-heading { margin: -25px -25px 24px; padding: 17px 25px; }
	.home-box.blocked { padding: 30px 25px; }
	.home-box.blocked .box-content { overflow: visible; }
	.home-box.blocked form small { float: none !important; display: block !important; margin: 15px 0 0 !important; text-align: left !important; }
	#gallery { height: 330px; min-height: 330px; }
	#gallery .box-heading { margin: 0; }
	#events-viewport { --news-item-height: 65px; --news-featured-height: 96px; height: calc(70px + var(--news-featured-height) + var(--news-item-height) + var(--news-item-height) + var(--news-item-height)); padding: 68px 0 0; }
	.news-widget-heading { padding: 0 13px 0 20px; }
	.news-widget-heading h2 { font-size: 22px; }
	.news-widget-title { gap: 8px; }
	.news-widget-view-all { font-size: 12px; }
	.news-ticker-control { width: 28px; height: 28px; }
	.news-feature { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; padding: 4px 14px; }
	.news-feature:first-child.has-thumbnail { grid-template-columns: 27px minmax(0, 1fr) 66px auto; }
	.news-feature:first-child .news-feature-thumbnail { width: 66px; height: 66px; border-radius: 8px; }
	.news-feature h3 { font-size: 17px; }
	.news-feature p { font-size: 13px; }
	.news-feature-arrow { width: 28px; height: 28px; }
	.calendar-page { width: calc(100% - 28px); margin: 18px auto 52px; }
	.calendar-intro { display: block; min-height: 280px; padding: 29px 24px 25px; border-radius: 17px; }
	.calendar-intro h1 { font-size: 48px; }
	.calendar-intro p { margin-top: 12px; font-size: 16px; }
	.calendar-navigation { justify-content: flex-start; margin-top: 29px; }
	.calendar-navigation a { min-height: 42px; padding: 0 13px; font-size: 13px; }
	.calendar-access-notice { align-items: flex-start; padding: 16px; }
	.calendar-access-notice p { font-size: 13px; }
	.calendar-agenda { gap: 11px; margin-top: 17px; }
	.calendar-day { display: block; min-height: 0; border-radius: 14px; }
	.calendar-day-heading { flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 5px 12px; padding: 15px 17px; border-right: 0; border-bottom: 1px solid var(--mhs-line); }
	.calendar-day-name { flex: 1 0 100%; }
	.calendar-day-date { margin: 0; }
	.calendar-day-date strong { font-size: 34px; }
	.calendar-all-day-events { flex: 1 0 100%; margin-top: 6px; }
	.calendar-day-events { grid-template-columns: 1fr; padding: 10px; }
	.calendar-event { grid-template-columns: minmax(0, 1fr) auto 22px; gap: 7px; min-height: 50px; }
	.calendar-event-main { grid-template-columns: 65px minmax(0, 1fr); gap: 9px; }
	.calendar-event-title { white-space: normal; }
	.calendar-add-control--agenda .calendar-add-trigger { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
	.calendar-add-dialog-card { padding: 21px; }
	.article-date-entry { grid-template-columns: minmax(0, 1fr) 80px; }
	.calendar-add-control--article .calendar-add-trigger { width: 80px; }
	.calendar-empty-state { min-height: 52px; }
	.calendar-day.is-today .calendar-day-heading { border-right: 0; border-bottom-color: #b8d3e5; }
	.calendar-bottom-bar { justify-content: flex-start; min-height: 70px; margin-top: 14px; padding: 14px; border-radius: 14px; }
	.calendar-bottom-bar .calendar-navigation { justify-content: flex-start; margin-top: 0; }

	.search-page, .contact-page { width: calc(100% - 28px); margin: 18px auto 52px; }
	.interior-intro { display: block; min-height: 280px; padding: 29px 24px 25px; border-radius: 17px; }
	.interior-intro h1 { font-size: 48px; }
	.interior-intro p { margin-top: 12px; font-size: 16px; }
	.search-page-form { width: min(100%, 560px); margin: 29px 0 0; }
	.search-page-form input { height: 54px; }
	.search-page-form button { top: 5px; }
	.search-results-heading { padding: 22px 20px; }
	.search-result-card { grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 15px; min-height: 122px; padding: 19px 18px; }
	.search-result-title { font-size: 18px; }
	.search-result-arrow { width: 34px; height: 34px; }
	.contact-intro-mark { display: none; }
	.contact-form-card { padding: 26px 24px 28px; }
	.contact-form-grid { grid-template-columns: 1fr; }
	.contact-field-message { grid-column: auto; }

	h2.section-title, h2.search-title, h2.book-title, h2.news-title { min-height: 230px; padding: 42px 20px; white-space: normal; font-size: 44px; }
	h2.section-title::before, h2.search-title::before, h2.book-title::before, h2.news-title::before { top: 36px; left: 20px; }
	h2.section-title img, h2.search-title img, h2.book-title img, h2.news-title img { display: none; }
	.section-container, .article-box, .interested, .share, .articledates, .article-box.contact_box { width: calc(100% - 28px) !important; margin: 18px 14px !important; }
	.section-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.section-card, .section-card a { min-height: 154px; }
	.section-card a { padding: 66px 50px 22px 18px; font-size: 16px; }
	.section-card a::before { top: 18px; left: 18px; width: 34px; height: 34px; }
	.section-card a::after { right: 16px; bottom: 18px; width: 32px; height: 32px; }
	.section-card.has-image, .section-card.has-image a { min-height: 190px; }
	.section-card.has-image a, .section-card.has-image a:hover { padding: 78px 48px 18px 17px; font-size: 15px; }
	.section-card.has-image a::before,
	.section-card.has-image:nth-child(3n+2) a::before,
	.section-card.has-image:nth-child(3n+3) a::before,
	.section-card.has-image a:hover::before { top: 14px; left: 14px; width: 32px; height: 32px; }
	.section-card.has-image a::after,
	.section-card.has-image a:hover::after { right: 13px; bottom: 15px; width: 30px; height: 30px; }
	.section-card-index + .interested .box-content { columns: 1; }
	.article-section-more { width: calc(100% - 28px); margin: 0 14px 24px; }
	.article-section-more-heading { padding-bottom: 16px; }
	.article-section-more .article-section-card-index { width: 100% !important; margin: 18px 0 0 !important; }
	.article-box { padding: 25px; }
	.article-box .box-heading { margin: -25px -25px 24px; padding: 22px 25px; }
	.article-box .box-content { overflow-x: auto; }
	.article-page-canvas { min-height: 480px; }
	.article-page-canvas.has-photo::before { height: 570px; filter: blur(18px) saturate(.7); opacity: .64; }
	.article-page-canvas.has-photo::after { height: 650px; }
	.article-box.contact_box .box-content .right { position: static; margin: 0; }
	.article-box.contact_box .box-content input,
	.article-box.contact_box .box-content select,
	.article-box.contact_box .box-content textarea { width: 100%; }
	.search-box, .book-box, .news-box, .calendar { width: calc(100% - 28px); margin: 20px 14px 50px; padding: 20px; overflow-x: auto; }
	.news-box .item.has-thumbnail { grid-template-columns: minmax(0, 1fr) 78px; gap: 15px; }
	.news-list-thumbnail-link { width: 78px; height: 78px; border-radius: 9px; }
	.popup-front { width: calc(100% - 28px); margin-left: calc(-50% + 14px); }

	.auth_bar { gap: 16px; font-size: 13px; white-space: nowrap; }
	.auth_bar span { float: none !important; display: inline; margin: 0; white-space: nowrap; }
	.footer-main { display: block; width: calc(100% - 40px); padding: 30px 0 26px; }
	.footer-mark { display: block; width: 48px; height: 52px; margin: 0 0 25px; }
	.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 18px 26px; }
	#footer li, #footer li:nth-last-of-type(1), #footer li:nth-last-of-type(2), #footer li:nth-last-of-type(3) { width: auto; min-width: 0; margin: 0; padding: 0; }
	#footer li:first-of-type { margin-left: 0; }
	#footer .bottom-section { display: block; width: calc(100% - 40px); margin: 0 auto; padding-top: 20px; line-height: 1.6; text-align: left; white-space: normal; }
	#footer .bottom-section span { display: block; white-space: nowrap; }
}

@media (orientation: landscape) and (min-width: 700px) {
	.article-page-canvas.has-section-context {
		--article-context-gutter: max(24px, calc((100% - 1280px) / 2));
		--article-context-gap: clamp(18px, 3vw, 40px);
		--article-context-side: clamp(230px, 28vw, 340px);
		display: flow-root;
	}
	.article-page-canvas.has-section-context .article-box {
		float: left;
		clear: none;
		width: min(calc(100% - 48px - var(--article-context-side) - var(--article-context-gap)), 880px) !important;
		margin: 58px 0 24px var(--article-context-gutter) !important;
	}
	.article-page-canvas.has-section-context .article-section-more {
		float: right;
		clear: none;
		width: var(--article-context-side) !important;
		margin: 58px var(--article-context-gutter) 24px 0 !important;
	}
	.article-page-canvas.has-section-context .article-section-card-index {
		grid-template-columns: minmax(0, 1fr);
	}
	.article-page-canvas.has-section-context .interested,
	.article-page-canvas.has-section-context .articledates {
		float: left;
		clear: left;
		width: min(calc(100% - 48px - var(--article-context-side) - var(--article-context-gap)), 880px) !important;
		margin: 0 0 24px var(--article-context-gutter) !important;
	}
	.article-page-canvas.has-section-context .interested .box-content {
		columns: 2 250px;
		column-gap: 36px;
	}
	.article-page-canvas.has-section-context .articledates { margin-bottom: 24px !important; }
	.article-page-canvas.has-section-context .interested { margin-bottom: 80px !important; }
}

@media (orientation: portrait), (max-width: 900px) {
	.article-page-canvas:not(.has-section-context) {
		display: flex;
		flex-direction: column;
	}
	.article-page-canvas:not(.has-section-context) .article-box { order: 1; }
	.article-page-canvas:not(.has-section-context) .articledates { order: 2; }
	.article-page-canvas:not(.has-section-context) .interested { order: 3; }
}

@media (orientation: portrait) and (min-width: 901px) {
	.article-page-canvas:not(.has-section-context) .article-box {
		float: none;
		clear: both;
		width: min(100% - 48px, 880px) !important;
		margin: 42px auto 24px !important;
	}
	.article-page-canvas:not(.has-section-context) .interested,
	.article-page-canvas:not(.has-section-context) .articledates {
		float: none;
		clear: both;
		width: min(100% - 48px, 880px) !important;
		margin: 0 auto 24px !important;
	}
}

@media (max-width: 900px) and (orientation: landscape) {
	.site-hero { min-height: 0; }
	.hero-content { padding: calc(20px + var(--hero-extra-vertical-space)) 0 calc(24px + var(--hero-extra-vertical-space)); }
	.hero-content h1 { font-size: clamp(34px, 7vw, 46px); }
	.hero-content p { margin-top: 12px; font-size: 16px; line-height: 1.35; }
	.hero-actions { gap: 5px; margin-top: 16px; }
	.hero-actions a { height: 40px; padding: 0 5px; font-size: 12px; }
}

@media (max-width: 600px) {
	.search-results-heading { align-items: flex-start; }
	.search-results-heading h2 { font-size: 23px; }
	.search-results-count { margin-top: 2px; }
	.search-result-card { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 18px 15px; }
	.search-result-number { width: 36px; height: 36px; font-size: 10px; }
	.search-result-arrow { display: none; }
	.search-result-url { white-space: normal; overflow-wrap: anywhere; }
	.search-result-summary { font-size: 13px; }
	.search-empty-state { align-items: flex-start; justify-content: flex-start; min-height: 190px; padding: 28px 20px; }
	.search-empty-icon { flex: 0 0 auto; width: 48px; height: 48px; }
	.contact-form-card { padding: 22px 17px 24px; }
	.contact-form-heading { align-items: flex-start; margin-bottom: 24px; padding-bottom: 18px; }
	.contact-form-heading span { display: none; }
	.contact-form-heading h2 { font-size: 26px; }
	.contact-form-grid { gap: 18px; }
	.contact-form-footer { display: block; }
	.contact-recaptcha { width: 304px; max-width: 100%; overflow: hidden; }
	.contact-submit { width: 100%; margin-top: 18px; }
}

@media (max-width: 380px) {
	.section-container { grid-template-columns: 1fr; }
	.article-section-more .article-section-card-index { grid-template-columns: minmax(0, 1fr); }
	.section-card, .section-card a { min-height: 132px; }
	.section-card.has-image, .section-card.has-image a { min-height: 205px; }
	.section-card.has-image a, .section-card.has-image a:hover { padding: 90px 58px 22px 20px; font-size: 17px; }
}

@media (orientation: portrait) {
	.announcement-snackbar { top: auto; bottom: 24px; }
}

@media (orientation: portrait) and (max-width: 600px) {
	.announcement-snackbar { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.announcement-snackbar { transform: none; }
}
