/* ==========================================================================
   Easy Subscriptions – Help Center (2026 design)
   Tokens taken from the Figma file + easysubscription.io styles.
   ========================================================================== */

:root {
	--es-primary: #7c3aed;
	--es-primary-deep: #6d28d9;
	--es-primary-ink: #2d1064;      /* serif headings */
	--es-lilac-50: #fcf9ff;         /* header bg */
	--es-lilac-100: #f5f3ff;
	--es-lilac-150: #f1ecfe;        /* hover rows */
	--es-lilac-300: #ad82f5;        /* search border */
	--es-hero: #bca3f6;
	--es-yellow: #fde047;
	--es-ink: #1f2935;              /* body headings */
	--es-text: #475569;
	--es-muted: #64748b;
	--es-nav: #465567;
	--es-line: #e9e9e9;
	--es-line-soft: #ece8f6;
	--es-grey-box: #f1f1f2;
	--es-pink: #f04df8;
	--es-sans: 'Gilroy', 'Gilory', 'Helvetica Neue', Arial, sans-serif;
	--es-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--es-wrap: 1296px;
	--es-gutter: 72px;
	--es-header-h: 86px;
}

/* ---------- base (scoped) ---------- */
.es-help,
.es-help #page {
	background: #fff;
}
.es-help .site,
.es-header,
.es-footer,
.es-main {
	font-family: var(--es-sans);
	color: var(--es-text);
	-webkit-font-smoothing: antialiased;
}
.es-main *,
.es-header *,
.es-footer *,
.es-drawer * {
	box-sizing: border-box;
}
.es-main a,
.es-header a,
.es-footer a,
.es-drawer a {
	text-decoration: none;
}
.es-main img,
.es-drawer img {
	max-width: 100%;
	height: auto;
	display: block;
}
.es-wrap {
	width: 100%;
	max-width: calc(var(--es-wrap) + var(--es-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--es-gutter);
}
.es-main :focus-visible,
.es-header :focus-visible,
.es-footer :focus-visible,
.es-drawer :focus-visible {
	outline: 2px solid var(--es-primary);
	outline-offset: 2px;
}
.es-main .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.es-h2 {
	font-family: var(--es-serif);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.2;
	letter-spacing: -0.5px;
	color: var(--es-primary-ink);
	margin: 0 0 22px;
}
.es-section { padding: 52px 0 0; }
.es-section:last-child { padding-bottom: 60px; }

/* ==========================================================================
   Header
   ========================================================================== */
.es-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--es-lilac-50);
	border-bottom: 1px solid var(--es-line-soft);
}
.admin-bar .es-header { top: 32px; }
.es-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--es-header-h);
}
.es-header__logo { flex: 0 0 auto; }
.es-header__logo img,
.es-header__logo .custom-logo {
	display: block;
	max-height: 46px;
	width: auto;
}
.es-header__logo .site-title {
	font-weight: 700;
	font-size: 22px;
	color: var(--es-primary);
}
.es-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.es-menu {
	display: flex;
	gap: 44px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.es-menu > li { position: relative; margin: 0; }
.es-menu a {
	font-size: 16px;
	font-weight: 500;
	color: var(--es-nav);
	transition: color .15s;
}
.es-menu a:hover,
.es-menu .current-menu-item > a { color: var(--es-primary); }
.es-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 220px;
	padding: 10px 0;
	margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--es-line-soft);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(45, 16, 100, .08);
}
.es-menu li:hover > .sub-menu,
.es-menu li:focus-within > .sub-menu { display: block; }
.es-menu .sub-menu a { display: block; padding: 8px 16px; font-size: 15px; }

