/*
 * chabad.info v2 — shell and shared components.
 * Loaded only on v2 pages, which load none of the legacy stylesheets.
 * Mobile first; three breakpoints: 600px, 900px, 1200px. RTL through logical properties.
 */

/* ---------- Fonts: Open Sans Hebrew, served from the theme ---------- */
@font-face {
	font-family: "Open Sans Hebrew";
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url(../../../font/opensanshebrew-light-webfont.woff) format("woff");
}
@font-face {
	font-family: "Open Sans Hebrew";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url(../../../font/opensanshebrew-regular-webfont.woff) format("woff");
}
@font-face {
	font-family: "Open Sans Hebrew";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url(../../../font/opensanshebrew-bold-webfont.woff) format("woff");
}
@font-face {
	font-family: "Open Sans Hebrew";
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	src: url(../../../font/opensanshebrew-extrabold-webfont.woff) format("woff");
}

/* ---------- Tokens ---------- */
:root {
	--chb-navy: #0b1622;
	--chb-navy-2: #132436;
	--chb-red: #dc3219;
	--chb-bg: #f5f6f8;
	--chb-surface: #ffffff;
	--chb-border: #e3e6eb;
	--chb-text: #14181f;
	--chb-muted: #5b6470;
	--chb-cat: #2b4c9b;
	--chb-radius: 10px;
	--chb-gap: 16px;
	--chb-wrap: 1240px;
	--chb-shadow: 0 1px 2px rgba(11, 22, 34, 0.06), 0 2px 8px rgba(11, 22, 34, 0.05);
	--chb-font: "Open Sans Hebrew", "Segoe UI", Arial, sans-serif;
	--chb-sticky-top: var(--wp-admin--admin-bar--height, 0px);
	--chb-hover: var(--chb-red);   /* colour a link takes under the pointer */
	--chb-focus: var(--chb-red);   /* keyboard focus ring; white on dark surfaces */
}
/* WordPress stops pinning its admin bar on narrow screens, so nothing needs to clear it there. */
@media (max-width: 600px) {
	:root {
		--chb-sticky-top: 0px;
	}
}
@media (min-width: 900px) {
	:root {
		--chb-gap: 24px;
	}
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 72px;
}
body.chb-v2 {
	margin: 0;
	background: var(--chb-bg);
	color: var(--chb-text);
	font-family: var(--chb-font);
	font-size: 17px;
	line-height: 1.55;
	text-align: start;
	overflow-x: hidden;
}
/* Base rules use :where() so that every component rule, whatever its specificity, wins over them. */
:where(.chb-v2) img,
:where(.chb-v2) video,
:where(.chb-v2) iframe {
	max-width: 100%;
}
:where(.chb-v2) img {
	height: auto;
}
:where(.chb-v2) a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
:where(.chb-v2) :focus-visible {
	outline: 2px solid var(--chb-focus);
	outline-offset: 2px;
	border-radius: 4px;
}
:where(.chb-v2) h1,
:where(.chb-v2) h2,
:where(.chb-v2) h3,
:where(.chb-v2) p,
:where(.chb-v2) figure {
	margin: 0;
}
:where(.chb-v2) button,
:where(.chb-v2) input {
	font: inherit;
	color: inherit;
}

.chb-wrap {
	width: 100%;
	max-width: var(--chb-wrap);
	margin-inline: auto;
	padding-inline: 12px;
}
@media (min-width: 600px) {
	.chb-wrap {
		padding-inline: 20px;
	}
}

.chb-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.chb-skip {
	position: absolute;
	inset-inline-start: 8px;
	top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--chb-surface);
	color: var(--chb-text);
	font-weight: 700;
}
.chb-skip:focus {
	top: 8px;
}

.chb-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.chb-iconbtn:hover {
	background: rgba(127, 127, 127, 0.16);
}

/* ---------- Header ---------- */
.chb-header {
	--chb-focus: #fff;
	position: sticky;
	top: calc(var(--chb-sticky-top) - 34px); /* the 34px date bar scrolls away, the logo bar stays */
	z-index: 50;
	background: var(--chb-navy);
	color: #fff;
}
.chb-topbar {
	background: #060d15;
	font-size: 13px;
}
.chb-topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 34px;
}
.chb-topbar__nav {
	display: none;
}
.chb-topbar__menu {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chb-topbar__menu a {
	color: #c5ccd6;
}
.chb-topbar__menu a:hover {
	color: #fff;
}
.chb-topbar__date {
	color: #c5ccd6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.chb-topbar__greg {
	margin-inline-start: 6px;
	opacity: 0.75;
}

.chb-brand__in {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 60px;
	flex-wrap: wrap;
}
.chb-logo {
	display: inline-flex;
	flex: 1 1 auto;
	justify-content: center;
}
.chb-logo img {
	display: block;
	width: auto;
	height: 26px;
}
.chb-slogan {
	display: none;
	align-items: center;
	gap: 14px;
	color: #d9dee6;
	font-size: 14px;
}
.chb-slogan img {
	display: block;
	width: auto;
	height: 56px;
	border-radius: 4px;
}
.chb-search {
	display: none;
	flex: 1 1 100%;
	order: 5;
	margin-bottom: 10px;
	border-radius: 10px;
	background: #fff;
	color: var(--chb-text);
	transition: box-shadow 0.15s ease;
}
/* The ring surrounds the field and its button together. */
.chb-search:focus-within {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32);
}
.chb-header.is-searching .chb-search {
	display: flex;
}
.chb-search input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding-inline: 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	outline: 0;
}
.chb-search input::-webkit-search-cancel-button {
	display: none;
}
.chb-search .chb-iconbtn {
	--chb-focus: var(--chb-red);
	color: var(--chb-muted);
	border-radius: 10px;
}
.chb-search .chb-iconbtn:hover {
	background: transparent;
	color: var(--chb-red);
}
.chb-search .chb-iconbtn:focus-visible {
	outline-offset: -5px;
}

@media (min-width: 900px) {
	/* On wide screens the menu bar is the part that stays; it shows the logo once the header is gone. */
	.chb-header {
		position: static;
	}
	.chb-topbar__nav {
		display: block;
	}
	.chb-brand__in {
		min-height: 92px;
		gap: 24px;
		flex-wrap: nowrap;
	}
	.chb-burger,
	.chb-searchtoggle {
		display: none;
	}
	.chb-logo {
		flex: 0 0 auto;
	}
	.chb-logo img {
		height: 38px;
	}
	.chb-slogan {
		display: flex;
		margin-inline-start: auto;
	}
	/* the search field lives in the menu bar at this width */
	.chb-search,
	.chb-header.is-searching .chb-search {
		display: none;
	}
}

