/* ==========================================================================
   EduArt Reviews: front-end components
   Tokens are shared with the eduart-inkluze child theme.
   ========================================================================== */

:root {
	--ei-blue: #006fad;
	--ei-blue-dark: #005a8c;
	--ei-blue-darker: #00466e;
	--ei-blue-tint: #e6f1f8;
	--ei-blue-tint-2: #eef6fb;
	--ei-gold: #e8ac00;
	--ei-gold-tint: #fff4d6;
	--ei-gold-ink: #7a4f00;
	--ei-teal-tint: #e7f4f1;
	--ei-teal-ink: #0f6b5f;
	--ei-navy: #0e2a40;
	--ei-navy-2: #0e3a5a;
	--ei-ink: #14324a;
	--ei-ink-2: #1f3b52;
	--ei-muted: #3e566a;
	--ei-muted-2: #4a6072;
	--ei-line: #dce6ee;
	--ei-line-2: #c9dcea;
	--ei-bg: #f6f9fc;
	--ei-surface: #ffffff;
	--ei-radius: 20px;
	--ei-radius-sm: 12px;
	--ei-wrap: 1280px;
	--ei-shadow: 0 12px 32px rgba(14, 42, 64, 0.12);
}

.ei-wrap {
	max-width: var(--ei-wrap);
	margin-inline: auto;
	padding-inline: 32px;
	box-sizing: border-box;
}

.ei-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* ---------- Buttons, pills, chips ---------- */

.ei-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--ei-radius-sm);
	border: 2px solid transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.ei-btn--primary {
	background: var(--ei-blue);
	color: #fff;
}
.ei-btn--primary:hover,
.ei-btn--primary:focus-visible {
	background: var(--ei-blue-dark);
	color: #fff;
}
.ei-btn--ghost {
	background: var(--ei-surface);
	color: var(--ei-blue-dark);
	border-color: var(--ei-line-2);
}
.ei-btn--ghost:hover,
.ei-btn--ghost:focus-visible {
	border-color: var(--ei-blue);
	color: var(--ei-blue-darker);
	background: var(--ei-surface);
}

.ei-link {
	font-weight: 700;
	color: var(--ei-blue-dark);
	text-decoration: none;
	padding: 10px 4px;
}
.ei-link:hover {
	text-decoration: underline;
}

.ei-pill {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: var(--ei-muted);
}
.ei-pill--type {
	background: var(--ei-blue-tint);
	color: var(--ei-blue-dark);
	font-weight: 700;
}
.ei-pill--rel {
	font-weight: 700;
}
.ei-pill--rel-a {
	background: var(--ei-blue-dark);
	color: #fff;
}
.ei-pill--rel-b {
	background: var(--ei-blue-tint);
	color: var(--ei-blue-darker);
}
.ei-pill--rel-c {
	background: #f1f5f9;
	color: var(--ei-muted);
}

.ei-chip {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ei-blue-tint);
	color: var(--ei-blue-darker);
	text-decoration: none;
}
.ei-chip--gold {
	background: var(--ei-gold-tint);
	color: var(--ei-gold-ink);
}
.ei-chip--teal {
	background: var(--ei-teal-tint);
	color: var(--ei-teal-ink);
}
.ei-chip--gray {
	background: #eef2f6;
	color: var(--ei-muted);
}
.ei-chip:hover {
	text-decoration: underline;
	color: var(--ei-navy);
}

.ei-tag {
	display: inline-flex;
	font-size: 13px;
	line-height: 1.3;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--ei-line-2);
	color: #2f4a5e;
}

.ei-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ei-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	box-sizing: border-box;
}
.ei-badge[hidden] {
	display: none;
}

/* ---------- Search ---------- */

