/* =========================================================================
   Join page (الاشتراك بالجائزة), ported from Theme B v2.
   Only the sections below the hero live here; section rhythm, buttons,
   badges and the reveal animation come from home.css / inner.css.
   ========================================================================= */

/* Shared typography helpers (framework.css is not loaded on this page). */
.prose {
	max-width: 46rem;
}

.prose--lead {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 2;
	color: var(--ink);
}

.section-head__lead {
	margin-block-start: 0.75rem;
	max-width: 44rem;
	color: var(--ink-soft);
}

.prose-wrap {
	max-width: 860px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

[dir] .icon--down {
	transform: rotate(90deg);
}

.prose p,
p.prose,
.acc__inner p,
.aud-card p,
.bcard__note,
.section-head__lead,
.step p,
.orb p,
.note-band p,
.supporter__text,
.note {
	text-align: justify;
	text-justify: inter-word;
}

/* ---------- Audience cards ---------- */
.join-intro {
	max-width: 52rem;
	margin-block-end: 3rem;
}

.join-intro .h2 {
	margin-block-end: 1rem;
}

.aud-cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aud-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	min-height: 15rem;
	padding: 1.75rem;
	background: var(--mist);
	border-radius: var(--r-lg);
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.aud-card:hover {
	background: var(--hya-green-ink);
	color: #fff;
	transform: translateY(-4px);
}

.aud-card:focus-within {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.aud-card h3 {
	font: 900 clamp(1.45rem, 2.3vw, 1.85rem) / 1.2 var(--font-display);
}

.aud-card h3 a {
	color: inherit;
	text-decoration: none;
}

.aud-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.aud-card h3 a:focus-visible {
	outline: none;
}

.aud-card p {
	font-size: var(--fs-sm);
	line-height: 1.8;
	margin: 0;
}

.aud-card__go {
	margin-block-start: auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid currentColor;
}

@media (min-width: 640px) {
	.aud-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.aud-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- Split sections ---------- */
.split {
	display: grid;
	gap: 2rem;
}

.split__head {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.split__body {
	display: grid;
	gap: 1.5rem;
	align-content: start;
	min-width: 0;
}

@media (min-width: 960px) {
	.split {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: clamp(2rem, 5vw, 5rem);
	}

	.split__head {
		position: sticky;
		inset-block-start: 9rem;
		align-self: start;
	}
}

/* ---------- Tables ---------- */
.table-wrap {
	overflow-x: auto;
	border-radius: var(--r-md);
}

.table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--line);
}

.table--narrow {
	min-width: 0;
}

/* The scroll box (.table-wrap) clipped the first letter at its edge, so the
   caption keeps a little room on both sides (client edits v4). */
.table caption {
	caption-side: top;
	text-align: start;
	font: 800 1.15rem / 1.5 var(--font-display);
	padding-block-end: 0.75rem;
	padding-inline: 0.35rem;
}

.table th,
.table td {
	padding: 0.85rem 0.7rem;
	text-align: start;
	border-block-end: 1px solid var(--line);
}

.table thead th {
	background: var(--night);
	color: #fff;
	font-weight: 600;
	font-size: var(--fs-sm);
}

.table tbody tr:last-child > * {
	border-block-end: 0;
}

@media (min-width: 640px) {
	.table th,
	.table td {
		padding: 1rem 1.1rem;
	}
}

.note {
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	margin-block-start: 1.25rem;
}

/* ---------- Online Record Book ---------- */
.orb {
	display: grid;
	gap: 0.75rem;
	justify-items: start;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: #fff;
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
}

.orb h3 {
	font-size: 1.35rem;
	color: var(--hya-green-ink);
}

.orb p {
	color: var(--ink-soft);
	margin: 0;
}

/* ---------- Volunteer roles ---------- */
.roles {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: 1rem;
	margin-block-end: 0;
	padding: 0;
	list-style: none;
}

.role {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--mist);
	border-radius: var(--r-lg);
	font: 800 1.2rem / 1.5 var(--font-display);
}

.role .star {
	width: 1.75rem;
	height: 1.75rem;
	fill: var(--hya-green);
}

@media (min-width: 640px) {
	.roles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Supporter band ---------- */
.supporter {
	position: relative;
	display: grid;
	gap: 1.25rem;
}

.star--gold {
	fill: rgba(180, 151, 89, 0.16);
}

.supporter__text {
	font: 800 clamp(1.15rem, 2.1vw, 1.7rem) / 1.7 var(--font-display);
	color: #fff;
	margin: 0;
}

.supporter__contact {
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

.supporter__contact a {
	color: var(--gold-on-night);
	font-weight: 600;
}

/* ---------- Institution steps ---------- */
.steps {
	display: grid;
	gap: 1rem;
	counter-reset: step;
	max-width: 62rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding: 1.5rem;
	background: #fff;
	border-radius: var(--r-lg);
}

.step__n {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--hya-green-ink);
	color: #fff;
	font: 900 1.4rem / 1 var(--font-display);
}

.step p {
	margin: 0;
	color: var(--ink-soft);
	padding-block-start: 0.5rem;
}

.placeholder {
	border: 2px dashed currentColor;
	border-radius: var(--r-md);
	padding: 0.8rem 1.1rem;
	font-weight: 500;
	opacity: 0.9;
}

.placeholder--inline {
	display: inline-block;
	margin-block-start: 1.5rem;
	color: var(--ink-soft);
}

/* ---------- Gold residential note ---------- */
.note-band {
	background: #fff;
	border-block: 1px solid var(--line);
	padding-block: 2.5rem;
}

.note-band__inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: flex-start;
}

.note-band p {
	margin: 0.5rem 0 0;
	color: var(--ink-soft);
}

@media (min-width: 900px) {
	.note-band__inner {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}

	.note-band__inner > div {
		flex: 1;
	}
}

/* ---------- FAQ accordion (native details) ---------- */
.acc {
	border-block-start: 1px solid var(--line);
}

.acc__item {
	border-block-end: 1px solid var(--line);
}

.acc__btn {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.4rem 0;
	border: 0;
	background: none;
	text-align: start;
	font: 800 clamp(1.15rem, 2vw, 1.45rem) / 1.5 var(--font-display);
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}

.acc__btn::-webkit-details-marker {
	display: none;
}

.acc__btn::marker {
	content: "";
}

.acc__btn:hover {
	color: var(--hya-green-ink);
}

.acc__ico {
	position: relative;
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--mist);
	transition: background-color 0.2s;
}