/* A video page is wider than the rest of the site: header, content and footer alike. */
.chb-wide {
	--chb-wrap: 1760px;
}

/* ---------- Main menu ---------- */
.chb-nav {
	display: none;
	position: sticky;
	top: var(--chb-sticky-top);
	z-index: 50;
	background: var(--chb-surface);
	border-bottom: 1px solid var(--chb-border);
	box-shadow: 0 2px 6px rgba(11, 22, 34, 0.05);
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 900px) {
	.chb-nav {
		display: block;
	}
}
.chb-nav > .chb-wrap {
	display: flex;
	align-items: center;
}
.chb-menu,
.chb-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.chb-menu {
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
}
.chb-menu > li {
	position: relative;
}
.chb-menu > li > a {
	display: block;
	padding: 13px 14px 10px;
	border-bottom: 3px solid transparent;
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.chb-menu > li > a:hover,
.chb-menu > li:focus-within > a,
.chb-menu > li.current-menu-item > a,
.chb-menu > li.current-menu-ancestor > a {
	border-bottom-color: var(--chb-cat, var(--chb-red));
}
.chb-menu > li.current-menu-item > a {
	color: var(--chb-red);
	--chb-cat: var(--chb-red);
}
.chb-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	opacity: 0.55;
	transition: transform 0.15s ease;
}
.chb-menu > li.menu-item-has-children:hover > a::after,
.chb-menu > li.menu-item-has-children:focus-within > a::after {
	transform: translateY(0) rotate(225deg);
}

/* Dropdown: a floating white panel, no colour stripes. */
.chb-menu .sub-menu {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 8px);
	z-index: 60;
	min-width: 230px;
	padding: 8px;
	border: 1px solid var(--chb-border);
	border-radius: 14px;
	background: var(--chb-surface);
	box-shadow: 0 18px 44px rgba(11, 22, 34, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
/* keeps the panel open while the pointer crosses the gap under the menu bar */
.chb-menu .sub-menu::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -12px;
	height: 12px;
}
.chb-menu > li:hover > .sub-menu,
.chb-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.chb-menu .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 9px;
	color: var(--chb-text);
	font-size: 15px;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.chb-menu .sub-menu a:hover,
.chb-menu .sub-menu a:focus-visible {
	background: var(--chb-bg);
	color: var(--chb-red);
}

/* Search field at the end of the menu bar. It is anchored at its far edge and widens towards the menu,
   so opening it never pushes the menu items. */
.chb-navsearch {
	position: relative;
	flex: 0 0 auto;
	width: 220px;
	height: 38px;
	margin-inline-start: auto;
	transition: width 0.25s ease;
}
.chb-navsearch__form {
	position: absolute;
	inset-inline-end: 0;
	top: 0;
	z-index: 2;
	display: flex;
	width: 100%;
	height: 38px;
	overflow: hidden;
	border-radius: 999px;
	background: #eef0f4;
	color: var(--chb-text);
	transition: width 0.25s ease, background-color 0.2s ease, box-shadow 0.15s ease;
}
.chb-navsearch__form:focus-within {
	width: 300px;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(220, 50, 25, 0.45), 0 8px 22px rgba(11, 22, 34, 0.14);
}
.chb-navsearch input {
	flex: 1 1 auto;
	width: 0;
	min-width: 0;
	height: 100%;
	padding-inline: 16px 4px;
	border: 0;
	outline: 0;
	background: transparent;
}
.chb-navsearch input::placeholder {
	color: inherit;
	opacity: 0.6;
}
.chb-navsearch input::-webkit-search-cancel-button {
	display: none;
}
.chb-navsearch button {
	display: inline-flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.15s ease, color 0.15s ease;
}
.chb-navsearch button:hover {
	opacity: 1;
	color: var(--chb-red);
}
.chb-navsearch button:focus-visible {
	outline-offset: -4px;
}

/* Collapsed to a magnifier when the bar is crowded: pinned with the logo, or on a narrower screen. */
.chb-nav.is-stuck .chb-navsearch {
	width: 38px;
}
.chb-nav.is-stuck .chb-navsearch__form {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.chb-nav.is-stuck .chb-navsearch__form:focus-within {
	background: #fff;
	color: var(--chb-text);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32), 0 8px 22px rgba(0, 0, 0, 0.3);
}
.chb-nav.is-stuck .chb-navsearch__form:not(:focus-within) input {
	flex: 0 0 0;
	padding: 0;
	opacity: 0;
}
/* Once the header has scrolled away the bar turns navy and the logo slides into it. */
.chb-nav__logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	overflow: hidden;
	max-width: 0;
	opacity: 0;
	transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}
.chb-nav__logo img {
	display: block;
	width: auto;
	max-width: none;
	height: 26px;
}
.chb-nav.is-stuck {
	--chb-focus: #fff;
	border-bottom-color: var(--chb-navy);
	background: var(--chb-navy);
	box-shadow: 0 6px 18px rgba(11, 22, 34, 0.28);
}
.chb-nav.is-stuck .chb-nav__logo {
	max-width: 220px;
	margin-inline-end: 18px;
	opacity: 1;
}
.chb-nav.is-stuck .chb-menu > li > a {
	color: #fff;
}
.chb-nav.is-stuck .chb-menu > li.current-menu-item > a {
	color: #fff;
}

/* Narrower screens. These come last so they override the rules above. */
@media (max-width: 1199px) {
	.chb-navsearch {
		width: 38px;
	}
	.chb-navsearch__form:not(:focus-within) input {
		flex: 0 0 0;
		padding: 0;
		opacity: 0;
	}
	.chb-menu > li > a {
		padding-inline: 10px;
		font-size: 15px;
	}
	.chb-nav__logo img {
		height: 20px;
	}
	.chb-nav.is-stuck .chb-nav__logo {
		margin-inline-end: 10px;
	}
}
/* too narrow for logo, menu and search on one line: the pinned bar keeps menu and search */
@media (max-width: 1039px) {
	.chb-nav.is-stuck .chb-nav__logo {
		max-width: 0;
		margin-inline-end: 0;
		opacity: 0;
	}
}

