/* Home hero: El-abda3 products (Arab Shop, Osolna) as a typographic index.
   Brand colors come from arabshop.app and osolna.com. */

.ed-hero {
	--shop-lime: #abfa08;
	--shop-ink: #141414;
	--os-green: #055a48;
	--os-cream: #f6f2e6;
	--os-gold: #c7963a;
	--muted: var(--ed-muted);

	background: var(--ed-section);
	color: var(--ed-text-2);
	padding: 88px 0 72px;
	font-family: "Thmanyah Sans", sans-serif !important;
}

/* Old theme rules force a font on every link and span; the product rows are links. */
.ed-hero,
.ed-hero * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

.ed-hero h1,
.ed-hero p {
	letter-spacing: 0;
}

/* Uses the theme .container so it lines up with the nav and the sections below. */
@media (min-width: 769px) {
	.ed-hero__inner.container {
		padding-right: 0;
		padding-left: 0;
	}
}

.ed-hero__title {
	max-width: 1000px;
	margin: 0 auto 20px;
	color: var(--ed-text);
	font-size: 50px !important;
	font-weight: 900;
	line-height: 1.35;
	text-align: center;
}

/* Key numbers in the headline get a highlighter stroke. */
.ed-num {
	display: inline-block;
	padding: 0 .14em;
	background: linear-gradient(to top, transparent 8%, var(--shop-lime) 8%, var(--shop-lime) 46%, transparent 46%);
	border-radius: .08em;
	font-size: 1.12em;
	line-height: 1;
}

/* Dark theme: white text on the full lime stroke is hard to read, so the stroke is half see-through. */
:root[data-theme="dark"] .ed-num {
	background: linear-gradient(to top, transparent 8%, rgba(171, 250, 8, .55) 8%, rgba(171, 250, 8, .55) 46%, transparent 46%);
}

.ed-hero__lead {
	max-width: 600px;
	margin: 0 auto 56px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.8;
	text-align: center;
}

/* Each product row sits on its own brand colors. */
.ed-row {
	display: grid;
	grid-template-columns: 88px minmax(220px, 300px) 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 32px 32px;
	border-radius: 24px;
	text-decoration: none !important;
	transition: transform .3s ease, box-shadow .3s ease;
}

.ed-row + .ed-row {
	margin-top: 16px;
}

.ed-row:hover {
	transform: translateY(-3px);
}

.ed-row:focus-visible {
	outline: 3px solid var(--ed-edge);
	outline-offset: 4px;
}

.ed-row__icon {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	border-radius: 18px;
}

.ed-row__icon--osolna {
	background: var(--os-cream);
}

