/* Articles and lists (single.php, archive.php). */

/* Article card */
.jw-article {
	background: var(--jw-bg);
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
	padding: 1.5rem 2rem 2rem;
}

.jw-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	list-style: none;
	margin: 0 0 .75rem;
	font-size: .8rem;
}

.jw-crumbs li + li::before {
	content: "‹";
	margin-inline-end: .35rem;
	color: var(--jw-text-muted);
}

.jw-crumbs a {
	color: var(--jw-text-muted);
	text-decoration: none;
}

.jw-pills {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin-bottom: .5rem;
}

.jw-pill-village {
	background: #eef4f8;
	color: var(--jw-navy);
}

.jw-article-title {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 .5rem;
}

.jw-article-lead {
	font-size: 1.15rem;
	color: var(--jw-text-muted);
	margin: 0 0 .75rem;
}

.jw-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	color: var(--jw-text-muted);
	font-size: .85rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--jw-border);
}

.jw-article-image {
	margin: 1.25rem 0;
}

.jw-article-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--jw-radius);
}

.jw-article-image figcaption,
.jw-article-body figcaption {
	color: var(--jw-text-muted);
	font-size: .85rem;
	margin-top: .4rem;
	text-align: center;
}

/* Reading text: a comfortable size and line length */
.jw-article-body {
	font-size: 1.1rem;
	line-height: 2;
	margin-top: 1.25rem;
}

.jw-article-body p {
	margin-bottom: 1.25em;
}

.jw-article-body img {
	border-radius: calc(var(--jw-radius) - 2px);
	height: auto;
}

.jw-article-body iframe {
	max-width: 100%;
}

/* Vertical videos (YouTube Shorts, embedded as 9:16): keep them phone-sized
   and centred instead of stretching to the full article width. */
.jw-article-body .wp-block-embed.wp-embed-aspect-9-16,
.jw-article-body .wp-block-embed.wp-embed-aspect-1-2 {
	/* At most 360px wide and short enough to fit the screen height. */
	max-width: min(360px, 100%, 75vh * 9 / 16);
	margin-inline: auto;
}

/* Old posts with a raw YouTube iframe (fixed width/height attributes):
   full width, 16:9, never taller than the screen. */
.jw-article-body > iframe[src*="youtube"],
.jw-article-body p > iframe[src*="youtube"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.jw-article-body iframe[src*="/shorts/"] {
	max-width: 360px;
	margin-inline: auto;
	aspect-ratio: 9 / 16;
}

.jw-article-foot {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--jw-border);
	display: grid;
	gap: .75rem;
}

.jw-tags a {
	display: inline-block;
	margin: 0 0 .25rem .25rem;
	padding: .1rem .6rem;
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius-pill);
	font-size: .8rem;
	color: var(--jw-text);
	text-decoration: none;
}

.jw-share {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}

.jw-share span {
	font-weight: 600;
}

.jw-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	list-style: none;
	margin: 0;
}

.jw-share a {
	display: inline-block;
	padding: .3rem .9rem;
	border-radius: var(--jw-radius-pill);
	color: #fff;
	font-size: .85rem;
	text-decoration: none;
}

