/*
 * JLPT level test — styles of [et_level_test] only.
 *
 * Every selector starts with the component root (.et-lt), BEM: block__element--modifier.
 * Colours only from A1 tokens: Avada globals var(--awb-…) (easytravel/Design/DESIGN_SYSTEM_A1.md); the hex values after
 * the comma are fallbacks for the standalone preview only. Mobile first.
 * Classes mk-gap / mk-slot / mk-star / mk-note / a1-mk-t come from the mock-exam items inside the bank HTML.
 */

/* ------------------------------------------------------------------------------------------------ Block */

.et-lt {
	--lt-white: var(--awb-color1, #fff);
	--lt-bg: var(--awb-color2, #f7f8f3);
	--lt-alt: var(--awb-color3, #eef1e8);
	--lt-line: var(--awb-color4, #e1e5da);
	--lt-accent: var(--awb-color5, #3e6b4a);
	--lt-muted: var(--awb-color6, #5a625b);
	--lt-ink: var(--awb-color7, #1c2420);
	--lt-hover: var(--awb-custom_color_1, #2f5439);
	--lt-tint: var(--awb-custom_color_3, #e4ecde);
	--lt-err: var(--awb-custom_color_6, #b42318);
	max-width: 760px;
	margin: 0 auto;
	color: var(--lt-ink);
	font-family: "Onest", "Noto Sans JP", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}

.et-lt *,
.et-lt *::before,
.et-lt *::after {
	box-sizing: border-box;
}

.et-lt p,
.et-lt h2,
.et-lt h3,
.et-lt ol {
	margin: 0;
	padding: 0;
}

.et-lt button {
	font-family: inherit;
}

.et-lt a {
	color: var(--lt-hover);
	font-weight: 600;
}

/* ------------------------------------------------------------------------------------------------ Card */

.et-lt__card {
	padding: 20px 16px 22px;
	border: 1px solid var(--lt-line);
	border-radius: 18px;
	background: var(--lt-white);
	box-shadow: 0 12px 32px rgba(28, 36, 32, 0.07);
}

.et-lt__meta {
	margin-bottom: 8px !important;
	color: var(--lt-muted);
	font-size: 14px;
	font-weight: 600;
}

.et-lt__q {
	margin-bottom: 8px !important;
	color: var(--lt-ink) !important;
	font-size: 23px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	line-height: 1.2 !important;
	outline: none;
}

.et-lt__hint {
	margin: 12px 0 !important;
	color: var(--lt-muted);
	font-size: 15px;
	line-height: 1.5;
}

.et-lt__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	color: var(--lt-muted);
	font-size: 14px;
	font-weight: 600;
}

.et-lt__bar {
	height: 6px;
	margin: 8px 0 18px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--lt-alt);
}

.et-lt__bar i {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var(--lt-accent);
	transition: width 0.3s ease;
}

.et-lt__skill {
	display: inline-block;
	margin-bottom: 8px !important;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--lt-tint);
	color: var(--lt-hover);
	font-size: 13px;
	font-weight: 600;
}

.et-lt__ins {
	margin-bottom: 12px !important;
	color: var(--lt-muted);
	font-size: 15px;
	font-weight: 600;
	outline: none;
}

.et-lt__qtext {
	margin-bottom: 18px;
	color: var(--lt-ink);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.7;
}

.et-lt__qtext--small {
	margin: 6px 0;
	font-size: 17px;
}

.et-lt__qtext rt,
.et-lt__text rt,
.et-lt__opt rt {
	font-size: 0.55em;
	font-weight: 400;
}

.et-lt__text {
	margin-bottom: 16px;
	padding: 16px;
	border-radius: 12px;
	background: var(--lt-bg);
	font-size: 17px;
	line-height: 1.85;
}

.et-lt__text--small {
	font-size: 15px;
}

.et-lt__text p {
	margin-bottom: 8px;
}

.et-lt__text table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.et-lt__text caption {
	margin-bottom: 6px;
	font-weight: 700;
	text-align: left;
}

.et-lt__text th,
.et-lt__text td {
	padding: 6px;
	border: 1px solid var(--lt-line);
	vertical-align: top;
}

.et-lt .mk-gap {
	white-space: nowrap;
}

.et-lt .mk-slot {
	display: inline-block;
	min-width: 2.6em;
	border-bottom: 2px solid var(--lt-muted);
}

.et-lt .mk-star {
	color: var(--lt-accent);
	font-weight: 800;
}

.et-lt .mk-note {
	color: var(--lt-muted);
	font-size: 13px;
}

/* ------------------------------------------------------------------------------------------------ Options */

.et-lt__opts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.et-lt__opt {
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border: 1.5px solid var(--lt-line);
	border-radius: 14px;
	background: var(--lt-white);
	color: var(--lt-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.et-lt__opt:hover {
	border-color: var(--lt-accent);
	background: var(--lt-bg);
}

.et-lt__opt:focus-visible,
.et-lt__dk:focus-visible,
.et-lt__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--lt-accent);
}

.et-lt__opt[aria-pressed="true"] {
	border-color: var(--lt-accent);
	background: var(--lt-tint);
}

.et-lt__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 15px;
	cursor: pointer;
}

.et-lt__check input {
	width: 20px;
	height: 20px;
	accent-color: var(--lt-accent);
}

.et-lt__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.et-lt__dk {
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px dashed var(--lt-muted);
	border-radius: 10px;
	background: transparent;
	color: var(--lt-muted);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.et-lt__dk:hover {
	border-color: var(--lt-ink);
	color: var(--lt-ink);
}

.et-lt__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--lt-accent);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}

.et-lt__btn:hover {
	background: var(--lt-hover);
}

.et-lt__btn--soft {
	background: var(--lt-tint);
	color: var(--lt-hover) !important;
}

.et-lt__btn--soft:hover {
	background: var(--lt-alt);
}

.et-lt__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.et-lt__audio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.et-lt__plays {
	color: var(--lt-muted);
	font-size: 14px;
}

.et-lt__error {
	margin-top: 10px !important;
	color: var(--lt-err);
	font-weight: 600;
}

/* ------------------------------------------------------------------------------------------------ Result */

.et-lt__big {
	margin: 4px 0 !important;
	color: var(--lt-accent) !important;
	font-size: 56px !important;
	font-weight: 800 !important;
	letter-spacing: -0.035em;
	line-height: 1 !important;
	outline: none;
}

.et-lt__label {
	color: var(--lt-ink);
	font-size: 18px;
	font-weight: 700;
}

.et-lt__h3 {
	margin: 24px 0 10px !important;
	color: var(--lt-ink) !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

.et-lt__scroll {
	overflow-x: auto;
}

.et-lt__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.et-lt__table th,
.et-lt__table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--lt-line);
	text-align: left;
	white-space: nowrap;
}

.et-lt__table thead th {
	color: var(--lt-muted);
	font-size: 13px;
	font-weight: 600;
}

.et-lt__dots {
	color: var(--lt-accent);
	letter-spacing: 2px;
}

.et-lt__na {
	color: var(--lt-muted);
	font-size: 13px;
	font-weight: 400;
}

.et-lt__tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--lt-tint);
	color: var(--lt-hover);
	font-size: 12px;
	font-weight: 600;
}

.et-lt__tag--weak {
	background: #fbe4e0;
	color: var(--lt-err);
}

.et-lt__legend {
	margin-top: 6px !important;
	color: var(--lt-muted);
	font-size: 13px;
}

.et-lt__route {
	margin-top: 24px;
	padding: 4px 18px 18px;
	border-radius: 16px;
	background: var(--lt-tint);
}

.et-lt__route ol {
	margin: 0 0 10px 20px !important;
}

.et-lt__route li {
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.5;
}

.et-lt__note {
	color: var(--lt-muted);
	font-size: 14px;
}

.et-lt__cta {
	display: grid;
	gap: 12px;
	margin-top: 18px;
	padding: 18px;
	border: 1px solid var(--lt-line);
	border-radius: 16px;
}

.et-lt__details {
	margin-top: 18px;
}

.et-lt__details summary {
	min-height: 44px;
	padding: 10px 0;
	color: var(--lt-hover);
	font-weight: 700;
	cursor: pointer;
}

.et-lt__revs {
	margin-left: 20px !important;
}

.et-lt__rev {
	padding: 12px 0;
	border-bottom: 1px solid var(--lt-line);
	font-size: 15px;
}

.et-lt__why {
	margin-top: 4px !important;
	color: var(--lt-muted);
}

/* ------------------------------------------------------------------------------------------------ Larger screens */

@media (min-width: 600px) {

	.et-lt__card {
		padding: 28px 32px 32px;
		border-radius: 24px;
	}

	.et-lt__q {
		font-size: 28px !important;
	}

	.et-lt__big {
		font-size: 72px !important;
	}

	.et-lt__cta {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}