.ed-row__title {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ed-row__name {
	font-size: 52px;
	font-weight: 900;
	line-height: 1;
}

.ed-row__sub {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	opacity: .8;
}

.ed-row--shop .ed-row__sub {
	color: var(--shop-lime);
}

.ed-row--osolna .ed-row__sub {
	color: #e3c27f;
}

.ed-row__desc {
	max-width: 440px;
	font-size: 16px;
	line-height: 1.8;
}

.ed-row__go {
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	white-space: nowrap;
}

/* Arab Shop: lime on black */
.ed-row--shop {
	background: var(--shop-ink);
	color: #c9ccc4 !important;
}

.ed-row--shop:hover {
	box-shadow: 0 20px 44px -22px rgba(171, 250, 8, .55);
}

.ed-row--shop .ed-row__name {
	color: var(--shop-lime);
}

.ed-row--shop .ed-row__go {
	background: var(--shop-lime);
	color: var(--shop-ink);
}

/* Osolna: cream and gold on green */
.ed-row--osolna {
	background: var(--os-green);
	color: #cfe0da !important;
}

.ed-row--osolna:hover {
	box-shadow: 0 20px 44px -22px rgba(199, 150, 58, .7);
}

.ed-row--osolna .ed-row__name {
	color: var(--os-cream);
}

.ed-row--osolna .ed-row__go {
	background: var(--os-gold);
	color: #1c1408;
}

@media (max-width: 991px) {
	.ed-hero {
		padding: 64px 0 56px;
	}

	.ed-hero__title {
		font-size: 38px !important;
	}

	.ed-row {
		grid-template-columns: 72px 1fr;
		gap: 16px 20px;
		padding: 24px 20px;
	}

	.ed-row__name {
		font-size: 40px;
	}

	.ed-row__desc,
	.ed-row__go {
		grid-column: 1 / -1;
	}

	.ed-row__go {
		justify-self: start;
	}
}

@media (max-width: 600px) {
	.ed-hero__title {
		font-size: 26px !important;
	}

	.ed-hero__lead {
		margin-bottom: 40px;
		font-size: 16px;
	}

	.ed-row__icon {
		width: 60px;
		height: 60px;
	}

	.ed-row__name {
		font-size: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-row {
		transition: none;
	}

	.ed-row:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------
   Home: main services (home-services.php)
   ------------------------------------------------------------------ */
.ed-services {
	padding: 96px 0;
	background: var(--ed-section-white);
	color: var(--ed-text-2);
}

.ed-services,
.ed-services * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

.ed-services svg,
.ed-services svg * {
	font-family: initial !important;
}

@media (min-width: 769px) {
	.ed-services > .container {
		padding-right: 0;
		padding-left: 0;
	}
}

.ed-services__head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.ed-services__title {
	margin: 0 0 14px;
	color: var(--ed-text);
	font-size: 44px !important;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
}

.ed-services__lead {
	margin: 0;
	color: var(--ed-muted);
	font-size: 18px;
	line-height: 1.8;
	text-align: center;
}

.ed-services__group {
	margin: 0 0 16px;
	color: var(--ed-text);
	font-size: 22px !important;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.ed-services__grid + .ed-services__group {
	margin-top: 48px;
}

.ed-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.ed-service {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--ed-rule-ebebe6);
	border-radius: 20px;
	background: var(--ed-tint-fafaf8);
	color: inherit !important;
	text-align: right;
	text-decoration: none !important;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.ed-service:hover {
	border-color: var(--ed-rule-d6d6cf);
	background: var(--ed-surface);
	transform: translateY(-3px);
}

.ed-service:focus-visible {
	outline: 3px solid var(--ed-edge);
	outline-offset: 3px;
}

.ed-service__icon {
	display: grid;
	width: 52px;
	height: 52px;
	margin-bottom: 6px;
	place-items: center;
	border-radius: 14px;
	background: var(--ed-ink);
}

.ed-service__icon svg {
	width: 26px;
	height: 26px;
}

.ed-service__icon svg,
.ed-service__icon svg * {
	fill: #fff !important;
}

.ed-service__title {
	color: var(--ed-text);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}

.ed-service__desc {
	color: var(--ed-muted);
	font-size: 15px;
	line-height: 1.75;
}

.ed-services__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 56px;
	padding: 32px 36px;
	border-radius: 24px;
	background: var(--ed-ink);
	color: #c9ccc4;
}

.ed-services__cta p {
	margin: 0;
}

.ed-services__cta-title {
	color: #fff;
	font-size: 28px !important;
	font-weight: 900;
	line-height: 1.3;
}

.ed-services__cta-text {
	margin-top: 6px !important;
	font-size: 16px;
	line-height: 1.7;
}

.ed-services__cta-btn {
	flex: 0 0 auto;
	padding: 14px 30px;
	border-radius: 999px;
	background: var(--ed-surface);
	color: var(--ed-text) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none !important;
	transition: transform .2s ease;
}

.ed-services__cta-btn:hover {
	transform: translateY(-2px);
}

@media (max-width: 991px) {
	.ed-services {
		padding: 72px 0;
	}

	.ed-services__title {
		font-size: 36px !important;
	}

	.ed-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ed-services {
		padding: 56px 0;
	}

	.ed-services__title {
		font-size: 30px !important;
	}

	.ed-services__lead {
		font-size: 16px;
	}

	/* Two compact cards per row, so the page stays short on phones. */
	.ed-services__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.ed-service {
		gap: 6px;
		padding: 16px 14px;
		border-radius: 16px;
	}

	.ed-service__icon {
		width: 42px;
		height: 42px;
		margin: 0 0 4px;
		border-radius: 12px;
	}

	.ed-service__icon svg {
		width: 22px;
		height: 22px;
	}

	.ed-service__title {
		font-size: 15px !important;
		line-height: 1.35;
	}

	.ed-service__desc {
		font-size: 12.5px !important;
		line-height: 1.6;
	}

	.ed-services__cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-service,
	.ed-services__cta-btn {
		transition: none;
	}

	.ed-service:hover,
	.ed-services__cta-btn:hover {
		transform: none;
	}
}

/* Work wall: real app icons from the portfolio, two slow rows. */
.ed-work {
	margin: 0 0 64px;
}

.ed-work__row {
	overflow: hidden;
	padding: 6px 0;
	direction: ltr;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ed-work__track {
	display: flex;
	gap: 18px;
	width: max-content;
	animation: ed-work-scroll 70s linear infinite;
}

.ed-work__row--reverse .ed-work__track {
	animation-direction: reverse;
	animation-duration: 80s;
}

.ed-work__row:hover .ed-work__track {
	animation-play-state: paused;
}

.ed-work__app {
	display: block;
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--ed-tint-f0f0ec);
	box-shadow: 0 6px 16px -8px rgba(17, 17, 17, .35), inset 0 0 0 1px rgba(17, 17, 17, .06);
	transition: transform .2s ease;
}

.ed-work__app:hover,
.ed-work__app:focus-visible {
	transform: translateY(-4px) scale(1.06);
}

.ed-work__app:focus-visible {
	outline: 3px solid var(--ed-edge);
	outline-offset: 3px;
}

.ed-work__app img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ed-work__note {
	margin: 24px 0 0;
	color: var(--ed-muted);
	font-size: 16px;
	line-height: 1.8;
	text-align: center;
}

.ed-work__note a {
	margin-right: 6px;
	color: var(--ed-text) !important;
	font-weight: 700;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

@keyframes ed-work-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 600px) {
	.ed-work {
		margin-bottom: 48px;
	}

	.ed-work__app {
		width: 60px;
		height: 60px;
		border-radius: 14px;
	}

	.ed-work__track {
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-work__track {
		animation: none;
	}

	.ed-work__row {
		overflow-x: auto;
	}
}

/* "We build" sits on white; "we host and run" gets its own full-width band. */
.ed-services:not(.ed-services--run) {
	padding-bottom: 80px;
}

.ed-services--run {
	padding: 72px 0 88px;
	background: var(--ed-section-deep);
}

.ed-services--run .ed-service {
	border-color: transparent;
	background: var(--ed-surface);
	box-shadow: 0 1px 2px rgba(17, 17, 17, .04);
}

.ed-services--run .ed-service:hover {
	border-color: transparent;
	box-shadow: 0 16px 32px -18px rgba(17, 17, 17, .3);
}

/* Full-width wall: fade only at the screen edges. */
.ed-work__row {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.ed-work__note {
	padding: 0 16px;
}

/* Each service takes one color from the El-abda3 logo (blue, green, orange,
   purple, red): a soft tint at rest, the solid color on hover. */
.ed-services__grid .ed-service:nth-child(4n+1) { --tone: #1e9fe0; --tone-soft: #e6f4fc; }
.ed-services__grid .ed-service:nth-child(4n+2) { --tone: #5aa832; --tone-soft: #ecf6e6; }
.ed-services__grid .ed-service:nth-child(4n+3) { --tone: #f07f1a; --tone-soft: #fdf0e3; }
.ed-services__grid .ed-service:nth-child(4n+4) { --tone: #5b3fa6; --tone-soft: #efebf8; }
.ed-services--run .ed-services__grid .ed-service:nth-child(4n+1) { --tone: #e2364f; --tone-soft: #fce9ec; }

.ed-service {
	position: relative;
	overflow: hidden;
}

.ed-service::before {
	content: "";
	position: absolute;
	top: 0;
	right: 24px;
	left: 24px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--tone, var(--ed-ink));
	transform: scaleX(0);
	transition: transform .25s ease;
}

.ed-service:hover::before,
.ed-service:focus-visible::before {
	transform: scaleX(1);
}

.ed-service__icon {
	background: var(--tone-soft, var(--ed-tint-f0f0ec));
	transition: background-color .2s ease;
}

.ed-service__icon svg,
.ed-service__icon svg * {
	fill: var(--tone, var(--ed-text)) !important;
	transition: fill .2s ease;
}

.ed-service:hover .ed-service__icon,
.ed-service:focus-visible .ed-service__icon {
	background: var(--tone, var(--ed-ink));
}

.ed-service:hover .ed-service__icon svg,
.ed-service:hover .ed-service__icon svg *,
.ed-service:focus-visible .ed-service__icon svg,
.ed-service:focus-visible .ed-service__icon svg * {
	fill: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
	.ed-service::before,
	.ed-service__icon,
	.ed-service__icon svg,
	.ed-service__icon svg * {
		transition: none;
	}
}

/* CTA: a thin strip of the logo colors along its top edge. */
.ed-services__cta {
	position: relative;
	overflow: hidden;
}

.ed-services__cta::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(to left, #1e9fe0 0 20%, #5aa832 20% 40%, #f07f1a 40% 60%, #5b3fa6 60% 80%, #e2364f 80% 100%);
}

/* Lime is the new site's accent (also marks the hero numbers): used on the
   main calls to action. */
.ed-services__cta-btn {
	background: var(--ed-lime);
	color: var(--ed-ink) !important;
	box-shadow: 0 0 0 0 rgba(171, 250, 8, .5);
	transition: transform .2s ease, box-shadow .25s ease;
}

.ed-services__cta-btn:hover,
.ed-services__cta-btn:focus-visible {
	box-shadow: 0 0 0 6px rgba(171, 250, 8, .18), 0 12px 28px -8px rgba(171, 250, 8, .55);
	transform: translateY(-2px);
}

.ed-services__cta-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.ed-work__note a {
	text-decoration: none !important;
	background: linear-gradient(to top, var(--ed-lime) 0 38%, transparent 38%);
	padding: 0 4px;
	border-radius: 2px;
	transition: background-size .2s ease;
}

.ed-work__note a:hover {
	background: var(--ed-lime);
}

/* CTA card in the lime accent (replaces the black card and its color strip). */
.ed-services__cta {
	background: var(--ed-lime);
	color: #2a3a06;
}

.ed-services__cta::before {
	content: none;
}

.ed-services__cta-title {
	color: var(--ed-text);
}

.ed-services__cta-text {
	color: #2f3d0c;
}

.ed-services__cta-btn {
	background: var(--ed-ink);
	color: #fff !important;
	box-shadow: none;
}

.ed-services__cta-btn:hover,
.ed-services__cta-btn:focus-visible {
	box-shadow: 0 12px 26px -10px rgba(21, 21, 21, .55);
	transform: translateY(-2px);
}

.ed-services__cta-btn:focus-visible {
	outline: 3px solid var(--ed-edge);
	outline-offset: 3px;
}

/* The theme centers paragraphs; the CTA text block is right-aligned. */
.ed-services__cta-title,
.ed-services__cta-text {
	text-align: right !important;
}

/* ------------------------------------------------------------------
   Home: hosting plans (home-host.php). Dark full-width section.
   ------------------------------------------------------------------ */
.ed-hosting {
	padding: 96px 0;
	background: var(--ed-ink);
	color: #b9bdb6;
}

.ed-hosting,
.ed-hosting * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

@media (min-width: 769px) {
	.ed-hosting > .container {
		padding-right: 0;
		padding-left: 0;
	}
}

.ed-hosting__head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.ed-hosting__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 44px !important;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
}

.ed-hosting__lead {
	margin: 0;
	color: #b9bdb6;
	font-size: 18px;
	line-height: 1.8;
	text-align: center !important;
}

.ed-hosting__plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
	gap: 20px;
}

.ed-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px 28px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 24px;
	background: #1f1f1f;
	text-align: right;
}

.ed-plan--featured {
	border-color: var(--ed-lime);
	background: #222420;
	box-shadow: 0 24px 60px -30px rgba(171, 250, 8, .45);
}

.ed-plan__badge {
	position: absolute;
	top: -14px;
	right: 28px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
}

.ed-plan__name {
	margin: 0 0 8px;
	color: #fff;
	font-size: 24px !important;
	font-weight: 700;
	line-height: 1.35;
	text-align: right;
}

.ed-plan__desc {
	min-height: 54px;
	margin: 0 0 24px;
	color: #a3a8a0;
	font-size: 15px;
	line-height: 1.8;
	text-align: right !important;
}

.ed-plan__price {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ed-plan__amount {
	color: #fff;
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
}

.ed-plan--featured .ed-plan__amount {
	color: var(--ed-lime);
}

.ed-plan__unit {
	color: #a3a8a0;
	font-size: 14px;
	line-height: 1.4;
}

.ed-plan__specs {
	flex: 1;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.ed-plan__specs li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, .08);
	font-size: 15px;
	line-height: 1.6;
}

.ed-plan__specs li:last-child {
	border-bottom: 0;
}

.ed-plan__spec {
	color: #a3a8a0;
}

.ed-plan__value {
	color: #fff;
	font-weight: 700;
	text-align: left;
}

.ed-plan__cta {
	display: block;
	padding: 13px 20px;
	border: 1.5px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ed-plan__cta:hover,
.ed-plan__cta:focus-visible {
	border-color: #fff;
	background: var(--ed-surface);
	color: var(--ed-text) !important;
}

.ed-plan--featured .ed-plan__cta {
	border-color: var(--ed-lime);
	background: var(--ed-lime);
	color: var(--ed-ink) !important;
}

.ed-plan--featured .ed-plan__cta:hover,
.ed-plan--featured .ed-plan__cta:focus-visible {
	box-shadow: 0 12px 28px -10px rgba(171, 250, 8, .6);
}

.ed-plan__cta:focus-visible {
	outline: 3px solid var(--ed-lime);
	outline-offset: 3px;
}

.ed-hosting__more {
	margin: 40px 0 0;
	text-align: center !important;
}

.ed-hosting__more a {
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	background: linear-gradient(to top, rgba(171, 250, 8, .45) 0 30%, transparent 30%);
	padding: 0 4px;
}

.ed-hosting__more a:hover {
	color: var(--ed-ink) !important;
	background: var(--ed-lime);
}

@media (max-width: 991px) {
	.ed-hosting {
		padding: 72px 0;
	}

	.ed-hosting__title {
		font-size: 36px !important;
	}

	.ed-hosting__plans {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
		gap: 28px;
	}

	.ed-plan__desc {
		min-height: 0;
	}
}

@media (max-width: 600px) {
	.ed-hosting {
		padding: 56px 0;
	}

	.ed-hosting__title {
		font-size: 30px !important;
	}

	.ed-hosting__lead {
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------
   Hosting plans in a light version, so the dark "our work" section
   below stands on its own. The recommended plan becomes the dark card.
   ------------------------------------------------------------------ */
.ed-hosting {
	background: var(--ed-section-white);
	color: var(--ed-muted);
}

.ed-hosting__title {
	color: var(--ed-text);
}

.ed-hosting__lead {
	color: var(--ed-muted);
}

.ed-plan {
	border-color: var(--ed-rule-ebebe6);
	background: var(--ed-tint-fafaf8);
}

.ed-plan__name,
.ed-plan__amount,
.ed-plan__value {
	color: var(--ed-text);
}

.ed-plan__desc,
.ed-plan__unit,
.ed-plan__spec {
	color: var(--ed-muted-2);
}

.ed-plan__price {
	border-bottom-color: var(--ed-rule-ebebe6);
}

.ed-plan__specs li {
	border-bottom-color: var(--ed-rule-ebebe6);
}

.ed-plan__cta {
	border-color: var(--ed-rule-d6d6cf);
	color: var(--ed-text) !important;
}

.ed-plan__cta:hover,
.ed-plan__cta:focus-visible {
	border-color: var(--ed-ink);
	background: var(--ed-ink);
	color: #fff !important;
}

.ed-plan--featured {
	border-color: var(--ed-ink);
	background: var(--ed-ink);
	box-shadow: 0 30px 60px -30px rgba(17, 17, 17, .55);
}

.ed-plan--featured .ed-plan__name,
.ed-plan--featured .ed-plan__value {
	color: #fff;
}

.ed-plan--featured .ed-plan__desc,
.ed-plan--featured .ed-plan__unit,
.ed-plan--featured .ed-plan__spec {
	color: #a3a8a0;
}

.ed-plan--featured .ed-plan__price,
.ed-plan--featured .ed-plan__specs li {
	border-bottom-color: rgba(255, 255, 255, .1);
}

.ed-hosting__more a {
	color: var(--ed-text) !important;
	background: linear-gradient(to top, var(--ed-lime) 0 38%, transparent 38%);
}

/* Dark theme: the lime marker under these links turns into a thin underline, so the light text
   stays readable; on hover the link fills lime with dark text. */
:root[data-theme="dark"] :is(.ed-hosting__more a, .ed-work__note a) {
	background: linear-gradient(to top, var(--ed-lime) 0 12%, transparent 12%);
}

:root[data-theme="dark"] :is(.ed-hosting__more a, .ed-work__note a):hover {
	background: var(--ed-lime);
	color: var(--ed-ink) !important;
}

/* "Our work" is a full, standalone section. */
/* ------------------------------------------------------------------
   Home: blog (home-blog.php). Lead article + two compact cards.
   ------------------------------------------------------------------ */
.ed-blog {
	padding: 96px 0;
	background: var(--ed-section);
	color: var(--ed-text-2);
}

.ed-blog,
.ed-blog * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

@media (min-width: 769px) {
	.ed-blog > .container {
		padding-right: 0;
		padding-left: 0;
	}
}

.ed-blog__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.ed-blog__title {
	margin: 0 0 10px;
	color: var(--ed-text);
	font-size: 44px !important;
	font-weight: 900;
	line-height: 1.2;
	text-align: right;
}

.ed-blog__lead {
	margin: 0;
	color: var(--ed-muted);
	font-size: 18px;
	line-height: 1.8;
	text-align: right !important;
}

.ed-blog__all {
	flex: 0 0 auto;
	padding: 12px 24px;
	border: 1.5px solid var(--ed-edge);
	border-radius: 999px;
	color: var(--ed-text) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}

.ed-blog__all:hover,
.ed-blog__all:focus-visible {
	background: var(--ed-ink);
	color: #fff !important;
}

.ed-blog__grid {
	display: grid;
	gap: 20px;
}

.ed-post {
	min-width: 0;
}

.ed-post--lead .ed-post__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* One or two picked articles: equal lead cards side by side. */
.ed-blog__grid--1,
.ed-blog__grid--2 {
	grid-template-rows: none;
}

.ed-blog__grid--1 {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

.ed-blog__grid--2 {
	grid-template-columns: 1fr 1fr;
}

.ed-blog__grid--1 .ed-post--lead,
.ed-blog__grid--2 .ed-post--lead {
	grid-row: auto;
}

/* Hyphenated Latin words stay on one line, left to right (ed_bidi_text). */
.ed-ltr {
	unicode-bidi: isolate;
	white-space: nowrap;
}

.ed-post__link {
	display: flex;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ed-rule-ebebe6);
	border-radius: 24px;
	background: var(--ed-surface);
	color: inherit !important;
	text-decoration: none !important;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ed-post__link:hover,
.ed-post__link:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 22px 44px -26px rgba(17, 17, 17, .35);
}

.ed-post__link:focus-visible {
	outline: 3px solid var(--ed-edge);
	outline-offset: 3px;
}

/* Compact cards: image beside the text. */
.ed-post__media {
	display: block;
	flex: 0 0 42%;
	overflow: hidden;
	background: var(--ed-tint-ecece7);
}

.ed-post__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.ed-post__link:hover .ed-post__media img {
	transform: scale(1.04);
}

.ed-post__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: right;
}

/* Lead card: image on top, larger text. */
.ed-post--lead .ed-post__link {
	flex-direction: column;
}

.ed-post--lead .ed-post__media {
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
}

.ed-post--lead .ed-post__body {
	justify-content: flex-start;
	padding: 28px 30px 32px;
}

.ed-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--ed-muted-2);
	font-size: 13px;
	line-height: 18px;
}

.ed-post__cat {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink);
	font-weight: 700;
}

.ed-post__title {
	color: var(--ed-text);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
}

.ed-post--lead .ed-post__title {
	font-size: 21px;
	font-weight: 900;
	line-height: 1.35;
}

.ed-post__excerpt {
	color: var(--ed-muted);
	font-size: 16px;
	line-height: 1.85;
}

@media (max-width: 991px) {
	.ed-blog {
		padding: 72px 0;
	}

	.ed-blog__title {
		font-size: 36px !important;
	}

	.ed-blog__grid,
	.ed-blog__grid--1,
	.ed-blog__grid--2 {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.ed-post--lead {
		grid-row: auto;
	}
}

@media (max-width: 600px) {
	.ed-blog {
		padding: 56px 0;
	}

	.ed-blog__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.ed-blog__title {
		font-size: 30px !important;
	}

	.ed-blog__lead {
		font-size: 16px;
	}

	.ed-post__link {
		flex-direction: column;
	}

	.ed-post__media {
		flex: 0 0 auto;
		aspect-ratio: 16 / 9;
	}

	.ed-post--lead .ed-post__title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-post__link,
	.ed-post__media img,
	.ed-blog__all {
		transition: none;
	}

	.ed-post__link:hover {
		transform: none;
	}
}

/* Titles and excerpts follow their own language (English posts align left). */
.ed-post__title,
.ed-post__excerpt {
	text-align: start;
	unicode-bidi: plaintext;
}

/* ------------------------------------------------------------------
   Home: app store presence (home-blog.php, #what_we_do). Lime band.
   ------------------------------------------------------------------ */
.ed-reach {
	padding: 88px 0;
	background: var(--ed-lime);
	color: var(--ed-ink);
}

.ed-reach,
.ed-reach * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

@media (min-width: 769px) {
	.ed-reach > .container {
		padding-right: 0;
		padding-left: 0;
	}
}

.ed-reach__head {
	max-width: 620px;
	margin-bottom: 48px;
	text-align: right;
}

.ed-reach__title {
	margin: 0 0 12px;
	color: var(--ed-text);
	font-size: 44px !important;
	font-weight: 900;
	line-height: 1.2;
	text-align: right;
}

.ed-reach__lead {
	margin: 0;
	color: #2f3d0c;
	font-size: 18px;
	line-height: 1.8;
	text-align: right !important;
}

.ed-reach__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--ed-edge);
}

.ed-reach__stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 32px 28px 8px 0;
	text-align: right;
}

.ed-reach__stat + .ed-reach__stat {
	border-right: 1px solid rgba(21, 21, 21, .25);
	padding-right: 28px;
}

.ed-reach__icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	place-items: center;
	border-radius: 14px;
	background: var(--ed-surface);
	box-shadow: 0 6px 16px -10px rgba(21, 21, 21, .5);
}

.ed-reach__icon img {
	display: block;
	max-width: 32px;
	max-height: 32px;
}

.ed-reach__icon--line {
	background: var(--ed-ink);
	color: var(--ed-lime);
}

.ed-reach__num {
	color: var(--ed-text);
	font-size: 64px;
	font-weight: 900;
	line-height: 1;
	direction: ltr;
}

.ed-reach__label {
	color: #2f3d0c;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
}

@media (max-width: 991px) {
	.ed-reach {
		padding: 64px 0;
	}

	.ed-reach__title {
		font-size: 36px !important;
	}

	.ed-reach__stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.ed-reach__stat:nth-child(3) {
		border-right: 0;
		padding-right: 0;
	}

	.ed-reach__num {
		font-size: 52px;
	}
}

@media (max-width: 600px) {
	.ed-reach {
		padding: 56px 0;
	}

	.ed-reach__title {
		font-size: 30px !important;
	}

	.ed-reach__lead {
		font-size: 16px;
	}

	.ed-reach__stat,
	.ed-reach__stat + .ed-reach__stat {
		padding: 24px 0 8px;
	}

	.ed-reach__stat:nth-child(even) {
		border-right: 1px solid rgba(21, 21, 21, .25);
		padding-right: 18px;
	}

	.ed-reach__num {
		font-size: 44px;
	}

	.ed-reach__label {
		font-size: 15px;
	}
}

/* The old theme styles #what_we_do by id (white, no top padding). */
#what_we_do.ed-reach {
	min-height: 0;
	padding: 88px 0;
	background: var(--ed-lime);
}

@media (max-width: 991px) {
	#what_we_do.ed-reach {
		padding: 64px 0;
	}
}