/* ---------- Hot topics ---------- */
.chb-hot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	font-size: 14px;
	white-space: nowrap;
}
.chb-hot::-webkit-scrollbar {
	display: none;
}
.chb-hot__label {
	color: var(--chb-red);
	font-weight: 700;
}
.chb-hot a {
	display: block;
	padding: 4px 12px;
	border: 1px solid var(--chb-border);
	border-radius: 999px;
	background: var(--chb-surface);
	color: var(--chb-muted);
}
.chb-hot a {
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.chb-hot a:hover {
	border-color: var(--chb-red);
	background: var(--chb-red);
	color: #fff;
}

/* ---------- Main ---------- */
.chb-main {
	padding-block: var(--chb-gap) 48px;
}

/* ---------- Page layout: a main column with a rail beside it ----------
 * Used by the homepage (feed + rail) and by the article page (article + rail).
 * Below 1200px the rail drops under the main column.
 */
.chb-layout {
	display: grid;
	gap: var(--chb-gap);
	margin-top: var(--chb-gap);
}
.chb-layout > * {
	min-width: 0;
}
@media (min-width: 1200px) {
	.chb-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}
}

/* ---------- Blocks and the rail ---------- */
.chb-block {
	margin-bottom: var(--chb-gap);
	padding: 16px;
	border-radius: var(--chb-radius);
	background: var(--chb-surface);
	box-shadow: var(--chb-shadow);
}
.chb-rail .chb-ad {
	margin-block: 0 var(--chb-gap);
}
.chb-rail .chb-ad img {
	max-width: 100%;
	height: auto;
}
/* The rail is narrow on wide screens, so a tile list keeps two columns there. */
@media (min-width: 1200px) {
	.chb-rail .chb-list--tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.chb-rail .chb-list--tiles .chb-list__item:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}
@media (min-width: 600px) and (max-width: 1199px) {
	.chb-rail {
		column-count: 2;
		column-gap: var(--chb-gap);
	}
	.chb-rail > * {
		break-inside: avoid;
	}
}

/* ---------- Ad slots ----------
 * A slot is an empty <img> until the ad script fills it and adds .rendered.
 * The wrapper takes no space until then, so an unsold slot leaves no gap.
 */
.chb-ad {
	display: none;
	margin-block: var(--chb-gap);
	text-align: center;
}
.chb-ad.is-filled,
.chb-ad:has(> img.rendered) {
	display: block;
}
.chb-ad img {
	display: block;
	margin-inline: auto;
	border-radius: 6px;
	cursor: pointer;
}
.chb-ad img:not(.rendered) {
	display: none;
}
.chb-adgroup:not(:has(.chb-ad.is-filled, .chb-ad > img.rendered)) {
	display: none;
}
.chb-ad--leaderboard {
	margin-block: 14px 0;
}

/* ---------- Tags and section headings ---------- */
.chb-tag {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 4px;
	background: var(--chb-cat);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}
.chb-tag {
	transition: filter 0.15s ease;
}
.chb-tag:hover {
	filter: brightness(1.15);
}
.chb-tag--small {
	padding: 1px 8px;
	font-size: 12px;
}
.chb-tag--muted {
	background: #e9ecf1;
	color: var(--chb-muted) !important;
}