.es-appstore { flex: 0 0 auto; display: block; line-height: 0; }
.es-appstore img { height: 48px; width: auto; }
.es-appstore--mobile { display: none; }
.es-header__toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 0;
	padding: 8px;
	color: var(--es-primary-ink);
	cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.es-hero {
	position: relative;
	background-color: var(--es-hero);
	background-image:
		var(--es-hero-img),
		linear-gradient(100deg, #b69cf2 0%, #bba2f5 45%, #c7b3fa 100%);
	background-repeat: no-repeat;
	background-position: right max(0px, calc((100vw - 1440px) / 2)) center, center;
	background-size: auto 100%, cover;
	min-height: 536px;
	display: flex;
	align-items: center;
	overflow: visible;
	z-index: 5;
}
.es-hero__inner { padding-top: 48px; padding-bottom: 48px; }
.es-hero__copy { max-width: 500px; margin-left: 84px; }
.es-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	background: var(--es-yellow);
	border: 1px solid #ecc80b;
	border-radius: 4px;
	color: #1f1f1f !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}
.es-hero__title {
	font-family: var(--es-serif);
	font-weight: 400;
	font-size: 54px;
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--es-primary-ink);
	margin: 26px 0 12px;
}
.es-hero__sub {
	font-size: 19px;
	font-weight: 500;
	color: #402278;
	margin: 0 0 40px;
}

/* search */
.es-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 497px;
	height: 68px;
	background: #fff;
	border: 1px solid var(--es-lilac-300);
	border-radius: 2px;
	box-shadow: 0 8px 24px rgba(76, 29, 149, .08);
}
.es-search__icon {
	display: flex;
	padding: 0 12px 0 24px;
	color: var(--es-primary);
}
.es-search input[type="search"] {
	flex: 1;
	height: 100%;
	border: 0 !important;
	outline: 0;
	background: transparent;
	box-shadow: none !important;
	font: 500 16px/1 var(--es-sans);
	color: var(--es-primary-ink);
	padding: 0 20px 0 0;
	-webkit-appearance: none;
	appearance: none;
}
.es-search input::placeholder { color: var(--es-primary-ink); opacity: .9; }
.es-search:focus-within { border-color: var(--es-primary); }
.es-search__results {
	position: absolute;
	top: calc(100% + 6px);
	left: -1px;
	right: -1px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--es-line-soft);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(45, 16, 100, .14);
	max-height: 360px;
	overflow-y: auto;
	z-index: 20;
}
.es-search__results li { margin: 0; }
.es-search__results a,
.es-search__results .es-search__msg {
	display: block;
	padding: 11px 14px;
	border-radius: 6px;
	font-size: 15px;
	color: var(--es-ink);
}
.es-search__results .es-search__msg { color: var(--es-muted); }
.es-search__results a:hover,
.es-search__results a[aria-selected="true"] { background: var(--es-lilac-150); color: var(--es-primary-deep); }

.es-hero--compact { min-height: 300px; }
.es-hero--compact .es-hero__inner { padding-top: 36px; padding-bottom: 36px; }
.es-hero--compact .es-hero__title { font-size: 40px; margin: 18px 0 8px; }
.es-hero--compact .es-hero__sub { margin-bottom: 24px; }
.es-hero--compact .es-search { height: 58px; }

/* ==========================================================================
   Latest Improvements (carousel)
   ========================================================================== */
.es-improve__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: max(var(--es-gutter), calc((100vw - var(--es-wrap)) / 2));
	padding: 2px max(var(--es-gutter), calc((100vw - var(--es-wrap)) / 2)) 14px;
	scrollbar-width: thin;
	scrollbar-color: #d9cdfb transparent;
	outline: none;
}
.es-improve__card {
	flex: 0 0 418px;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px;
	min-height: 210px;
	background: #fff;
	border: 1px solid var(--es-line);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.es-improve__card:hover {
	border-color: #cdb8fb;
	box-shadow: 0 10px 28px rgba(76, 29, 149, .08);
	transform: translateY(-2px);
}
.es-improve__img {
	flex: 0 0 186px;
	width: 186px;
	height: 186px;
	overflow: hidden;
	background: linear-gradient(160deg, #eef4ff, #f5efff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--es-primary);
}
.es-improve__img img { width: 100%; height: 100%; object-fit: cover; }
.es-improve__title {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--es-ink);
}

/* Drawer */
.es-drawer { position: fixed; inset: 0; z-index: 1000; }
.es-drawer[hidden] { display: none; }
.es-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 12, 34, .62);
	opacity: 0;
	transition: opacity .25s;
}
.es-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(560px, 100%);
	background: #fff;
	padding: 24px 32px 40px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	font-family: var(--es-sans);
}
.es-drawer.is-open .es-drawer__overlay { opacity: 1; }
.es-drawer.is-open .es-drawer__panel { transform: none; }
.es-drawer__close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: 0;
	padding: 6px;
	color: var(--es-muted);
	cursor: pointer;
}
.es-drawer__close:hover { color: var(--es-ink); }
.es-drawer__head {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0 24px 24px 0;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--es-line);
}
.es-drawer__img {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	overflow: hidden;
	background: linear-gradient(160deg, #eef4ff, #f5efff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--es-primary);
}
.es-drawer__img img { width: 100%; height: 100%; object-fit: cover; }
.es-drawer__title {
	display: block;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--es-ink);
}
.es-drawer__read {
	display: inline-block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--es-primary);
}
.es-drawer__head:hover .es-drawer__title { color: var(--es-primary-deep); }
body.es-lock { overflow: hidden; }

