/* -------------------------------------------------------------------------
 * Community page, draft v2
 *
 * Only the blocks the rebuild adds. Everything the page shares with the rest
 * of the site (tiers, FAQ, testimonials, stats, illusions) keeps using
 * main.css, so this file stays small and the page cannot drift away from the
 * site's typography.
 * ---------------------------------------------------------------------- */

/* ---- Hero with the cover photo behind it ----
   The photo is a backdrop, not the subject, so the scrim is heavy enough to
   keep the headline at full contrast. The gradient is darkest at the text
   side and lifts over the group, which is why it is directional. */
.comm-hero--photo{ position:relative; isolation:isolate; min-height:min(76vh,620px); display:flex; align-items:center; }
.comm-hero__bg{
	position:absolute; inset:0; width:100%; height:100%;
	object-fit:cover; object-position:center 45%;
	z-index:-2;
}
.comm-hero__scrim{
	position:absolute; inset:0; z-index:-1;
	background:
		linear-gradient(to bottom, rgba(11,15,26,.72), rgba(11,15,26,.80)),
		radial-gradient(ellipse 80% 70% at 50% 40%, rgba(11,15,26,.35), rgba(11,15,26,.85));
}
html[dir="rtl"] .comm-hero__scrim{
	background:
		linear-gradient(to left, rgba(11,15,26,.82), rgba(11,15,26,.46) 72%),
		linear-gradient(to bottom, rgba(11,15,26,.30), rgba(11,15,26,.62));
}
html[dir="ltr"] .comm-hero__scrim{
	background:
		linear-gradient(to right, rgba(11,15,26,.82), rgba(11,15,26,.46) 72%),
		linear-gradient(to bottom, rgba(11,15,26,.30), rgba(11,15,26,.62));
}
/* On one column the text sits over the middle of the photo, where the
   directional wash has already faded, so the flat layer does the work. */
@media (max-width:860px){
	html[dir="rtl"] .comm-hero__scrim,
	html[dir="ltr"] .comm-hero__scrim{
		background:linear-gradient(to bottom, rgba(11,15,26,.72), rgba(11,15,26,.82));
	}
	.comm-hero--photo{ min-height:0; }
}
/* The scrim is tuned to let the group show, which leaves a few bright faces
   under the headline. A soft shadow holds the type without darkening the
   photo any further. */
.comm-hero--photo .comm-hero__title,
.comm-hero--photo .comm-hero__sub{ text-shadow:0 2px 14px rgba(11,15,26,.55); }

/* The decorative blob fights the photo, so it goes. */
.comm-hero--photo .blob{ display:none; }