.jw-share a:hover,
.jw-share a:focus { color: #fff; filter: brightness(.9); }
.jw-share-whatsapp { background: #1f8f4e; }
.jw-share-facebook { background: #1877f2; }
.jw-share-x { background: #111; }
.jw-share-telegram { background: #229ed9; }

/* Obituary / wedding details card from the plugins */
.jw-obit-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: .4rem 1rem;
	background: var(--jw-surface);
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
	padding: 1rem 1.25rem;
}

.jw-obit-details dt {
	font-weight: 700;
}

.jw-obit-details dd {
	margin: 0;
}

/* Related */
.jw-related,
.jw-comments {
	margin-top: 1.5rem;
}

.jw-related-grid,
.jw-archive-grid {
	display: grid;
	gap: var(--jw-gap);
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Sidebar: plain blocks (no GeneratePress widget box), each list one panel with hairline rows */
.widget-area .widget.jw-side-block {
	display: block;
	margin: 0 0 1.25rem;
	padding: 0;
	background: transparent;
	border: 0;
}

.jw-side-body {
	background: var(--jw-bg);
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
	overflow: hidden;
}

.jw-side-body .jw-card {
	border: 0;
	border-radius: 0;
}

.jw-side-body .jw-card + .jw-card {
	border-top: 1px solid var(--jw-border);
}

.jw-side-body .jw-card-compact {
	padding: .6rem .75rem;
	gap: .65rem;
}

.jw-side-body .jw-card-compact .jw-card-img {
	flex-basis: 64px;
}

.jw-side-body .jw-card-title {
	font-size: .9rem;
	line-height: 1.55;
}

.sidebar .inside-left-sidebar,
.sidebar .inside-right-sidebar {
	padding: 0;
	background: transparent;
}

.sidebar .jw-ads {
	margin-bottom: 1rem;
}

/* Sidebar ad between the sidebar sections. */
.jw-side-ad {
	margin: 0 0 1.25rem;
}

/* Banner at the end of an article. */
.jw-post-bottom-ad {
	margin: 1.5rem 0;
}

/* Article banners (720x300 artwork) stay banner-sized instead of filling the text column. */
.entry-content .jw-ads,
.jw-post-bottom-ad .jw-ads {
	max-width: 480px;
	margin-inline: auto;
}

/* Lists */
.jw-archive-head {
	margin-bottom: 1.25rem;
	padding-bottom: .6rem;
	border-bottom: 2px solid var(--jw-red);
}

.jw-archive-head h1 {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
}

.jw-archive-desc {
	color: var(--jw-text-muted);
	margin-top: .35rem;
}

.jw-archive-head .search-form {
	margin-top: .75rem;
	display: flex;
	gap: .5rem;
}

.category .jw-archive-grid .jw-pill:not(.jw-pill-village) {
	display: none;
}

.jw-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: .75rem;
	margin-top: 1rem;
}

.jw-filter label {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	font-size: .85rem;
}

.jw-filter button,
.jw-archive-head .search-submit {
	background: var(--jw-red);
	color: #fff;
	border-radius: var(--jw-radius);
}

.jw-empty {
	padding: 2rem;
	text-align: center;
	color: var(--jw-text-muted);
}

/* Pagination (GeneratePress prints .nav-links without the .pagination wrapper) */
.nav-links:has(.page-numbers) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35rem;
	margin-top: 1.5rem;
}

.nav-links .page-numbers.dots {
	background: transparent;
	border-color: transparent;
}

.nav-links a.page-numbers:hover,
.nav-links a.page-numbers:focus-visible {
	border-color: var(--jw-red);
	color: var(--jw-red);
}

.nav-links .page-numbers {
	min-width: 2.5rem;
	padding: .35rem .75rem;
	text-align: center;
	background: var(--jw-bg);
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
	color: var(--jw-text);
	text-decoration: none;
}

.nav-links .page-numbers.current {
	background: var(--jw-red);
	border-color: var(--jw-red);
	color: #fff;
}

@media (max-width: 768px) {
	.jw-article {
		padding: 1rem 1rem 1.5rem;
		border-radius: 0;
		border-inline: 0;
	}
	.jw-article-body {
		font-size: 1.05rem;
	}
	.archive .site-main,
	.search .site-main {
		padding-inline: 12px;
	}
}

/* Contact form (jawlany-core) */
.jw-contact {
	max-width: 640px;
	margin: 2rem auto 0;
	padding: 1.5rem;
	background: var(--jw-surface);
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
}

.jw-contact p {
	margin: 0 0 1rem;
}

.jw-contact label {
	display: block;
	font-weight: 600;
	margin-bottom: .25rem;
}

.jw-contact input,
.jw-contact select,
.jw-contact textarea {
	width: 100%;
	border-radius: var(--jw-radius);
}

.jw-contact button {
	background: var(--jw-red);
	color: #fff;
	padding: .6rem 2.5rem;
	border-radius: var(--jw-radius);
}

.jw-contact-note {
	color: var(--jw-text-muted);
	font-size: .85rem;
}

/* Hidden from people, not moved off-screen (an off-screen offset widens RTL pages) */
.jw-hp {
	position: absolute !important;
	clip-path: inset(50%);
	white-space: nowrap;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jw-contact-done,
.jw-contact-error {
	max-width: 640px;
	margin: 1.5rem auto 0;
	padding: 1rem 1.25rem;
	border-radius: var(--jw-radius);
}

.jw-contact-done {
	background: #ecfdf3;
	border: 1px solid #a6e3bd;
}

.jw-contact-error {
	background: var(--jw-red-tint);
	border: 1px solid #f5b5b9;
	color: var(--jw-red-dark);
}


/* Comment form (rules in jawlany-core inc/comments.php). */
.jw-comments .comment-notes { color: var(--jw-text-muted); font-size: .9rem; }
.jw-comments .comment-form .submit { background: var(--jw-red); color: #fff; border-radius: var(--jw-radius); }
.jw-comments .comment-form .submit:hover,
.jw-comments .comment-form .submit:focus-visible { background: #8f0e15; }
.jw-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.jw-comments .no-comments { color: var(--jw-text-muted); }

/* Obituary photos are usually small notices (often a 600x300 candle); don't blow them up */
.single-obituary .jw-article-image img {
	width: auto;
	max-width: min(100%, 640px);
	max-height: 420px;
	margin-inline: auto;
	display: block;
}

/* Plain pages and the 404 page: same title style as lists, slimmer box */
.page .inside-article,
.error404 .inside-article,
.post-type-archive-rainfall .inside-article {
	padding: 1.5rem 1.75rem;
	border-radius: var(--jw-radius);
}

.page .entry-title,
.error404 .entry-title,
.post-type-archive-rainfall .entry-title {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: .75rem;
	padding-bottom: .6rem;
	border-bottom: 2px solid var(--jw-red);
}

.page .entry-header,
.error404 .entry-header,
.post-type-archive-rainfall .entry-header {
	margin-bottom: 1rem;
}

.error404 .search-form {
	display: flex;
	gap: .5rem;
	max-width: 520px;
}

.error404 .search-form label {
	flex: 1;
}

.error404 .search-field {
	width: 100%;
	border-radius: var(--jw-radius);
}

.error404 .search-submit {
	background: var(--jw-red);
	color: #fff;
	border-radius: var(--jw-radius);
	padding-inline: 1rem;
}

/* Comments: slimmer box, h2 title, full-width fields with name and email side by side */
.separate-containers .comments-area.jw-comments {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
}

.jw-comments .comment-reply-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 .4rem;
}

.jw-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .65rem 1rem;
}

.jw-comments .comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

.jw-comments .comment-form > input#author,
.jw-comments .comment-form > input#email {
	grid-column: auto;
}

.jw-comments .comment-form textarea,
.jw-comments .comment-form input[type="text"],
.jw-comments .comment-form input[type="email"] {
	width: 100%;
	border-radius: var(--jw-radius);
}

.jw-comments .comment-form textarea {
	min-height: 120px;
}

.jw-comments .comment-form .submit {
	justify-self: start;
	padding: .55rem 1.5rem;
}

.jw-comments .comment-form-cookies-consent {
	font-size: .85rem;
	color: var(--jw-text-muted);
}

@media (max-width: 600px) {
	.jw-comments .comment-form > input#author,
	.jw-comments .comment-form > input#email {
		grid-column: 1 / -1;
	}
	.separate-containers .comments-area.jw-comments {
		padding: 1rem;
		border-radius: 0;
		border-inline: 0;
	}
	.page .inside-article,
	.error404 .inside-article,
	.post-type-archive-rainfall .inside-article {
		padding: 1rem;
	}
}

/* Phones: keep a side gutter for the blocks under the article */
@media (max-width: 768px) {
	.sidebar .inside-left-sidebar,
	.sidebar .inside-right-sidebar,
	.jw-related {
		padding-inline: 12px;
	}
	.jw-related-grid .jw-card {
		flex-direction: row;
		align-items: center;
	}
	.jw-related-grid .jw-card-img {
		flex: 0 0 38%;
	}
	.jw-related-grid .jw-card-body {
		padding: .6rem .75rem;
	}
	.jw-related-grid .jw-card-title {
		font-size: .95rem;
	}
}

/* Compact share row under the title */
.jw-share-top {
	padding: .65rem 0;
	border-bottom: 1px solid var(--jw-border);
	font-size: .85rem;
}

.jw-share-top a {
	padding: .2rem .75rem;
	font-size: .8rem;
}
.jw-article-meta:has(+ .jw-share-top) {
	padding-bottom: .5rem;
	border-bottom: 0;
}

/* Weddings: a table on wide screens, stacked rows on phones */
.jw-wed-filter input[type="search"] { min-width: 14rem; }
.jw-filter-reset { font-size: .85rem; }
.jw-filter.is-loading { opacity: .6; pointer-events: none; transition: opacity .15s; }

.jw-wed-table-wrap {
	margin-top: 1rem;
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius);
	overflow: hidden;
	background: var(--jw-bg);
}

.jw-wed-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: .92rem;
}