.chb-sectionhead {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--chb-border);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}
.chb-sectionhead::before {
	content: "";
	flex: 0 0 6px;
	align-self: stretch;
	border-radius: 3px;
	background: var(--chb-cat, var(--chb-red));
}
/* marker colours for headings that belong to no category */
.chb-sectionhead--brand {
	--chb-cat: var(--chb-red);
}
.chb-sectionhead--news {
	--chb-cat: #2b4c9b;
}
.chb-sectionhead--mazal {
	--chb-cat: #4b2fa0;
}
.chb-sectionhead--events {
	--chb-cat: #007ea8;
}
.chb-sectionhead--sms {
	--chb-cat: #1b68ad;
}
.chb-sectionhead--neutral {
	--chb-cat: var(--chb-text);
}
.chb-sectionhead a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}
.chb-sectionhead a:hover {
	color: var(--chb-cat, var(--chb-hover));
}
/* A drawn chevron pointing left, the reading direction. Arrow characters get mirrored in Hebrew text. */
.chb-sectionhead a::after,
.chb-chevron::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.5;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.chb-sectionhead a:hover::after,
.chb-chevron:hover::after {
	transform: translateX(-4px) rotate(45deg);
	opacity: 1;
}
.chb-chevron {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ---------- Feed card ---------- */
.chb-card {
	margin-block: var(--chb-gap);
	padding: 16px;
	border-radius: var(--chb-radius);
	border-top: 3px solid var(--chb-cat);
	background: var(--chb-surface);
	box-shadow: var(--chb-shadow);
}
.chb-card {
	--chb-hover: var(--chb-cat);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.chb-card:hover {
	box-shadow: 0 2px 4px rgba(11, 22, 34, 0.06), 0 10px 26px rgba(11, 22, 34, 0.1);
}
.chb-card:first-child {
	margin-top: 0;
}
.chb-card__title a:hover,
.chb-card__lead > a:hover {
	color: var(--chb-hover);
}
.chb-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.chb-card__time {
	margin-inline-start: auto;
	color: var(--chb-muted);
	font-size: 13px;
}
.chb-share {
	min-width: 34px;
	min-height: 34px;
	color: var(--chb-muted);
}
.chb-share svg {
	fill: currentColor;
}
.chb-card__title {
	margin-bottom: 12px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.2px;
}
.chb-card__media {
	position: relative;
	margin: 0 -16px 12px;
	background: #e9ecf1;
}
.chb-card__media > a {
	position: relative;
	display: block;
}
.chb-card__media img {
	display: block;
	width: 100%;
}
.chb-card__caption {
	padding: 6px 16px;
	background: var(--chb-surface);
	color: var(--chb-muted);
	font-size: 13px;
}
.chb-gallerybtn {
	position: absolute;
	inset-inline-end: 10px;
	top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 0;
	border-radius: 6px;
	background: rgba(11, 22, 34, 0.72);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}
.chb-gallerybtn {
	transition: background-color 0.15s ease;
}
.chb-gallerybtn:hover {
	background: var(--chb-red);
}
/*
 * An embedded player fills a 16:9 frame. It is pinned to the frame rather than given a height
 * in percent: WordPress wraps the iframe in a <div class="video-container"> that has no height
 * of its own, and a percentage of that is nothing.
 */
.chb-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}
.chb-embed iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.chb-card__player video {
	display: block;
	width: 100%;
	max-height: 70vh;
	background: #000;
}
.chb-card__lead {
	font-size: 17px;
	color: #2b323c;
}
.chb-card__lead p + p,
.chb-card__more p + p {
	margin-top: 8px;
}
.chb-card__more {
	margin-top: 8px;
	color: var(--chb-muted);
	font-size: 15px;
}
.chb-card__more a {
	color: var(--chb-cat);
	font-weight: 700;
}
.chb-card__more a:hover {
	filter: brightness(0.75);
}
.chb-card--sponsored {
	border-top-color: #c9ced6;
	background: #fbfbfc;
}
.chb-card__sponsored {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.chb-card__sponsoredimg {
	flex: 0 0 140px;
}
.chb-card__sponsoredimg img {
	display: block;
	border-radius: 6px;
}
@media (min-width: 600px) {
	.chb-card {
		padding: 20px 22px;
	}
	.chb-card__title {
		font-size: 26px;
	}
	.chb-card__media {
		margin-inline: -22px;
	}
	.chb-card__caption {
		padding-inline: 22px;
	}
}
/* From tablet width up a card with a picture lays it beside the text, which halves the page length. */
@media (min-width: 900px) {
	.chb-card:has(> .chb-card__media) {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		grid-template-areas:
			"media head"
			"media title"
			"media text"
			"media foot";
		grid-template-rows: auto auto 1fr auto;
		column-gap: 22px;
	}
	.chb-card:has(> .chb-card__media) > .chb-card__foot {
		grid-area: foot;
	}
	.chb-card:has(> .chb-card__media) > .chb-card__head {
		grid-area: head;
	}
	.chb-card:has(> .chb-card__media) > .chb-card__title {
		grid-area: title;
		font-size: 23px;
	}
	.chb-card:has(> .chb-card__media) > .chb-card__text {
		grid-area: text;
	}
	.chb-card:has(> .chb-card__media) > .chb-card__media {
		grid-area: media;
		align-self: start;
		margin: 0;
		overflow: hidden;
		border-radius: 8px;
	}
	.chb-card:has(> .chb-card__media) .chb-card__media img {
		max-height: 340px;
		object-fit: cover;
		object-position: center top;
	}
	.chb-card:has(> .chb-card__media) .chb-card__caption {
		padding: 6px 10px;
	}
	.chb-card__lead {
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 6;
		-webkit-box-orient: vertical;
	}
}

/* ---------- Play badge ---------- */
.chb-play {
	position: absolute;
	inset-inline-start: 12px;
	bottom: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(11, 22, 34, 0.78);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.chb-play::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0;
	height: 0;
	border-block: 9px solid transparent;
	border-left: 14px solid #fff;
	transform: translateX(2px);
}

/* ---------- Mazal tov card ---------- */
.chb-mazal {
	--chb-cat: #4b2fa0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	align-items: start;
	margin-block: var(--chb-gap);
	padding: 14px 16px;
	border-radius: var(--chb-radius);
	border-inline-start: 5px solid var(--chb-cat);
	background: color-mix(in srgb, var(--chb-cat) 7%, #fff);
}
.chb-mazal--engagement {
	--chb-cat: #9a6700;
}
.chb-mazal--bar_mitzvah {
	--chb-cat: #007ea8;
}
.chb-mazal__badge {
	grid-row: span 2;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--chb-cat);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.chb-mazal__text {
	font-size: 16px;
}
.chb-mazal__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}
.chb-mazal__wish {
	color: var(--chb-cat) !important;
	font-size: 14px;
	font-weight: 700;
}

/* ---------- Post lists ---------- */
.chb-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.chb-list__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #e9ecf1;
}
.chb-list__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.chb-list__title {
	display: block;
	font-weight: 700;
	line-height: 1.35;
}
.chb-list__title:hover,
.chb-mazal__text a:hover {
	color: var(--chb-hover);
}
.chb-list__body .chb-tag {
	margin-bottom: 4px;
}

/* rows: small picture beside the title */
.chb-list--rows .chb-list__item {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 12px;
	align-items: start;
	padding-block: 10px;
	border-bottom: 1px solid var(--chb-border);
}
.chb-list--rows .chb-list__item:first-child {
	padding-top: 0;
}
.chb-list--rows .chb-list__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}
.chb-list--rows .chb-list__media {
	aspect-ratio: 10 / 9;
}
.chb-list--rows .chb-list__media:empty {
	display: none;
}
.chb-list--rows .chb-list__title {
	font-size: 15px;
}
.chb-list--rows .chb-play,
.chb-list--tiles .chb-list__item:not(:first-child) .chb-play {
	inset-inline-start: 6px;
	bottom: 6px;
	width: 28px;
	height: 28px;
}
.chb-list--rows .chb-play::after,
.chb-list--tiles .chb-list__item:not(:first-child) .chb-play::after {
	border-block-width: 6px;
	border-left-width: 9px;
}

/* ranked: numbered, picture on top */
.chb-list--ranked {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	counter-reset: chb-rank;
}
.chb-list--ranked .chb-list__item {
	position: relative;
	counter-increment: chb-rank;
}
.chb-list--ranked .chb-list__media {
	aspect-ratio: 16 / 10;
	margin-bottom: 8px;
}
.chb-list--ranked .chb-list__media::before {
	content: counter(chb-rank);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	z-index: 1;
	min-width: 28px;
	padding: 2px 8px;
	border-end-end-radius: 8px;
	background: var(--chb-red);
	color: #fff;
	font-weight: 800;
	text-align: center;
}
.chb-list--ranked .chb-list__title {
	font-size: 15px;
}

/* tiles: first item large, the rest small */
.chb-list--tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.chb-list--tiles .chb-list__item:first-child {
	grid-column: 1 / -1;
}
.chb-list--tiles .chb-list__media {
	aspect-ratio: 16 / 10;
	margin-bottom: 8px;
}
.chb-list--tiles .chb-list__title {
	font-size: 15px;
}
.chb-list--tiles .chb-list__item:first-child .chb-list__title {
	font-size: 19px;
}
@media (min-width: 600px) {
	.chb-list--tiles {
		grid-template-columns: repeat(4, 1fr);
	}
	.chb-list--tiles .chb-list__item:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}
}

