/* ==========================================================================
   Omaya theme – نادي أمية الرياضي
   ========================================================================== */

:root {
	--omaya-radius: 22px;
	--omaya-pitch-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2'%3E%3Crect x='40' y='40' width='1120' height='620' rx='6'/%3E%3Cpath d='M600 40v620'/%3E%3Ccircle cx='600' cy='350' r='95'/%3E%3Ccircle cx='600' cy='350' r='4' fill='%23ffffff' fill-opacity='.08'/%3E%3Crect x='40' y='190' width='170' height='320'/%3E%3Crect x='40' y='270' width='60' height='160'/%3E%3Crect x='990' y='190' width='170' height='320'/%3E%3Crect x='1100' y='270' width='60' height='160'/%3E%3Cpath d='M210 290a80 80 0 0 1 0 120M990 290a80 80 0 0 0 0 120'/%3E%3C/svg%3E");
	--omaya-mow: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.028) 0 80px, transparent 80px 160px);
	--omaya-ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E");
	--omaya-ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--omaya-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--omaya-knit: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.035) 0 2px, transparent 2px 10px), repeating-linear-gradient(45deg, rgb(0 0 0 / 0.06) 0 2px, transparent 2px 10px);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Balanced headings, no orphans in body copy. */
:where(h1, h2, h3, .wp-block-post-title) {
	text-wrap: balance;
}

:where(p, li, figcaption) {
	text-wrap: pretty;
}

/* Scores, clocks and counters keep their width while changing. */
:where(.omaya-countdown, .omaya-match-row__score, .omaya-stat b, .omaya-next time, .is-style-omaya-standings td) {
	font-variant-numeric: tabular-nums;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-color: color-mix(in srgb, var(--wp--preset--color--accent) 80%, #fff);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Remove the root block gap between header / main / footer. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- Header ---------- */

.omaya-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	transition: box-shadow 0.3s;
}

.omaya-site-header.is-scrolled {
	box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.55);
}

@media (max-width: 600px) {
	.omaya-site-header {
		top: 0;
	}
}

.omaya-header {
	border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.omaya-brand {
	flex: none;
}

/* Title + English tagline: give the Arabic descenders room and separate the lines. */
.omaya-brand > .wp-block-group {
	gap: 5px !important;
}

.omaya-brand .wp-block-site-title {
	line-height: 1.35 !important;
}

.omaya-brand__tag {
	direction: ltr;
	text-align: right;
	unicode-bidi: isolate;
	line-height: 1.2 !important;
}

.omaya-brand .wp-block-site-title a {
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

.omaya-brand__tag {
	margin: 0;
	font-size: 12px !important;
	color: rgb(255 255 255 / 0.62);
	font-family: var(--wp--preset--font-family--latin);
	font-weight: 700;
	letter-spacing: 0.08em;
}

.omaya-header {
	border-bottom: 3px solid var(--wp--preset--color--primary) !important;
}

.omaya-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 6px;
	color: rgb(255 255 255 / 0.82);
	transition: color 0.2s;
}

.omaya-nav .wp-block-navigation-item__content:hover,
.omaya-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

@media (min-width: 600px) {
	.omaya-nav .wp-block-navigation-item__content::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		bottom: -2px;
		height: 3px;
		border-radius: 3px;
		background: var(--wp--preset--color--primary);
		transform: scaleX(0);
		transition: transform 0.25s;
	}
	.omaya-nav .wp-block-navigation-item__content:hover::after,
	.omaya-nav .current-menu-item > .wp-block-navigation-item__content::after {
		transform: scaleX(1);
	}
}

.omaya-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--night) !important;
	border: 1px solid rgb(255 255 255 / 0.1) !important;
	border-radius: 14px;
	padding: 8px;
}

.omaya-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 28px;
}

.omaya-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 22px;
	padding-block: 10px;
}

.omaya-nav .wp-block-navigation__responsive-container-open svg,
.omaya-nav .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

.omaya-header__cta .wp-block-button__link {
	white-space: nowrap;
}

/* Collapse the menu into the overlay below 1100px (core only does it below 600px). */
@media (max-width: 1099px) {
	.omaya-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.omaya-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.omaya-header > .alignwide > .omaya-nav {
		order: 3;
	}
}

