.emqh-shell {
	--emqh-shell-start: #12395b;
	--emqh-shell-end: #0f2943;
	--emqh-header-start: #21486d;
	--emqh-header-end: #173756;
	--emqh-content-start: #183c60;
	--emqh-content-end: #112f4b;
	--emqh-border: #456482;
	--emqh-accent: #ffc228;
	--emqh-header-title: #ffffff;
	--emqh-header-subtitle: #d5e2ee;
	--emqh-content-title: #ffffff;
	--emqh-content-text: #f6f9fc;
	--emqh-content-muted: #d5e2ee;
	--emqh-tag-bg: #314d64;
	--emqh-tag-text: #ffc228;
	--emqh-shadow: 0 24px 40px rgba(7, 25, 47, 0.16);
	background: none !important;
	border-radius: 0;
	padding: 0;
	color: var(--emqh-content-text);
	box-shadow: none !important;
	box-sizing: border-box;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1520px, calc(100vw - 32px));
	max-width: min(1520px, calc(100vw - 32px));
	font-family: "Poppins", "Segoe UI", sans-serif;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.emqh-shell button,
.emqh-shell input,
.emqh-shell select,
.emqh-shell textarea {
	font-family: "Poppins", "Segoe UI", sans-serif;
}

.emqh-reset-link,
.emqh-table a,
.emqh-table-action {
	color: var(--emqh-accent);
	text-decoration: none;
}

.emqh-reset-link:hover,
.emqh-table a:hover,
.emqh-table-action:hover {
	text-decoration: underline;
}

.emqh-header-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	padding: 20px 22px;
	background: linear-gradient(135deg, var(--emqh-header-start) 0%, var(--emqh-header-end) 100%);
	border: none;
	border-radius: 22px;
	backdrop-filter: blur(8px);
	text-align: center;
}

.emqh-header-copy {
	max-width: 860px;
}

.emqh-title {
	margin: 0 0 6px;
	color: var(--emqh-header-title);
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.15;
}

.emqh-subtitle {
	margin: 0;
	color: var(--emqh-header-subtitle);
}

.emqh-promo-stack {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.emqh-promo-heading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	padding: 12px 24px;
	border-radius: 16px;
	border: 1px solid var(--emqh-promo-heading-border);
	background: var(--emqh-promo-heading-bg);
	color: var(--emqh-promo-heading-text);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	box-shadow: 0 14px 24px rgba(7, 25, 47, 0.1);
}

.emqh-promo-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 18px 26px;
}

.emqh-promo-item {
	display: grid;
	grid-template-rows: auto minmax(3.2em, auto) auto;
	align-content: start;
	align-items: start;
	justify-items: center;
	flex: 0 0 160px;
	gap: 10px;
	min-width: 160px;
	max-width: 160px;
	padding: 0 4px;
	text-align: center;
	text-decoration: none;
	color: var(--emqh-content-title);
	transition: transform 0.2s ease;
}

.emqh-promo-item:hover {
	transform: translateY(-3px);
}

.emqh-promo-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	width: 100%;
}

.emqh-promo-image {
	display: block;
	object-fit: contain;
}

.emqh-promo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--emqh-accent);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.emqh-promo-label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.2em;
	color: var(--emqh-content-title);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none !important;
}

.emqh-promo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 94px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--emqh-promo-button-bg, var(--emqh-accent));
	color: var(--emqh-promo-button-color, #ffffff);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: 0 10px 18px rgba(7, 25, 47, 0.12);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.emqh-promo-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 24px rgba(7, 25, 47, 0.16);
	text-decoration: none !important;
}

.emqh-promo-item a,
.emqh-promo-item a:hover,
.emqh-promo-item a:focus,
.emqh-promo-item a:visited,
.emqh-promo-label a,
.emqh-promo-label a:hover,
.emqh-promo-button a,
.emqh-promo-button a:hover,
.emqh-chapter-link,
.emqh-chapter-link:hover {
	text-decoration: none !important;
}

.emqh-content-stack {
	display: grid;
	gap: 22px;
}

.emqh-bottom-banner-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.emqh-bottom-banner-link {
	display: block;
	width: 100%;
	text-decoration: none;
}

.emqh-bottom-banner-image {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 22px;
	border: 1px solid var(--emqh-border);
	box-shadow: 0 16px 28px rgba(7, 25, 47, 0.12);
	object-fit: cover;
}