/* grid: equal cards side by side, picture on top */
.chb-list--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.chb-list--grid .chb-list__media {
	aspect-ratio: 16 / 10;
	margin-bottom: 8px;
}
.chb-list--grid .chb-list__title {
	font-size: 15px;
}
@media (min-width: 600px) {
	.chb-list--grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- Boards and link lists: on the homepage and in the rail of the listing pages ---------- */
/* mazal tov notices */
.chb-notices,
.chb-events,
.chb-textlist,
.chb-quick {
	margin: 0;
	padding: 0;
	list-style: none;
}
.chb-notices__item {
	--chb-cat: #4b2fa0;
	padding: 9px 12px;
	border-inline-start: 4px solid var(--chb-cat);
	font-size: 15px;
	line-height: 1.45;
}
.chb-notices__item {
	margin-bottom: 8px;
}
.chb-notices__item--engagement {
	--chb-cat: #9a6700;
}
.chb-notices__item--bar_mitzvah {
	--chb-cat: #007ea8;
}
.chb-notices__item:nth-child(odd) {
	background: var(--chb-bg);
}

/* events board */
.chb-events__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 12px;
	padding-block: 10px;
	border-bottom: 1px solid var(--chb-border);
	font-size: 15px;
}
.chb-events__item:last-child {
	border-bottom: 0;
}
.chb-events__when {
	grid-row: span 3;
	min-width: 64px;
	padding: 6px 8px;
	border-radius: 8px;
	background: var(--chb-bg);
	font-size: 17px;
	font-weight: 800;
	text-align: center;
	align-self: start;
}
.chb-events__kind {
	color: var(--chb-muted);
	font-size: 13px;
}
.chb-events__title {
	font-weight: 700;
}
.chb-events__where {
	color: var(--chb-muted);
	font-size: 14px;
}

.chb-textlist li {
	padding-block: 8px;
	border-bottom: 1px solid var(--chb-border);
	font-size: 15px;
	line-height: 1.45;
}
.chb-textlist li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}
.chb-quick {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.chb-notices a:hover,
.chb-events__title:hover,
.chb-textlist a:hover {
	color: var(--chb-hover);
}
.chb-quick a {
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	display: block;
	padding: 10px 8px;
	border: 1px solid var(--chb-border);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}
.chb-quick a:hover {
	border-color: var(--chb-navy);
	background: var(--chb-navy);
	color: #fff;
}
/* link directories: always open; only a long one scrolls inside its box */
.chb-linkgroup .chb-scroll {
	max-height: 460px;
	padding-inline-end: 12px;
}
.chb-widgets {
	list-style: none;
}

/* ---------- The head of the page ----------
 * It reads like the section headings of the site, a size up: a marker in the section's colour,
 * the name, and at the far end how much the page holds. No box around it.
 */
.chb-listhead {
	--chb-hover: var(--chb-cat);
	margin-bottom: var(--chb-gap);
}
.chb-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-bottom: 8px;
	color: var(--chb-muted);
	font-size: 14px;
	font-weight: 700;
}
.chb-crumbs a {
	transition: color 0.15s ease;
}
.chb-crumbs a:hover {
	color: var(--chb-hover);
}
.chb-listhead__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--chb-border);
}
.chb-listhead__row::before {
	content: "";
	flex: 0 0 6px;
	align-self: stretch;
	border-radius: 3px;
	background: var(--chb-cat);
}
.chb-listhead__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	min-width: 0;
	font-size: clamp(26px, 4.4vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.3px;
	overflow-wrap: anywhere;
}
/* What kind of page this is ("תגית"), as a small tag before the name. */
.chb-listhead__label {
	padding: 2px 10px;
	border-radius: 4px;
	background: var(--chb-cat);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0;
	white-space: nowrap;
}
.chb-listhead__count {
	flex: none;
	margin-inline-start: auto;
	color: var(--chb-muted);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- A row that scrolls sideways, with arrow buttons ----------
 * v2.js shows a button only while there is more to scroll to on its side, and only where
 * there is a pointer to press it with; a finger scrolls the row itself.
 */
.chb-scroller {
	position: relative;
}
.chb-scroller__button {
	display: none;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--chb-surface);
	color: var(--chb-text);
	box-shadow: 0 2px 8px rgba(11, 22, 34, 0.22), 0 0 0 1px rgba(11, 22, 34, 0.05);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chb-scroller__button::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 9px;
	height: 9px;
	margin: auto;
	border-left: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
}
.chb-scroller__button--more {
	inset-inline-end: -12px;
}
.chb-scroller__button--more::before {
	transform: translateX(2px) rotate(45deg); /* points left: onwards, in the reading direction */
}
.chb-scroller__button--back {
	inset-inline-start: -12px;
}
.chb-scroller__button--back::before {
	transform: translateX(-2px) rotate(-135deg);
}
.chb-scroller__button:hover {
	background: var(--chb-navy);
	color: #fff;
	transform: scale(1.06);
}
@media (hover: hover) and (pointer: fine) {
	.chb-scroller__button:not([hidden]) {
		display: block;
	}
}

