/* Enriching Seniors Lives – site styles (GeneratePress) */

:root {
	--esl-plum: #5b3a66;
	--esl-plum-dark: #3e2547;
	--esl-plum-soft: #efe6f1;
	--esl-gold: #e0a32e;
	--esl-gold-soft: #fbf0d6;
	--esl-sage: #55703a;
	--esl-sage-soft: #ebf2e2;
	--esl-ink: #2b2230;
	--esl-ink-2: #4d4352;
	--esl-cream: #fffdf9;
	--esl-cream-2: #f8f1e7;
	--esl-line: #e6dace;
	--esl-radius: 16px;
	--esl-shadow: 0 10px 30px rgba(62, 37, 71, .12), 0 2px 6px rgba(62, 37, 71, .06);
	--esl-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
	--esl-head: "Lora", Georgia, "Times New Roman", serif;
	--esl-size: 19px;
}
html.esl-size-l { --esl-size: 21.5px; }
html.esl-size-xl { --esl-size: 24px; }

/* ---------- Base ---------- */
body.esl,
body.esl button,
body.esl input,
body.esl select,
body.esl textarea {
	font-family: var(--esl-body);
}
body.esl {
	font-size: var(--esl-size);
	line-height: 1.7;
	color: var(--esl-ink);
	background-color: #f1e5d8;
}
body.esl-has-bg {
	background-image: linear-gradient(var(--esl-shade, transparent), var(--esl-shade, transparent)), var(--esl-bg);
	background-position: center top;
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
}
body.esl h1, body.esl h2, body.esl h3, body.esl h4,
body.esl .main-title, body.esl .entry-title {
	font-family: var(--esl-head);
	color: var(--esl-plum-dark);
	font-weight: 600;
	letter-spacing: -.005em;
	line-height: 1.25;
}
body.esl h1, body.esl .entry-title { font-size: 2.05em; }
body.esl h2 { font-size: 1.55em; margin-top: 1.6em; }
body.esl h3 { font-size: 1.22em; }
body.esl a { color: var(--esl-plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.esl .entry-content a { text-decoration: underline; }
body.esl a:hover, body.esl a:focus { color: var(--esl-plum-dark); }
body.esl :focus-visible { outline: 3px solid var(--esl-gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Accessibility bar ---------- */
.esl-access { background: var(--esl-plum-dark); color: #fff; font-size: 15px; }
.esl-access__inner { max-width: 1180px; margin: 0 auto; padding: 6px 20px; display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.esl-access__label { margin-right: 4px; opacity: .85; }
.esl-access button {
	background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
	border-radius: 8px; padding: 2px 10px; font-size: 15px; line-height: 1.6; cursor: pointer; font-weight: 700;
}
.esl-access button.is-l { font-size: 18px; }
.esl-access button.is-xl { font-size: 21px; }
.esl-access button:hover, .esl-access button[aria-pressed="true"], .esl-access button.is-active { background: var(--esl-gold); color: var(--esl-plum-dark); border-color: var(--esl-gold); }
.esl-access__sep { width: 1px; height: 22px; background: rgba(255,255,255,.3); margin: 0 6px; }

/* ---------- Header + navigation ---------- */
body.esl .site-header {
	background: rgba(255, 253, 249, .9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(91,58,102,.12);
}
body.esl .inside-header { padding-top: 26px; padding-bottom: 22px; }
body.esl .main-title { font-size: 2em; margin: 0; }
body.esl .main-title a { color: var(--esl-plum-dark); text-decoration: none; }
body.esl .site-description { font-size: .9em; color: var(--esl-ink-2); font-style: italic; margin-top: 4px; }
body.esl .site-logo img, body.esl .header-image { max-height: 76px; width: auto; }

body.esl .main-navigation,
body.esl .main-navigation ul ul { background: var(--esl-plum); }
body.esl .main-navigation .main-nav ul li a,
body.esl .main-navigation .menu-toggle,
body.esl .main-navigation .menu-bar-items { color: #fff; font-size: 17px; font-weight: 700; }
body.esl .main-navigation .main-nav ul li a { padding-left: 18px; padding-right: 18px; line-height: 58px; }
body.esl .main-navigation .main-nav ul li:hover > a,
body.esl .main-navigation .main-nav ul li:focus-within > a,
body.esl .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--esl-plum-dark); background: var(--esl-gold); }
body.esl .main-navigation ul ul { box-shadow: var(--esl-shadow); border-radius: 0 0 12px 12px; overflow: hidden; }
body.esl .main-navigation .main-nav ul ul li a { line-height: 1.4; padding-top: 14px; padding-bottom: 14px; font-size: 16px; }

/* ---------- Content cards ---------- */
body.esl .site-content { padding-top: 34px; padding-bottom: 34px; }
body.esl.separate-containers .inside-article,
body.esl.separate-containers .comments-area,
body.esl.separate-containers .page-header,
body.esl.separate-containers .paging-navigation,
body.esl .sidebar .widget,
body.esl.one-container .site-content {
	background: var(--esl-cream);
	border-radius: var(--esl-radius);
	box-shadow: var(--esl-shadow);
}
body.esl.separate-containers .inside-article { padding: 44px 48px; }
body.esl .sidebar .widget { padding: 28px; font-size: .9em; }
body.esl .sidebar .widget h2, body.esl .sidebar .widget h3, body.esl .sidebar .widget .wp-block-heading { margin-top: 0; font-size: 1.15em; }
body.esl .sidebar .widget > *:last-child { margin-bottom: 0; }
body.esl .sidebar .widget-title { font-family: var(--esl-head); color: var(--esl-plum-dark); font-size: 1.15em; border-bottom: 3px solid var(--esl-gold); padding-bottom: 8px; display: inline-block; }
body.esl .page-header { padding: 32px 40px; }
body.esl .page-header .page-title { margin-bottom: .3em; }
body.esl .taxonomy-description { color: var(--esl-ink-2); }

body.esl .entry-meta, body.esl .esl-readtime { color: var(--esl-ink-2); font-size: .82em; }
body.esl .esl-readtime { margin: .4em 0 0; font-weight: 700; color: var(--esl-sage); }
body.esl .entry-content > p:first-of-type { font-size: 1.08em; }
body.esl .entry-content ul li, body.esl .entry-content ol li { margin-bottom: .45em; }
body.esl .entry-content img { border-radius: 12px; }
body.esl .featured-image img, body.esl .post-image img { border-radius: 12px; }
body.esl blockquote { border-left: 5px solid var(--esl-gold); background: var(--esl-cream-2); padding: 18px 24px; border-radius: 0 12px 12px 0; font-style: normal; }

/* Archive list: horizontal cards */
@media (min-width: 769px) {
	body.esl.blog article.has-post-thumbnail .inside-article,
	body.esl.archive article.has-post-thumbnail .inside-article { display: grid; grid-template-columns: 280px 1fr; gap: 0 32px; align-items: start; padding: 28px; }
	body.esl.blog article.has-post-thumbnail .post-image,
	body.esl.archive article.has-post-thumbnail .post-image { grid-row: 1 / span 3; margin: 0 !important; }
	body.esl.blog article.has-post-thumbnail .inside-article > *:not(.post-image),
	body.esl.archive article.has-post-thumbnail .inside-article > *:not(.post-image) { grid-column: 2; }
}
body.esl.blog .entry-title, body.esl.archive .entry-title { font-size: 1.4em; }
body.esl .read-more { font-weight: 700; }

/* Buttons */
.esl-btn, body.esl button.wp-element-button, body.esl .wp-block-button__link, body.esl input[type="submit"] {
	display: inline-block; background: var(--esl-plum); color: #fff !important; border: 2px solid var(--esl-plum);
	padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none !important; line-height: 1.3; font-size: .92em;
	transition: background .15s, color .15s, transform .15s;
}
.esl-btn:hover, .esl-btn:focus { background: var(--esl-plum-dark); border-color: var(--esl-plum-dark); transform: translateY(-1px); }
.esl-btn--ghost { background: transparent; color: var(--esl-plum) !important; }
.esl-btn--ghost:hover, .esl-btn--ghost:focus { background: var(--esl-plum); color: #fff !important; }

/* Notes at the top of posts */
.esl-disclosure, .esl-healthnote { font-size: .8em; padding: 10px 16px; border-radius: 10px; margin-bottom: 1.4em; }
.esl-disclosure { background: var(--esl-cream-2); color: var(--esl-ink-2); }
.esl-healthnote { background: var(--esl-sage-soft); color: #33461f; }

/* ---------- Article boxes ---------- */
.esl-box { border-radius: 14px; padding: 22px 26px 8px; margin: 1.8em 0; border-left: 6px solid; }
.esl-box__title { font-family: var(--esl-head); font-weight: 700; font-size: 1.1em; margin-bottom: .5em; }
.esl-box ul { margin-left: 1.2em; }
.esl-box--takeaways { background: var(--esl-plum-soft); border-color: var(--esl-plum); }
.esl-box--takeaways .esl-box__title { color: var(--esl-plum-dark); }
.esl-box--tip { background: var(--esl-sage-soft); border-color: var(--esl-sage); }
.esl-box--tip .esl-box__title { color: #33461f; }
.esl-box--note { background: var(--esl-gold-soft); border-color: var(--esl-gold); }
.esl-box--note .esl-box__title { color: #7a4f00; }
.esl-box--gp { background: #e8f1f6; border-color: #2d6a8e; }
.esl-box--gp .esl-box__title { color: #1d4c68; }

.esl-steps { list-style: none; counter-reset: s; margin: 1.6em 0; padding: 0; }
.esl-steps li { counter-increment: s; position: relative; padding: 14px 18px 14px 74px; margin-bottom: 12px; background: var(--esl-cream-2); border-radius: 12px; min-height: 52px; }
.esl-steps li::before {
	content: counter(s); position: absolute; left: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--esl-plum); color: #fff; font-weight: 700; font-size: 1.1em; display: grid; place-items: center;
}

.esl-pick { border: 2px solid var(--esl-gold); border-radius: 16px; padding: 22px 26px 6px; margin: 2em 0; background: #fff; position: relative; }
.esl-pick__label { position: absolute; top: -15px; left: 22px; background: var(--esl-gold); color: var(--esl-plum-dark); font-weight: 700; font-size: .75em; padding: 3px 14px; border-radius: 999px; margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.esl-pick__title { font-family: var(--esl-head); font-size: 1.25em; font-weight: 700; color: var(--esl-plum-dark); margin-top: .3em; }

.esl-ad { margin: 2em 0; text-align: center; min-height: 100px; }

/* Author box */
.esl-author { display: flex; gap: 22px; align-items: flex-start; background: var(--esl-cream-2); border-radius: 16px; padding: 24px; margin-top: 2.6em; font-size: .9em; }
.esl-author img { border-radius: 50%; flex: 0 0 auto; }
.esl-author p { margin-bottom: .5em; }
.esl-author__name { font-family: var(--esl-head); font-weight: 700; font-size: 1.15em; color: var(--esl-plum-dark); }
.esl-author__links { font-size: .9em; }

/* ---------- Homepage ---------- */
body.esl-home .site-content { padding-top: 0; }
body.esl-home .inside-article { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
body.esl-home .entry-header { display: none; }
body.esl-home .entry-content { margin-top: 0; }
.esl-homewrap { max-width: 1180px; margin: 0 auto; }

.esl-hero { text-align: center; color: #fff; padding: 110px 24px 120px; text-shadow: 0 2px 14px rgba(43, 20, 50, .45); }
.esl-hero__kicker { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78em; background: rgba(62,37,71,.55); padding: 6px 16px; border-radius: 999px; text-shadow: none; }
body.esl .esl-hero__title { color: #fff; font-size: clamp(2.2em, 5vw, 3.4em); max-width: 820px; margin: .35em auto .3em; }
.esl-hero__text { max-width: 640px; margin: 0 auto 1.6em; font-size: 1.12em; }
.esl-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.esl-hero .esl-btn { background: var(--esl-gold); border-color: var(--esl-gold); color: var(--esl-plum-dark) !important; text-shadow: none; }
.esl-hero .esl-btn:hover { background: #fff; border-color: #fff; }
.esl-hero .esl-btn--ghost { background: rgba(255,255,255,.12); border-color: #fff; color: #fff !important; }
.esl-hero .esl-btn--ghost:hover { color: var(--esl-plum-dark) !important; }

.esl-section { background: var(--esl-cream); border-radius: 22px; box-shadow: var(--esl-shadow); padding: 44px 44px 40px; margin-bottom: 30px; }
body.esl .esl-section__title { margin: 0 0 1em; font-size: 1.7em; display: flex; align-items: center; gap: 14px; }
body.esl .esl-section__title::after { content: ""; flex: 1; height: 2px; background: var(--esl-line); }

.esl-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.esl-topic {
	display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px; align-items: start; text-decoration: none !important;
	padding: 20px; border-radius: 14px; background: var(--esl-cream-2); color: var(--esl-ink) !important; border: 2px solid transparent;
	transition: border-color .15s, transform .15s, background .15s;
}
.esl-topic .esl-icon { grid-row: span 2; width: 52px; height: 52px; padding: 10px; border-radius: 50%; background: var(--esl-plum-soft); color: var(--esl-plum); }
.esl-topic__name { font-family: var(--esl-head); font-weight: 700; color: var(--esl-plum-dark); font-size: 1.08em; line-height: 1.3; }
.esl-topic__desc { font-size: .8em; color: var(--esl-ink-2); line-height: 1.5; }
.esl-topic:hover, .esl-topic:focus { border-color: var(--esl-gold); background: #fff; transform: translateY(-2px); }

.esl-grid { display: grid; gap: 24px; }
.esl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.esl-grid--feature { grid-template-columns: repeat(3, 1fr); }
.esl-grid--feature .esl-card--lead { grid-column: span 2; grid-row: span 2; }
.esl-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--esl-line); transition: transform .15s, box-shadow .15s; }
.esl-card:hover { transform: translateY(-3px); box-shadow: var(--esl-shadow); }
.esl-card__link { display: flex; flex-direction: column; height: 100%; color: var(--esl-ink) !important; text-decoration: none !important; }
.esl-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--esl-plum-soft); }
.esl-card--lead .esl-card__img { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
.esl-card--lead .esl-card__img img { position: absolute; inset: 0; }
.esl-card--lead .esl-card__img { position: relative; }
.esl-card--lead .esl-card__body { flex: 0 0 auto; padding: 22px 26px 26px; }
.esl-card--lead .esl-card__excerpt { font-size: .9em; }
.esl-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; display: block; }
.esl-card__img--blank { background: linear-gradient(135deg, var(--esl-plum-soft), var(--esl-gold-soft)); }
.esl-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.esl-card__cat { font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--esl-sage); }
.esl-card__title { font-family: var(--esl-head); font-weight: 700; font-size: 1.12em; line-height: 1.3; color: var(--esl-plum-dark); }
.esl-card--lead .esl-card__title { font-size: 1.5em; }
.esl-card__excerpt { font-size: .82em; color: var(--esl-ink-2); }
.esl-more { text-align: center; margin: 28px 0 0; }

.esl-promise { display: flex; gap: 30px; align-items: center; justify-content: space-between; background: var(--esl-plum); color: #fff; border-radius: 22px; padding: 40px 44px; margin-bottom: 30px; box-shadow: var(--esl-shadow); }
body.esl .esl-promise h2 { color: #fff; margin: 0 0 .3em; }
.esl-promise p { margin: 0; max-width: 680px; }
.esl-promise .esl-btn { background: var(--esl-gold); border-color: var(--esl-gold); color: var(--esl-plum-dark) !important; flex: 0 0 auto; }

/* ---------- Footer ---------- */
body.esl .site-footer .site-info, body.esl .site-info { background: var(--esl-plum-dark); color: #e9dff0; font-size: 16px; }
body.esl .inside-site-info { flex-direction: column; gap: 8px; padding: 26px 20px; }
.esl-footlinks { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
body.esl .esl-footlinks a { color: #fff; text-decoration: none; }
body.esl .esl-footlinks a:hover { color: var(--esl-gold); text-decoration: underline; }
body.esl .footer-widgets { background: rgba(255,253,249,.94); }
body.esl .generate-back-to-top { background: var(--esl-plum); border-radius: 50%; }

/* ---------- High contrast ---------- */
html.esl-contrast body.esl { --esl-ink: #000; --esl-ink-2: #1a1a1a; --esl-plum: #3a1846; --esl-plum-dark: #1e0a26; --esl-cream: #fff; --esl-cream-2: #fff; --esl-line: #000; background-image: none; background-color: #fff; }
html.esl-contrast body.esl .site-header { background: #fff; border-bottom: 3px solid #000; }
html.esl-contrast body.esl .esl-hero { color: #000; text-shadow: none; padding: 56px 24px; }
html.esl-contrast body.esl .esl-hero__title { color: #000; }
html.esl-contrast body.esl .esl-hero .esl-btn--ghost { color: #000 !important; border-color: #000; }
html.esl-contrast body.esl .inside-article,
html.esl-contrast body.esl .esl-section,
html.esl-contrast body.esl .esl-card,
html.esl-contrast body.esl .esl-topic { border: 2px solid #000; box-shadow: none; }
html.esl-contrast body.esl a { text-decoration: underline !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.esl-topics { grid-template-columns: repeat(2, 1fr); }
	.esl-grid--feature { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	body.esl-has-bg { background-image: linear-gradient(var(--esl-shade, transparent), var(--esl-shade, transparent)), var(--esl-bg-small, var(--esl-bg)); background-attachment: scroll; background-size: 100% auto; background-color: #e8dccf; }
	body.esl-has-bg .esl-hero {
		background: linear-gradient(180deg, rgba(62,37,71,.5), rgba(62,37,71,.3)), var(--esl-bg-small, var(--esl-bg)) center 35% / cover no-repeat;
		border-radius: 18px; margin: 20px 0 24px;
	}
	html.esl-contrast body.esl .esl-hero { background: #fff; }
}
@media (max-width: 768px) {
	body.esl { --esl-size: 18px; }
	html.esl-size-l body.esl { --esl-size: 20.5px; }
	html.esl-size-xl body.esl { --esl-size: 23px; }
	body.esl.separate-containers .inside-article { padding: 26px 22px; }
	.esl-hero { padding: 64px 18px 70px; }
	.esl-section { padding: 28px 20px; border-radius: 16px; }
	.esl-topics, .esl-grid--3, .esl-grid--feature { grid-template-columns: 1fr; }
	.esl-grid--feature .esl-card--lead { grid-column: auto; grid-row: auto; }
	.esl-card--lead .esl-card__img { min-height: 0; aspect-ratio: 16 / 10; }
	.esl-promise { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
	.esl-author { flex-direction: column; }
	.esl-access__inner { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.esl-card, .esl-topic, .esl-btn { transition: none; }
}