.jw-wed-table th,
.jw-wed-table td {
	padding: .6rem .85rem;
	border: 0;
	border-bottom: 1px solid var(--jw-border);
	text-align: start;
	vertical-align: middle;
}

.jw-wed-table thead th {
	background: var(--jw-surface);
	color: var(--jw-text-muted);
	font-size: .8rem;
	font-weight: 600;
}

.jw-wed-table tbody tr:last-child > * { border-bottom: 0; }
.jw-wed-table tbody tr:hover { background: var(--jw-surface); }
.jw-wed-table tr.has-invite { cursor: pointer; }

.jw-wed-date time {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	white-space: nowrap;
}

.jw-wed-date b {
	padding: .2rem .5rem;
	border-radius: 6px;
	background: var(--jw-red-tint);
	color: var(--jw-red);
	font-size: .9rem;
	direction: ltr;
	font-variant-numeric: tabular-nums;
}

.jw-wed-date small { color: var(--jw-text-muted); font-size: .75rem; }
.jw-wed-couple { font-weight: 600; }
.jw-wed-couple-in { display: flex; align-items: center; gap: .6rem; }
.jw-wed-names { display: flex; flex-direction: column; gap: .1rem; }
.jw-wed-groom, .jw-wed-bride { display: flex; align-items: baseline; gap: .4rem; }
.jw-wed-names small { flex: 0 0 3.2em; color: var(--jw-text-muted); font-size: .72rem; font-weight: 400; }
.jw-wed-photo {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 25%;
	background: var(--jw-surface);
	box-shadow: 0 0 0 2px var(--jw-bg), 0 0 0 3px var(--jw-border);
}
/* Round photo (or hearts) above the date, like the app. */
.jw-wed-date-in { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; }
.jw-wed-date .jw-wed-photo { flex: none; width: 56px; height: 56px; }
.jw-wed-photo-ph {
	display: grid;
	place-items: center;
	background: var(--jw-red-tint);
	color: var(--jw-red);
}
/* Computers: date | couple (takes the room) | village | invitation, all aligned to the start. */
.jw-wed-table { table-layout: fixed; }
.jw-wed-table th:nth-child(1) { width: 9.5rem; }
.jw-wed-table th:nth-child(3) { width: 10rem; }
.jw-wed-table th:nth-child(4) { width: 7.5rem; }
.jw-wed-date { text-align: start; }
.jw-wed-date time { align-items: center; }
.jw-wed-village { color: var(--jw-text-muted); }
.jw-wed-action { white-space: nowrap; text-align: end; }