@media (max-width: 600px) {
	#what_we_do.ed-reach {
		padding: 56px 0;
	}
}

/* Two store icons side by side on the combined apps stat. */
.ed-reach__icons {
	display: flex;
	gap: 8px;
}

/* ------------------------------------------------------------------
   Home: case studies (after "our work"). Text on the right, tall app
   screenshot cards bleeding off the left edge.
   ------------------------------------------------------------------ */
.ed-cases {
	padding: 100px 0;
	overflow: hidden;
	background: var(--ed-section-soft);
}

.ed-cases,
.ed-cases * {
	font-family: "Thmanyah Sans", sans-serif !important;
}

.ed-cases__inner {
	display: flex;
	align-items: center;
	gap: 56px;
	padding-right: max(16px, calc((100vw - 1170px) / 2));
}

.ed-cases__text {
	flex: 0 0 380px;
	text-align: right;
}

.ed-cases__label {
	margin: 0 0 18px;
	color: #7d827a;
	font-size: 14px !important;
	font-weight: 500;
	text-align: right !important;
}

.ed-cases__title {
	margin: 0 0 20px;
	color: var(--ed-text);
	font-size: 46px !important;
	font-weight: 900;
	line-height: 1.4;
	text-align: right;
}

.ed-cases__title mark {
	display: inline-block;
	padding: 0 .22em .06em;
	border-radius: .22em;
	background: var(--ed-lime);
	color: var(--ed-ink);
	line-height: 1.25;
	transform: rotate(-2deg);
	box-shadow: 0 10px 24px -12px rgba(120, 170, 0, .8);
}