@media (max-width: 781px) {
	.omaya-header > .alignwide {
		gap: 10px;
	}
}

@media (max-width: 520px) {
	.omaya-header .omaya-brand__tag,
	.omaya-header .omaya-header__cta {
		display: none;
	}
	.omaya-header .wp-block-site-title {
		font-size: 17px !important;
	}
}

/* ---------- Shared bits ---------- */

.omaya-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--display);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.omaya-kicker::before {
	content: "";
	width: 26px;
	height: 3px;
	border-radius: 3px;
	background: currentColor;
}

:is(.has-night-background-color, .has-primary-background-color, .has-primary-dark-background-color) .omaya-kicker {
	color: rgb(255 255 255 / 0.85);
}

:is(.has-night-background-color, .has-primary-background-color, .has-primary-dark-background-color) .omaya-kicker::before {
	background: linear-gradient(90deg, var(--wp--preset--color--accent) 50%, #fff 50%);
}

.omaya-muted {
	color: var(--wp--preset--color--muted);
}

.omaya-section-head {
	margin-bottom: 0;
	gap: 12px 24px;
}

.omaya-section-head h2 {
	margin: 0;
}

/* One rhythm for "section title → content" everywhere. */
.omaya-section-head + * {
	margin-top: clamp(28px, 3.5vw, 40px) !important;
}

.is-style-omaya-card > .omaya-section-head + * {
	margin-top: 20px !important;
}

/* Kicker sits a little above its heading, never glued to it. */
.omaya-kicker + :is(h1, h2, h3, .wp-block-heading) {
	margin-top: 10px !important;
}

.omaya-more {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 14px;
	font-weight: 700;
}

.omaya-more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	text-decoration: none;
}

.omaya-more a::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--omaya-ico-arrow) center / contain no-repeat;
	mask: var(--omaya-ico-arrow) center / contain no-repeat;
	transition: transform 0.25s var(--omaya-ease);
}

.omaya-more a:hover {
	text-decoration: none;
}

.omaya-more a:hover::after {
	transform: translateX(-4px);
}

.is-style-omaya-card {
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--omaya-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: 0 24px 48px -32px rgb(125 12 17 / 0.3);
	height: 100%;
	box-sizing: border-box;
}

.wp-block-column > .is-style-omaya-card {
	height: 100%;
}

/* Buttons */

.wp-block-button.is-style-omaya-accent .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-omaya-accent .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--primary-dark);
	box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.45);
}

.wp-block-button.is-style-omaya-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--surface);
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
}

.wp-block-button.is-style-omaya-ghost .wp-block-button__link:hover {
	background: rgb(255 255 255 / 0.08);
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7);
}

.wp-block-button__link {
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

/* Category chips */

.omaya-cat a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 99px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
}

.omaya-cat.is-small a {
	padding: 0;
	background: none;
	color: var(--wp--preset--color--primary) !important;
}

.omaya-cat .wp-block-post-terms__separator {
	display: none;
}

.omaya-cat a + a,
.omaya-cat .wp-block-post-terms__separator + a {
	margin-inline-start: 6px;
}

/* ---------- Hero ---------- */

.omaya-hero,
.omaya-page-hero,
.omaya-match-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-image:
		radial-gradient(60% 90% at 85% 0%, rgb(232 40 46 / 0.55), transparent 70%),
		radial-gradient(50% 70% at 0% 100%, rgb(0 0 0 / 0.35), transparent 70%),
		var(--omaya-knit);
}

/* Big crest watermark, like the club's cover photo. */
.omaya-hero::before,
.omaya-page-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-inline-end: -4%;
	top: 50%;
	width: min(520px, 55vw);
	aspect-ratio: 120 / 140;
	transform: translateY(-50%) rotate(-8deg);
	background: url("../images/watermark.svg") center / contain no-repeat;
	opacity: 0.09;
	pointer-events: none;
}

.omaya-page-hero::before {
	width: min(320px, 40vw);
}

.omaya-hero::before {
	inset-inline-end: auto;
	inset-inline-start: -6%;
}

.omaya-hero__title {
	margin-block: 18px 0;
	letter-spacing: -0.01em;
}