.emqh-grid {
	display: grid;
	gap: 20px;
}

.emqh-grid--sections {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emqh-grid--subjects {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.emqh-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid var(--emqh-border);
	background: linear-gradient(135deg, var(--emqh-content-start) 0%, var(--emqh-content-end) 100%);
	box-shadow: 0 18px 34px rgba(3, 14, 29, 0.24);
	transform: translateY(0);
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.emqh-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 40px rgba(3, 14, 29, 0.3);
	border-color: rgba(255, 194, 40, 0.34);
}

.emqh-card__media,
.emqh-card__placeholder {
	width: 100%;
	height: 100%;
}

.emqh-card--sections {
	aspect-ratio: 16 / 9;
}

.emqh-card--subjects {
	aspect-ratio: 16 / 9;
}

.emqh-subject-card {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(88px, auto) auto;
	align-items: flex-start;
	align-content: start;
	gap: 12px;
	min-height: 160px;
	height: 100%;
	padding: 24px 26px;
	border-radius: 22px;
	border: 1px solid rgba(69, 100, 130, 0.22);
	background:
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 16%),
		radial-gradient(circle at right bottom, rgba(255, 255, 255, 0.26), transparent 24%),
		linear-gradient(135deg, var(--emqh-subject-card-start) 0%, var(--emqh-subject-card-end) 100%);
	box-shadow: 0 16px 28px rgba(7, 25, 47, 0.08);
	text-decoration: none !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.emqh-subject-card:hover,
.emqh-subject-card:focus {
	transform: translateY(-4px);
	box-shadow: 0 22px 34px rgba(7, 25, 47, 0.12);
	text-decoration: none !important;
}

.emqh-subject-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background: var(--emqh-subject-card-icon-bg);
	color: var(--emqh-subject-card-icon);
}

.emqh-subject-card__icon svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.emqh-subject-card__title {
	display: flex;
	align-items: flex-start;
	color: var(--emqh-subject-card-title);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	line-height: 1.18;
	width: 100%;
}

.emqh-subject-card__subtitle {
	display: block;
	color: var(--emqh-subject-card-subtext);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.emqh-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emqh-card__placeholder {
	background:
		linear-gradient(130deg, rgba(255, 194, 40, 0.18), transparent 30%),
		radial-gradient(circle at top right, rgba(22, 107, 196, 0.24), transparent 28%),
		linear-gradient(180deg, var(--emqh-content-start) 0%, var(--emqh-content-end) 100%);
}

.emqh-table-wrap,
.emqh-content-card,
.emqh-empty-state {
	background: linear-gradient(180deg, var(--emqh-content-start) 0%, var(--emqh-content-end) 100%);
	border: 1px solid var(--emqh-border);
	border-radius: 22px;
	padding: 18px;
	color: var(--emqh-content-text);
}

.emqh-table-wrap--chapter-list {
	overflow-x: auto;
	padding: 14px 16px;
}

.emqh-table.emqh-table--chapter-list {
	display: table;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	table-layout: fixed;
	margin: 0;
	border-collapse: collapse;
}

.emqh-table.emqh-table--chapter-list th,
.emqh-table.emqh-table--chapter-list td {
	padding: 10px 12px;
	border: 1px solid var(--emqh-border);
}

.emqh-table.emqh-table--chapter-list th {
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	text-align: center;
	color: var(--emqh-content-title);
	padding: 14px 12px;
}

.emqh-heading-lowercase {
	text-transform: none;
}

.emqh-table.emqh-table--chapter-list tbody td {
	width: 50%;
	color: var(--emqh-content-title);
	font-weight: 700;
	background: transparent;
	text-align: center;
}

.emqh-table.emqh-table--chapter-list tr:last-child td {
	border-bottom: 1px solid var(--emqh-border);
}

.emqh-table.emqh-table--chapter-list .emqh-table-cell--empty {
	color: transparent;
	background: transparent;
}

.emqh-chapter-link {
	display: block;
	width: 100%;
	color: var(--emqh-content-title);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none !important;
}

.emqh-chapter-link:hover,
.emqh-chapter-link:focus,
.emqh-chapter-link:visited {
	text-decoration: none !important;
}

.emqh-chapter-entry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	width: 100%;
}

