/* Compact WordPress Popular Posts cards. */
.wpp-mini { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wpp-mini .wpp-item { margin: 0; padding: 0 !important; border-bottom: 0 !important; }
.wpp-mini .wpp-item:last-child { padding-bottom: 10px !important; }
.wpp-mini .wpp-card { position: relative; display: block; overflow: hidden; width: 100%; height: 92px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.wpp-mini .wpp-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.wpp-mini .wpp-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.wpp-mini .wpp-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6) 100%); }
.wpp-mini .wpp-title { position: absolute; right: 10px; bottom: 8px; left: 10px; display: -webkit-box; overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wpp-mini .wpp-badge { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 999px; background: #2d5bff; color: #fff; font-size: 10px; font-weight: 600; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); }

/* Reader support links. */
.bmc-support { margin: 3rem 0 2rem; text-align: left; opacity: 0.9; font-size: 0.95rem; }
.support-text { display: block; margin-bottom: 15px; }
.bmc-support a { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); transition: 0.2s; }
.bmc-support a:hover { border-color: rgba(0, 0, 0, 0.4); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.post-13 .bmc-support, .post-2055 .bmc-support { margin-bottom: 10px; text-align: center; font-size: 16px; }
.bmc-support-sidebar { padding: 15px; }
.bmc-support-sidebar .bmc-sidebar-text { display: block; margin-bottom: 15px; }
.bmc-support-sidebar a { display: block; margin-bottom: 8px; }

/* Journey cards. */
.journey-cards { margin: 2rem 0; padding: 1.25rem 1.25rem 1.5rem; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px; background: #fff; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 30px; }
.journey-card { position: relative; display: flex; flex-direction: column; gap: 0.6rem; min-height: 190px; padding: 1rem; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 14px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0)); color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.journey-card:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, 0.14); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1); }
.journey-card:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 3px; }
.journey-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.journey-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.55rem; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.65); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2px; backdrop-filter: blur(6px); }
.journey-card__title { margin: 0.1rem 0 0; font-size: 1.05rem; line-height: 1.2; }
.journey-card__desc { flex: 1; margin: 0; color: rgba(0, 0, 0, 0.72); line-height: 1.5; }
.journey-card__cta { align-self: flex-start; font-size: 0.95rem; font-weight: 800; }
.journey-card--bipolar { border-left: 3px solid #2563eb; }
.journey-card--gifted { border-left: 3px solid #cea2b0; }
.journey-card--autism { border-left: 3px solid #16a34a; }
.journey-card.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; filter: grayscale(0.15); }

@media (max-width: 920px) {
	.journey-grid { grid-template-columns: 1fr; }
}

/* Easy Table of Contents. */
#ez-toc-container { padding: 16px; border: 1px solid #e6e8ec; border-radius: 12px; background: #f8f9fb; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05); }
#ez-toc-container .ez-toc-js-icon-con, #ez-toc-container .ez-toc-toggle label { border: 1px solid #e3e6eb; background: #fafbfc; }

/* wpDiscuz quotes. */
#wpdcom .wpd-comment-text blockquote { min-height: 50px; }

/* Fixed Polylang language switcher. */
#lang-switcher-top { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; align-items: center; gap: 1rem; padding: 0.3rem 0.8rem; border-radius: 25px; background: #fff; opacity: 0.75; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); transition: opacity 0.2s ease; }
#lang-switcher-top:hover { opacity: 1; }
#lang-switcher-top ul { display: flex; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
#lang-switcher-top li { margin: 0; padding: 0; list-style-type: none; }
#lang-switcher-top a { display: inline-flex; align-items: center; }
#lang-switcher-top img { display: block; width: 20px; height: auto; }
#lang-switcher-top li.current-lang { padding: 2px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.08); }
#lang-switcher-top li.current-lang a { opacity: 1; cursor: default; pointer-events: none; }
#lang-switcher-top li:not(.current-lang) a { opacity: 0.6; transition: opacity 0.2s ease; }
#lang-switcher-top li:not(.current-lang):hover a { opacity: 1; }
body.admin-bar #lang-switcher-top { top: calc(1rem + 32px); }

@media screen and (max-width: 782px) {
	body.admin-bar #lang-switcher-top { top: calc(1rem + 46px); }
}

/* Generic editorial helpers. */
.spaced-title { margin-top: 35px; }
.post-modified-info { margin: 15px 0 25px; padding: 6px 12px; border-left: 3px solid #4caf50; border-radius: 4px; background: #f5f5f5; color: #666; font-size: 0.85rem; }

/* Lightweight replacement for the About Me sidebar widget. */
.about-profile-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-align: center;
}

.about-profile-card__avatar {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
}

.about-profile-card__avatar img {
	display: block;
	width: 100px !important;
	height: 100px !important;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: none;
}

.about-profile-card__title {
	margin: 0 0 6px;
	color: var(--head-color, #374151);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.about-profile-card__description {
	max-width: 30rem;
	margin: 0;
	color: var(--text-color, #4b5563);
	font-size: 1rem;
	line-height: 1.75;
}

.about-profile-card__link {
	align-self: center;
	margin-top: 6px;
	margin-bottom: 14px;
	color: #0025ff !important;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none !important;
}

.about-profile-card__link:hover,
.about-profile-card__link:focus,
.about-profile-card__link:active {
	color: #001dcc !important;
	text-decoration: underline !important;
}

.about-profile-card__link:focus-visible {
	outline: 3px solid rgba(0, 37, 255, 0.3);
	outline-offset: 3px;
}

.widget_custom_html:has(.about-profile-card) {
	container-type: inline-size;
}

@container (min-width: 450px) {
	.about-profile-card {
		display: grid;
		grid-template-columns: 100px minmax(0, 1fr);
		grid-template-areas:
			"avatar title"
			"avatar description"
			"avatar link";
		column-gap: 24px;
		align-items: start;
		align-content: center;
		box-sizing: border-box;
		padding: 8px 4px;
		text-align: left;
	}

	.about-profile-card__avatar {
		grid-area: avatar;
		align-self: center;
		margin: 0;
	}

	.about-profile-card__title {
		grid-area: title;
		margin-bottom: 4px;
	}

	.about-profile-card__description {
		grid-area: description;
		max-width: none;
		line-height: 1.6;
	}

	.about-profile-card__link {
		grid-area: link;
		justify-self: start;
		align-self: start;
		margin-top: 4px;
		margin-bottom: 0;
	}
}

@media (max-width: 480px) {
	.about-profile-card__avatar,
	.about-profile-card__avatar img {
		width: 92px !important;
		height: 92px !important;
	}

	.about-profile-card__description {
		font-size: 0.95rem;
	}
}