.ei-search {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--ei-surface);
	border: 2px solid var(--ei-line-2);
	border-radius: 16px;
	padding: 6px 6px 6px 16px;
	color: var(--ei-muted-2);
	box-sizing: border-box;
}
.ei-search:focus-within {
	border-color: var(--ei-blue);
}
.ei-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 17px;
	padding: 10px 0;
	color: var(--ei-ink);
	box-shadow: none;
}
.ei-search input[type="search"]::placeholder {
	color: #6a7f90;
}
.ei-search--hero {
	max-width: 620px;
}
.ei-search--hero .ei-btn {
	min-height: 48px;
	padding: 0 24px;
	font-size: 16px;
}
.ei-search--filter {
	flex: 1 1 380px;
	padding-right: 16px;
	background: var(--ei-bg);
}

/* ---------- Filter page ---------- */

.ei-filter__top {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 32px;
}

.ei-seg {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: #eef2f6;
}
.ei-seg label {
	position: relative;
	cursor: pointer;
}
.ei-seg input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.ei-seg span {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ei-muted);
	box-sizing: border-box;
}
.ei-seg input:checked + span {
	background: var(--ei-surface);
	color: var(--ei-blue-dark);
	box-shadow: 0 1px 3px rgba(14, 42, 64, 0.15);
}
.ei-seg input:focus-visible + span {
	outline: 3px solid var(--ei-gold);
	outline-offset: 1px;
}

.ei-filter__open {
	display: none;
}
.ei-filter__open .ei-badge {
	background: #fff;
	color: var(--ei-blue);
}

.ei-filter__body {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}
.ei-filter__panel {
	flex: 1 1 300px;
	max-width: 340px;
	min-width: 0;
}
.ei-filter__results {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ei-filter__panel-head,
.ei-filter__panel-foot {
	display: none;
}
.ei-filter__groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ei-filter__help {
	margin: 4px 6px 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ei-muted-2);
}

.ei-fgroup {
	background: var(--ei-surface);
	border: 1px solid var(--ei-line);
	border-radius: 18px;
	overflow: hidden;
}
.ei-fgroup summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	color: var(--ei-navy);
}
.ei-fgroup summary::-webkit-details-marker {
	display: none;
}
.ei-fgroup summary .ei-icon {
	color: var(--ei-muted-2);
	transition: transform 0.2s;
}
.ei-fgroup[open] summary .ei-icon {
	transform: rotate(180deg);
}
.ei-fgroup__icon {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: var(--ei-blue);
}
.ei-fgroup--gold .ei-fgroup__icon {
	background: var(--ei-gold);
}
.ei-fgroup--teal .ei-fgroup__icon {
	background: var(--ei-teal-ink);
}
.ei-fgroup--gray .ei-fgroup__icon {
	background: #8a9baa;
}
.ei-fgroup__text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.ei-fgroup__label {
	font-size: 17px;
	font-weight: 700;
}
.ei-fgroup__hint {
	font-size: 13px;
	color: var(--ei-muted-2);
}
.ei-fgroup__opts {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 10px 12px;
}

.ei-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 10px;
	cursor: pointer;
	color: var(--ei-ink);
	box-sizing: border-box;
}
.ei-opt:hover {
	background: var(--ei-bg);
}
.ei-opt input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--ei-blue);
	cursor: pointer;
}
.ei-opt:has(input:checked) {
	background: var(--ei-blue-tint-2);
}
.ei-opt__label {
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.35;
}
.ei-opt__count {
	min-width: 20px;
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	color: var(--ei-muted-2);
}
.ei-opt.is-empty {
	color: #8a9baa;
	cursor: default;
}
.ei-opt.is-empty:hover {
	background: transparent;
}
.ei-opt.is-empty .ei-opt__count {
	color: #8a9baa;
}

.ei-filter__status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.ei-filter__count {
	margin: 0;
	font-size: 17px;
}
.ei-filter__count strong {
	font-size: 20px;
}
.ei-filter__status [hidden] {
	display: none;
}

.ei-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ei-active:empty {
	display: none;
}
.ei-chip-active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 12px 6px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--ei-blue-tint);
	color: var(--ei-blue-darker);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.ei-chip-active .ei-icon {
	width: 14px;
	height: 14px;
}
.ei-chip-active:hover {
	background: #d7e9f4;
}

.ei-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: opacity 0.15s;
}
.ei-results[aria-busy="true"] {
	opacity: 0.55;
}

