/* JWD project-only comparison geometry and community reactions v1.0.0. */
.jwd-project-detail [data-jwd-reveal] .jwd-reveal-stage img{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;object-fit:cover;object-position:center}
.jwd-project-detail [data-jwd-reveal] .jwd-reveal-before{overflow:hidden}
.jwd-project-reactions{margin:0 0 .85rem;padding:0 0 .85rem;border-bottom:1px solid #64859d}
.jwd-project-reactions-label{margin:0 0 .5rem;font-size:.95rem;font-weight:700}
.jwd-project-reaction-buttons{display:flex;flex-wrap:wrap;gap:.45rem}
.jwd-project-reaction-buttons button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.55rem .7rem;border:1px solid #9bb8ce;border-radius:8px;background:#294b65;color:white;font:inherit;font-size:.95rem;line-height:1.3;cursor:pointer}
.jwd-project-reaction-buttons button[aria-pressed="true"]{background:#b92236;border-color:#ffb5bf;box-shadow:inset 0 0 0 1px #ffb5bf}
.jwd-project-reaction-buttons button:focus-visible{outline:3px solid #ffd16a;outline-offset:3px}
.jwd-project-reaction-buttons button:disabled{opacity:.65;cursor:wait}
.jwd-project-reaction-count{min-width:.6em;font-variant-numeric:tabular-nums}
.jwd-project-reaction-status{margin:.45rem 0 0;font-size:.9rem;line-height:1.4}
@media(max-width:480px){.jwd-project-reaction-buttons button{flex:1 1 auto}}

/* Book & Relax: four visible choices in one compact row, larger recognizable icons. */
.jwd-project-reaction-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.jwd-project-reaction-buttons button{min-width:0;white-space:nowrap;padding:6px 5px;gap:4px;font-size:14px}
.jwd-project-reaction-buttons button>span:first-child{display:flex;align-items:center;justify-content:center;font-size:30px;min-height:40px}
.jwd-project-reaction-buttons .jwd-book-relax-icon{position:static;display:block;width:40px;height:40px;max-width:none;object-fit:contain;aspect-ratio:1;border:0;border-radius:0;box-shadow:none}
.jwd-reaction-legacy{font-size:12px;line-height:1.4;margin:4px 0}
.jwd-reaction-legacy:empty{display:none}
@media(max-width:900px){.jwd-project-reaction-buttons .jwd-reaction-name{display:none}.jwd-project-reaction-buttons button{flex-direction:column;gap:2px;min-height:62px;padding:3px 1px}.jwd-project-reaction-count{font-size:11px}}

/* Icon-only hover polish; labels, counts and selected outlines stay fixed. */
.jwd-project-reaction-buttons,
.jwd-project-reaction-buttons button{overflow:visible}
.jwd-project-reaction-buttons button>span[aria-hidden="true"]:first-child{transform-origin:center;flex-shrink:0}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .jwd-project-reaction-buttons button>span[aria-hidden="true"]:first-child{transition:transform 175ms cubic-bezier(.2,.7,.2,1),filter 175ms ease}
 .jwd-project-reaction-buttons button:not(:disabled):hover>span[aria-hidden="true"]:first-child{transform:translateY(-5px) scale(1.25);filter:drop-shadow(0 2px 3px #0004)}
}
@media (prefers-reduced-motion:reduce){
 .jwd-project-reaction-buttons button>span[aria-hidden="true"]:first-child{transform:none;filter:none;transition:none}
}
