/* path: static/css/cards.css */
.jcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 16px 0; }
.jcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #d9e3f2; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(7, 26, 61, 0.06); }
.jcard-cover { display: flex; align-items: center; justify-content: center; height: 200px; background: #f4f7fc; overflow: hidden; text-decoration: none; }
.jcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jcard-cover.no-img { background: linear-gradient(135deg, #071a3d 0%, #0b5ed7 100%); padding: 18px; }
.jcard-name { color: #fff; font-weight: 700; font-size: 1.05em; line-height: 1.3; text-align: center; }
.jcard-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.jcard-body h3 { margin: 0; font-size: 1.02em; line-height: 1.3; }
.jcard-body h3 a { color: #071a3d; text-decoration: none; }
.jcard-body h3 a:hover { text-decoration: underline; }
.jcard-body .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; gap: 6px; }
.view-toggle a { padding: 6px 12px; border: 1px solid #0b5ed7; border-radius: 6px; text-decoration: none; color: #0b5ed7; font-size: 0.9em; }
.view-toggle a.on { background: #0b5ed7; color: #fff; }