.omaya-hero__title mark {
	background: linear-gradient(transparent 72%, rgb(30 140 74 / 0.9) 72%, rgb(30 140 74 / 0.9) 90%, transparent 90%);
	color: #fff;
	padding-inline: 2px;
}

.omaya-hero__lead {
	max-width: 34em;
	color: rgb(255 255 255 / 0.75);
	line-height: 1.75;
}

/* Results & fixtures sit in their own band below the hero. */
.omaya-hero {
	padding-bottom: var(--wp--preset--spacing--60) !important;
}

.omaya-lift > .wp-block-columns {
	margin-top: 0 !important;
}

@media (max-width: 781px) {
	.omaya-hero > .wp-block-columns {
		gap: var(--wp--preset--spacing--50);
	}
}

/* ---------- Page hero ---------- */

.omaya-page-hero h1,
.omaya-page-hero .wp-block-post-title,
.omaya-page-hero .wp-block-query-title {
	margin-block: 12px 0;
}

.omaya-page-hero .wp-block-term-description {
	color: rgb(255 255 255 / 0.7);
}

.omaya-page-hero.is-article .wp-block-post-date,
.omaya-page-hero.is-article .wp-block-post-author-name {
	font-size: 14px;
}

.omaya-article-image {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * var(--wp--preset--spacing--60)) !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
	box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.5);
	overflow: hidden;
}

.omaya-page-hero.is-article + main > .wp-block-post-content:first-child {
	margin-top: var(--wp--preset--spacing--50);
}

.omaya-article {
	font-size: 18px;
	line-height: 1.95;
}

.omaya-article :where(h2, h3) {
	margin-top: 1.6em;
}

.omaya-tags a {
	display: inline-block;
	margin: 4px;
	padding: 4px 12px;
	border-radius: 99px;
	background: var(--wp--preset--color--surface-2);
	font-size: 13px;
}

.omaya-tags .wp-block-post-terms__separator {
	display: none;
}

/* ---------- News ---------- */

.omaya-feature-card {
	overflow: hidden;
	background:
		radial-gradient(60% 80% at 20% 20%, rgb(255 255 255 / 0.12), transparent 70%),
		var(--omaya-knit),
		linear-gradient(160deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	height: 100%;
	box-sizing: border-box;
}

.omaya-feature-card .wp-block-cover__background {
	background: linear-gradient(0deg, rgb(20 6 7 / 0.95) 0%, rgb(20 6 7 / 0.45) 45%, rgb(20 6 7 / 0) 75%) !important;
	opacity: 1 !important;
}

.omaya-feature-card .wp-block-cover__image-background {
	transition: transform 0.6s;
}

.omaya-feature-card:hover .wp-block-cover__image-background {
	transform: scale(1.04);
}

.omaya-feature-card .wp-block-cover__inner-container > * + * {
	margin-top: 12px;
}

.omaya-feature-card .wp-block-post-title {
	max-width: 22em;
}

.omaya-feature-card .wp-block-post-title a:hover {
	text-decoration: none;
	color: #ffd0d2 !important;
}

.omaya-news-feature,
.omaya-news-feature .wp-block-post-template,
.omaya-news-feature .wp-block-post {
	height: 100%;
}

.omaya-news-row {
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.omaya-news-side .wp-block-post:last-child .omaya-news-row {
	border-bottom: 0;
	padding-bottom: 0;
}

.omaya-news-row .wp-block-post-featured-image {
	flex: none;
	margin: 0;
	overflow: hidden;
}

.omaya-news-row .wp-block-post-title {
	margin: 0;
}

.omaya-news-row .wp-block-post-title a:hover,
.omaya-news-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none;
}

.omaya-news-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s;
}

.omaya-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 50px -34px rgb(125 12 17 / 0.45);
}

.omaya-news-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.omaya-news-card .wp-block-post-featured-image img {
	transition: transform 0.5s;
}

.omaya-news-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.omaya-news-card .wp-block-post-title {
	margin: 0;
}

.omaya-news-card__body {
	flex: 1;
}

@media (max-width: 600px) {
	.omaya-news-row .wp-block-post-featured-image {
		width: 96px !important;
		height: 96px !important;
	}
	.omaya-feature-card {
		min-height: 380px !important;
	}
}

