/*
 * Elarisa blog – front page + sidebar (loaded by mu-plugins/elarisa-blog-ui.php).
 * Uses the tokens from article.css (--eb-accent etc.). Added 2026-12-05.
 */

/* ================================================================ front page hero */
body.eb-front .fusion-page-title-bar { display: none; }
body.eb-front #main { padding-top: 40px; }

.eb-hero {
	position: relative;
	color: #fff;
	background: #1d1d1f var(--eb-hero-bg) center 40% / cover no-repeat;
	isolation: isolate;
}
.eb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(17, 17, 19, .88) 0%, rgba(17, 17, 19, .72) 45%, rgba(17, 17, 19, .25) 100%);
}
.eb-hero__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 64px 30px 56px;
}
.eb-hero__kicker {
	margin: 0 0 .5rem;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--eb-accent);
}
#wrapper .eb-hero h1.eb-hero__title {
	margin: 0 0 .75rem;
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #fff;
}
.eb-hero__page { font-weight: 400; font-size: .5em; color: rgba(255, 255, 255, .75); }
.eb-hero__lead {
	max-width: 38rem;
	margin: 0 0 1.5rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}
.eb-hero__search {
	display: flex;
	max-width: 34rem;
	background: #fff;
	border-radius: 999px;
	padding: 5px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
#wrapper .eb-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 46px;
	border: 0;
	background: transparent;
	padding: 0 18px;
	font-size: 1rem;
	color: #1a1a1a;
	box-shadow: none;
}
.eb-hero__search input[type="search"]:focus { outline: none; }
.eb-hero__search:focus-within { box-shadow: 0 0 0 3px rgba(243, 124, 32, .55), 0 10px 30px rgba(0, 0, 0, .25); }
#wrapper .eb-hero__search button {
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--eb-accent);
	color: #fff;
	font-weight: 600;
	font-size: .9375rem;
	cursor: pointer;
	transition: background .15s;
}
#wrapper .eb-hero__search button:hover { background: var(--eb-accent-dark); }
.eb-hero__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1.25rem;
}
#wrapper .eb-hero__topics a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	font-size: .875rem;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	backdrop-filter: blur(2px);
	transition: background .15s, border-color .15s;
}
#wrapper .eb-hero__topics a:hover { background: var(--eb-accent); border-color: var(--eb-accent); }

/* ================================================================ section heads */
.eb-section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
}
.eb-section-head::after { content: ""; flex: 1; height: 1px; background: var(--eb-border); }
#wrapper .eb-home h2.eb-section-title {
	margin: 0;
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--eb-muted);
}
.eb-card--featured + .eb-section-head { margin-top: 44px; }

/* ================================================================ cards */
.eb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--eb-border);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.eb-card:hover {
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(17, 24, 39, .12);
	transform: translateY(-2px);
}
.eb-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--eb-soft);
	overflow: hidden;
}
.eb-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.eb-card:hover .eb-card__media img { transform: scale(1.04); }
.eb-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #fde3cf, #f37c20);
}
.eb-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 18px 20px 20px;
}
#wrapper .eb-chip {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff1e6;
	color: var(--eb-accent-dark);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.5;
}
#wrapper .eb-chip:hover { background: var(--eb-accent); color: #fff; }
#wrapper .eb-home h2.eb-card__title {
	margin: 0;
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -.005em;
}
#wrapper .eb-card__title a { color: #1a1a1a; }
#wrapper .eb-card__title a:hover { color: var(--eb-accent-dark); }
.eb-card__excerpt {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: #4b5563;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eb-card__meta {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: .8125rem;
	color: var(--eb-muted);
}

/* featured */
.eb-card--featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.eb-card--featured .eb-card__media { aspect-ratio: auto; min-height: 320px; }
.eb-card--featured .eb-card__body { padding: 28px 30px; justify-content: center; gap: 14px; }
#wrapper .eb-home .eb-card--featured h2.eb-card__title { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); line-height: 1.25; }
.eb-card--featured .eb-card__excerpt { font-size: 1rem; -webkit-line-clamp: 5; }
.eb-card--featured .eb-card__meta { margin-top: 4px; }

/* grid */
.eb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