.jw-wed-invite-btn {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .7rem;
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius-pill);
	background: var(--jw-bg);
	color: var(--jw-red);
	font: inherit;
	font-size: .8rem;
	cursor: pointer;
}

.jw-wed-invite-btn svg { width: 18px; height: 18px; }
.jw-wed-invite-btn:hover,
.jw-wed-invite-btn:focus-visible { background: var(--jw-red-tint); }

.jw-wed-dialog {
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
	width: min(92vw, 560px);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: var(--jw-radius);
	background: var(--jw-bg);
	color: var(--jw-text);
}

.jw-wed-dialog::backdrop { background: rgb(0 0 0 / .7); }

.jw-wed-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem .9rem;
	border-bottom: 1px solid var(--jw-border);
}

.jw-wed-dialog-head h2 { margin: 0; font-size: 1rem; }

.jw-wed-dialog-head button {
	padding: 0 .5rem;
	border: 0;
	background: transparent;
	color: var(--jw-text);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.jw-wed-dialog img {
	display: block;
	width: 100%;
	max-height: calc(92vh - 3.5rem);
	object-fit: contain;
}

.jw-wed-invite { margin: 1rem 0; max-width: 560px; }
.jw-wed-invite img { width: 100%; height: auto; border-radius: var(--jw-radius); }
.jw-wed-invite figcaption { color: var(--jw-text-muted); font-size: .8rem; }

@media (max-width: 700px) {
	.jw-wed-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.jw-wed-table,
	.jw-wed-table tbody { display: block; }
	.jw-wed-table tr {
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "date couple action" "date meta action";
		column-gap: .75rem;
		align-items: center;
		padding: .6rem .75rem;
		border-bottom: 1px solid var(--jw-border);
	}
	.jw-wed-table tbody tr:last-child { border-bottom: 0; }
	.jw-wed-table th,
	.jw-wed-table td { display: block; padding: 0; border: 0; }
	.jw-wed-date { grid-area: date; }
	.jw-wed-couple { grid-area: couple; }
	.jw-wed-village { grid-area: meta; font-size: .8rem; }
	.jw-wed-action { grid-area: action; }
	.jw-wed-invite-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.jw-wed-filter input[type="search"] { min-width: 0; width: 100%; }
	.jw-wed-filter label:first-child { flex: 1 1 calc(100% - 6rem); } /* name + «بحث» on one line */
	.jw-wed-filter label:not(:first-child) { flex: 1 1 8rem; }
}
.jw-wed-filter input[type="search"], .jw-wed-filter select { height: var(--jw-control-h); box-sizing: border-box; }

/* Slim filter bar: inputs, lists and the button share one height, and «مسح الفلاتر»
   sits on the same line as them (centred on the controls, not on the labels). */
.jw-filter { --jw-control-h: 2.4rem; }
.jw-filter input[type="search"] { padding-block: 0; padding-inline: .75rem; }
.jw-filter button {
	height: var(--jw-control-h);
	padding: 0 1.25rem;
	line-height: 1;
}
.jw-filter-reset {
	display: inline-flex;
	align-items: center;
	align-self: end;
	height: var(--jw-control-h);
}
/* Arabic text sits low in Noto Kufi; keep the lists' text from being cut off. */
.jw-filter select { padding-block: 0; line-height: 1.5; }
/* Lists and the search box stand out from the grey page: white fill, a firmer
   border and a red arrow, so the filters aren't missed (weddings, news archive). */
.jw-filter select,
.jw-filter input[type="search"] {
	background-color: var(--jw-bg);
	border: 1px solid color-mix(in srgb, var(--jw-text) 28%, transparent);
	border-radius: var(--jw-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.jw-filter select {
	-webkit-appearance: none;
	appearance: none;
	padding-inline: .75rem 2.25rem;
	/* Normal weight: the border, white fill and red arrow are what make the lists visible. */
	font-weight: 400;
	color: var(--jw-text);
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5121B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 1.1rem;
	background-position: left .7rem center;
}
[dir="ltr"] .jw-filter select { background-position: right .7rem center; }
.jw-filter select:hover,
.jw-filter select:focus,
.jw-filter input[type="search"]:focus {
	border-color: var(--jw-red);
}
.jw-filter select:focus-visible,
.jw-filter input[type="search"]:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--jw-red) 35%, transparent);
	outline-offset: 1px;
}
/* A chosen filter is marked in red, so it's clear the list is filtering. */
.jw-filter select:has(option[value=""]:not(:checked)) {
	border-color: var(--jw-red);
	color: var(--jw-red);
	background-color: color-mix(in srgb, var(--jw-red) 6%, var(--jw-bg));
	font-weight: 500;
}
.jw-filter label { font-weight: 600; }
.jw-news-more { margin: 1.25rem 0 0; text-align: center; }
.jw-news-more a {
	display: inline-block;
	padding: .5rem 1.5rem;
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius-pill);
	background: var(--jw-bg);
	text-decoration: none;
}
@media (max-width: 700px) {
	.jw-filter { --jw-control-h: 2.75rem; } /* bigger touch targets on phones */
}

