/* Test tư duy (inc/test-tu-duy.php). Chỉ nạp ở trang có shortcode. */
.cdh-td { --td-mau: var(--accent, #1e73be); --td-vien: #e3e8ef; --td-nen: #f4f7fb; --td-phu: #5b6472; }
.cdh-td-hop { border: 1px solid var(--td-vien); border-radius: 12px; padding: 20px; margin: 0 0 24px; background: #fff; scroll-margin-top: 80px; }
.cdh-td-hop h2 { margin-top: 0; }
.cdh-td-ngay { background: var(--td-nen); }
.cdh-td-tom-tat { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 24px; color: var(--td-phu); }
.cdh-td-tom-tat strong { display: block; font-size: 22px; color: inherit; color: #1f2937; }
.cdh-td-nut, .cdh-td-nut-phu { min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 600; cursor: pointer; border: 2px solid var(--td-mau); }
.cdh-td-nut { background: var(--td-mau); color: #fff; }
.cdh-td-nut-phu { background: #fff; color: var(--td-mau); }
.cdh-td-nut-phu[disabled] { opacity: .4; cursor: default; }
.cdh-td-app:empty { display: none; }
.cdh-td-app { margin-top: 8px; scroll-margin-top: 80px; }
.cdh-td-dau { display: flex; justify-content: space-between; font-size: 15px; color: var(--td-phu); margin-bottom: 8px; }
.cdh-td-gio { font-weight: 700; font-variant-numeric: tabular-nums; color: #1f2937; }
.cdh-td-thanh { height: 6px; background: var(--td-vien); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.cdh-td-thanh i { display: block; height: 100%; background: var(--td-mau); transition: width .2s; }
.cdh-td-de p { margin: 0 0 .8em; }
.cdh-td-day { font-size: 24px; font-weight: 700; text-align: center; padding: 14px; background: var(--td-nen); border-radius: 8px; line-height: 1.6; }
.cdh-td-day span { color: var(--td-mau); }
.cdh-td-mui { font-size: 30px; font-weight: 400; }
.cdh-td-bang { margin: 0 auto 1em; border-collapse: collapse; width: auto; }
.cdh-td-bang td { width: 64px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid var(--td-vien); }
.cdh-td-bang span { color: var(--td-mau); }
.cdh-td-lc { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px; }
.cdh-td-lc-mui { grid-template-columns: repeat(2, 1fr); }
.cdh-td-lc button { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; text-align: left; border: 1px solid var(--td-vien); border-radius: 8px; background: #fff; color: #1f2937; font-size: 18px; cursor: pointer; }
.cdh-td-lc-mui button { font-size: 28px; justify-content: center; }
.cdh-td-lc button span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--td-nen); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cdh-td-lc button:hover { border-color: var(--td-mau); }
.cdh-td-lc button[aria-pressed="true"] { border-color: var(--td-mau); background: #eaf2fb; }
.cdh-td-lc button[aria-pressed="true"] span { background: var(--td-mau); color: #fff; }
.cdh-td-dieu-huong { display: flex; flex-wrap: wrap; gap: 10px; }
.cdh-td-bao { color: #9b2c2c; margin: 10px 0 0; }
.cdh-td-kq { text-align: center; padding: 8px 0 16px; }
.cdh-td-iq { font-size: 56px; font-weight: 800; line-height: 1; color: var(--td-mau); margin: 0 0 8px; }
.cdh-td-nho { font-size: 14px; color: var(--td-phu); }
.cdh-td-nhom { list-style: none; margin: 0 0 20px; padding: 0; }
.cdh-td-nhom li { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 15px; }
.cdh-td-cot { height: 10px; background: var(--td-vien); border-radius: 5px; overflow: hidden; }
.cdh-td-cot i { display: block; height: 100%; background: var(--td-mau); }
.cdh-td-xem-lai { padding-left: 1.2em; }
.cdh-td-xem-lai li { padding: 12px 0; border-bottom: 1px solid var(--td-vien); }
.cdh-td-xem-lai li.dung strong:first-child { color: #1d6b3d; }
.cdh-td-xem-lai li.sai strong:first-child { color: #9b2c2c; }
.cdh-td-xem-lai .cdh-td-day { font-size: 18px; padding: 8px; }
.cdh-td-giai { color: var(--td-phu); margin: 0; }
.cdh-td-ho-so ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.cdh-td-ho-so:not(:empty) { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--td-vien); }
.cdh-td-luu-y { font-size: 15px; padding: 12px 14px; background: #fff8e6; border-radius: 8px; }
@media (min-width: 640px) {
	.cdh-td-hop { padding: 28px; }
	.cdh-td-lc { grid-template-columns: repeat(2, 1fr); }
	.cdh-td-lc-mui { grid-template-columns: repeat(4, 1fr); }
}