.ei-empty {
	background: var(--ei-surface);
	border: 1px dashed #9cc3dd;
	border-radius: var(--ei-radius);
	padding: 40px;
	text-align: center;
	color: var(--ei-muted);
}
.ei-empty p {
	margin: 0 0 6px;
}
.ei-empty__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--ei-navy);
}

/* No-JS: show the apply button, hide counts that would go stale. */
.ei-filter:not(.ei-js) .ei-filter__panel-foot {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

/* ---------- Review card ---------- */

.ei-card {
	background: var(--ei-surface);
	border: 1px solid var(--ei-line);
	border-radius: var(--ei-radius);
	padding: 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ei-card:hover {
	border-color: #b8d1e3;
	box-shadow: 0 6px 20px rgba(14, 42, 64, 0.07);
}
.ei-card__top {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.ei-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
}
.ei-card__title a {
	color: var(--ei-navy);
	text-decoration: none;
}
.ei-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.ei-card__title a:focus-visible {
	outline: none;
}
.ei-card:has(.ei-card__title a:focus-visible) {
	outline: 3px solid var(--ei-gold);
	outline-offset: 2px;
}
.ei-card__meta {
	margin: 0;
	font-size: 15px;
	color: var(--ei-muted-2);
}
.ei-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ei-jbi-mini {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ei-muted);
}
.ei-jbi-mini__bar {
	display: block;
	width: 64px;
	height: 8px;
	border-radius: 999px;
	background: #e3ebf2;
	overflow: hidden;
}
.ei-jbi-mini__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ei-blue);
}
.ei-jbi-mini strong {
	color: var(--ei-ink);
}

.ei-latest {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}
.ei-latest .ei-card__title {
	font-size: 19px;
}

/* ---------- Category landing ---------- */

.ei-cats--cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.ei-cat-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 168px;
	padding: 22px;
	background: var(--ei-surface);
	border: 1px solid var(--ei-line);
	border-radius: var(--ei-radius);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
a.ei-cat-card:hover {
	border-color: #b8d1e3;
	box-shadow: 0 6px 20px rgba(14, 42, 64, 0.07);
	color: inherit;
}
.ei-cat-card__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}
.ei-cat-card__name {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ei-navy);
}
.ei-cat-card__n {
	flex: none;
	font-size: 14px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ei-blue-tint);
	color: var(--ei-blue-dark);
}
.ei-cats--gold .ei-cat-card__n {
	background: var(--ei-gold-tint);
	color: var(--ei-gold-ink);
}
.ei-cats--teal .ei-cat-card__n {
	background: var(--ei-teal-tint);
	color: var(--ei-teal-ink);
}
.ei-cats--gray .ei-cat-card__n {
	background: #eef2f6;
	color: var(--ei-muted);
}
.ei-empty-inline {
	color: var(--ei-muted-2);
}
.ei-cat-card__desc {
	font-size: 15px;
	line-height: 1.5;
	color: var(--ei-muted);
}
.ei-cat-card__more {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ei-blue);
}
.ei-cat-card.is-empty .ei-cat-card__more,
.ei-cat-card.is-empty .ei-cat-card__n {
	color: var(--ei-muted-2);
	background: #f1f5f9;
}
.ei-cat-card.is-empty .ei-cat-card__more {
	background: none;
	font-weight: 600;
}

.ei-cats--tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.ei-cat-tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: var(--ei-surface);
	border: 1px solid var(--ei-line);
	border-radius: 18px;
	text-decoration: none;
	color: inherit;
}
a.ei-cat-tile:hover {
	border-color: #b8d1e3;
	color: inherit;
}
.ei-cat-tile__n {
	font-size: 32px;
	line-height: 1;
	font-weight: 800;
	color: var(--ei-blue-dark);
}
.ei-cat-tile__name {
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ei-navy);
}
.ei-cat-tile__word {
	font-size: 14px;
	color: var(--ei-muted-2);
}
.ei-cat-tile.is-empty .ei-cat-tile__n {
	color: #8a9baa;
}

