.discovery-block { margin: 1.5rem 0; }
.discovery-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr)); gap:1rem; margin:1rem 0; }
.discovery-card { display:flex; flex-direction:column; gap:.3rem; padding:.65rem; border:1px solid #dfd4c7; border-radius:6px; background:#fff; color:inherit; }
.discovery-card img { width:100%; height:134px; object-fit:contain; background:#f8f5ef; }
.discovery-form { max-width:48rem; }
.discovery-form label { display:block; margin:.65rem 0; }
.discovery-form input:not([type=checkbox]), .discovery-form select, .discovery-form textarea { display:block; width:100%; box-sizing:border-box; max-width:44rem; }
.discovery-event { border-top:1px solid #ddd2c6; padding:1rem 0; }
.discovery-event h2 { margin:0 0 .4rem; }
.discovery-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; margin:.75rem 0; }
.discovery-actions form { margin:0; }
.discovery-code { width:100%; max-width:50rem; box-sizing:border-box; }

.board-share, #board-search { margin:1.25rem 0; }
.board-share label, .board-search label { display:block; margin-bottom:.35rem; }
.board-search .discovery-actions { align-items:stretch; max-width:40rem; }
.board-search input { flex:1; min-width:8em; }
.board-share [hidden] { display:none; }
.board-matches { display:grid; gap:.5rem; margin:.75rem 0; }
.board-matches article { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; padding:.55rem 0; border-bottom:1px solid #dfd4c7; }
.board-matches img { width:3.5rem; height:3.5rem; object-fit:contain; }
.board-matches article > div { flex:1; min-width:min(9rem,100%); overflow-wrap:anywhere; }
.board-matches small { display:block; }
.board-matches form { margin:0; }
#board-works [aria-current=page] { font-weight:bold; color:inherit; }

.portal-shortcuts { display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(8px,2vw,22px); margin:0 0 18px; }
.portal-shortcuts a { box-sizing:border-box; width:min(9rem,calc((100% - 4.5rem)/4)); aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.55em; padding:.6em; text-align:center; background:#faf6ee; color:#493222; border:1px solid #cdbba6; border-radius:7px; box-shadow:0 2px 5px #422d191c; font-weight:700; line-height:1.2; }
.portal-shortcuts .fa { color:#995131; font-size:clamp(1.6rem,3vw,2.25rem); }
.portal-shortcuts a:hover, .portal-shortcuts a:focus-visible { background:#fff; border-color:#8c5735; text-decoration:underline; }
@media (max-width:580px) {
    .portal-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,8.5rem)); }
    .portal-shortcuts a { width:100%; }
}

#showcase .board-share { margin:1rem 0; }
#showcase summary { cursor:pointer; padding:.65rem 0; }
#showcase details > form { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; margin:.75rem 0; }
#showcase details input[type="text"], #showcase details input[type="search"] { width:min(100%,21rem); }
.showcase-artists { list-style:none; padding:0; }
.showcase-artists li { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem; padding:.5rem 0; border-bottom:1px solid #dfd4c7; }
.showcase-artists form { margin:0; }
.showcase-artists small { color:#665a50; }
