/* ИИ-преподаватель: адаптивный поиск по справочным заголовкам ПДД и СТБ */
#teacher-ref{--ref-ink:#e6f0e9;--ref-quiet:#a7b8af;--ref-green:#b2ef72;margin-top:30px}
#teacher-ref .ref-intro{max-width:840px;color:var(--ref-quiet);font-size:15px;line-height:1.65}
#teacher-ref .ref-search{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0 16px;border:1px solid #578055;background:#172b23;padding:10px;border-radius:16px}
#teacher-ref .ref-search input{flex:1;min-width:210px;padding:13px 15px;border:0;background:transparent;color:var(--ref-ink);outline:0;font-size:16px}
#teacher-ref .ref-search input::placeholder{color:#a4b5ad}
#teacher-ref .ref-search button{padding:12px 20px;background:var(--ref-green);color:#182a1e;border:0;border-radius:10px;font-weight:800;cursor:pointer}
#teacher-ref .ref-filterbar,#teacher-ref .ref-examples{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#teacher-ref .ref-filterbar button,#teacher-ref .ref-examples button{background:#1a2a26;color:var(--ref-ink);border:1px solid #3b5646;border-radius:999px;padding:9px 14px;cursor:pointer}
#teacher-ref .ref-filterbar button.is-active{background:#a5e66c;color:#142719;border-color:#a5e66c;font-weight:750}
#teacher-ref .ref-examples button{font-size:12px;color:#cbd8cf;background:#192525}
#teacher-ref .ref-count{font-size:13px;color:#b9cbbf;margin:17px 0}
#teacher-ref .ref-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#teacher-ref .ref-card{min-width:0;display:flex;flex-direction:column;gap:9px;background:linear-gradient(155deg,#1c2d28,#151f1c);border:1px solid #3b5346;border-radius:16px;padding:18px}
#teacher-ref .ref-card-top{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#teacher-ref .ref-kind{color:var(--ref-green);font-weight:800;font-size:10px;letter-spacing:1.1px}
#teacher-ref .ref-number{font-size:12px;color:#b8c4ba}
#teacher-ref .ref-card h3{font-size:17px;line-height:1.3;color:var(--ref-ink);margin:0}
#teacher-ref .ref-description{font-size:13px;color:var(--ref-quiet);margin:0;line-height:1.5}
#teacher-ref .ref-foot{margin-top:auto;display:flex;flex-direction:column;gap:9px;padding-top:11px}
#teacher-ref .ref-link{display:inline-block;width:max-content;max-width:100%;color:#b2ef72;text-decoration:none;border:1px solid #57784f;border-radius:9px;padding:8px 11px;font-weight:700;font-size:12px}
#teacher-ref .ref-status{font-size:11px;color:#aab8ac;line-height:1.45}
#teacher-ref .ref-disclaimer{padding:16px 18px;margin:20px 0;border-left:3px solid #c0d478;background:#1b2822;color:#dae2d7;font-size:13px;line-height:1.6}
#teacher-ref .ref-empty{grid-column:1/-1;padding:22px;border:1px dashed #4a6950;border-radius:14px;color:#c9d7cb}
@media(max-width:770px){#teacher-ref .ref-results{grid-template-columns:1fr}#teacher-ref .ref-search{display:block}#teacher-ref .ref-search input{width:100%;min-width:0}#teacher-ref .ref-search button{width:100%}#teacher-ref .ref-card{padding:15px}}