.ei-cats--pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ei-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--ei-surface);
	border: 2px solid var(--ei-line-2);
	color: var(--ei-navy);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}
.ei-cat-pill span {
	font-size: 14px;
	color: var(--ei-muted-2);
}
a.ei-cat-pill:hover {
	border-color: var(--ei-blue);
	color: var(--ei-navy);
}
.ei-cat-pill.is-empty {
	color: #8a9baa;
}

/* ---------- Review detail ---------- */

.ei-review {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ei-ink-2);
}
.ei-review-hero {
	background: var(--ei-surface);
	border-bottom: 1px solid var(--ei-line);
	padding: 32px 0 36px;
}
.ei-review-hero .ei-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ei-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 15px;
	color: var(--ei-muted-2);
}
.ei-crumbs a {
	text-decoration: none;
}
.ei-back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.ei-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ei-pills .ei-pill {
	font-size: 14px;
	padding: 5px 12px;
}
.ei-review-title {
	margin: 0;
	max-width: 1040px;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ei-navy);
}
.ei-review-meta {
	margin: 0;
	font-size: 18px;
	color: var(--ei-muted);
}
.ei-review-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ei-review-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding-top: 6px;
}
.ei-review-terms--tags {
	padding-top: 0;
}
.ei-review-terms__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ei-muted-2);
	margin-right: 4px;
}

.ei-toc {
	background: var(--ei-surface);
	border-bottom: 1px solid var(--ei-line);
	position: sticky;
	top: 0;
	z-index: 20;
}
.admin-bar .ei-toc {
	top: 32px;
}
.ei-toc__inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.ei-toc a {
	flex: none;
	padding: 14px 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ei-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
.ei-toc a:hover,
.ei-toc a.is-active {
	color: var(--ei-blue-dark);
	border-bottom-color: var(--ei-blue);
}
.ei-toc__side {
	display: none;
}

.ei-review-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	padding-top: 40px;
	padding-bottom: 80px;
}
.ei-review-main {
	flex: 999 1 620px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ei-review-side {
	flex: 1 1 340px;
	max-width: 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ei-sec {
	background: var(--ei-surface);
	border: 1px solid var(--ei-line);
	border-radius: 22px;
	padding: 32px 36px;
	scroll-margin-top: 80px;
}
.ei-sec__title {
	margin: 0 0 14px;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--ei-navy);
}
.ei-sec p {
	margin: 0 0 14px;
}
.ei-sec > :last-child,
.ei-sec p:last-child {
	margin-bottom: 0;
}
.ei-sec strong {
	color: var(--ei-navy);
}
.ei-sec ul {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ei-sec ul li {
	position: relative;
	padding-left: 22px;
}
.ei-sec ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ei-blue);
}
.ei-sec ul li.ei-note {
	background: #fff8e6;
	border-radius: 14px;
	padding: 16px 18px 16px 48px;
}
.ei-sec ul li.ei-note::before {
	left: 18px;
	top: 18px;
	width: 18px;
	height: 18px;
	background: transparent;
	border: 2px solid #8a5a00;
	box-sizing: border-box;
}
.ei-sec ul li.ei-note::after {
	content: "!";
	position: absolute;
	left: 18px;
	top: 18px;
	width: 18px;
	height: 18px;
	font-size: 12px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	color: #8a5a00;
}
.ei-sec ol {
	margin: 0 0 18px 1.2em;
}
.ei-sec a {
	word-break: break-word;
}

.ei-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ei-line);
	border-radius: 16px;
	margin: 4px 0 20px;
}
.ei-table-wrap:focus-visible {
	outline: 3px solid var(--ei-gold);
}
.ei-sec table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	border: 0;
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}
.ei-sec th,
.ei-sec td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-top: 1px solid var(--ei-line);
}
.ei-sec thead th {
	background: #f1f6fa;
	border-top: 0;
	color: var(--ei-navy);
}
.ei-sec td:first-child {
	font-weight: 700;
	color: var(--ei-navy);
	width: 24%;
}
.ei-sec td:last-child {
	color: var(--ei-muted);
}