/* Shared link list (drawer, category, search) */
.es-linklist { list-style: none; margin: 0; padding: 0; }
.es-linklist li { margin: 0 0 4px; }
.es-linklist a {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 12px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 500;
	color: var(--es-ink);
	transition: background .15s, color .15s;
}
.es-linklist a > span:first-child { flex: 1; }
.es-linklist a svg { flex: 0 0 auto; color: var(--es-ink); }
.es-linklist a:hover,
.es-linklist a:focus-visible { background: var(--es-lilac-150); color: var(--es-primary-deep); }
.es-linklist__meta { font-size: 13px; font-weight: 500; color: var(--es-muted); white-space: nowrap; }
.es-linklist--boxed {
	border: 1px solid var(--es-line);
	padding: 10px;
	margin-bottom: 8px;
}
.es-linklist--boxed li { margin: 0; }
.es-linklist--boxed li + li { border-top: 1px solid #f2f2f2; }
.es-linklist--boxed a { padding: 14px 18px; }

/* ==========================================================================
   Browse Articles (category cards)
   ========================================================================== */
.es-browse__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 28px;
}
.es-cat {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 110px;
	padding: 20px 30px;
	border: 1px solid var(--es-line);
	background-color: #fff;
	background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .012) 0 1px, transparent 1px 7px);
	transition: border-color .15s, box-shadow .15s;
}
.es-cat:hover {
	border-color: #cdb8fb;
	box-shadow: 0 10px 28px rgba(76, 29, 149, .07);
}
.es-cat__icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--es-primary);
}
.es-cat__icon img { width: 100%; height: 100%; object-fit: contain; }
.es-cat__name {
	flex: 1;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--es-ink);
}
.es-cat:hover .es-cat__name { color: var(--es-primary-deep); }
.es-pill {
	flex: 0 0 auto;
	display: inline-block;
	padding: 5px 12px 4px;
	background: #fff;
	border: 1.5px solid var(--es-primary);
	border-radius: 7px;
	box-shadow: 0 3px 0 var(--es-primary);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--es-primary);
	white-space: nowrap;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.es-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 26px 0 30px;
	font-size: 14px;
	font-weight: 500;
}
.es-crumbs li { display: flex; align-items: center; margin: 0; }
.es-crumbs li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 10px 0 8px;
	border-top: 1.5px solid #4b5563;
	border-right: 1.5px solid #4b5563;
	transform: rotate(45deg);
}
.es-crumbs a { color: #4b5563; }
.es-crumbs a:hover { color: var(--es-primary); }
.es-crumbs [aria-current] { color: var(--es-primary); }

/* ==========================================================================
   Single doc
   ========================================================================== */
.es-doc {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0 22px;
	align-items: start;
}
.es-doc--notoc { grid-template-columns: minmax(0, 1fr); }
.es-toc {
	align-self: stretch;
	border-right: 1px solid var(--es-line);
	padding: 0 16px 24px 8px;
}
.admin-bar .es-toc__box { top: calc(var(--es-header-h) + 56px); }
.es-toc__box { position: sticky; top: calc(var(--es-header-h) + 24px); }
.es-toc__title {
	list-style: none;
	font-size: 17px;
	font-weight: 500;
	color: var(--es-ink);
	margin: 0 0 22px;
	cursor: default;
}
.es-toc__title::-webkit-details-marker { display: none; }
.es-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}
.es-toc__item { margin: 0 0 4px; }
.es-toc__item a {
	display: block;
	padding: 9px 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--es-muted);
	transition: color .15s;
}
.es-toc__item--h3 a { padding-left: 14px; font-size: 13px; }
.es-toc__item a:hover { color: var(--es-primary); }
.es-toc__item a.is-active { color: var(--es-ink); font-weight: 600; }