/* Sub-categories, or the categories beside this one. */
.chb-chips {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	padding-bottom: 10px;
}
.chb-chip {
	flex: none;
	padding: 7px 14px;
	border-radius: 8px;
	background: rgba(11, 22, 34, 0.07);
	color: var(--chb-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.chb-chip:hover {
	background: rgba(11, 22, 34, 0.14);
}
.chb-chip.is-current {
	background: var(--chb-navy);
	color: #fff;
}
.chb-scroller:has(> .chb-chips) .chb-scroller__button {
	width: 34px;
	height: 34px;
	margin-top: -22px; /* the row's own middle, above the scrollbar under it */
}

/* ---------- A listing with nothing in it ---------- */
.chb-empty {
	margin-top: var(--chb-gap);
	padding: 28px 16px;
	border-radius: var(--chb-radius);
	background: var(--chb-surface);
	box-shadow: var(--chb-shadow);
	color: var(--chb-muted);
	font-size: 17px;
	text-align: center;
}

/* ---------- Comments ---------- */
.chb-comments__list {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}
.chb-comment {
	padding-block: 14px;
	border-bottom: 1px solid var(--chb-border);
}
.chb-comment:first-child {
	padding-top: 0;
}
.chb-comment__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 4px;
	color: var(--chb-muted);
	font-size: 13px;
}
.chb-comment__author {
	color: var(--chb-text);
	font-size: 15px;
}
.chb-comment__text {
	overflow-wrap: anywhere;
}
.chb-comment__text p + p {
	margin-top: 8px;
}
.chb-comment__pending {
	margin-top: 6px;
	color: #8a5a00;
	font-size: 13px;
	font-weight: 700;
}
/* The comment a visitor has just sent, or was linked to. */
.chb-comment:target {
	margin-inline: -8px;
	padding-inline: 8px;
	border-radius: 8px;
	background: #fff8e1;
}

/* ---------- Forms: the comment form and "write to us" ---------- */
.chb-form {
	display: grid;
	gap: 10px;
	margin: 0;
}
.chb-form__title {
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: 800;
}
.chb-form__title small {
	display: none; /* WordPress's "cancel reply" link; the list is flat, so there is nothing to cancel. */
}
.chb-form__row {
	margin: 0;
}
.chb-form input[type="text"],
.chb-form textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--chb-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chb-form textarea {
	min-height: 120px;
	resize: vertical;
}
.chb-form input[type="text"]:focus,
.chb-form textarea:focus {
	outline: 0;
	border-color: var(--chb-navy);
	box-shadow: 0 0 0 3px rgba(11, 22, 34, 0.12);
}
.chb-form__row--submit {
	display: flex;
	justify-content: flex-end;
}
.chb-button {
	padding: 9px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--chb-navy);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.chb-button:hover {
	background: var(--chb-red);
}
.chb-button:disabled {
	opacity: 0.6;
	cursor: default;
}
.chb-form__note {
	color: var(--chb-muted);
	font-size: 13px;
}
.chb-form__message {
	padding: 10px 12px;
	border-radius: 8px;
	background: #e7f8ec;
	color: #0b5c2a;
	font-weight: 700;
}
.chb-form__message.is-error {
	background: #fdecea;
	color: #a1260d;
}

/* ---------- A page's own action, at the far end of its head ("send a mazal tov") ---------- */
.chb-listhead__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	padding: 8px 16px;
	font-size: 15px;
	white-space: nowrap;
}
.chb-listhead__count + .chb-listhead__action {
	margin-inline-start: 0;
}
.chb-listhead__row > .chb-listhead__action:nth-child(2) {
	margin-inline-start: auto;
}
/* On a phone the name of the page and the button share the row; the count gives way,
   and under a long name the button drops to a line of its own. */
@media (max-width: 599px) {
	.chb-listhead--action .chb-listhead__row {
		flex-wrap: wrap;
	}
	.chb-listhead--action .chb-listhead__title {
		flex: 1;
	}
	.chb-listhead--action .chb-listhead__count {
		display: none;
	}
	.chb-listhead--action .chb-listhead__action {
		margin-inline-start: auto;
	}
}

/* ---------- Visitor forms: a mazal tov notice, an event ----------
 * A dialog with a dark title bar, like the site's other dialogs, holding one short screen of
 * fields. After sending, the fields give way to a word of thanks.
 */