.emqh-chapter-name {
	color: var(--emqh-content-title);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.emqh-chapter-separator {
	color: var(--emqh-content-title);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.emqh-chapter-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border-radius: 999px;
	background: #163756;
	border: 1px solid #163756;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
	box-shadow: 0 10px 16px rgba(7, 25, 47, 0.12);
}

.emqh-chapter-open:hover,
.emqh-chapter-open:focus,
.emqh-chapter-open:visited {
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 14px 22px rgba(7, 25, 47, 0.16);
}

.emqh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.emqh-table th,
.emqh-table td {
	padding: 15px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	text-align: left;
	vertical-align: top;
}

.emqh-table th {
	color: var(--emqh-content-title);
	font-weight: 700;
}

.emqh-table td {
	color: var(--emqh-content-muted);
}

.emqh-table tr:last-child td {
	border-bottom: none;
}

.emqh-content-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.emqh-content-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.emqh-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 132px;
	padding: 10px 18px;
	border: 1px solid #163756 !important;
	border-radius: 999px;
	background: #163756 !important;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	box-shadow: 0 12px 20px rgba(7, 25, 47, 0.12);
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.emqh-share-button:hover,
.emqh-share-button:focus {
	transform: translateY(-1px);
	box-shadow: 0 16px 24px rgba(7, 25, 47, 0.16);
	color: #ffffff !important;
	background: #163756 !important;
}

.emqh-share-button__icon {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex: 0 0 auto;
}

.emqh-share-button__label {
	display: inline-block;
	color: inherit;
}

.emqh-share-status {
	color: var(--emqh-content-muted);
	font-size: 14px;
	font-weight: 600;
}

.emqh-content-meta span {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--emqh-tag-bg);
	color: var(--emqh-tag-text);
	font-size: 13px;
}

.emqh-content-summary {
	margin: 0 0 20px;
	color: var(--emqh-content-muted);
	font-size: 16px;
}

.emqh-editor-content {
	color: var(--emqh-content-text);
	line-height: 1.8;
}

.emqh-editor-content h1,
.emqh-editor-content h2,
.emqh-editor-content h3,
.emqh-editor-content h4,
.emqh-editor-content h5,
.emqh-editor-content h6,
.emqh-editor-content strong,
.emqh-editor-content b {
	color: var(--emqh-content-title);
	font-weight: 700;
}

.emqh-editor-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.emqh-editor-content table th,
.emqh-editor-content table td {
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 10px 12px;
}

.emqh-editor-content blockquote {
	margin: 20px 0;
	padding: 14px 18px;
	border-left: 4px solid var(--emqh-accent);
	background: rgba(255, 255, 255, 0.04);
}

.emqh-back-row {
	margin: 26px 0 0;
}

.emqh-empty-state {
	text-align: center;
	padding: 34px 20px;
	color: var(--emqh-content-muted);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 900px) {
	.emqh-shell {
		padding: 0;
		border-radius: 0;
		width: calc(100vw - 20px);
		max-width: calc(100vw - 20px);
	}

	.emqh-header-bar {
		padding: 18px 16px;
	}

	.emqh-grid--sections {
		grid-template-columns: 1fr;
	}

	.emqh-grid--subjects {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

@media (max-width: 640px) {
	.emqh-promo-item {
		flex-basis: 132px;
		min-width: 132px;
		max-width: 132px;
	}

	.emqh-table,
	.emqh-table thead,
	.emqh-table tbody,
	.emqh-table th,
	.emqh-table td,
	.emqh-table tr {
		display: block;
	}

	.emqh-table thead {
		display: none;
	}

	.emqh-table tr {
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.emqh-table td {
		padding: 8px 0;
		border: none;
	}

	.emqh-table-wrap--chapter-list {
		overflow-x: auto;
		padding: 12px;
	}

	.emqh-table.emqh-table--chapter-list,
	.emqh-table.emqh-table--chapter-list thead,
	.emqh-table.emqh-table--chapter-list tbody {
		display: table;
		width: 100%;
	}

	.emqh-table.emqh-table--chapter-list thead {
		display: table-header-group;
	}

	.emqh-table.emqh-table--chapter-list tr {
		display: table-row;
		padding: 0;
		border-bottom: none;
	}

	.emqh-table.emqh-table--chapter-list th,
	.emqh-table.emqh-table--chapter-list td {
		display: table-cell;
		padding: 10px 12px;
		border: 1px solid var(--emqh-border);
	}
}
