.det-section-tests-note { color: var(--det-text-secondary); max-width: 70ch; margin: 0 0 24px; font-size: .85rem; line-height: 1.7; }
.det-section-test-tabs { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--det-border); margin-bottom: 24px; }
.det-section-test-tabs button { flex: 0 0 auto; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--det-text-secondary); font: inherit; font-size: .85rem; padding: 12px 16px; min-height: 44px; cursor: pointer; }
.det-section-test-tabs button[aria-selected="true"] { border-bottom-color: var(--det-primary); color: var(--det-text); font-weight: 600; }
.det-section-test-tabs button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.det-section-test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-bottom: 24px; }
.det-section-test-composition { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin: 0 0 24px; color: var(--det-text-secondary); }
.det-section-test-composition p { margin: 0; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.det-section-test-composition ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: .78rem; line-height: 1.6; }
.det-section-test-composition li + li::before { content: '·'; margin-right: 18px; color: var(--det-text-secondary); }
.det-section-test-card { display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 24px; border: 1px solid var(--det-border); border-radius: var(--det-brand-radius, 6px); background: var(--det-card); }
/* Outrank the Hub's universal sans-serif rule for these editorial headings. */
.det-practice-container .det-section-test-card h2 { margin: 0; color: var(--det-text); font-family: var(--det-brand-serif, 'Instrument Serif', Georgia, serif); font-size: 36px; line-height: 1.15; font-weight: 400; letter-spacing: -.02em; overflow-wrap: anywhere; }
.det-section-test-card p { margin: 0; line-height: 1.6; }
.det-section-test-card .det-btn { margin-top: auto; align-self: flex-start; min-height: 44px; border-radius: var(--det-brand-radius, 6px); box-shadow: none; }
.det-section-test-card .det-btn-primary { background: var(--det-brand-accent); color: var(--det-brand-on-accent); }
.det-section-test-card .det-btn-primary:hover { background: var(--det-brand-accent-hover); color: var(--det-brand-on-accent); box-shadow: none; transform: none; }
.det-section-test-catalog-card { gap: 0; padding: 22px 24px 24px; transition: border-color .15s ease; }
.det-section-test-catalog-card:hover { border-color: var(--det-primary); }
.det-section-test-masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.det-section-test-masthead p { color: var(--det-text-secondary); font-size: .65rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.det-practice-container .det-section-test-number { color: var(--det-primary); font-family: var(--det-brand-serif, 'Instrument Serif', Georgia, serif); font-size: 38px; line-height: 1; }
.det-section-test-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; color: var(--det-text-secondary); font-size: .85rem; }
.det-section-test-meta span { display: inline-flex; align-items: center; gap: 7px; }
.det-section-test-card svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.det-section-test-footer { margin-top: auto; padding-top: 24px; }
.det-section-test-footer p { display: flex; align-items: center; gap: 7px; padding-top: 17px; border-top: 1px solid var(--det-border); color: var(--det-text-secondary); font-size: .8rem; }
.det-section-test-footer .det-btn { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin-top: 16px; padding: 12px 14px; font-size: .85rem; font-weight: 500; }
.det-section-test-footer .det-btn svg { width: 18px; height: 18px; }
.det-section-test-card .det-section-test-description { margin-top: 12px; color: var(--det-text-secondary); font-size: .8rem; }
.det-section-test-progress { margin-top: 20px; }
.det-section-test-progress p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; color: var(--det-text-secondary); font-size: .72rem; }
.det-section-test-progress [role="progressbar"] { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: var(--det-brand-soft); }
.det-section-test-progress [role="progressbar"] span { display: block; height: 100%; background: var(--det-primary); }
.det-section-test-empty { display: grid; grid-template-columns: 112px minmax(0, 580px); justify-content: center; align-items: center; gap: 44px; min-height: 320px; padding: 44px; border: 1px solid var(--det-border); border-radius: var(--det-brand-radius, 6px); background: var(--det-card); }
.det-section-test-empty-art { display: grid; place-items: center; width: 112px; height: 132px; border: 1px solid var(--det-border); border-radius: var(--det-brand-radius, 6px); background: var(--det-brand-soft); color: var(--det-primary); transform: rotate(-5deg); }
.det-section-test-empty-art svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transform: rotate(5deg); }
.det-section-test-empty-kicker { margin: 0 0 12px; color: var(--det-text-secondary); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.det-practice-container .det-section-test-empty h2 { margin: 0; color: var(--det-text); font-family: var(--det-brand-serif, 'Instrument Serif', Georgia, serif); font-size: 40px; line-height: 1.12; font-weight: 400; letter-spacing: -.02em; }
.det-section-test-empty-description { max-width: 47ch; margin: 16px 0 0; color: var(--det-text-secondary); font-size: .85rem; line-height: 1.75; }
.det-section-test-empty .det-btn { justify-content: space-between; gap: 24px; min-height: 44px; margin-top: 24px; padding: 12px 16px; border-radius: var(--det-brand-radius, 6px); background: var(--det-brand-accent); color: var(--det-brand-on-accent); font-size: .85rem; font-weight: 500; box-shadow: none; transform: none; }
.det-section-test-empty .det-btn:hover { background: var(--det-brand-accent-hover); box-shadow: none; transform: none; }
.det-section-test-empty .det-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 680px) {
    .det-section-test-empty { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; padding: 36px 24px; text-align: center; }
    .det-section-test-empty-art { width: 84px; height: 100px; }
    .det-section-test-empty-art svg { width: 44px; height: 44px; }
    .det-practice-container .det-section-test-empty h2 { font-size: 34px; }
    .det-section-test-empty-description { margin-inline: auto; }
    .det-section-test-empty .det-btn { width: 100%; }
}
@media (max-width: 480px) {
    .det-section-test-tabs { gap: 0; }
    .det-section-test-tabs button { padding-inline: 12px; font-size: .8rem; }
    .det-section-test-composition { gap: 6px; margin-bottom: 20px; }
    .det-section-test-composition p { width: 100%; }
    .det-section-test-composition ul { gap: 4px 12px; font-size: .72rem; }
    .det-section-test-composition li + li::before { margin-right: 12px; }
    .det-section-test-catalog-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .det-section-test-catalog-card { transition: none; }
}
