/* Compact excerpts retain their complete text and link on every theme. */
main .featured-quote{margin:.65rem 0;padding:.6rem .8rem;border-inline-start-width:3px}
main .featured-quote-text{font-size:15px;line-height:1.65}
main .featured-quote-source,main .featured-quote-member{font-size:12px;line-height:1.65}
@media(max-width:760px){
 /* Let the identity occupy a complete row; the avatar cannot shrink the brand. */
 .sidebar .sidebar-identity{flex:1 0 100%;width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
 .sidebar .brand{width:auto;min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:8px;margin:0;color:var(--sidebar-ink)}
 /* This asset is a three-logo sprite: keep its crop rather than showing all three. */
 .sidebar .brand-logo{flex:0 0 70px;width:70px;height:auto;aspect-ratio:560/305;max-width:none;min-height:0;margin:0;background-size:316.786% auto}
 .sidebar .brand-label{min-width:0;font-size:17px;line-height:1.5;margin:0;white-space:nowrap}
 .sidebar .sidebar-profile{flex:0 0 40px;width:40px;margin:0;line-height:0}
 .sidebar .sidebar-profile img{width:40px;height:40px;max-width:100%;object-fit:cover}
 /* Light button surfaces need dark text even on the blue and teal sidebars. */
 .sidebar.member-menu-ready .member-menu-toggle{color:var(--preset-ink,#123e63);line-height:1.6;gap:8px;white-space:normal}
 .sidebar.member-menu-ready nav{width:100%;flex-basis:100%}
 #shelf-search{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
 #shelf-search>label,#shelf-search>input,#shelf-search>button{grid-column:1/-1}
 #shelf-search>div{min-width:0}
 #shelf-search select{display:block;width:100%;min-width:0}
 #shelf-search>div label{font-size:13px;margin-bottom:3px}
 #shelf-results .shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #shelf-results .book-card{min-width:0;min-height:98px;border-radius:12px}
 #shelf-results .book-card-link{grid-template-columns:36px minmax(0,1fr);gap:6px;padding:8px;align-items:center}
 #shelf-results .book-card-link>div{min-width:0;overflow-wrap:anywhere}
 #shelf-results .book-cover{width:36px;height:56px;min-height:0;font-size:20px}
 #shelf-results img.book-cover{object-fit:contain;box-shadow:none;background:transparent}
 #shelf-results .book-card h2{font-size:12px;line-height:1.65;margin:0}
 #shelf-results .book-card p{font-size:11px;line-height:1.65;margin:3px 0}
 #shelf-results .book-card .tag{font-size:10px;line-height:1.6;padding:1px 4px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 main .featured-quote{padding:.5rem .65rem;margin:.6rem 0}
 main .featured-quote-text{font-size:13px}
 main .featured-quote-source,main .featured-quote-member{font-size:11px}
}