.acc__ico::before,
.acc__ico::after {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	inset-block-start: 50%;
	width: 14px;
	height: 2px;
	background: var(--hya-green-ink);
	transform: translate(-50%, -50%);
	transition: transform 0.25s var(--ease);
}

.acc__ico::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

[dir="rtl"] .acc__ico::before,
[dir="rtl"] .acc__ico::after {
	transform: translate(50%, -50%);
}

[dir="rtl"] .acc__ico::after {
	transform: translate(50%, -50%) rotate(90deg);
}

.acc__item[open] .acc__ico {
	background: var(--hya-green-ink);
}

.acc__item[open] .acc__ico::before,
.acc__item[open] .acc__ico::after {
	background: #fff;
}

.acc__item[open] .acc__ico::after {
	transform: translate(-50%, -50%) rotate(0);
}

[dir="rtl"] .acc__item[open] .acc__ico::after {
	transform: translate(50%, -50%) rotate(0);
}

.acc__panel {
	animation: hya-fade-up 0.35s var(--ease);
}

.acc__inner {
	padding-block-end: 1.5rem;
	color: var(--ink-soft);
}

.acc__inner p {
	margin-block-end: 0.9em;
}

/* ---------- Closing contact band ---------- */
.join-band__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	font: 800 1.5rem / 1.5 var(--font-display);
	margin: 0;
}

.join-band__contacts a {
	color: var(--night);
}

@media (min-width: 900px) {
	.join-band__inner--contact {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aud-card a,
	.acc__ico,
	.acc__ico::before,
	.acc__ico::after {
		transition: none;
	}

	.acc__panel {
		animation: none;
	}
}