.ei-sec--practice {
	background: var(--ei-blue-tint-2);
	border-color: var(--ei-line-2);
}
.ei-sec--practice .ei-sec__title {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ei-sec--practice .ei-sec__title::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ei-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.ei-sec--citation p:first-of-type {
	padding: 16px 18px;
	background: var(--ei-bg);
	border-radius: 12px;
	font-size: 16px;
}
.ei-sec--citation p + p {
	font-size: 15px;
	color: var(--ei-muted);
}

/* Relevance */
.ei-reason {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}
.ei-rel-badge {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 800;
	box-sizing: border-box;
}
.ei-rel-badge:not(.ei-rel-badge--a):not(.ei-rel-badge--b) {
	background: #f1f5f9;
	color: var(--ei-muted);
	border: 2px solid #c9d5e0;
}
.ei-rel-badge--a {
	background: var(--ei-blue-dark);
	color: #fff;
}
.ei-rel-badge--b {
	background: var(--ei-blue-tint);
	color: var(--ei-blue-darker);
	border: 2px solid #9cc3dd;
}
.ei-rel-badge--c {
	background: #f1f5f9;
	color: var(--ei-muted);
	border: 2px solid #c9d5e0;
}
.ei-reason__body {
	flex: 1 1 300px;
	min-width: 0;
}
.ei-reason__label {
	margin: 0 0 6px !important;
	font-weight: 800;
	color: var(--ei-navy);
}
.ei-rel-legend {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 8px !important;
	margin: 18px 0 0 !important;
	font-size: 14px;
	color: var(--ei-muted);
}
.ei-rel-legend li {
	padding: 5px 10px !important;
	border-radius: 8px;
	background: var(--ei-bg);
}
.ei-rel-legend li::before {
	display: none;
}
.ei-rel-legend li.is-current {
	background: var(--ei-blue-tint);
}

/* JBI meter */
.ei-jbi {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	background: var(--ei-bg);
	border-radius: 16px;
	padding: 22px 24px;
	margin-bottom: 18px;
}
.ei-jbi__score {
	display: flex;
	align-items: baseline;
	gap: 6px;
}
.ei-jbi__score strong {
	font-size: 48px;
	line-height: 1;
	color: var(--ei-blue-dark);
}
.ei-jbi__score span {
	font-size: 22px;
	font-weight: 700;
	color: var(--ei-muted);
}
.ei-jbi__detail {
	flex: 1 1 280px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ei-jbi__bar {
	display: grid;
	grid-template-columns: repeat(var(--ei-seg, 11), minmax(0, 1fr));
	gap: 5px;
}
.ei-jbi__bar span,
.ei-jbi__legend i {
	height: 14px;
	border-radius: 4px;
	box-sizing: border-box;
}
.ei-jbi__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
	color: var(--ei-muted);
}
.ei-jbi__legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ei-jbi__legend i {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
}
.ei-jbi .is-yes {
	background: var(--ei-blue);
}
.ei-jbi .is-unclear {
	background: #fff;
	border: 2px solid var(--ei-gold);
}
.ei-jbi .is-na {
	background: repeating-linear-gradient(45deg, var(--ei-line) 0 3px, var(--ei-bg) 3px 6px);
	border: 1px solid var(--ei-line);
}

/* Side cards */
.ei-side-card {
	background: var(--ei-surface);
	border: 1px solid var(--ei-line);
	border-radius: 22px;
	padding: 26px;
	scroll-margin-top: 80px;
}
.ei-side-card__title {
	margin: 0 0 18px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--ei-navy);
}
.ei-dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ei-dl > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ei-dl dt {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ei-muted-2);
}
.ei-dl dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ei-ink);
}
.ei-dl--biblio {
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #e3ebf2;
}
.ei-side-text {
	font-size: 15px;
	line-height: 1.55;
}

.ei-gloss {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ei-gloss dt {
	font-size: 15px;
	font-weight: 700;
	color: var(--ei-navy);
}
.ei-gloss dd {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ei-muted);
}
.ei-more {
	margin-top: 12px;
}
.ei-more summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ei-blue-dark);
	cursor: pointer;
}
.ei-more[open] summary {
	margin-bottom: 12px;
}