.es-article { min-width: 0; padding-bottom: 20px; }
.es-article__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-bottom: 26px;
}
.es-article__title {
	font-family: var(--es-sans);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0 !important;
	line-height: 1.25;
	color: var(--es-ink);
	margin: 0;
}
.es-chip {
	display: inline-block;
	padding: 5px 10px;
	background: #ececec;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	color: #555;
}

/* prose */
.es-prose {
	font-size: 15px;
	line-height: 1.75;
	color: var(--es-text);
}
.es-prose > *:first-child { margin-top: 0; }
.es-prose p { margin: 0 0 18px; }
.es-prose h2,
.es-prose h3,
.es-prose h4 {
	font-family: var(--es-sans);
	font-weight: 500;
	letter-spacing: 0 !important;
	color: var(--es-ink);
	line-height: 1.35;
	scroll-margin-top: calc(var(--es-header-h) + 24px);
}
.es-prose h2 { font-size: 21px; margin: 36px 0 14px; }
.es-prose h3 { font-size: 18px; margin: 28px 0 12px; }
.es-prose h4 { font-size: 16px; margin: 22px 0 10px; }
.es-prose h2 a[href^="#"],
.es-prose h3 a[href^="#"] { opacity: 0; margin-left: 6px; color: var(--es-primary); transition: opacity .15s; }
.es-prose h2:hover a[href^="#"],
.es-prose h3:hover a[href^="#"] { opacity: 1; }
.es-prose ul,
.es-prose ol { margin: 0 0 20px; padding-left: 22px; }
.es-prose li { margin: 0 0 6px; }
.es-prose ul li::marker { color: var(--es-ink); }
.es-prose a { color: var(--es-primary); text-decoration: underline; text-underline-offset: 2px; }
.es-prose a:hover { color: var(--es-primary-deep); }
.es-prose strong { color: var(--es-ink); font-weight: 600; }
.es-prose img,
.es-prose video {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--es-line);
	border-radius: 6px;
	margin: 8px 0 20px;
}
.es-prose iframe { max-width: 100%; border: 0; border-radius: 6px; }
.es-prose figure { margin: 0 0 22px; }
.es-prose figcaption { font-size: 13px; color: var(--es-muted); margin-top: -10px; }
.es-prose blockquote {
	margin: 0 0 22px;
	padding: 14px 18px;
	border-left: 3px solid var(--es-primary);
	background: var(--es-lilac-100);
	color: var(--es-ink);
}
.es-prose code {
	font-size: .9em;
	padding: 2px 6px;
	background: #f4f2fb;
	border-radius: 4px;
	color: #5b21b6;
}
.es-prose pre {
	margin: 0 0 22px;
	padding: 16px 18px;
	background: #1e1b2e;
	color: #ece8ff;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.6;
}
.es-prose pre code { background: none; padding: 0; color: inherit; }
.es-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14px; display: block; overflow-x: auto; }
.es-prose th,
.es-prose td { border: 1px solid var(--es-line); padding: 10px 12px; text-align: left; }
.es-prose th { background: var(--es-lilac-100); color: var(--es-ink); font-weight: 600; }