/* ---- Central archive (/news/, sections, villages, obituaries) ---- */

/* Header band: name, one line about the page, and the count. */
.jw-archive-head.jw-news-head {
	--jw-band: #f3f6f9;
	--jw-band-muted: #4b5563;
	padding-bottom: 0;
	border-bottom: 0;
}
.jw-news-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--jw-band);
	border-inline-start: 4px solid var(--jw-red);
	border-radius: var(--jw-radius);
}
.jw-news-band h1 { font-size: 1.5rem; line-height: 1.5; }
.jw-news-desc {
	margin: .2rem 0 0;
	color: var(--jw-band-muted);
	font-size: .9rem;
}
.jw-news-count {
	flex: none;
	margin: 0;
	padding: .2rem .8rem;
	border-radius: var(--jw-radius-pill);
	background: var(--jw-bg);
	color: var(--jw-text);
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Filter bar: one line, the names inside the fields. */
.jw-news-filter {
	flex-wrap: nowrap;
	align-items: center;
	gap: .5rem;
	margin-top: .9rem;
}
.jw-news-filter label { display: block; margin: 0; }
.jw-news-filter .jw-news-q { flex: 1 1 14rem; min-width: 9rem; order: 1; }
.jw-filter-more { display: contents; }
.jw-filter-more label { flex: 0 1 9.5rem; min-width: 7rem; order: 2; }
.jw-filter-submit { order: 3; flex: none; }
.jw-news-filter input[type="search"],
.jw-news-filter select { width: 100%; height: var(--jw-control-h); box-sizing: border-box; }
.jw-filter-toggle { display: none; }

/* Chips for the filters in use, each removes one. */
.jw-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin: .7rem 0 0;
	padding: 0;
	list-style: none;
}
.jw-chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 2rem;
	padding: 0 .8rem;
	border: 1px solid var(--jw-border);
	border-radius: var(--jw-radius-pill);
	background: var(--jw-bg);
	color: var(--jw-text);
	font-size: .85rem;
	text-decoration: none;
}
.jw-chip-x { color: var(--jw-text-muted); font-size: .75rem; }
.jw-chip:hover, .jw-chip:focus-visible { border-color: var(--jw-red); }
.jw-chip:hover .jw-chip-x, .jw-chip:focus-visible .jw-chip-x { color: var(--jw-red); }
.jw-chip-clear { font-size: .85rem; padding-inline: .4rem; }