.chb-formdlg {
	width: min(560px, calc(100vw - 20px));
	max-height: calc(100dvh - 20px);
	border-radius: 16px;
	background: var(--chb-surface);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.chb-formdlg[open] {
	animation: chb-rise-in 0.22s ease;
}
.chb-formdlg__bar {
	--chb-focus: #fff;
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 8px;
	padding-inline: 20px 8px;
	background: var(--chb-navy);
	color: #fff;
}
.chb-formdlg__title {
	flex: 1;
	font-size: 19px;
	font-weight: 800;
}
.chb-vform {
	padding: 16px 20px 18px;
}
.chb-vform__step {
	display: none;
	gap: 12px;
}
.chb-vform[data-step="details"] [data-step-panel="details"],
.chb-vform[data-step="done"] [data-step-panel="done"] {
	display: grid;
}

/* A choice at the head of a form (the kind of notice, new or correction): large buttons, one of them chosen. */
.chb-vform__kinds {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
}
.chb-vform__kind input {
	position: absolute;
	opacity: 0;
}
.chb-vform__kind span {
	display: block;
	padding: 9px 8px;
	border: 1px solid var(--chb-border);
	border-radius: 10px;
	background: var(--chb-surface);
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chb-vform__kind span:hover {
	border-color: var(--chb-navy);
}
.chb-vform__kind input:checked + span {
	border-color: var(--chb-navy);
	background: var(--chb-navy);
	color: #fff;
}
.chb-vform__kind input:focus-visible + span {
	outline: 2px solid var(--chb-focus);
	outline-offset: 2px;
}
.chb-vform__kinds--two {
	grid-template-columns: repeat(2, 1fr);
}

/* A row of fields: the main one takes the room, a town or a name sits beside it. */
.chb-vform__row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}
.chb-vform__field {
	display: grid;
	flex: 1 1 0;
	gap: 4px;
	min-width: 0;
	font-size: 14px;
}
.chb-vform__field--wide {
	flex-grow: 2;
}
.chb-vform__field > span {
	color: var(--chb-muted);
	font-weight: 700;
}
.chb-vform input[type="tel"],
.chb-vform input[type="date"],
.chb-vform input[type="time"],
.chb-vform select {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--chb-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chb-vform input[type="tel"]:focus,
.chb-vform input[type="date"]:focus,
.chb-vform input[type="time"]:focus,
.chb-vform select:focus {
	outline: 0;
	border-color: var(--chb-navy);
	box-shadow: 0 0 0 3px rgba(11, 22, 34, 0.12);
}
.chb-vform input[type="text"] {
	min-height: 44px;
}
.chb-vform textarea {
	min-height: 72px;
}
.chb-vform [aria-invalid="true"] {
	border-color: var(--chb-red) !important;
}
.chb-vform__hint {
	color: var(--chb-muted);
	font-size: 13px;
}
/* A field people never see or fill. */
.chb-vform__decoy {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
.chb-vform__actions {
	display: flex;
	justify-content: flex-end;
}
.chb-vform__actions .chb-button {
	min-width: 140px;
	padding-block: 11px;
	font-size: 16px;
}
@media (max-width: 479px) {
	.chb-vform__row:not(.chb-vform__sender) {
		flex-wrap: wrap;
	}
	.chb-vform__field--wide {
		flex-basis: 100%;
	}
}

/* Ready-made phrases above a comment field: pressing one writes it into the field. */
.chb-suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chb-suggest__item {
	padding: 6px 14px;
	border: 1px solid var(--chb-border);
	border-radius: 999px;
	background: var(--chb-surface);
	color: var(--chb-text);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chb-suggest__item:hover {
	border-color: var(--chb-navy);
	background: var(--chb-navy);
	color: #fff;
}

/* ---------- Reactions ----------
 * One-press responses to an article or a mazal tov notice, each with the number of people who
 * pressed it. A reaction the visitor has given stays marked.
 */
.chb-card__foot {
	margin-top: 12px;
}
.chb-article__reactions {
	margin-top: 22px;
}
.chb-article__reactions:empty {
	display: none;
}
.chb-article__reactions .chb-reaction {
	padding: 7px 14px;
	font-size: 15px;
}
.chb-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.chb-reaction {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--chb-border);
	border-radius: 999px;
	background: var(--chb-surface);
	color: var(--chb-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chb-reaction:hover {
	border-color: #b9c0cb;
	background: var(--chb-bg);
	transform: translateY(-1px);
}
.chb-reaction__emoji {
	font-size: 17px;
	line-height: 1;
}
.chb-reaction__emoji img.emoji {
	display: block;
	width: 17px;
	height: 17px;
	margin: 0;
}
.chb-reaction__count {
	min-width: 1ch;
	color: var(--chb-muted);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.chb-reaction__count:empty {
	display: none;
}
/* A marked button stays a button: a second press takes the reaction back. */
.chb-reaction[aria-pressed="true"] {
	border-color: var(--chb-cat);
	background: color-mix(in srgb, var(--chb-cat) 10%, #fff);
}
.chb-reaction[aria-pressed="true"] .chb-reaction__count {
	color: var(--chb-cat);
}
.chb-reaction.is-fresh .chb-reaction__emoji {
	animation: chb-reaction-pop 0.45s ease;
}
@keyframes chb-reaction-pop {
	40% {
		transform: scale(1.7) rotate(-12deg);
	}
	100% {
		transform: none;
	}
}
/* On a card in a list the names are left out: the emoji and the number say it. */
.chb-reactions--compact .chb-reaction__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Pagination ---------- */
.chb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
	text-align: center;
}
.chb-pagination a,
.chb-pagination span {
	min-width: 40px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--chb-border);
	border-radius: 8px;
	background: var(--chb-surface);
	font-weight: 700;
}
.chb-pagination .chb-pagination__current {
	border-color: var(--chb-navy);
	background: var(--chb-navy);
	color: #fff;
}
.chb-pagination a {
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chb-pagination a:hover {
	border-color: var(--chb-navy);
	background: var(--chb-navy);
	color: #fff;
}

/* ---------- Footer ---------- */
.chb-footer {
	--chb-focus: #fff;
	background: var(--chb-navy);
	color: #c5ccd6;
	font-size: 15px;
}
.chb-footer__in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding-block: 32px;
	text-align: center;
}
.chb-footer__logo img {
	display: block;
	width: auto;
	height: 30px;
}
.chb-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chb-footer__menu a:hover {
	color: #fff;
}
.chb-footer__credit {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	opacity: 0.85;
}
.chb-footer__credit img {
	display: block;
}
@media (min-width: 900px) {
	.chb-footer__in {
		flex-direction: row;
		justify-content: space-between;
		text-align: start;
	}
}

/* ---------- Scroll areas ----------
 * Any box that scrolls inside the page gets a slim rounded bar instead of the system one.
 */
.chb-scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* Firefox only. Chrome and Safari ignore the ::-webkit rules below once these two properties are set,
   and then fall back to the system bar with its arrow buttons. */
@supports not selector(::-webkit-scrollbar) {
	.chb-scroll {
		scrollbar-width: thin;
		scrollbar-color: #c5ccd6 transparent;
	}
}
.chb-scroll::-webkit-scrollbar {
	width: 6px;
}
.chb-scroll::-webkit-scrollbar-button {
	display: none;
}
.chb-scroll::-webkit-scrollbar-track {
	background: transparent;
}
.chb-scroll::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #c5ccd6;
}
.chb-scroll::-webkit-scrollbar-thumb:hover {
	background: #8e98a6;
}

/*
 * A row that scrolls sideways. Its bar is a slim rounded line: a faint rail the full width of
 * the row, and on it a thumb that takes the section's colour while the row is under the pointer.
 */
.chb-scroll-x {
	overflow-x: auto;
	overscroll-behavior-x: contain;
}
@supports not selector(::-webkit-scrollbar) {
	.chb-scroll-x {
		scrollbar-width: thin;
		scrollbar-color: #c1c8d2 #eef0f3;
	}
}
.chb-scroll-x::-webkit-scrollbar {
	height: 4px;
}
.chb-scroll-x::-webkit-scrollbar-button {
	display: none;
}
.chb-scroll-x::-webkit-scrollbar-track {
	border-radius: 999px;
	background: #eef0f3;
}
.chb-scroll-x::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #c1c8d2;
}
.chb-scroll-x:hover::-webkit-scrollbar-thumb {
	background: var(--chb-cat);
}

/* ---------- Dialogs ---------- */
:where(.chb-v2) dialog {
	border: 0;
	padding: 0;
	color: var(--chb-text);
}
.chb-v2 dialog::backdrop {
	background: rgba(6, 13, 21, 0.8);
	backdrop-filter: blur(5px);
}
@keyframes chb-fade-in {
	from {
		opacity: 0;
	}
}
@keyframes chb-rise-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
}
@keyframes chb-slide-in {
	from {
		transform: translateX(100%);
	}
}

/* round button used on dark dialog surfaces */
.chb-roundbtn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.chb-roundbtn:hover {
	background: rgba(255, 255, 255, 0.24);
	transform: scale(1.06);
}
.chb-roundbtn svg {
	display: block;
}

/* mobile menu */
.chb-drawer {
	position: fixed;
	inset-block: 0;
	inset-inline: 0 auto;
	width: min(86vw, 340px);
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	background: var(--chb-surface);
	box-shadow: 0 0 40px rgba(6, 13, 21, 0.35);
}
.chb-drawer[open] {
	animation: chb-slide-in 0.22s ease;
}
.chb-drawer__head {
	--chb-focus: #fff;
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--chb-navy);
	color: #fff;
	font-weight: 700;
}
.chb-drawer__search {
	display: flex;
	margin: 14px 16px;
	border: 1px solid var(--chb-border);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chb-drawer__search:focus-within {
	border-color: var(--chb-red);
	box-shadow: 0 0 0 3px rgba(220, 50, 25, 0.16);
}
.chb-drawer__search input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding-inline: 14px;
	border: 0;
	outline: 0;
}
.chb-drawer__search button {
	padding-inline: 16px;
	border: 0;
	background: var(--chb-red);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.chb-drawer__search button:focus-visible {
	outline-offset: -4px;
	--chb-focus: #fff;
}
.chb-drawer__menu,
.chb-drawer__menu ul,
.chb-drawer__network {
	margin: 0;
	padding: 0;
	list-style: none;
}
.chb-drawer__menu {
	border-top: 1px solid var(--chb-border);
}
.chb-drawer__menu > li {
	border-bottom: 1px solid var(--chb-border);
}
.chb-drawer__menu a {
	display: block;
	padding: 13px 18px;
	font-weight: 700;
}
.chb-drawer__menu a:hover {
	color: var(--chb-red);
}
.chb-drawer__menu .sub-menu {
	padding: 4px 0 10px;
}
.chb-drawer__menu .sub-menu a {
	padding: 8px 30px;
	color: var(--chb-muted);
	font-weight: 400;
	font-size: 15px;
}
.chb-drawer__network {
	padding: 14px 18px 28px;
	font-size: 14px;
}
.chb-drawer__network a {
	display: block;
	padding: 6px 0;
	color: var(--chb-muted);
}

/* gallery */
.chb-lightbox {
	--chb-focus: #fff;
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	background: rgba(6, 13, 21, 0.9);
	color: #fff;
}
.chb-lightbox[open] {
	display: flex;
	flex-direction: column;
	animation: chb-fade-in 0.2s ease;
}
.chb-lightbox__bar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
}
.chb-lightbox__title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.chb-lightbox__count {
	flex: 0 0 auto;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 14px;
	direction: ltr;
}
.chb-lightbox--single .chb-lightbox__count,
.chb-lightbox--single .chb-lightbox__nav {
	display: none;
}
/* The arrows sit at the two ends of the stage and the picture is centred in the frame between them,
   so the arrows stay put when a small picture follows a large one. */
.chb-lightbox__stage {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 1400px;
	min-height: 0;
	margin-inline: auto;
	padding: 0 18px 26px;
}
.chb-lightbox__frame {
	display: grid;
	flex: 1 1 auto;
	place-items: center;
	min-width: 0;
	height: 100%;
}
.chb-lightbox__img {
	min-width: 0;
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
	object-fit: contain;
	animation: chb-rise-in 0.22s ease;
}
.chb-lightbox__img:not([src]) {
	display: none;
}
/* while the next picture loads: the current one dims and a ring turns over it */
.chb-lightbox__stage.is-loading .chb-lightbox__img {
	opacity: 0.3;
}
.chb-lightbox__stage.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 44px;
	height: 44px;
	margin: auto;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: chb-spin 0.8s linear infinite;
}
@keyframes chb-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (max-width: 599px) {
	.chb-lightbox__stage {
		padding-inline: 8px;
	}
	/* on a phone the arrows sit over the picture's edges */
	.chb-lightbox__nav {
		position: absolute;
		top: 50%;
		z-index: 1;
		margin-top: -22px;
		background: rgba(6, 13, 21, 0.55);
	}
	.chb-lightbox__prev {
		inset-inline-start: 12px;
	}
	.chb-lightbox__next {
		inset-inline-end: 12px;
	}
}

