/* CreBirds Ai Companion — product cards, buttons and tables.
   Colours come from the site's brand settings (set from the CreBirds Ai admin). */

:root {
	--ae-primary: #e8833a;
	--ae-dark: #1f2a44;
	--ae-on-primary: #111111;
	--ae-on-dark: #ffffff;
	--ae-surface: #f4f5f7;
	--ae-border: #e3e5e9;
	--ae-text: inherit;
	--ae-muted: #5f6672;
	--ae-good: #1f7a4d;
	--ae-bad: #b3412e;
	--ae-radius: 10px;
}

.ae-disclosure {
	font-size: 0.85em;
	color: var(--ae-muted);
	border-left: 3px solid var(--ae-border);
	padding-left: 12px;
}

/* Number badge, used in pick headings and the comparison table */
.ae-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 0.3em;
	margin-right: 0.35em;
	border-radius: 6px;
	background: var(--ae-primary);
	color: var(--ae-on-primary);
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1;
	vertical-align: 0.12em;
}

.ae-pick-heading { scroll-margin-top: 90px; }

/* Card: label, image on a soft studio background, buttons */
.ae-card {
	margin: 0.75em 0 1.5em;
}

.ae-card__label {
	display: inline-block;
	margin-bottom: 0.6em;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ae-dark);
}

.ae-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ae-surface);
	border-radius: var(--ae-radius);
	padding: 28px;
	margin-bottom: 12px;
}

.ae-card__img {
	display: block;
	max-width: 100%;
	max-height: 320px;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.ae-card__name {
	font-weight: 700;
	margin-bottom: 0.4em;
}

.ae-card--inline {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	align-items: start;
}

.ae-card--inline .ae-card__media { padding: 12px; margin: 0; }
.ae-card--inline .ae-card__img { max-height: 120px; }
.ae-card--inline p { margin: 0 0 0.6em; }

/* Buttons: side by side, full width; stacked on small screens */
.ae-buttons {
	display: flex;
	gap: 10px;
	margin: 0;
}

.ae-btn,
.ae-btn:visited {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 46px;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.ae-btn::after {
	content: "\2192";
	font-weight: 400;
}

.ae-btn:hover { filter: brightness(1.08); }
.ae-btn:active { transform: translateY(1px); }
.ae-btn:focus-visible { outline: 3px solid var(--ae-dark); outline-offset: 2px; }

.ae-btn--primary, .ae-btn--primary:visited, .ae-btn--primary:hover { background: var(--ae-primary); color: var(--ae-on-primary) !important; }
.ae-btn--dark, .ae-btn--dark:visited, .ae-btn--dark:hover { background: var(--ae-dark); color: var(--ae-on-dark) !important; }

.ae-buttons--compact .ae-btn { min-height: 38px; padding: 8px 12px; font-size: 0.85em; white-space: nowrap; }

@media (max-width: 600px) {
	.ae-buttons { flex-direction: column; }
	.ae-card--inline { grid-template-columns: 1fr; }
}

/* Pros and cons */
.ae-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 1em 0 1.25em;
}

.ae-pros, .ae-cons {
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius);
	padding: 14px 16px;
}

.ae-proscons__title {
	font-weight: 700;
	margin-bottom: 0.4em;
}

.ae-pros .ae-proscons__title { color: var(--ae-good); }
.ae-cons .ae-proscons__title { color: var(--ae-bad); }

.ae-proscons ul { margin: 0; padding-left: 1.1em; }
.ae-proscons li { margin: 0.25em 0; }

@media (max-width: 600px) {
	.ae-proscons { grid-template-columns: 1fr; }
}

/* Tables */
.ae-table-wrap {
	overflow-x: auto;
	margin: 1em 0 1.5em;
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius);
}

.ae-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95em;
}

.ae-table th, .ae-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--ae-border);
	text-align: left;
	vertical-align: middle;
}

.ae-table tr:last-child th, .ae-table tr:last-child td { border-bottom: 0; }
.ae-table thead th { background: var(--ae-surface); font-size: 0.85em; color: var(--ae-muted); }
.ae-table--specs tbody th { width: 34%; font-weight: 600; }

.ae-table__num { width: 1%; }
.ae-table__img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.ae-table__name { display: block; font-weight: 700; text-decoration: none; color: inherit; }
.ae-table__label { display: block; font-size: 0.85em; color: var(--ae-muted); }
.ae-table--picks td:last-child { width: 1%; min-width: 180px; }
.ae-table--picks .ae-buttons { flex-direction: column; gap: 6px; }

@media (max-width: 600px) {
	.ae-table--picks td:nth-child(2) { display: none; }
}

/* Spec dropdown under each pick */
.ae-specs {
	margin: 0 0 1.5em;
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius);
	padding: 0 14px;
}

.ae-specs summary {
	cursor: pointer;
	padding: 10px 0;
	font-weight: 600;
}

.ae-specs .ae-table { margin-bottom: 10px; }
.ae-table--compact th, .ae-table--compact td { padding: 6px 0; }
.ae-table--compact th { width: 40%; font-weight: 600; }

/* Versus */
.ae-versus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 1em 0 1.5em;
}

.ae-versus .ae-card { margin: 0; }

@media (max-width: 600px) {
	.ae-versus { grid-template-columns: 1fr; }
}

.ae-winner { color: var(--ae-dark); }

.ae-card__fit{font-size:13px;color:#4b5563;margin:-4px 0 10px;}
.ae-card__fit::before{content:"\2713  ";color:#15803d;}

/* Pick card (Best X lists): one card per pick */
.ae-pick {
	margin: 2em 0 1.25em;
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius);
	overflow: hidden;
}

.ae-pick__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--ae-border);
}

.ae-pick__top .ae-card__label { margin: 0; }

.ae-pick__count {
	font-size: 0.8em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ae-muted);
}

.ae-pick__body {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding: 20px;
}

.ae-pick__media {
	flex: 1 1 220px;
	max-width: 300px;
	margin: 0;
	align-self: flex-start;
}

.ae-pick__main {
	flex: 999 1 300px;
	min-width: 0;
}

.ae-pick__name {
	margin: 0 0 0.4em;
	scroll-margin-top: 90px;
}

.ae-pick__who { margin: 0.6em 0; }
.ae-pick__verdict p { margin: 0 0 0.6em; }
.ae-pick .ae-proscons { margin: 0.8em 0 0; }

.ae-pick__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px 20px;
	padding: 14px 20px;
	border-top: 1px solid var(--ae-border);
	background: var(--ae-surface);
}

.ae-pick__specs {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 0.85em;
}

.ae-pick__k { color: var(--ae-muted); }

.ae-pick__foot .ae-buttons { flex: 0 0 auto; }

/* Cheaper option under a pick's review */
.ae-alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 1em 0 2em;
	padding: 12px 16px;
	background: var(--ae-surface);
	border-radius: var(--ae-radius);
}
.ae-alt__label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ae-good);
}
.ae-alt .ae-buttons { margin: 0 0 0 auto; }

.ae-alt--up .ae-alt__label { color: var(--ae-primary); }


/* Headings in articles: the same gap above a section as above a pick card, not the theme's larger one. */
.ae-h { margin-top: 2em !important; margin-bottom: 0.6em !important; }
h3.ae-h { margin-top: 1.5em !important; }
.ae-h + p { margin-top: 0 !important; }