@media (max-width: 900px) {
	.jw-news-filter { flex-wrap: wrap; }
	.jw-news-filter .jw-news-q { flex-basis: 100%; }
	.jw-filter-more label { flex: 1 1 8rem; }
}
@media (max-width: 700px) {
	.jw-news-band { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem 1rem; }
	.jw-news-band h1 { font-size: 1.3rem; }
	.jw-news-filter .jw-news-q { flex: 1 1 0; order: 1; }
	.jw-filter-submit { order: 2; padding: 0 .9rem; }
	.jw-filter-toggle:not([hidden]) {
		display: inline-flex;
		align-items: center;
		gap: .35rem;
		order: 3;
		flex: none;
		height: var(--jw-control-h);
		padding: 0 .9rem;
		border: 1px solid var(--jw-border);
		border-radius: var(--jw-radius);
		background: var(--jw-bg);
		color: var(--jw-text);
	}
	.jw-filter-toggle[aria-expanded="true"] { border-color: var(--jw-red); color: var(--jw-red); }
	.jw-filter-n {
		min-width: 1.3rem;
		padding: 0 .3rem;
		border-radius: var(--jw-radius-pill);
		background: var(--jw-red);
		color: #fff;
		font-size: .75rem;
		line-height: 1.3rem;
		text-align: center;
	}
	.jw-filter-more {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: .5rem;
		flex: 1 1 100%;
		order: 4;
	}
	.jw-news-filter[data-collapsed] .jw-filter-more { display: none; }
}

/* «بقلم» in the article meta line */
.jw-byline { color: var(--jw-text); font-weight: 600; }
.jw-byline a { color: inherit; text-decoration: none; }
.jw-byline a:hover, .jw-byline a:focus-visible { color: var(--jw-red); text-decoration: underline; }

/* ---- /rainfall/: band, weather panel, then the season totals and tables ---- */
.jw-rain-head { margin-bottom: var(--jw-gap); }
.jw-rain-body { margin-top: var(--jw-gap); }
.jw-rain-body .jw-rain-h:first-child { margin-top: 0; }