/* Pagination */

.wp-block-query-pagination {
	gap: 8px;
	font-weight: 600;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	margin: 0 3px;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--line);
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
}

/* ---------- Bands ---------- */

.omaya-band {
	background-image:
		var(--omaya-knit),
		radial-gradient(60% 90% at 50% 0%, rgb(255 255 255 / 0.1), transparent 70%);
}

/* ---------- Standings table ---------- */

.is-style-omaya-standings {
	margin: 0;
	overflow-x: auto;
}

.is-style-omaya-standings table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}

.is-style-omaya-standings :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 12px 8px;
	text-align: center;
	white-space: nowrap;
}

.is-style-omaya-standings thead {
	border: 0;
}

.is-style-omaya-standings th {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 600;
}

.is-style-omaya-standings th:first-child {
	border-start-start-radius: 12px;
	border-end-start-radius: 12px;
}

.is-style-omaya-standings th:last-child {
	border-start-end-radius: 12px;
	border-end-end-radius: 12px;
}

.is-style-omaya-standings :is(th, td):nth-child(2) {
	width: 40%;
	text-align: start;
}

.is-style-omaya-standings td:nth-child(2) {
	font-weight: 600;
}

.is-style-omaya-standings td:first-child {
	color: var(--wp--preset--color--muted);
	font-weight: 700;
}

.is-style-omaya-standings td:last-child {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	color: var(--wp--preset--color--ink);
}

.is-style-omaya-standings tr:has(strong) td {
	background: rgb(200 22 29 / 0.07);
	color: var(--wp--preset--color--primary);
}

.is-style-omaya-standings tbody tr:last-child td {
	border-bottom: 0;
}

.is-style-omaya-standings figcaption {
	margin-top: 12px;
	text-align: start;
}

/* ---------- Academy card ---------- */

.omaya-academy-card {
	background-image:
		radial-gradient(70% 60% at 0% 100%, rgb(0 0 0 / 0.3), transparent 70%),
		var(--omaya-knit),
		var(--omaya-mow);
	box-shadow: 0 30px 60px -36px rgb(125 12 17 / 0.8);
}

.omaya-academy-card h2 {
	margin: 0;
	line-height: 1.35;
}

.omaya-academy-card p {
	margin: 0;
	color: rgb(255 255 255 / 0.85);
}

.omaya-checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.omaya-checks li {
	position: relative;
	padding-inline-start: 30px;
	margin-block: 8px;
}

.omaya-checks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.45em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.omaya-checks li::after {
	content: "";
	position: absolute;
	inset-inline-start: 4px;
	top: calc(0.45em + 4px);
	width: 12px;
	height: 12px;
	background: #fff;
	-webkit-mask: var(--omaya-ico-check) center / contain no-repeat;
	mask: var(--omaya-ico-check) center / contain no-repeat;
}

/* ---------- Sponsors ---------- */

.omaya-sponsors__row {
	gap: 16px;
}

.omaya-sponsor {
	display: grid;
	place-items: center;
	width: 170px;
	height: 76px;
	margin: 0;
	border: 1.5px dashed var(--wp--preset--color--line);
	border-radius: 16px;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 14px;
}

.omaya-sponsors__row img {
	max-height: 60px;
	width: auto;
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.3s, opacity 0.3s;
}

.omaya-sponsors__row img:hover {
	filter: none;
	opacity: 1;
}

/* ---------- Footer ---------- */

.omaya-footer {
	background-image: radial-gradient(50% 70% at 100% 0%, rgb(200 22 29 / 0.3), transparent 70%);
	border-top: 4px solid var(--wp--preset--color--primary);
}

.omaya-footer .wp-block-site-title a {
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

.omaya-footer__about {
	color: rgb(255 255 255 / 0.72);
	max-width: 30em;
}

.omaya-footer__title {
	margin-bottom: 18px;
}

.omaya-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.omaya-footer__links li {
	margin-block: 0;
}

.omaya-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
}

.omaya-footer__links a,
.omaya-footer .omaya-contact {
	color: rgb(255 255 255 / 0.72) !important;
	font-size: 15px;
}

.omaya-footer__links a:hover {
	color: #fff !important;
	text-decoration: none;
}

