/* Only navigation added to the exported cover and existing dialog header. */
.hours-home-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:6px;text-decoration:none;touch-action:manipulation;cursor:pointer}
.hours-home-link:focus-visible{outline:3px solid #f5d79b;outline-offset:3px}
.hours-home-link--cover{width:118px;max-width:45%;padding:5px 9px;background:#fafafcf2;flex:0 0 auto;align-self:flex-start}
.hours-home-link--cover img{display:block;width:100%;height:auto}
#modal .hours-home-header{gap:4px}
#modal .hours-home-header #modal-kicker{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal .hours-home-link--dialog{flex:0 0 60px;width:60px;padding:3px;border:1px solid #d8c9a84d;color:#f5d79b;background:#14212b66;font:700 9px/1.2 Arial,sans-serif;letter-spacing:.04em}
#modal .hours-home-link--dialog:hover{background:#283a42}

/* Keep discovered objects and their original Take/Leave actions together. */
#modal:has(.object-image){position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 24px));height:fit-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid #d3bb844d;border-radius:10px;overflow:hidden}
#modal:has(.object-image) .modal-shell{height:auto;max-height:calc(100dvh - 26px);padding:12px 16px 16px;overflow:auto;box-sizing:border-box}
#modal:has(.object-image) .modal-head{min-height:44px;margin-bottom:10px}
#modal:has(.object-image) #modal-body{flex:none;min-height:0;overflow:visible}
#modal:has(.object-image) .object-image{display:block;width:100%;height:min(44dvh,360px);max-height:max(120px,calc(100dvh - 380px));object-fit:contain;object-position:center;margin:0 0 12px}
#modal:has(.object-image) #modal-body h2{font-size:25px;line-height:1.2;margin:0 0 8px}
#modal:has(.object-image) #modal-reader{margin-bottom:12px}
#modal:has(.object-image) #object-actions{gap:8px}
#modal:has(.object-image) #object-actions .button{min-height:44px}
@media(orientation:landscape) and (max-height:600px){
 #modal:has(.object-image){width:min(760px,calc(100vw - 24px))}
 #modal:has(.object-image) .modal-shell{padding:10px 14px}
 #modal:has(.object-image) .modal-head{margin-bottom:8px}
 #modal:has(.object-image) #modal-body{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:8px 16px;align-items:center}
 #modal:has(.object-image) .object-image{grid-column:1;grid-row:1/4;height:calc(100dvh - 104px);max-height:340px;margin:0}
 #modal:has(.object-image) #modal-body h2,#modal:has(.object-image) #modal-reader,#modal:has(.object-image) #object-actions{grid-column:2;margin:0}
 #modal:has(.object-image) #modal-body h2{font-size:22px}
}