/* ---- Photo beside text ---- */
.comm-split{
	display:grid; grid-template-columns:1fr 1fr;
	gap:clamp(24px,4vw,56px); align-items:center;
}
.comm-split__media{ margin:0; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.comm-split__media img{ display:block; width:100%; height:100%; aspect-ratio:4/3; object-fit:cover; }
.comm-split__media--portrait img{ aspect-ratio:3/4; object-position:center 22%; }
.comm-split--tight{ max-width:900px; margin-inline:auto; grid-template-columns:.8fr 1fr; }
.comm-split__text h2{ margin:var(--space-2) 0 var(--space-4); }
.comm-split__text p + p{ margin-block-start:var(--space-4); }
@media (max-width:820px){
	.comm-split, .comm-split--tight{ grid-template-columns:1fr; }
	.comm-split__media--portrait img{ aspect-ratio:4/3; }
}

/* ---- The two homes: portal and WhatsApp ---- */
.homes{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,3vw,32px); align-items:start; }
.home{
	background:var(--color-white); border-radius:var(--radius-lg);
	overflow:hidden; box-shadow:var(--shadow-sm);
	display:flex; flex-direction:column;
}
.home__media{ margin:0; }
.home__media img{ display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.home__body{ padding:clamp(20px,2.4vw,30px); }
.home__title{ margin:0 0 var(--space-2); }
.home__lead{ color:var(--color-slate); margin:0 0 var(--space-5); }
/* A quiet label, not a heading, because these lists are a continuation of
   the card rather than new sections. */
.home__label{
	margin:0 0 var(--space-3); font-size:.78rem; font-weight:700;
	letter-spacing:.12em; text-transform:uppercase; color:var(--color-blue);
}
html[dir="rtl"] .home__label{ letter-spacing:0; }
.home__list{ list-style:none; margin:0 0 var(--space-6); padding:0; }
.home__list:last-child{ margin-block-end:0; }
.home__list--check li{
	display:flex; gap:var(--space-3); align-items:flex-start;
	font-weight:600; margin-block-end:var(--space-3);
}
.home__list--check li::before{
	content:"✓"; flex:none; width:22px; height:22px; border-radius:50%;
	background:rgba(66,221,81,.15); color:var(--color-success);
	display:grid; place-items:center; font-weight:800; font-size:.72rem;
}
/* Ten sections would be a long ladder as a list, so they read as a cloud. */
.home__list--pills{ display:flex; flex-wrap:wrap; gap:8px; }
.home__list--pills li{
	background:var(--color-cream); border:1px solid var(--color-line);
	border-radius:var(--radius-pill); padding:6px 14px;
	font-size:.88rem; font-weight:600;
}
@media (max-width:820px){ .homes{ grid-template-columns:1fr; } }

/* ---- The 13 people ----
   Compact cards: a square face, a name, a country and one line. Square rather
   than round because these crops are head-and-shoulders, and a circle eats
   the shoulders that make a face look like a person. */
/* Flex rather than grid, because a grid leaves the short last row hanging at
   the start edge. Here the row centres itself and 13 cards sit symmetrically. */
.experts--compact{
	display:flex; flex-wrap:wrap; justify-content:center;
	gap:var(--space-5);
}
.expert--compact{
	flex:0 1 210px;
	background:var(--color-white); border-radius:var(--radius-lg);
	padding:var(--space-5); box-shadow:var(--shadow-sm); text-align:center;
	display:flex; flex-direction:column; align-items:center;
}
.expert--compact .expert__brief{ margin-block-end:0; }
.expert__avatar--square{
	width:112px; height:112px; border-radius:18px; margin:0 auto var(--space-4);
}
.expert__country{
	margin:0 0 var(--space-2); font-size:.85rem; font-weight:600;
	color:var(--color-blue);
}
.expert--compact .expert__brief{ font-size:.9rem; line-height:1.65; }
.expert__more{ margin-block-start:var(--space-3); font-size:.88rem; }
.expert__more summary{ cursor:pointer; font-weight:700; color:var(--color-blue); }
.expert__more p{ margin:var(--space-3) 0 0; color:var(--color-slate); font-size:.88rem; text-align:start; }
@media (max-width:768px){
	/* Two per row, each taking half the space the gap leaves. */
	.expert--compact{ flex:0 1 calc(50% - var(--space-5)); }
}
@media (max-width:460px){ .expert--compact{ flex:1 1 100%; } }

/* ---- Offline meetups ---- */
.meetups{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,2vw,22px); }
.meetup{ margin:0; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
.meetup img{ display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.meetups__note{
	max-width:62ch; margin:clamp(24px,3vw,36px) auto 0;
	text-align:center; color:var(--color-slate);
}
.meetups__cta{ text-align:center; margin-block-start:var(--space-5); }
/* Six tiles fill two clean rows of three, so no tile is left stranded and
   the special case the three-photo version needed is gone. */
@media (max-width:700px){ .meetups{ grid-template-columns:1fr 1fr; } }

/* ---- Founder, photo beside the quote ---- */
.founder-quote--split{ text-align:start; }
.founder-quote--split blockquote{ margin-block-end:var(--space-5); }
.founder-quote--split figcaption{ align-items:flex-start; }
@media (max-width:820px){
	.founder-quote--split{ text-align:center; }
	.founder-quote--split figcaption{ align-items:center; }
}

/* ---- Closing call to action ---- */
.comm-close{
	position:relative; isolation:isolate; overflow:hidden;
	padding-block:clamp(56px,8vw,104px); text-align:center;
}
.comm-close__bg{
	position:absolute; inset:0; width:100%; height:100%;
	object-fit:cover; object-position:center 55%; z-index:-2;
}
.comm-close__scrim{
	position:absolute; inset:0; z-index:-1;
	background:linear-gradient(to bottom, rgba(11,15,26,.78), rgba(11,15,26,.88));
}
.comm-close__inner{ position:relative; }
.comm-close__title{
	color:var(--color-white); margin:0 auto var(--space-4);
	max-width:20ch; text-wrap:balance;
}
.comm-close__sub{ color:var(--text-on-dark); opacity:.92; max-width:52ch; margin:0 auto var(--space-6); }
.comm-close__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); justify-content:center; }