.ed-cases__lead {
	margin: 0 0 36px;
	color: var(--ed-muted);
	font-size: 17px;
	line-height: 1.85;
	text-align: right !important;
}

.ed-cases__nav {
	display: flex;
	gap: 10px;
}

.ed-cases__btn {
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	padding: 0;
	border: 1.5px solid var(--ed-rule-dcdcd6);
	border-radius: 50%;
	background: var(--ed-surface);
	color: var(--ed-text);
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ed-cases__btn:hover,
.ed-cases__btn:focus-visible {
	border-color: var(--ed-ink);
	background: var(--ed-ink);
	color: #fff;
}

.ed-cases__btn:focus-visible {
	outline: 3px solid var(--ed-lime);
	outline-offset: 3px;
}

.ed-cases__track {
	display: flex;
	flex: 1;
	gap: 24px;
	min-width: 0;
	padding: 12px 4px 12px 32px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ed-cases__track::-webkit-scrollbar {
	display: none;
}

.ed-case {
	position: relative;
	flex: 0 0 300px;
	height: 460px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--ed-tint-ecece7);
	scroll-snap-align: start;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(17, 17, 17, .06);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.ed-case__shot {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	filter: grayscale(.85);
	transition: filter .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

/* The first card and the hovered one come to life in colour. */
.ed-case:first-child,
.ed-case:hover,
.ed-case:focus-visible {
	box-shadow: 0 0 0 2px var(--ed-lime), 0 26px 50px -24px rgba(17, 17, 17, .45);
}

.ed-case:first-child .ed-case__shot,
.ed-case:hover .ed-case__shot,
.ed-case:focus-visible .ed-case__shot {
	filter: none;
}

.ed-case:hover {
	transform: translateY(-6px);
}

.ed-case:hover .ed-case__shot {
	transform: scale(1.03);
}

.ed-case:focus-visible {
	outline: none;
}

.ed-case__info {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(var(--ed-surface-rgb), .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 20px -10px rgba(17, 17, 17, .35);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .3s ease;
}

.ed-case:first-child .ed-case__info,
.ed-case:hover .ed-case__info,
.ed-case:focus-visible .ed-case__info {
	opacity: 1;
	transform: none;
}

.ed-case__icon {
	display: block;
	flex: 0 0 40px;
	border-radius: 10px;
}

.ed-case__name {
	color: var(--ed-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

@media (max-width: 991px) {
	.ed-cases {
		padding: 72px 0;
	}

	.ed-cases__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 36px;
		padding-right: 0;
	}

	.ed-cases__text {
		flex: none;
		padding: 0 16px;
	}

	.ed-cases__title {
		font-size: 36px !important;
	}

	.ed-cases__track {
		padding: 12px 16px;
	}

	.ed-case {
		flex-basis: 240px;
		height: 380px;
	}

	/* Touch screens: show names on every card. */
	.ed-case__info {
		opacity: 1;
		transform: none;
	}

	.ed-case__shot {
		filter: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-case,
	.ed-case__shot,
	.ed-case__info {
		transition: none;
	}

	.ed-case:hover {
		transform: none;
	}
}

/* Wider text column (title on two lines) and room for the active card's ring. */
.ed-cases__text {
	flex-basis: 460px;
}

.ed-cases__track {
	padding-top: 24px;
	padding-bottom: 28px;
}

.ed-case {
	flex-shrink: 0;
	align-self: flex-start;
}

/* Shorter shadow so the scroll area doesn't clip it. */
.ed-case:first-child,
.ed-case:hover,
.ed-case:focus-visible {
	box-shadow: 0 0 0 2px var(--ed-lime), 0 14px 26px -16px rgba(17, 17, 17, .4);
}

/* Wide, like "our work": text starts at the 1400px edge, cards a bit larger. */
@media (min-width: 992px) {
	.ed-cases__inner {
		padding-right: max(32px, calc((100vw - 1400px) / 2));
	}

	.ed-case {
		flex-basis: 330px;
		height: 500px;
	}
}

/* Shadows: a scroll area clips anything outside its box, so the track gets room
   for the full shadow (padding) and gives it back with negative margins. */
.ed-cases__track {
	margin: -56px -48px -72px 0;
	padding: 56px 48px 72px 32px;
	scroll-padding: 0 48px;
}

.ed-case {
	box-shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 18px 40px -28px rgba(17, 17, 17, .25);
}

.ed-case:first-child,
.ed-case:hover,
.ed-case:focus-visible {
	box-shadow: 0 0 0 2px var(--ed-lime), 0 30px 60px -24px rgba(17, 17, 17, .35), 0 12px 24px -16px rgba(17, 17, 17, .2);
}

@media (max-width: 991px) {
	.ed-cases__track {
		margin: -40px 0 -56px;
		padding: 40px 16px 56px;
		scroll-padding: 0 16px;
	}
}

/* Wide, soft shadow like the reference; the track makes room for all of it. */
@media (min-width: 992px) {
	.ed-cases__track {
		margin: -80px -80px -110px 0;
		padding: 80px 80px 110px 32px;
		scroll-padding: 0 80px;
	}
}

.ed-case {
	box-shadow: 0 2px 4px rgba(17, 17, 17, .04), 0 28px 70px -30px rgba(17, 17, 17, .22);
}

.ed-case:first-child,
.ed-case:hover,
.ed-case:focus-visible {
	box-shadow: 0 0 0 2px var(--ed-lime), 0 50px 100px -30px rgba(17, 17, 17, .38), 0 20px 40px -20px rgba(17, 17, 17, .18);
}

/* Case cards with photos: caption on a dark gradient (name, what it is, platforms). */
.ed-case__link {
	position: absolute;
	inset: 0;
	display: block;
	text-decoration: none !important;
}

.ed-case:focus-within {
	box-shadow: 0 0 0 2px var(--ed-lime), 0 50px 100px -30px rgba(17, 17, 17, .38), 0 20px 40px -20px rgba(17, 17, 17, .18);
}

.ed-case:focus-within .ed-case__shot {
	filter: none;
}

.ed-case__link:focus-visible {
	outline: none;
}

.ed-case__shot {
	object-position: center;
	filter: grayscale(.7) contrast(.95);
}

.ed-cases .ed-case .ed-case__info {
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 90px 24px 22px;
	border-radius: 0;
	background: linear-gradient(to top, rgba(10, 10, 10, .78), rgba(10, 10, 10, 0));
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
	opacity: 1;
	transform: none;
}

.ed-cases .ed-case__name {
	color: #fff;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.3;
}

.ed-case__kind {
	color: rgba(255, 255, 255, .82);
	font-size: 15px;
	line-height: 1.5;
	text-align: right;
}

.ed-case__platforms {
	margin-top: 6px;
	color: rgba(255, 255, 255, .7);
	font-family: "Inter", sans-serif !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ed-case:first-child .ed-case__platforms,
.ed-case:hover .ed-case__platforms {
	color: var(--ed-lime);
}

/* Unsplash credit, small, top corner. */
.ed-case__credit {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(10, 10, 10, .45);
	color: rgba(255, 255, 255, .85);
	font-family: "Inter", sans-serif !important;
	font-size: 10px;
	line-height: 16px;
	opacity: 0;
	transition: opacity .25s ease;
}

.ed-case__credit a {
	color: #fff !important;
	text-decoration: underline !important;
}

.ed-case:hover .ed-case__credit,
.ed-case:focus-within .ed-case__credit {
	opacity: 1;
}

@media (max-width: 991px) {
	.ed-case__credit {
		opacity: 1;
	}

	.ed-cases .ed-case__name {
		font-size: 20px;
	}
}

@media (max-width: 991px) {
	.ed-cases__inner {
		gap: 0;
	}
}

/* In the stacked (mobile) layout, flex-basis would act as a height. */
@media (max-width: 991px) {
	.ed-cases__text {
		flex-basis: auto;
	}
}

@media (max-width: 991px) {
	.ed-cases__nav {
		margin-bottom: 24px;
	}
}

/* Wide sections are truly full width: 48px side margins, no 1400px cap
   (the works showcase does the same in works.css). */
@media (min-width: 992px) {
	.ed-cases__inner {
		padding-right: 48px;
	}
}

/* Case photos: grey and slightly dimmed (the first card too); colour on hover. */
.ed-cases .ed-case .ed-case__shot,
.ed-cases .ed-case:first-child .ed-case__shot {
	filter: grayscale(1) brightness(.82) contrast(.95);
}

.ed-cases .ed-case:hover .ed-case__shot,
.ed-cases .ed-case:focus-within .ed-case__shot {
	filter: grayscale(0) brightness(.95);
}

/* "View case" pill in the top corner (replaces the photo credit). */
.ed-case__open {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .25s ease, transform .25s ease;
}

.ed-case:hover .ed-case__open,
.ed-case:focus-within .ed-case__open {
	opacity: 1;
	transform: none;
}

@media (max-width: 991px) {
	.ed-case__open {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------
   Case side panel: slides in from the left edge (end side in RTL).
   ------------------------------------------------------------------ */
html.ed-drawer-open {
	overflow: hidden;
}

.ed-drawer {
	position: fixed;
	inset: 0;
	z-index: 2147483200;
	direction: rtl;
}

.ed-drawer[hidden] {
	display: none;
}

.ed-drawer,
.ed-drawer *:not(.fa) {
	font-family: "Thmanyah Sans", sans-serif !important;
}

.ed-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, .5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s ease;
}

.ed-drawer__panel {
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	width: min(520px, calc(100vw - 24px));
	overflow-y: auto;
	border-radius: 28px;
	background: var(--ed-surface);
	box-shadow: 0 30px 80px -20px rgba(10, 10, 10, .5);
	outline: none;
	transform: translateX(-110%);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.ed-drawer.is-open .ed-drawer__backdrop {
	opacity: 1;
}

.ed-drawer.is-open .ed-drawer__panel {
	transform: none;
}

.ed-drawer__close {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(var(--ed-surface-rgb), .92);
	color: var(--ed-text);
	cursor: pointer;
	box-shadow: 0 6px 16px -8px rgba(10, 10, 10, .5);
	transition: background-color .2s ease, color .2s ease;
}

.ed-drawer__close:hover,
.ed-drawer__close:focus-visible {
	background: var(--ed-ink);
	color: #fff;
}

.ed-drawer__media {
	flex: 0 0 auto;
	height: 300px;
	overflow: hidden;
	background: var(--ed-tint-ecece7);
}

.ed-drawer__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ed-drawer__body {
	padding: 28px 32px 32px;
	text-align: right;
}

.ed-drawer__label {
	margin: 0 0 8px;
	color: #7d827a;
	font-size: 13px !important;
	text-align: right !important;
}

.ed-drawer__title {
	margin: 0 0 6px;
	color: var(--ed-text);
	font-size: 32px !important;
	font-weight: 900;
	line-height: 1.25;
	text-align: right;
}

.ed-drawer__kind {
	margin: 0 0 12px;
	color: var(--ed-tx-3a3a37);
	font-size: 17px;
	text-align: right !important;
}

.ed-drawer__platforms {
	display: inline-block;
	margin: 0 0 22px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ed-lime);
	color: var(--ed-ink);
	font-family: "Inter", sans-serif !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ed-drawer__summary {
	margin: 0 0 20px;
	color: var(--ed-tx-4a4a46);
	font-size: 17px;
	line-height: 1.9;
	text-align: right !important;
}

.ed-drawer__features {
	display: grid;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.ed-drawer__features[hidden] {
	display: none;
}

.ed-drawer__features li {
	position: relative;
	margin: 0;
	padding: 12px 44px 12px 14px;
	border-radius: 14px;
	background: var(--ed-tint-f4f4f1);
	color: var(--ed-text-2);
	font-size: 15px;
	line-height: 1.6;
	text-align: right;
}

.ed-drawer__features li::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ed-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23151515' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
	transform: translateY(-50%);
}

.ed-drawer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ed-drawer__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border: 1.5px solid var(--ed-rule-dcdcd6);
	border-radius: 999px;
	color: var(--ed-text) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none !important;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ed-drawer__btn[hidden] {
	display: none;
}

.ed-drawer__btn:hover {
	border-color: var(--ed-edge);
}

.ed-drawer__btn--primary {
	border-color: var(--ed-ink);
	background: var(--ed-ink);
	color: #fff !important;
}

.ed-drawer__btn--primary:hover {
	background: #000;
}

.ed-drawer__btn:focus-visible {
	outline: 3px solid var(--ed-lime);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.ed-drawer__panel {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 88vh;
		border-radius: 24px 24px 0 0;
		transform: translateY(105%);
	}

	.ed-drawer__media {
		height: 220px;
	}

	.ed-drawer__body {
		padding: 22px 20px 28px;
	}

	.ed-drawer__title {
		font-size: 26px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-drawer__panel,
	.ed-drawer__backdrop {
		transition: none;
	}
}

/* Panel scrolling: the photo stays pinned and the content slides up over it;
   dark panel background so the iOS bounce never shows white; scroll stays inside. */
.ed-drawer__panel {
	background: var(--ed-ink);
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.ed-drawer__media {
	position: sticky;
	top: 0;
	z-index: 0;
	flex-shrink: 0;
}

.ed-drawer__img {
	object-position: center 30%;
}

.ed-drawer__body {
	position: relative;
	z-index: 1;
	flex: 1 0 auto;
	margin-top: -28px;
	border-radius: 28px 28px 0 0;
	background: var(--ed-surface);
	box-shadow: 0 -12px 30px -18px rgba(10, 10, 10, .45);
}

/* Small grab handle on the sliding card (mobile sheet). */
@media (max-width: 600px) {
	.ed-drawer__body::before {
		content: "";
		position: absolute;
		top: 10px;
		left: 50%;
		width: 40px;
		height: 4px;
		border-radius: 4px;
		background: var(--ed-tint-dcdcd6);
		transform: translateX(-50%);
	}

	.ed-drawer__body {
		margin-top: -24px;
		border-radius: 24px 24px 0 0;
		padding-top: 30px;
	}

	.ed-drawer__media {
		height: 260px;
	}
}

/* Close button stays visible while the panel scrolls. */
.ed-drawer__close {
	position: sticky;
	top: 16px;
	z-index: 3;
	flex-shrink: 0;
	align-self: flex-end;
	margin: 16px 16px -60px 0;
}

/* Behind the photo: a blurred, softly faded copy of it (no black/white on bounce). */
.ed-drawer__panel {
	background:
		linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .35) 55%, var(--ed-surface) 100%),
		var(--ed-blur, none) center / cover no-repeat,
		var(--ed-tint-e9e9e4);
}

/* Fade the photo's lower edge into the content card. */
.ed-drawer__media::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 90px;
	background: linear-gradient(to top, rgba(var(--ed-surface-rgb), .55), rgba(255, 255, 255, 0));
	pointer-events: none;
}

/* Home blog: the first article wide across the top (cover beside the text), the other two
   under it side by side (small cover beside the title). Every cover keeps its 16:9 shape. */
.ed-blog__grid--3 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ed-blog__grid--3 .ed-post--lead {
	grid-column: 1 / -1;
}

.ed-blog__grid--3 .ed-post--lead .ed-post__link {
	flex-direction: row;
	align-items: center;
}

.ed-blog__grid--3 .ed-post--lead .ed-post__media {
	flex: 0 0 56%;
	align-self: stretch;
	aspect-ratio: 16 / 9;
}

.ed-blog__grid--3 .ed-post--lead .ed-post__body {
	justify-content: center;
	padding: 36px 40px;
}

.ed-blog__grid--3 .ed-post--lead .ed-post__title {
	font-size: 30px;
}

.ed-blog__grid--3 .ed-post:not(.ed-post--lead) .ed-post__link {
	align-items: center;
	padding: 14px;
}

.ed-blog__grid--3 .ed-post:not(.ed-post--lead) .ed-post__media {
	flex: 0 0 46%;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
}

.ed-blog__grid--3 .ed-post:not(.ed-post--lead) .ed-post__body {
	padding: 8px 20px 8px 6px;
}

@media (max-width: 991px) {
	.ed-blog__grid--3 .ed-post--lead .ed-post__link {
		flex-direction: column;
	}

	.ed-blog__grid--3 .ed-post--lead .ed-post__media {
		flex: 0 0 auto;
		width: 100%;
	}

	.ed-blog__grid--3 .ed-post--lead .ed-post__body {
		padding: 26px;
	}

	.ed-blog__grid--3 .ed-post--lead .ed-post__title {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.ed-blog__grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.ed-blog__grid--3 .ed-post:not(.ed-post--lead) .ed-post__link {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
	}

	.ed-blog__grid--3 .ed-post:not(.ed-post--lead) .ed-post__media {
		flex: 0 0 auto;
		border-radius: 0;
	}

	.ed-blog__grid--3 .ed-post:not(.ed-post--lead) .ed-post__body {
		padding: 22px;
	}
}
