/* Topic directories use the revision-card hero, search and compact strand scale. */
body .topic-directory-page { padding-top:30px; }
body .practice-directory { min-width:0; padding:38px; margin-bottom:34px; border:1px solid var(--course-line); border-radius:28px; box-shadow:0 10px 30px #0f172a0f; }
body .practice-directory > .practice-intro { padding:0 0 28px; margin:0; border:0; border-radius:0; box-shadow:none; background:none; }
body .practice-directory .practice-intro h1 { font-size:clamp(2rem,4vw,3rem); margin:0 0 12px; line-height:1.2; }
body .practice-directory .practice-intro p { font-size:1.05rem; line-height:1.6; margin:0 0 10px; }
.topic-directory-shell { min-width:0; padding:26px; border:1px solid var(--course-line); border-radius:22px; background:#fff; box-shadow:0 8px 24px #0f172a0d; }
.topic-directory-tools { margin-bottom:20px; }
.topic-directory-tools label { display:block; margin-bottom:7px; color:#334155; font-size:1rem; font-weight:700; }
.topic-search-box { position:relative; }
.topic-search-box > svg { position:absolute; top:16px; left:16px; width:22px; height:22px; pointer-events:none; color:#64748b; }
.topic-search-box input { box-sizing:border-box; width:100%; height:54px; padding:12px 52px 12px 48px; border:1px solid #cbd5e1; border-radius:14px; background:#f8fafc; color:#0f172a; font:inherit; font-size:1rem; }
.topic-search-box input:placeholder-shown { padding-right:16px; }
.topic-search-box input::placeholder { color:#64748b; opacity:1; }
.topic-search-box input::-webkit-search-cancel-button { display:none; }
#topic-search-clear { position:absolute; right:7px; top:7px; width:40px; height:40px; padding:0; border:0; border-radius:10px; background:transparent; color:#475569; font-size:1.5rem; cursor:pointer; }
#topic-search-clear:hover { background:#e2e8f0; }
.topic-directory-page .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.topic-directory-status { margin:0 0 18px; color:#64748b; font-size:.9rem; }
.topic-directory-shell .strand-list { gap:16px; }
.topic-directory-shell .course-strand { margin:0; padding:0; overflow-anchor:none; }
.topic-directory-shell .strand-accordion { border-radius:18px; box-shadow:none; }
.topic-directory-shell .strand-accordion > summary { padding:19px 21px; gap:15px; }
.topic-directory-shell .strand-symbol { width:46px; height:46px; border-radius:12px; }
.topic-directory-shell .strand-title { margin:0; font-size:1.25rem; line-height:1.35; }
.topic-directory-shell .strand-description { margin-top:2px; font-size:.875rem; line-height:1.4; }
.topic-directory-shell .toggle-icon { width:22px; height:22px; border:0; background:none; }
.topic-directory-shell .strand-content { padding:18px; border:0; }
.topic-directory-shell .topic-grid { gap:12px; }
body .topic-directory-shell .topic-card { padding:17px; min-width:0; border:1px solid var(--topic-line); border-radius:14px; box-shadow:none; }
body .topic-directory-shell .topic-card:hover { transform:none; background:#fff; border-color:var(--topic); box-shadow:none; }
.topic-directory-shell .topic-card h3 { margin:0 0 9px; font-size:1rem; line-height:1.35; }
.topic-directory-shell .topic-card p { margin:0 0 14px; font-size:.875rem; line-height:1.5; }
.topic-directory-shell .topic-links { gap:8px; padding-right:0; }
.topic-directory-shell .topic-card:has(.card-ai) .topic-links { padding-right:36px; }
.topic-directory-shell .topic-links .topic-open { font-size:.875rem; }
.topic-directory-shell .card-ai { right:14px; bottom:17px; width:30px; height:30px; border-radius:9px; font-size:.7rem; }
.topic-directory-shell .topic-scope { font-size:.75rem; }
.topic-directory-shell [hidden] { display:none !important; }
.topic-search-empty { padding:24px 16px; border:1px dashed #cbd5e1; border-radius:14px; background:#f8fafc; color:#64748b; text-align:center; }
.topic-search-empty p { margin:0; }
@media(max-width:900px) { body .practice-directory { padding:26px; } }
@media(max-width:650px) {
 body .topic-directory-page { padding-top:22px; }
 body .practice-directory { padding:22px 12px 12px; border-radius:22px; }
 body .practice-directory > .practice-intro { padding:0 8px 24px; }
 .topic-directory-shell { padding:14px; border-radius:18px; }
 .topic-directory-shell .strand-accordion > summary { padding:14px 13px; gap:11px; }
 .topic-directory-shell .strand-symbol { width:38px; height:38px; }
 .topic-directory-shell .strand-symbol > svg { width:28px; height:28px; }
 .topic-directory-shell .strand-title { font-size:1.1rem; }
 .topic-directory-shell .strand-content { padding:12px; }
 .topic-directory-shell .topic-grid { grid-template-columns:1fr; }
 body .topic-directory-shell .topic-card { padding:14px; }
}
@media(max-width:420px) { body .practice-directory { padding-left:8px; padding-right:8px; } .topic-directory-shell { padding:10px; } }

/* V150: teaching areas nested inside the existing strand dropdowns. */
.topic-directory-shell .topic-group { min-width:0; overflow:clip; border:2px solid #fff; border-radius:12px; background:#fff; }
.topic-directory-shell .topic-group + .topic-group { margin-top:8px; }
.topic-directory-shell .topic-group > summary { display:flex; align-items:center; gap:12px; padding:10px 12px; min-height:48px; list-style:none; cursor:pointer; }
.topic-group > summary::-webkit-details-marker { display:none; }
.topic-group > summary::marker { content:''; }
.topic-directory-shell .topic-group > summary:hover,.topic-directory-shell .topic-group > summary:focus-visible { background:var(--topic-pale); }
.topic-directory-shell .topic-group > summary:focus-visible { outline:2px solid var(--topic); outline-offset:-3px; }
.topic-directory-shell .topic-group-summary h3 { flex:1; min-width:0; margin:0; font-size:.95rem; line-height:1.4; color:var(--topic-text,var(--topic)); }
.topic-group-count { flex:none; padding:4px 10px; border-radius:999px; background:var(--topic); color:#fff; font-size:.78rem; font-weight:700; line-height:1.4; white-space:nowrap; }
.topic-group-chevron { flex:none; width:18px; height:18px; color:var(--topic-text,var(--topic)); transition:transform .2s; }
.topic-group[open] > summary .topic-group-chevron { transform:rotate(180deg); }
.topic-directory-shell .topic-group[open] { border-color:var(--topic-line); }
.topic-directory-shell .topic-group > .topic-grid { padding:14px; }
.topic-directory-shell .topic-group .topic-card { min-width:0; }
.topic-directory-shell .topic-card .coming-soon-stamp { color:var(--topic-text); border-color:var(--topic); }
@media(max-width:650px) {
 .topic-directory-shell .topic-group > summary { display:grid; grid-template-columns:minmax(0,1fr) 18px; gap:7px 8px; padding:10px; }
 .topic-group-summary h3 { grid-column:1; grid-row:1; }
 .topic-group-count { grid-column:1; grid-row:2; justify-self:start; }
 .topic-group-chevron { grid-column:2; grid-row:1 / span 2; }
 .topic-directory-shell .topic-group > .topic-grid { padding:10px; }
}
@media(prefers-reduced-motion:reduce) { .topic-group-chevron { transition:none; } }