/* Weddings: link to the request form, and the form's private part. */
/* «عندكم عرس قريب؟» card with the «أضف عرساً» button (same design as the app). */
.jw-wed-cta {
	display: flex; align-items: center; gap: .75rem;
	margin: .75rem 0; padding: .65rem .85rem;
	background: var(--jw-red-tint); border: 1px solid var(--jw-border); border-radius: var(--jw-radius);
}
.jw-wed-cta-icon {
	flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
	border-radius: 50%; background: var(--jw-bg); color: var(--jw-red);
}
.jw-wed-cta-icon svg { width: 22px; height: 22px; }
.jw-wed-cta p { flex: 1; margin: 0; display: flex; flex-direction: column; line-height: 1.5; }
.jw-wed-cta strong { font-size: .95rem; }
.jw-wed-cta p span { color: var(--jw-text-muted); font-size: .8rem; }
.jw-wed-cta-btn {
	flex: 0 0 auto; display: inline-flex; align-items: center; height: 36px; padding: 0 1rem;
	border-radius: var(--jw-radius); background: var(--jw-red); color: #fff; font-weight: 700; font-size: .9rem;
	text-decoration: none; white-space: nowrap;
}
.jw-wed-cta-btn:hover, .jw-wed-cta-btn:focus-visible { background: #8f0e15; color: #fff; }
.jw-wed-private { margin: 1rem 0; padding: .75rem 1rem; border: 1px dashed var(--jw-border); border-radius: var(--jw-radius); }
.jw-wed-private legend { padding: 0 .4rem; font-size: .85rem; color: var(--jw-text-muted); }
.jw-news-count a { color: inherit; }
.jw-wed-request { margin-top: 0; }
.jw-contact input[type="date"] { height: 48px; padding: 0 .9rem; border: 1px solid var(--jw-border); background: var(--jw-bg); color: inherit; font: inherit; box-sizing: border-box; }
.jw-wed-private > p:first-of-type { margin-top: .25rem; }

/* Phones: tighter spacing on archive and article pages. */
@media (max-width: 768px) {
	.jw-archive-head { margin-bottom: .75rem; }
	.jw-archive-grid { margin-bottom: .75rem; }
	.jw-news-more { margin-top: .75rem; }
	.jw-article .jw-article-image { margin-block: .75rem; }
	.jw-article .entry-content.jw-article-body { margin-top: 1rem; }
	.jw-article .jw-article-foot { margin-top: 1.25rem; padding-top: .75rem; }
	.jw-related { margin-block: 1rem .75rem; }
	.separate-containers .comments-area.jw-comments { margin-top: 1rem; }
	.separate-containers .inside-left-sidebar, .inside-left-sidebar { margin-block: .75rem; }
	.sidebar .widget.jw-side-block, .jw-side-block { margin-bottom: .75rem; }
	.separate-containers .jw-article.inside-article, .separate-containers article.jw-article { margin-bottom: .75rem; }
}

/* Comment list: GeneratePress gives a big h2 title and 30px boxes; keep it at reading size. */
.jw-comments .comments-title { font-size: 1.15rem; font-weight: 700; line-height: 1.5; margin: 0 0 .5rem; }
.jw-comments .comment-body { padding: .85rem 0; border-bottom: 1px solid var(--jw-border); }
.jw-comments .comment-list > .comment:last-child > .comment-body { border-bottom: 0; }
.jw-comments .comment-meta .avatar { width: 36px; height: 36px; margin: 0; margin-inline-end: .5rem; float: none; vertical-align: middle; }
.jw-comments .comment-author cite { font-size: .95rem; }
.jw-comments .comment-author .says { display: none; }
.jw-comments .comment-metadata { font-size: .78rem; color: var(--jw-text-muted); }
.jw-comments .comment-metadata a { color: inherit; }
.jw-comments .comment-content { margin-top: .5rem; padding: .6rem .85rem; font-size: .95rem; line-height: 1.75; background: var(--jw-surface); border: 0; border-radius: var(--jw-radius); }
.jw-comments .comment-content :is(h1, h2, h3, h4, h5, h6) { font-size: 1em; margin: 0 0 .4em; }
.jw-comments .comment-content .reply, .jw-comments .reply { font-size: .8rem; }
.jw-comments .comment .children { padding: 0; padding-inline-start: 1rem; margin: 0; border: 0; border-inline-start: 2px solid var(--jw-border); }
@media (max-width: 600px) {
	.jw-comments .comments-title,
	.jw-comments .comment-reply-title { font-size: 1.05rem; }
	.jw-comments .comment-content { font-size: .92rem; padding: .55rem .75rem; }
}

/* Weddings: an ad row after every 10 weddings. */
.jw-wed-table tr.jw-wed-ad,
.jw-wed-table tr.jw-wed-ad:hover { background: var(--jw-surface); cursor: default; }
.jw-wed-table tr.jw-wed-ad > td { padding: .75rem; }
.jw-wed-ad .jw-ads { max-width: 100%; }
.jw-wed-ad .jw-ads-mobile { max-width: 420px; margin-inline: auto; }
@media (max-width: 700px) {
	.jw-wed-table tr.jw-wed-ad { display: block; padding: .6rem .75rem; }
	.jw-wed-table tr.jw-wed-ad > td { padding: 0; }
}