/* feedback row */
.es-feedback {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 18px 0 0;
}
.es-feedback__box {
	min-height: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 18px;
}
.es-feedback__react { background: var(--es-grey-box); border: 1px solid #ebebeb; }
.es-feedback__q { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: #374151; }
.es-feedback__emoji { display: flex; gap: 10px; }
.es-feedback__emoji button {
	background: none;
	border: 0;
	padding: 2px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: transform .15s;
}
.es-feedback__emoji button:hover { transform: scale(1.18); }
.es-feedback__thanks { margin: 0; font-size: 14px; font-weight: 600; color: var(--es-primary); }
.es-feedback__help {
	background: var(--es-lilac-100);
	border: 1px solid #8b5cf6;
	font-size: 15px;
	font-weight: 500;
	color: var(--es-ink);
	transition: background .15s;
}
.es-feedback__help:hover { background: #ede7fe; color: var(--es-primary-deep); }

/* BetterDocs reactions shortcode, restyled to match */
.es-feedback__bd,
.es-feedback__bd * { background: transparent !important; box-shadow: none !important; }
.es-feedback__bd .betterdocs-article-reactions,
.es-feedback__bd .betterdocs-article-reactions-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.es-feedback__bd .betterdocs-article-reactions-heading h5,
.es-feedback__bd .betterdocs-article-reactions-heading,
.es-feedback__bd .betterdocs-article-reactions-subheading { font: 500 14px/1.4 var(--es-sans) !important; color: #374151 !important; margin: 0 !important; }
.es-feedback__bd ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.es-feedback__bd ul li a,
.es-feedback__bd .betterdocs-article-reaction-links a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.es-feedback__bd svg { width: 28px; height: 28px; }

/* ==========================================================================
   Category + search pages
   ========================================================================== */
.es-cathead {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0 0 30px;
}
.es-cathead__icon { flex: 0 0 64px; width: 64px; height: 64px; }
.es-cathead__text { flex: 1; min-width: 0; }
.es-cathead__title {
	font-family: var(--es-serif);
	font-weight: 400;
	font-size: 38px;
	letter-spacing: -0.5px;
	line-height: 1.15;
	color: var(--es-primary-ink);
	margin: 0;
}
.es-cathead__desc { margin-top: 6px; font-size: 15px; color: var(--es-text); }
.es-cathead__desc p { margin: 0; }
.es-subcats { margin-bottom: 28px; }
.es-empty { padding: 28px 0; font-size: 16px; }
.es-pagination { margin: 26px 0 0; }
.es-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.es-pagination .page-numbers {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 1px solid var(--es-line);
	color: var(--es-ink);
	font-weight: 500;
}
.es-pagination .page-numbers.current { border-color: var(--es-primary); color: var(--es-primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.es-footer {
	background: var(--es-primary-deep);
	padding: 50px 0 40px;
	margin-top: 50px;
}
.es-footer__card {
	background: #fff;
	border-radius: 24px;
	padding: 56px 70px 44px;
}
.es-footer__cols {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, auto));
	justify-content: space-between;
	gap: 32px;
}
.es-footer__h {
	font-family: var(--es-serif);
	font-weight: 400;
	font-size: 20px;
	letter-spacing: -0.2px;
	color: #05070a;
	margin: 0 0 18px;
}
.es-footer__col ul { list-style: none; margin: 0; padding: 0; }
.es-footer__col li { margin: 0 0 10px; }
.es-footer__col a { font-size: 15px; color: #505153; transition: color .15s; }
.es-footer__col a:hover { color: var(--es-primary); }
.es-footer__divider {
	height: 1px;
	margin: 38px -30px 40px;
	background: linear-gradient(90deg, transparent, #e6dcfb 20%, #f0c9b4 50%, #e6dcfb 80%, transparent);
}
.es-footer__news {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.es-footer__newstitle {
	font-family: var(--es-serif);
	font-weight: 400;
	font-size: 26px;
	letter-spacing: -0.5px;
	color: #05070a;
	margin: 0 0 6px;
}
.es-footer__newssub { margin: 0; font-size: 15px; color: #8190a0; }
.es-footer__form { flex: 0 1 460px; }
/* Common form plugins inside the newsletter slot */
.es-footer__form form { display: flex; gap: 16px; align-items: stretch; margin: 0; }
.es-footer__form p { margin: 0; }
.es-footer__form input[type="email"],
.es-footer__form input[type="text"] {
	width: 100%;
	height: 56px;
	padding: 0 20px;
	border: 1.5px solid #3a3a3a;
	border-radius: 4px;
	font: 500 16px var(--es-sans);
	background: #fff;
}
.es-footer__form button,
.es-footer__form input[type="submit"] {
	height: 56px;
	padding: 0 52px;
	background: var(--es-primary);
	border: 1.5px solid #1e1b4b;
	border-radius: 4px;
	box-shadow: 3px 3px 0 #1e1b4b;
	color: #fff;
	font: 600 16px var(--es-sans);
	cursor: pointer;
	transition: transform .1s, box-shadow .1s;
}
.es-footer__form button:hover,
.es-footer__form input[type="submit"]:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #1e1b4b; }

.es-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	padding: 34px 28px 0;
	color: #fff;
}
.es-footer__follow span { display: block; font-size: 13px; margin-bottom: 8px; }
.es-footer__social { display: flex; gap: 6px; }
.es-footer__social a {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--es-pink);
	border: 1.5px solid #3b0764;
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	transition: transform .15s;
}
.es-footer__social a:hover { transform: translateY(-2px); }
.es-footer__legal { text-align: right; }
.es-footer__copy { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #fff; }
.es-footer__links { margin: 0; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.es-footer__links a { font-size: 13px; color: #ece4fb; }
.es-footer__links a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	:root { --es-gutter: 40px; }
	.es-hero__copy { margin-left: 0; }
	.es-footer__card { padding: 44px 40px 36px; }
	.es-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	:root { --es-gutter: 24px; --es-header-h: 70px; }
	.es-header__toggle { display: block; }
	.es-header__inner > .es-appstore { display: none; }
	.es-header__nav {
		position: fixed;
		top: var(--es-header-h);
		left: 0;
		right: 0;
		bottom: 0;
		display: none;
		flex-direction: column;
		justify-content: flex-start;
		gap: 24px;
		padding: 24px;
		background: var(--es-lilac-50);
		overflow-y: auto;
	}
	.admin-bar .es-header__nav { top: calc(var(--es-header-h) + 46px); }
	.es-header__nav.is-open { display: flex; }
	.es-menu { flex-direction: column; gap: 0; }
	.es-menu > li { border-bottom: 1px solid var(--es-line-soft); }
	.es-menu a { display: block; padding: 16px 0; font-size: 18px; }
	.es-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 10px 12px; }
	.es-appstore--mobile { display: block; }

	.es-hero {
		min-height: 0;
		background-image: linear-gradient(180deg, rgba(188, 163, 246, .35), rgba(188, 163, 246, .92) 62%), var(--es-hero-img), linear-gradient(100deg, #b69cf2, #c7b3fa);
		background-position: center, right -140px top -10px, center;
		background-size: cover, auto 300px, cover;
	}
	.es-hero__title { font-size: 42px; }
	.es-hero--compact .es-hero__title { font-size: 34px; }

	.es-doc { grid-template-columns: minmax(0, 1fr); }
	.es-toc {
		position: static;
		border-right: 0;
		padding: 0;
		margin-bottom: 24px;
	}
	.es-toc__box {
		position: static;
		border: 1px solid var(--es-line);
		padding: 14px 18px;
	}
	.es-toc__title { margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
	.es-toc__title::after { content: "+"; font-size: 20px; color: var(--es-primary); }
	.es-toc__box[open] .es-toc__title { margin-bottom: 12px; }
	.es-toc__box[open] .es-toc__title::after { content: "–"; }
	.es-toc__list { max-height: none; }

	.es-browse__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.es-improve__card { flex-basis: 340px; min-height: 0; }
	.es-improve__img { flex-basis: 130px; width: 130px; height: 130px; }
}

@media (max-width: 782px) {
	.admin-bar .es-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .es-header { top: 0; }
}

@media (max-width: 640px) {
	.es-crumbs ol { display: block; line-height: 1.8; padding: 20px 0 22px; }
	.es-crumbs li { display: inline; }
	.es-crumbs li + li::before { display: inline-block; vertical-align: middle; margin-top: -2px; }
	.es-h2 { font-size: 28px; }
	.es-section { padding-top: 40px; }
	.es-hero__inner { padding-top: 36px; padding-bottom: 36px; }
	.es-hero__title { font-size: 36px; margin-top: 20px; }
	.es-hero__sub { margin-bottom: 26px; font-size: 17px; }
	.es-search { height: 56px; }
	.es-improve__card { flex-basis: 82vw; gap: 14px; padding: 10px; }
	.es-improve__img { flex-basis: 96px; width: 96px; height: 96px; }
	.es-improve__title { font-size: 15px; }
	.es-cat { padding: 16px 18px; min-height: 84px; gap: 12px; }
	.es-cat__icon { flex-basis: 36px; width: 36px; height: 36px; }
	.es-cat__name { font-size: 16px; }
	.es-pill { font-size: 12px; padding: 4px 9px 3px; }
	.es-article__title { font-size: 24px; }
	.es-feedback { grid-template-columns: minmax(0, 1fr); }
	.es-cathead { flex-wrap: wrap; gap: 14px; }
	.es-cathead__icon { flex-basis: 48px; width: 48px; height: 48px; }
	.es-cathead__title { font-size: 30px; }
	.es-linklist a { font-size: 15px; min-height: 56px; }
	.es-linklist__meta { display: none; }
	.es-drawer__panel { padding: 20px 20px 32px; }
	.es-footer { padding-top: 28px; }
	.es-footer__card { padding: 32px 22px 28px; border-radius: 18px; }
	.es-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
	.es-footer__divider { margin: 28px 0; }
	.es-footer__form form { flex-direction: column; }
	.es-footer__form button,
	.es-footer__form input[type="submit"] { width: 100%; }
	.es-footer__bottom { flex-direction: column; align-items: flex-start; padding: 26px 4px 0; }
	.es-footer__legal { text-align: left; }
	.es-footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.es-main *,
	.es-drawer * { transition: none !important; }
}


/* ==========================================================================
   v2.1 – category drawer, pill button, newsletter, socials, spacing
   ========================================================================== */
.es-browse { padding-top: 30px; }
.es-improve + .es-browse { padding-top: 30px; }
.es-cat { position: relative; }
.es-cat__name.es-stretch { color: var(--es-ink); }
.es-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.es-cat:focus-within { border-color: #cdb8fb; }
.es-cat .es-stretch:focus-visible { outline: none; }
.es-cat .es-stretch:focus-visible::after { outline: 2px solid var(--es-primary); outline-offset: -2px; }
button.es-pill {
	position: relative;
	z-index: 2;
	font-family: var(--es-sans);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform .12s, box-shadow .12s, background .12s;
}
button.es-pill:hover { background: var(--es-lilac-100); transform: translateY(1px); box-shadow: 0 2px 0 var(--es-primary); }
button.es-pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--es-primary); }

/* drawer – matches the Figma panel */
.es-drawer__panel { width: min(559px, 100%); padding: 24px 32px 40px; }
.es-drawer__head { gap: 24px; padding: 0 28px 24px 0; margin-bottom: 24px; border-bottom-color: #ececec; }
.es-drawer__img { flex-basis: 80px; width: 80px; height: 80px; border-radius: 4px; }
.es-drawer__img--icon { background: var(--es-lilac-100); padding: 16px; }
.es-drawer__img--icon img { object-fit: contain; }
.es-drawer__title { font-size: 19px; line-height: 1.3; }
.es-drawer .es-linklist li { margin: 0 0 4px; }
.es-drawer .es-linklist a { min-height: 64px; padding: 12px; font-size: 16.5px; font-weight: 500; color: #1f2937; border-radius: 8px; }
.es-drawer .es-linklist a:focus { outline: none; background: var(--es-lilac-150); }
.es-drawer .es-linklist a svg { width: 18px; height: 18px; }

/* built-in newsletter form */
.es-news-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; margin: 0; }
.es-news-form input[type="email"] { flex: 1 1 240px; }
.es-news-form .es-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.es-news-msg { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 500; min-height: 0; color: var(--es-primary-deep); }
.es-news-msg:empty { display: none; }
.es-news-msg.is-error { color: #b42318; }
.es-news-form.is-busy button { opacity: .7; pointer-events: none; }
.es-footer__form { flex: 0 1 460px; }

/* social icons (inline SVG) */
.es-footer__social a { width: 28px; height: 28px; color: #fff; }
.es-footer__social a svg { display: block; }
.es-footer__social a:hover { background: #ff6bff; }

@media (max-width: 640px) {
	.es-browse, .es-improve + .es-browse { padding-top: 26px; }
	.es-drawer__panel { padding: 20px 18px 32px; }
	.es-drawer__img { flex-basis: 60px; width: 60px; height: 60px; }
	.es-drawer__img--icon { padding: 12px; }
	.es-drawer .es-linklist a { min-height: 54px; font-size: 15px; }
}