.omaya-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.omaya-footer__bottom p {
	margin: 0;
	color: rgb(255 255 255 / 0.62);
}

.omaya-social .wp-block-social-link {
	transition: transform 0.2s, background-color 0.2s;
}

.omaya-social .wp-block-social-link:hover {
	transform: translateY(-2px);
	background-color: var(--wp--preset--color--accent) !important;
	color: #fff !important;
}

/* ---------- Search ---------- */

.omaya-search .wp-block-search__inside-wrapper {
	max-width: 560px;
	padding: 6px;
	border: 0;
	border-radius: 99px;
	background: var(--wp--preset--color--surface);
}

.omaya-search .wp-block-search__input {
	border: 0;
	padding-inline: 18px;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
}

.omaya-search .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 99px;
	padding: 10px 24px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
}

.omaya-404 .omaya-search .wp-block-search__inside-wrapper {
	margin-inline: auto;
}

/* ---------- 404 ---------- */

.omaya-404 {
	background-image: var(--omaya-pitch-lines), var(--omaya-knit);
	background-size: cover, auto;
	background-position: center;
}

.omaya-404__code {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(96px, 18vw, 180px);
	font-weight: 900;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

/* ---------- Content pages ---------- */

.wp-block-post-content > .alignfull:first-child {
	margin-top: 0;
}

.omaya-info-card {
	padding: 26px;
	border-radius: 20px;
	background: var(--wp--preset--color--surface-2);
	height: 100%;
	box-sizing: border-box;
}

.omaya-info-card h3 {
	margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Age groups ---------- */

.omaya-groups {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.omaya-group-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 220px;
	padding: 24px 22px !important;
	border-radius: 20px;
	background:
		var(--omaya-knit),
		linear-gradient(165deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	color: #fff;
	overflow: hidden;
	box-sizing: border-box;
	transition: transform 0.25s, box-shadow 0.25s;
}

.omaya-group-card:nth-child(even) {
	background:
		var(--omaya-knit),
		linear-gradient(165deg, #2a1012, var(--wp--preset--color--night));
}

.omaya-group-card {
	cursor: pointer;
}

.omaya-group-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 44px -26px rgb(125 12 17 / 0.7);
}

.omaya-group-card::after {
	content: "";
	position: absolute;
	inset-inline-start: -30px;
	bottom: -40px;
	width: 150px;
	aspect-ratio: 120 / 140;
	background: url("../images/watermark.svg") center / contain no-repeat;
	opacity: 0.12;
}

.omaya-group-card h3 {
	margin: 0;
	color: #fff;
	font-size: 22px;
}

.omaya-group-card h3 a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: inherit !important;
	text-decoration: none !important;
}

/* The whole card is the link target. */
.omaya-group-card h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.omaya-group-card h3 a::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	opacity: 0.6;
	-webkit-mask: var(--omaya-ico-arrow) center / contain no-repeat;
	mask: var(--omaya-ico-arrow) center / contain no-repeat;
	transition: transform 0.25s var(--omaya-ease), opacity 0.25s;
}

.omaya-group-card:hover h3 a::after,
.omaya-group-card:focus-within h3 a::after {
	opacity: 1;
	transform: translateX(-4px);
}

.omaya-group-card:focus-within {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 80%, #fff);
	outline-offset: 3px;
}

.omaya-group-card h3 a:focus-visible {
	outline: 0;
}

.omaya-group-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: rgb(255 255 255 / 0.8);
}

.omaya-group-card .omaya-group-card__tag {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--wp--preset--color--accent);
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