/* pagination */
.eb-pagination { margin: 40px 0 10px; }
#wrapper .eb-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#wrapper .eb-pagination li > .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--eb-border);
	border-radius: 10px;
	color: #1a1a1a;
	font-size: .9375rem;
	background: #fff;
}
#wrapper .eb-pagination li > a.page-numbers:hover { border-color: var(--eb-accent); color: var(--eb-accent-dark); }
#wrapper .eb-pagination li > .page-numbers.current { background: var(--eb-accent); border-color: var(--eb-accent); color: #fff; font-weight: 600; }
#wrapper .eb-pagination li > .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }

/* ================================================================ sidebar */
#sidebar .widget {
	background: #fff;
	border: 1px solid var(--eb-border);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 24px;
}
#wrapper #sidebar .widget .widget-title,
#wrapper #sidebar .widget .heading h4 {
	margin: 0 0 14px;
	padding: 0;
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #1a1a1a;
	border: 0;
}
#sidebar .widget .heading { border: 0; margin: 0; padding: 0; }

/* search */
#sidebar .widget_search { padding: 14px; }
#sidebar .widget_search .searchform .fusion-search-form-content { display: flex; }
#wrapper #sidebar .widget_search input.s {
	height: 44px;
	border: 1px solid var(--eb-border);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	padding: 0 14px;
	font-size: .9375rem;
	background: var(--eb-soft);
	color: #1a1a1a;
}
#wrapper #sidebar .widget_search input.s:focus { background: #fff; border-color: var(--eb-accent); }
#wrapper #sidebar .widget_search .fusion-search-button input[type="submit"],
#wrapper #sidebar .widget_search .fusion-search-submit {
	height: 44px;
	width: 48px;
	border-radius: 0 10px 10px 0;
	background-color: var(--eb-accent);
}

/* categories */
#sidebar .widget_categories ul { margin: 0; padding: 0; list-style: none; }
#wrapper #sidebar .widget_categories li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
#wrapper #sidebar .widget_categories li::before,
#wrapper #sidebar .widget_categories li a::before { display: none; content: none; }
#wrapper #sidebar .widget_categories li a {
	display: block;
	padding: 7px 44px 7px 10px;
	margin: 0 -10px;
	border-radius: 8px;
	color: #374151;
	font-size: .9375rem;
	line-height: 1.4;
	position: relative;
}
#sidebar .widget_categories li { position: relative; }
#wrapper #sidebar .widget_categories li a:hover,
#wrapper #sidebar .widget_categories li.current-cat > a {
	background: #fff1e6;
	color: var(--eb-accent-dark);
}
#wrapper #sidebar .widget_categories li.current-cat > a { font-weight: 600; }
#sidebar .widget_categories .eb-count {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	min-width: 26px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--eb-soft);
	color: var(--eb-muted);
	font-size: .75rem;
	text-align: center;
	pointer-events: none;
}
#wrapper #sidebar .eb-cats__filter {
	width: 100%;
	height: 38px;
	margin: 0 0 10px;
	padding: 0 12px;
	border: 1px solid var(--eb-border);
	border-radius: 8px;
	background: var(--eb-soft);
	font-size: .875rem;
	color: #1a1a1a;
}
#wrapper #sidebar .eb-cats__filter:focus { outline: none; border-color: var(--eb-accent); background: #fff; }
#sidebar .eb-cats.is-collapsed:not(.is-filtering) ul > li:nth-child(n+13) { display: none; }
#sidebar .eb-cats.is-filtering .eb-cats__toggle { display: none; }
#wrapper #sidebar .eb-cats__toggle {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 10px;
	border: 1px dashed #f5b585;
	border-radius: 10px;
	background: none;
	color: var(--eb-accent-dark);
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}
#wrapper #sidebar .eb-cats__toggle:hover { background: #fff1e6; border-style: solid; }

