/**
 * WL2P Editorial: boxes and notes on guides, opinion and reviews.
 * Colours match the WeLearn2Profit palette. Text contrast is at least 4.5:1.
 */

.wl2pe-label,
.wl2pe-byline,
.wl2pe-how-made,
.wl2pe-small {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #4a5563;
}

.wl2pe-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.wl2pe-chip {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.6;
}

.wl2pe-chip-guide { background: #eaf4f3; color: #0b6e6e; }
.wl2pe-chip-opinion { background: #fff4dc; color: #7a4e00; }
.wl2pe-chip-review { background: #f5b841; color: #18212b; }
.wl2pe-chip-sponsored { background: #18212b; color: #ffffff; }

.wl2pe-label-extra a,
.wl2pe-byline a {
	font-weight: 700;
}

.wl2pe-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.wl2pe-updated,
.wl2pe-interest {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.wl2pe-updated { background: #f5f7f8; }
.wl2pe-updated .wl2pe-icon { color: #0b6e6e; margin-top: 2px; }
.wl2pe-interest { background: #fff4dc; color: #3d2a00; }
.wl2pe-interest .wl2pe-icon { color: #7a4e00; margin-top: 2px; }
.wl2pe-updated p,
.wl2pe-interest p { margin: 0; }

.wl2pe-in-short,
.wl2pe-facts,
.wl2pe-verdict,
.wl2pe-scores,
.wl2pe-checklist,
.wl2pe-comparison,
.wl2pe-sources,
.wl2pe-history,
.wl2pe-author-box,
.wl2pe-criteria {
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
}

.wl2pe-verdict-title {
	flex: 1 1 100%;
}

.wl2pe-in-short h2,
.wl2pe-facts h2,
.wl2pe-checklist h2,
.wl2pe-pros-cons h2,
.wl2pe-verdict-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.3;
}

.wl2pe-in-short {
	padding: 20px 22px;
	border-radius: 14px;
	background: #eaf4f3;
}

.wl2pe-in-short p {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.6;
}

.wl2pe-facts,
.wl2pe-checklist {
	padding: 20px 22px;
	border: 1px solid #e3e6ea;
	border-radius: 14px;
}

.wl2pe-facts dl,
.wl2pe-checklist dl,
.wl2pe-verdict dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 24px;
	margin: 10px 0 0;
}

.wl2pe-facts dt,
.wl2pe-checklist dt,
.wl2pe-verdict dt {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #4a5563;
}

.wl2pe-facts dd,
.wl2pe-checklist dd,
.wl2pe-verdict dd {
	margin: 2px 0 0;
	font-weight: 700;
}

.wl2pe-disclosure {
	padding: 14px 18px;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	background: #f5f7f8;
	font-size: 0.95rem;
	line-height: 1.6;
}

.wl2pe-disclosure p { margin: 0; }

.wl2pe-verdict {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	padding: 22px;
	border: 2px solid #18212b;
	border-radius: 16px;
}

.wl2pe-overall {
	flex: 1 1 170px;
	align-self: flex-start;
	padding: 16px;
	border-radius: 12px;
	background: #eaf4f3;
}

.wl2pe-overall h2 {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0b6e6e;
}

.wl2pe-overall-score {
	margin: 4px 0;
	font-size: 2.75rem;
	line-height: 1.1;
	font-weight: 800;
}

.wl2pe-overall-score span {
	font-size: 1.25rem;
	color: #4a5563;
}

.wl2pe-overall-note {
	margin: 0;
	font-size: 0.85rem;
	color: #2e3a46;
}

.wl2pe-verdict-body {
	flex: 2 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wl2pe-verdict-text {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.wl2pe-button {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 10px;
	background: #0b6e6e;
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.wl2pe-button:hover,
.wl2pe-button:focus-visible {
	background: #085656;
}

.wl2pe-score-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid #e3e6ea;
	border-radius: 14px;
}

.wl2pe-score-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	padding: 14px 18px;
	border-bottom: 1px solid #e3e6ea;
}

.wl2pe-score-list li:last-child { border-bottom: 0; }

.wl2pe-score-name {
	flex: 1 1 180px;
	font-weight: 800;
}

.wl2pe-score-value {
	flex: none;
	min-width: 56px;
	font-weight: 800;
	text-align: right;
}

.wl2pe-score-reason {
	flex: 1 1 100%;
	font-size: 0.95rem;
	color: #4a5563;
}

.wl2pe-meter {
	display: inline-flex;
	gap: 4px;
}

.wl2pe-seg {
	width: 22px;
	height: 10px;
	border-radius: 3px;
	border: 1px solid #8a96a3;
	background: #ffffff;
}

.wl2pe-seg.is-full {
	border-color: #0b6e6e;
	background: #0b6e6e;
}

.wl2pe-seg.is-half {
	border-color: #0b6e6e;
	background: linear-gradient(90deg, #0b6e6e 50%, #ffffff 50%);
}

.wl2pe-pros-cons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 1.75rem 0;
}

.wl2pe-pros,
.wl2pe-cons {
	flex: 1 1 260px;
	min-width: 0;
	padding: 18px 20px;
	border-radius: 14px;
}

.wl2pe-pros { background: #eaf4f3; }
.wl2pe-cons { background: #fff4dc; }
.wl2pe-pros .wl2pe-icon { color: #0b6e6e; }
.wl2pe-cons .wl2pe-icon { color: #7a4e00; }

.wl2pe-pros ul,
.wl2pe-cons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wl2pe-pros li,
.wl2pe-cons li {
	display: flex;
	gap: 10px;
	margin: 6px 0;
}

.wl2pe-pros li .wl2pe-icon,
.wl2pe-cons li .wl2pe-icon { margin-top: 4px; }

.wl2pe-table-wrap {
	overflow-x: auto;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
}

.wl2pe-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.wl2pe-table th,
.wl2pe-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e3e6ea;
	text-align: left;
	white-space: nowrap;
}

.wl2pe-table thead th {
	background: #f5f7f8;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wl2pe-sources ul {
	padding-left: 1.2em;
}

.wl2pe-history ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wl2pe-history li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	padding: 8px 0;
	border-bottom: 1px solid #e3e6ea;
}

.wl2pe-history-date {
	min-width: 130px;
	font-weight: 700;
}

.wl2pe-tag {
	padding: 0 8px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.8;
}

.wl2pe-tag-update { background: #eaf4f3; color: #0b6e6e; }
.wl2pe-tag-correction { background: #fff4dc; color: #7a4e00; }

.wl2pe-legal,
.wl2pe-end-note {
	font-size: 0.95rem;
	line-height: 1.6;
	padding: 14px 18px;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	background: #f5f7f8;
}

.wl2pe-legal { font-weight: 700; }

.wl2pe-author-line {
	display: flex;
	align-items: center;
	gap: 14px;
}

.wl2pe-author-line p,
.wl2pe-author-box p {
	margin: 0;
}

.wl2pe-author-name { font-weight: 800; }

.wl2pe-author-meta {
	font-size: 0.9rem;
	color: #4a5563;
}

.wl2pe-avatar {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	object-fit: cover;
}

.wl2pe-avatar-lg {
	width: 64px;
	height: 64px;
}

.wl2pe-avatar-empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e3e6ea;
	color: #4a5563;
}

.wl2pe-author-box {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding: 20px 22px;
	border: 1px solid #e3e6ea;
	border-radius: 14px;
}

.wl2pe-author-box > div {
	flex: 1 1 260px;
	min-width: 0;
}

.wl2pe-author-bio,
.wl2pe-author-links {
	margin-top: 8px !important;
	font-size: 0.95rem;
}

.wl2pe-criteria {
	padding: 18px 20px;
	border-radius: 14px;
	background: #f5f7f8;
}

.wl2pe-criteria h2 {
	margin-top: 0;
	font-size: 1.1rem;
}

/* Page heading and breadcrumbs (themes that leave them to the plugin) */
.wl2pe-breadcrumbs {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #4a5563;
}

.wl2pe-breadcrumbs a {
	color: #0b6e6e;
}

.wl2pe-title {
	margin: 0.25rem 0 0.75rem;
	font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/* Cards */
.wl2pe-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 20px;
}

.wl2pe-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	height: 100%;
	padding: 20px;
	border: 1px solid #e3e6ea;
	border-radius: 14px;
	background: #ffffff;
}

.wl2pe-card > * {
	margin: 0;
}

.wl2pe-card-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
}

.wl2pe-card-format {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #4a5563;
}

.wl2pe-chip-other { background: #e3e6ea; color: #18212b; }

.wl2pe-card-title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

.wl2pe-card-title a {
	color: #18212b;
	text-decoration: none;
}

.wl2pe-card-title a:hover,
.wl2pe-card-title a:focus-visible {
	color: #0b6e6e;
	text-decoration: underline;
}

.wl2pe-card-summary {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #4a5563;
}

.wl2pe-card-meta {
	margin-top: auto !important;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #4a5563;
}

.wl2pe-card-compact {
	padding: 14px 16px;
	gap: 6px;
}

.wl2pe-card-compact .wl2pe-card-title {
	font-size: 1rem;
}

/* Sections ("Latest pieces") */
.wl2pe-latest {
	margin: 0 0 3rem;
}

.wl2pe-latest-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 1.25rem;
}

.wl2pe-latest-head h2 {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

.wl2pe-latest-head p {
	margin: 6px 0 0;
	color: #4a5563;
}

.wl2pe-latest-more {
	font-weight: 700;
	color: #0b6e6e;
}

.wl2pe-latest-compact .wl2pe-cards {
	grid-template-columns: 1fr;
	gap: 12px;
}

.wl2pe-latest-compact .wl2pe-latest-head h2 {
	font-size: 1.1rem;
}

/* Listing page intro */
.wl2pe-intro {
	margin: 0 0 2rem;
}

.wl2pe-intro-title {
	margin: 0.25rem 0 0.5rem;
	font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.wl2pe-intro-text,
.wl2pe-intro-meta {
	max-width: 46rem;
	color: #2e3a46;
}

.wl2pe-intro-meta {
	font-weight: 700;
}

/* Topic links */
.wl2pe-topics {
	margin: 0 0 3rem;
}

.wl2pe-topics h2 {
	margin: 0 0 1rem;
	font-size: 1.75rem;
}

.wl2pe-topics ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wl2pe-topics a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #c9d1d9;
	border-radius: 999px;
	color: #18212b;
	font-weight: 700;
	text-decoration: none;
}

.wl2pe-topics a:hover,
.wl2pe-topics a:focus-visible {
	border-color: #0b6e6e;
	color: #0b6e6e;
}

/* Publisher note */
.wl2pe-publisher-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding: 28px 32px;
	border-radius: 16px;
	background: #f5f7f8;
}

.wl2pe-publisher-box > div {
	flex: 999 1 26rem;
	min-width: 0;
}

.wl2pe-publisher-box h2 {
	margin: 0;
	font-size: 1.35rem;
}

.wl2pe-publisher-box p {
	margin: 8px 0 0;
	color: #2e3a46;
}

.wl2pe-publisher-list {
	flex: 1 1 14rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wl2pe-publisher-list a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	font-weight: 700;
	color: #0b6e6e;
}

.wl2pe-publisher-footer p {
	margin: 0 0 6px;
}


/* Consistent sizes inside the boxes, whatever the theme's text size */
.wl2pe-facts dd,
.wl2pe-checklist dd,
.wl2pe-verdict dd,
.wl2pe-history li,
.wl2pe-sources li,
.wl2pe-pros li,
.wl2pe-cons li,
.wl2pe-score-list li,
.wl2pe-publisher-box p,
.wl2pe-publisher-list a,
.wl2pe-topics a,
.wl2pe-latest-head p,
.wl2pe-latest-more {
	font-size: 1rem;
}

.wl2pe-history li {
	align-items: center;
}

.wl2pe-latest {
	margin-bottom: 0;
	padding-bottom: 2.75rem;
}

.wl2pe-latest-compact .wl2pe-latest-more {
	font-size: 0.875rem;
}

.wl2pe-verdict {
	row-gap: 16px;
}

.wl2pe-verdict-body dl {
	margin-top: 0;
}
