/* Active /testler consumer only. Real TestDirectoryPresenter data and GET filters stay authoritative.
   This closes the dead-template style join, not approved-font/all12/device acceptance.
   No desktop or print declarations, invented illustration, sample test or start control. */
.approved-mobile-test-entry { display:none !important; }
@media screen and (max-width:1100px) {
  body.approved-test-subject-page a:has(+ a.approved-mobile-test-entry) { display:none !important; }
  body.approved-test-subject-page a.approved-mobile-test-entry { display:inline-flex !important; align-items:center; justify-content:center; min-height:44px; white-space:normal; }
  body.approved-test-directory-page { background:#fcfaf5; color:#14211e; }
  body.approved-test-directory-page .study-shell { width:100%; max-width:760px; margin:0 auto; background:#fcfaf5; }
  body.approved-test-directory-page .study-main { min-width:0; margin:0; padding-inline:18px; }
  body.approved-test-directory-page .learner-entry-heading { min-width:0; margin:14px 0; padding:14px; border:0; border-radius:16px; background:#fff6dc; }
  body.approved-test-directory-page .learner-entry-heading h1 { margin:5px 0 8px; font-size:1.75rem; line-height:1.25; letter-spacing:0; overflow-wrap:anywhere; }
  body.approved-test-directory-page .learner-entry-heading p { margin:0; font-size:.8125rem; line-height:1.5; color:#425e78; overflow-wrap:anywhere; }
  body.approved-test-directory-page .learner-entry-heading .eyebrow { margin-bottom:5px; font-size:.6875rem; line-height:1.4; }
  body.approved-test-directory-page .learner-entry-tools { margin:0 0 14px; min-width:0; }
  body.approved-test-directory-page .test-directory-tools { min-width:0; padding:14px; border:1px solid #e8e9ec; border-radius:16px; background:#fff; box-shadow:none; }
  body.approved-test-directory-page .test-directory-tools h2 { margin:4px 0 7px; font-size:1rem; line-height:1.4; letter-spacing:0; }
  body.approved-test-directory-page .test-directory-tools p { font-size:.8125rem; line-height:1.5; color:#425e78; overflow-wrap:anywhere; }
  body.approved-test-directory-page .test-directory-tools form { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin-top:12px; min-width:0; }
  body.approved-test-directory-page .test-directory-tools label { display:grid; gap:6px; min-width:0; font-size:.8125rem; line-height:1.4; }
  body.approved-test-directory-page .test-directory-tools select { width:100%; min-width:0; max-width:100%; min-height:44px; padding:9px 12px; border:1px solid #dde5ec; border-radius:10px; background:#fff; color:#173841; font:inherit; }
  body.approved-test-directory-page .test-directory-tools button { width:100%; min-width:0; min-height:44px; padding:11px 12px; border:0; border-radius:12px; background:#c9ff42; color:#14211e; font-size:.875rem; line-height:1.4; white-space:normal; }
  body.approved-test-directory-page .learner-class-picker { margin:14px 0; padding:14px; border:1px solid #e8e9ec; border-radius:16px; background:#fff; }
  body.approved-test-directory-page .learner-class-picker h2 { margin:0 0 7px; font-size:1rem; line-height:1.4; }
  body.approved-test-directory-page .learner-class-picker p { font-size:.8125rem; line-height:1.5; color:#425e78; }
  body.approved-test-directory-page .learner-class-picker__links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  body.approved-test-directory-page .learner-class-picker__links a { display:grid; align-content:center; gap:4px; min-width:0; min-height:64px; padding:9px 6px; border:1px solid #dde5ec; border-radius:12px; background:#f2f8fb; color:#173841; text-align:center; font-size:.8125rem; line-height:1.4; overflow-wrap:anywhere; }
  body.approved-test-directory-page .learner-class-picker__links small { font-size:.6875rem; line-height:1.4; color:#425e78; }
  body.approved-test-directory-page .study-directory { min-width:0; }
  body.approved-test-directory-page .test-grade-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  body.approved-test-directory-page .test-grade-card { min-width:0; padding:14px; border:1px solid #e8e9ec; border-radius:16px; background:#fff; box-shadow:none; }
  body.approved-test-directory-page .test-grade-card header { min-width:0; }
  body.approved-test-directory-page .test-grade-card h3 { font-size:1rem; line-height:1.4; overflow-wrap:anywhere; }
  body.approved-test-directory-page .test-grade-card dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  body.approved-test-directory-page .test-grade-card dl > div { min-width:0; }
  body.approved-test-directory-page .test-grade-card dt { font-size:.6875rem; line-height:1.4; overflow-wrap:anywhere; }
  body.approved-test-directory-page .test-grade-card dd { font-size:1rem; line-height:1.4; }
  body.approved-test-directory-page .subject-test-links { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  body.approved-test-directory-page .subject-test-links a { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; min-width:0; min-height:44px; padding:10px; border:1px solid #dde5ec; border-radius:10px; background:#f2f8fb; color:#173841; font-size:.8125rem; line-height:1.4; overflow-wrap:anywhere; }
  body.approved-test-directory-page .subject-test-links small { font-size:.6875rem; line-height:1.4; }
  body.approved-test-directory-page .subject-test-links .subject-test-pending { background:#f5f7f7; color:#425e78; }
  body.approved-test-directory-page .study-card-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:.8125rem; line-height:1.4; white-space:normal; }
  body.approved-test-directory-page .learner-browse-all { min-width:0; margin-block:12px; }
  body.approved-test-directory-page .learner-browse-all > summary { min-height:44px; padding-block:12px; font-size:.8125rem; line-height:1.45; overflow-wrap:anywhere; }
  body.approved-test-directory-page .study-section-heading h2 { font-size:1rem; line-height:1.4; letter-spacing:0; overflow-wrap:anywhere; }
  body.approved-test-directory-page .study-section-heading p { font-size:.8125rem; line-height:1.5; overflow-wrap:anywhere; }
  body.approved-test-directory-page :is(a,button,select,summary):focus-visible { outline:3px solid #007e91; outline-offset:2px; }
}
@media screen and (min-width:560px) and (max-width:1100px) {
  body.approved-test-directory-page .test-directory-tools form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.approved-test-directory-page .test-directory-tools form > button,
  body.approved-test-directory-page .test-directory-tools form > .text-link { grid-column:1 / -1; }
  body.approved-test-directory-page .learner-class-picker__links { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