/* call to action */
#sidebar .widget.eb-cta {
	padding: 0;
	border: 0;
	overflow: hidden;
	background: linear-gradient(140deg, #f37c20 0%, #d9600a 100%);
	color: #fff;
}
.eb-cta__inner { padding: 24px 22px; }
.eb-cta__kicker {
	margin: 0 0 6px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .85;
}
.eb-cta__title {
	margin: 0 0 16px;
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}
#wrapper .eb-cta__btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	color: #c4560a;
	font-size: .875rem;
	font-weight: 700;
}
#wrapper .eb-cta__btn:hover { background: #1a1a1a; color: #fff; }

/* ================================================================ responsive */
@media (max-width: 1100px) {
	.eb-card--featured { grid-template-columns: 1fr; }
	.eb-card--featured .eb-card__media { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 800px) {
	.eb-hero__inner { padding: 40px 20px 36px; }
	.eb-hero__lead { font-size: 1rem; }
	#wrapper .eb-hero__search button { padding: 0 16px; }
	.eb-hero__topics { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
	.eb-hero__topics::-webkit-scrollbar { display: none; }
	#wrapper .eb-hero__topics a { white-space: nowrap; }
	body.eb-front #main { padding-top: 28px; }
	.eb-grid { grid-template-columns: 1fr; gap: 18px; }
	.eb-card--featured .eb-card__body { padding: 20px; }
	#sidebar { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.eb-card, .eb-card__media img { transition: none; }
	.eb-card:hover { transform: none; }
	.eb-card:hover .eb-card__media img { transform: none; }
}

/* ================================================================ archives (category/tag/author/date) */
body.eb-archive #main { padding-top: 36px; }
.eb-archive-head {
	background: linear-gradient(180deg, #fff7f0 0%, #fff 100%);
	border-bottom: 1px solid var(--eb-border);
}
.eb-archive-head__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 36px 30px 30px;
}
.eb-archive-head__kicker {
	margin: 0 0 6px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--eb-accent-dark);
}
#wrapper .eb-archive-head h1.eb-archive-head__title {
	margin: 0;
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.015em;
	color: #1a1a1a;
}
.eb-archive-head__page { font-weight: 400; font-size: .55em; color: var(--eb-muted); }
.eb-archive-head__count {
	display: inline-block;
	margin: 12px 0 0;
	padding: 3px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--eb-border);
	font-size: .8125rem;
	color: var(--eb-muted);
}
.eb-archive-head__desc { max-width: 46rem; margin-top: 12px; font-size: 1rem; line-height: 1.6; color: #4b5563; }
.eb-archive-head__desc p:last-child { margin-bottom: 0; }
.eb-empty { font-size: 1rem; color: var(--eb-muted); }
.eb-archive-list .eb-pagination { margin-top: 36px; }
@media (max-width: 800px) {
	.eb-archive-head__inner { padding: 24px 20px 22px; }
	body.eb-archive #main { padding-top: 24px; }
}

/* Expanded / filtered category list scrolls inside its card, so the sticky sidebar
   never grows taller than the screen (the end of the list was unreachable). */
#sidebar .eb-cats:not(.is-collapsed) ul,
#sidebar .eb-cats.is-filtering ul {
	max-height: min(56vh, 520px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-right: -10px;
	padding-right: 10px;
	scrollbar-width: thin;
	scrollbar-color: #f5b585 transparent;
}
#sidebar .eb-cats ul::-webkit-scrollbar { width: 6px; }
#sidebar .eb-cats ul::-webkit-scrollbar-thumb { background: #f5b585; border-radius: 6px; }
#sidebar .eb-cats:not(.is-collapsed) ul { box-shadow: inset 0 -12px 10px -12px rgba(0, 0, 0, .18); }
#wrapper #sidebar .widget_categories li a { margin: 0; }
@media (max-width: 800px) {
	#sidebar .eb-cats:not(.is-collapsed) ul,
	#sidebar .eb-cats.is-filtering ul { max-height: 60vh; }
}

/* Footer links: readable contrast instead of the thin light-grey widget text */
#wrapper .fusion-footer p.elarisa-footer-links { font-weight: 400 !important; color: #9ca3af; line-height: 1.9; }
#wrapper .fusion-footer p.elarisa-footer-links a { color: #4b5563; font-weight: 400; text-decoration: none; padding: 2px 4px; }
#wrapper .fusion-footer p.elarisa-footer-links a:hover { color: var(--eb-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