/* ---- Three stats instead of four ----
   The member count came off the page, so the row re-balances rather than
   leaving a gap where it used to be. */
.stat-row--three{ grid-template-columns:repeat(3,1fr); }
@media (max-width:600px){ .stat-row--three{ grid-template-columns:1fr; } }

/* ---- "What's included", now two labelled groups ---- */
.inc-label{
	margin:0 0 var(--space-3); font-size:.78rem; font-weight:700;
	letter-spacing:.12em; text-transform:uppercase; color:var(--color-blue);
	text-align:center;
}
.inc-label + .included{ margin-block-end:var(--space-6); }
html[dir="rtl"] .inc-label{ letter-spacing:0; }

/* ---- The quieter free route under a PRO button ---- */
.comm-hero__alt{
	margin:var(--space-4) 0 0; font-size:.92rem;
	color:var(--text-on-dark); opacity:.82;
}
.comm-close__alt{
	margin:var(--space-5) 0 0; font-size:.92rem;
	color:var(--text-on-dark); opacity:.82;
}
.comm-hero__alt a, .comm-close__alt a{
	color:#fff; font-weight:700; border-block-end:1px solid rgba(255,255,255,.5);
}
.comm-hero__alt a:hover, .comm-close__alt a:hover{ border-block-end-color:#fff; }

/* ---- Spacing between sections ----
   The shared .section rule pays a full padding at the top and the bottom. On
   a page that runs eight cream sections in a row, every break between two of
   them is therefore two paddings tall, which is what reads as too much air.
   The later section of a same-ground pair drops its top padding, so the break
   is a single gap. Where the ground changes the padding stays on both, since
   there it is the band's own inset rather than a gap between two things.

   The selector matches page-community and page-community-v2, so it survives
   the swap to the live template name. */
[class*="page-template-page-community"] .section{ padding-block:clamp(34px,4.4vw,72px); }
[class*="page-template-page-community"] .section--cream + .section--cream,
[class*="page-template-page-community"] .section--night + .section--night{ padding-block-start:0; }
/* The hero is also a night band, but the section after it needs real space:
   without it the next heading crowds the hero's buttons. */
[class*="page-template-page-community"] .comm-hero + .section--night{ padding-block-start:clamp(30px,3.6vw,58px); }

/* ---- Hero title ----
   The shared rule sets 1.18, which is tuned for Latin caps. Arabic carries
   tashkeel above the line and descenders below it, so at that leading the
   rows of a three-line headline almost touch. It also needs more daylight
   under the overline. */
[class*="page-template-page-community"] .comm-hero__title{
	line-height:1.45;
	margin-block:var(--space-4) var(--space-5);
}

/* ---- Member cards ----
   These hold a name, a country and one line, in a 210px column. At the shared
   h3 size the names dominated the card and pushed the detail out of the way,
   so they step down to just above body size and keep the weight. */
[class*="page-template-page-community"] .expert--compact .expert__name{
	font-size:clamp(1rem,.95rem + .2vw,1.12rem);
	line-height:1.4;
	margin-block-end:var(--space-2);
}
