/* v4.1.0: compact, accessible edition search and citation tools. */
.bgs-root .bgs-v410-tools{margin:1rem 0;padding:.75rem 1rem;border:1px solid var(--bgs-border,#cad5de);border-radius:.65rem;background:var(--bgs-card,#fff);color:var(--bgs-text,#172435)}
.bgs-root .bgs-v410-tools summary{cursor:pointer;font-weight:700;line-height:1.5}
.bgs-root .bgs-v410-tools p{line-height:1.6}
.bgs-root .bgs-v410-actions,.bgs-root .bgs-v410-citation{display:flex;gap:.6rem;align-items:end;flex-wrap:wrap;margin:.65rem 0}
.bgs-root .bgs-v410-actions label{flex:1 1 200px;display:grid;gap:.3rem;font-weight:600}
.bgs-root .bgs-v410-actions input{width:100%;min-height:42px;box-sizing:border-box;padding:.55rem;border:1px solid #8293a6;border-radius:.4rem;color:#142337;background:#fff}
.bgs-root .bgs-v410-tools button{min-height:42px;max-width:100%;border-radius:.4rem;border:1px solid #365a79;padding:.52rem .85rem;font-weight:650;background:#123b5a;color:#fff;cursor:pointer}
.bgs-root .bgs-v410-tools button:hover:not(:disabled){background:#21577e;color:#fff}
.bgs-root .bgs-v410-tools button:disabled{opacity:.6;cursor:not-allowed}
.bgs-root .bgs-v410-tools :is(button,input,summary):focus-visible{outline:3px solid #e2a122;outline-offset:2px}
.bgs-root .bgs-v410-results{max-height:350px;overflow:auto;overscroll-behavior:contain}
.bgs-root .bgs-v410-results article{padding:.65rem 0;border-top:1px solid #c4cdd9}
.bgs-root .bgs-v410-results p{overflow-wrap:anywhere;margin:.4rem 0}
.bgs-root .bgs-v410-results button{text-align:start;white-space:normal;max-width:100%}
@media(max-width:640px){.bgs-root .bgs-v410-actions button,.bgs-root .bgs-v410-citation button{flex:1 1 170px}}
@media(prefers-reduced-motion:reduce){.bgs-root .bgs-v410-tools *{scroll-behavior:auto}}