/* video */
.chb-videodlg {
	--chb-focus: #fff;
	width: min(94vw, 980px);
	overflow: hidden;
	border-radius: 16px;
	background: var(--chb-navy);
	color: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.chb-videodlg[open] {
	animation: chb-rise-in 0.22s ease;
}
.chb-videodlg__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 12px 12px 18px;
	padding-inline: 18px 12px;
}
.chb-videodlg__title {
	flex: 1;
	min-width: 0;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
}
.chb-videodlg__stage {
	display: grid;
	place-items: center;
	background: #000;
}
.chb-videodlg__video {
	display: block;
	width: 100%;
	max-height: min(72vh, 720px);
	background: #000;
}
.chb-videodlg__more {
	margin: 12px 18px 14px;
	color: #c5ccd6;
	font-size: 15px;
	font-weight: 700;
}
.chb-videodlg__more:hover {
	color: #fff;
}

/* popup ad */
.chb-popup {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(6, 13, 21, 0.8);
	backdrop-filter: blur(5px);
	animation: chb-fade-in 0.2s ease;
}
.chb-popup[hidden] {
	display: none;
}
.chb-popup__box {
	position: relative;
	max-width: min(92vw, 720px);
}
.chb-popup__box img {
	display: block;
	max-height: 86vh;
	border-radius: 12px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}
.chb-popup__close {
	position: absolute;
	inset-inline-end: -10px;
	top: -10px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--chb-text);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
	.chb-list__media img,
	.chb-card__media img {
		transition: transform 0.3s ease;
	}
	.chb-list__media:hover img,
	.chb-card__media > a:hover img {
		transform: scale(1.04);
	}
}
@media (prefers-reduced-motion: reduce) {
	.chb-v2 *,
	.chb-v2 *::before,
	.chb-v2 *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- The floating WhatsApp button ----------
 * At the left corner of the window, as it always stood. It comes in a moment after the page,
 * so that it does not take the eye from the headline.
 */
.chb-wabutton {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 800;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 6px 20px rgba(7, 94, 84, 0.3);
	color: #fff !important;
	transition: background-color 0.15s ease, transform 0.15s ease, bottom 0.2s ease;
	animation: chb-wabutton-in 0.3s ease 3s both;
}
.chb-wabutton:hover {
	background: #1eb858;
	transform: scale(1.06);
}
@keyframes chb-wabutton-in {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}
@media (prefers-reduced-motion: reduce) {
	.chb-wabutton {
		animation: none;
	}
}
@media print {
	.chb-wabutton {
		display: none;
	}
}