@media (max-width: 1100px) {
	.omaya-groups { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
	.omaya-groups { grid-template-columns: repeat(2, 1fr); }
	.omaya-group-card { min-height: 180px; }
	.omaya-group-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	.omaya-groups { grid-template-columns: 1fr; gap: 12px; }
	.omaya-group-card { min-height: 0; }
}

/* ---------- Quote ---------- */

.omaya-quote-card {
	position: relative;
	height: 100%;
	box-sizing: border-box;
}

.omaya-quote-card .wp-block-quote {
	margin: 0;
	border: 0 !important;
	padding: 0 !important;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.7;
}

.omaya-quote-card .wp-block-quote::before {
	content: "”";
	display: block;
	height: 50px;
	font-family: Georgia, serif;
	font-size: 110px;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

.omaya-quote-card cite {
	display: block;
	margin-top: 18px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.omaya-quote-card cite small {
	display: block;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* ---------- Sponsor ---------- */

.omaya-sponsor.is-main {
	width: auto;
	padding-inline: 28px;
	border-style: solid;
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	font-size: 18px;
}

.omaya-latin {
	font-family: var(--wp--preset--font-family--latin);
	letter-spacing: 0.08em;
}

.omaya-groups > *,
.omaya-group-card > * {
	margin-block: 0 !important;
}

/* ---------- Motion: gentle reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
	.omaya-js .omaya-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s var(--omaya-ease), transform 0.7s var(--omaya-ease);
		transition-delay: calc(var(--omaya-i, 0) * 70ms);
	}
	.omaya-js .omaya-reveal.is-inview {
		opacity: 1;
		transform: none;
	}
	.omaya-hero__title,
	.omaya-hero .omaya-kicker,
	.omaya-hero__lead,
	.omaya-hero .wp-block-buttons,
	.omaya-hero .omaya-next {
		animation: omaya-rise 0.8s var(--omaya-ease) both;
	}
	.omaya-hero__title { animation-delay: 0.08s; }
	.omaya-hero__lead { animation-delay: 0.16s; }
	.omaya-hero .wp-block-buttons { animation-delay: 0.24s; }
	.omaya-hero .omaya-next { animation-delay: 0.2s; }
}

@keyframes omaya-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Spacing rhythm ---------- */

/* Stats band: title → numbers. */
.omaya-band > .wp-block-group:first-child {
	margin-bottom: var(--wp--preset--spacing--50) !important;
}

/* Quote card: content centred vertically, clear steps between parts. */
.omaya-quote-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: clamp(24px, 4vw, 48px) !important;
}

.omaya-quote-card > * {
	margin: 0 !important;
}

/* Join card: breathing room between the list items and the deadline note. */
.omaya-academy-card {
	gap: 32px !important;
}

.omaya-academy-card > .wp-block-group {
	gap: 16px !important;
}

.omaya-academy-card .omaya-checks {
	margin-block: 4px !important;
}

.omaya-academy-card .omaya-checks li {
	margin-block: 10px;
}

.omaya-academy-card .has-x-small-font-size {
	padding-top: 14px;
	border-top: 1px solid rgb(255 255 255 / 0.18);
	color: rgb(255 255 255 / 0.78);
}

/* Sponsors. */
.omaya-sponsors > * {
	margin-block: 0 !important;
}

.omaya-sponsors > * + * {
	margin-top: 20px !important;
}

.omaya-sponsors > p:first-child {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Footer. */
.omaya-footer .wp-block-column > * {
	margin-block: 0;
}

.omaya-footer .wp-block-column > * + * {
	margin-top: 20px;
}

.omaya-footer .omaya-footer__title {
	margin-bottom: 0;
}

.omaya-footer .omaya-footer__title + * {
	margin-top: 12px;
}

.omaya-footer__about {
	line-height: 1.85;
}

@media (max-width: 781px) {
	.omaya-footer > .wp-block-columns {
		gap: 40px 24px;
		flex-wrap: wrap !important;
	}
	.omaya-footer > .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}
	.omaya-footer > .wp-block-columns > .wp-block-column:not(:first-child) {
		flex: 1 1 140px !important;
	}
	.omaya-footer__bottom {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 6px;
	}
}

/* Content pages & articles: headings open a new block of text,
   so they get more space above than below. */
.wp-block-post-content > :is(h2, h3, h4):not(:first-child) {
	margin-top: clamp(40px, 5vw, 56px);
}

.wp-block-post-content > :is(h2, h3, h4) + * {
	margin-top: 14px;
}

.wp-block-post-content > .wp-block-columns + :is(h2, h3) {
	margin-top: clamp(48px, 6vw, 64px);
}

.omaya-info-card > * {
	margin-block: 0;
}

.omaya-info-card > * + * {
	margin-top: 10px;
}

.omaya-info-card h3 {
	font-size: 19px;
	line-height: 1.45;
}