.ei-side-card--dark {
	background: var(--ei-navy-2);
	border-color: var(--ei-navy-2);
	color: #fff;
}
.ei-side-card--dark .ei-side-card__title {
	color: #fff;
	font-size: 18px;
	margin-bottom: 8px;
}
.ei-similar {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ei-similar li {
	border-top: 1px solid #23506f;
}
.ei-similar a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.45;
}
.ei-similar a span {
	font-size: 13px;
	font-weight: 700;
	color: #f5c542;
}
.ei-similar a:hover {
	text-decoration: underline;
	color: #fff;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
	.ei-wrap {
		padding-inline: 16px;
	}
	.ei-filter__top {
		margin-bottom: 16px;
	}
	.ei-seg {
		order: 3;
	}
	.ei-filter__open {
		display: inline-flex;
		flex: 1 1 auto;
		min-height: 48px;
	}
	.ei-filter.ei-js .ei-filter__panel {
		display: none;
	}
	.ei-filter.ei-js.is-panel-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: rgba(14, 42, 64, 0.45);
	}
	.ei-filter.ei-js.is-panel-open .ei-filter__panel {
		display: flex;
		flex-direction: column;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: 10vh;
		z-index: 9999;
		max-width: none;
		background: var(--ei-surface);
		border-radius: 24px 24px 0 0;
		box-shadow: var(--ei-shadow);
	}
	.ei-filter.ei-js .ei-filter__panel-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 16px 10px;
	}
	.ei-filter__panel-title {
		margin: 0;
		font-size: 20px;
		font-weight: 800;
		color: var(--ei-navy);
	}
	.ei-filter.ei-js .ei-filter__groups {
		flex: 1 1 auto;
		overflow: auto;
		padding: 0 16px 16px;
	}
	.ei-filter.ei-js .ei-filter__panel-foot {
		display: flex;
		gap: 10px;
		padding: 14px 16px 22px;
		border-top: 1px solid var(--ei-line);
	}
	.ei-filter__panel-foot .ei-btn--primary {
		flex: 1 1 auto;
		min-height: 50px;
	}
	.ei-iconbtn {
		width: 44px;
		height: 44px;
		border-radius: 999px;
		border: 0;
		background: #f1f5f9;
		color: var(--ei-ink);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}
	.ei-card {
		padding: 18px;
	}
	.ei-card__title {
		font-size: 17px;
	}
	.ei-jbi-mini__label,
	.ei-jbi-mini__bar {
		display: none;
	}
	.ei-review-hero {
		padding: 16px 0 20px;
	}
	.ei-review-meta {
		font-size: 15px;
	}
	.ei-review-actions .ei-btn--primary {
		flex: 1 1 100%;
	}
	.ei-toc__side {
		display: block;
	}
	.ei-review-layout {
		flex-direction: column;
		gap: 16px;
		padding-top: 16px;
	}
	.ei-review-side {
		max-width: none;
		width: 100%;
	}
	.ei-sec,
	.ei-side-card {
		padding: 20px;
		border-radius: 18px;
	}
	.ei-sec__title {
		font-size: 21px;
	}
	.ei-review {
		font-size: 16px;
	}
	.ei-jbi {
		gap: 14px;
		padding: 16px;
	}
	.ei-jbi__score strong {
		font-size: 36px;
	}
	.ei-search--hero .ei-btn {
		padding: 0 16px;
	}
}

html.ei-lock,
html.ei-lock body {
	overflow: hidden;
}

/* ---------- Print ---------- */

@media print {
	.ei-toc,
	.ei-review-actions,
	.ei-back,
	.ei-side-card--dark,
	.site-header,
	.main-navigation,
	.site-footer,
	.ei-site-footer {
		display: none !important;
	}
	.ei-review-layout {
		display: block;
	}
	.ei-sec,
	.ei-side-card {
		border: 0;
		padding: 0 0 12pt;
		break-inside: avoid-page;
	}
	.ei-review {
		font-size: 11pt;
	}
}
