.hopa-rb{--hopa-bg:#f0f5fa;--hopa-head:#142a49;--hopa-accent:#0ba9aa;--hopa-text:#1c3047;--hopa-card:#fff;background:var(--hopa-bg);color:var(--hopa-text);padding:18px;border-radius:15px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px}.hopa-rb *{box-sizing:border-box}.hopa-rb [hidden]{display:none!important}.hopa-rb-header{background:linear-gradient(115deg,var(--hopa-head),#256d82);padding:26px;border-radius:13px;color:white;margin-bottom:16px}.hopa-rb-header h2{color:#fff;margin:0;font-weight:800;font-size:clamp(25px,3vw,38px);line-height:1.15}.hopa-rb-header p{color:#e6fbff;margin:8px 0 0}.hopa-rb-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:13px;background:var(--hopa-card);border-radius:12px;margin-bottom:16px;box-shadow:0 2px 12px #1232}.hopa-rb-toolbar label{font-size:12px;font-weight:700;flex:1 1 150px;min-width:0}.hopa-rb-toolbar .hopa-rb-search-label{flex:2 1 220px}.hopa-rb-toolbar input,.hopa-rb-toolbar select{display:block;width:100%;height:39px;margin-top:5px;border:1px solid #a7bac5;border-radius:8px;background:#fff;color:#172c3c;padding:5px 10px;font-size:14px}.hopa-rb-layout{display:flex;gap:4px}.hopa-rb-layout button{background:#edf5f7;color:#21384c;padding:7px 9px;border:1px solid #bacbd4;border-radius:7px;cursor:pointer;font-size:16px;min-height:39px}.hopa-rb-layout button.chosen{background:var(--hopa-accent);color:#fff}.hopa-rb-results{font-size:13px;opacity:.7;margin:0 0 10px}.hopa-rb-groups{display:grid;gap:12px}.hopa-rb-section{background:var(--hopa-card);border-radius:11px;overflow:hidden;box-shadow:0 3px 14px #1222}.hopa-rb-cathead{border:0;width:100%;display:flex;align-items:center;justify-content:space-between;padding:16px 19px;color:#fff;font-weight:800;font-size:19px;cursor:pointer;text-align:left;background:linear-gradient(110deg,#155a86,#0aa6a0)}.hopa-rb-cathead[aria-expanded=true] span:first-child::first-letter{color:#fff}.hopa-rb-cathead small{font-size:12px;font-weight:600;background:#ffffff30;padding:5px 10px;border-radius:20px}.hopa-rb-cathead.tone-1{background:linear-gradient(110deg,#773a9a,#b35986)}.hopa-rb-cathead.tone-2{background:linear-gradient(110deg,#a15e1d,#eb9e2c)}.hopa-rb-cathead.tone-3{background:linear-gradient(110deg,#1a7454,#2dba91)}.hopa-rb-cathead.tone-4{background:linear-gradient(110deg,#315aaa,#428bd8)}.hopa-rb-cathead.tone-5{background:linear-gradient(110deg,#ad3959,#e1726b)}.hopa-rb-categorybody{padding:14px}.hopa-rb-subsection+.hopa-rb-subsection{margin-top:20px}.hopa-rb-subhead{background:#e6f2f7;color:#1c546b;padding:9px 13px;border-radius:8px;margin:0 0 11px;font-size:16px;font-weight:800}.hopa-rb-subsection:nth-child(even) .hopa-rb-subhead{background:#faeaf1;color:#833e66}.hopa-rb-subhead small{font-size:12px;margin-left:6px;opacity:.65}.hopa-rb-tiles{display:grid;grid-template-columns:repeat(var(--hopa-columns,3),minmax(0,1fr));gap:14px}.hopa-rb-tile{display:block;text-align:left;padding:0;border:1px solid #dce5eb;background:#fff;border-radius:12px;overflow:hidden;cursor:pointer;color:#23384a;box-shadow:0 2px 9px #2232;transition:transform .15s,box-shadow .15s}.hopa-rb-tile:hover{transform:translateY(-2px);box-shadow:0 5px 16px #2233}.hopa-rb-photo{position:relative;display:block;aspect-ratio:16/10;background:linear-gradient(130deg,#e1ebed,#f4f8f9);overflow:hidden}.hopa-rb-photo img{display:block;width:100%;height:100%;object-fit:cover}.hopa-rb-noimage{display:grid;place-items:center;height:100%;font-size:12px;color:#5a7483}.hopa-rb-tile-title{display:block;font-size:14px;font-weight:750;padding:11px 12px}.hopa-rb-error .hopa-rb-photo{background:#ffe9e9}.hopa-rb-empty{padding:22px;text-align:center}.hopa-rb-loading{position:sticky;bottom:12px;text-align:center;pointer-events:none;z-index:6}.hopa-rb-progress{display:inline-flex;align-items:center;gap:13px;padding:9px 17px;background:#112d45ee;color:#fff;border-radius:40px;box-shadow:0 5px 20px #0005}.hopa-rb-progress p{margin:0;font-size:12px}.hopa-rb-wheel{width:51px;height:51px;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(#35ccae 15%,#ffffff35 15%);animation:hopa-spin 1.1s linear infinite}.hopa-rb-wheel:before{content:'';position:absolute;inset:7px;border-radius:50%;background:#173650}.hopa-rb-wheel span{position:relative;font-weight:800;font-size:13px;color:white;animation:hopa-spin 1.1s linear infinite reverse}@keyframes hopa-spin{to{transform:rotate(360deg)}}.hopa-rb-viewer{position:fixed;inset:0;z-index:999999;background:#08131bef;display:flex;flex-direction:column;color:#fff}.hopa-rb-view-head{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#142d43;padding:10px 15px;min-height:59px}.hopa-rb-view-head strong{font-size:15px}.hopa-rb-view-head>div{display:flex;gap:7px;flex-shrink:0}.hopa-rb-view-head button{background:#0b9fa0;color:white;border:0;border-radius:8px;padding:9px 12px;cursor:pointer;font-size:13px}.hopa-rb-view-head .hopa-rb-close{background:#bc4c55}.hopa-rb-view-body{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;padding:10px;overflow:auto}.hopa-rb-view-image{display:block;max-width:100%;max-height:100%;object-fit:contain}.hopa-rb-view-progress{text-align:center}.hopa-rb-view-progress .hopa-rb-wheel{margin:auto;width:90px;height:90px}.hopa-rb-view-progress p{color:white}.hopa-rb-no-scroll{overflow:hidden!important}@media(max-width:700px){.hopa-rb{padding:10px}.hopa-rb-toolbar{padding:10px}.hopa-rb-layout{display:none!important}.hopa-rb-tiles{grid-template-columns:minmax(0,1fr)!important}.hopa-rb-cathead{font-size:17px;padding:14px}.hopa-rb-categorybody{padding:10px}.hopa-rb-view-head{align-items:start}.hopa-rb-view-head strong{font-size:12px}.hopa-rb-view-head button{font-size:12px;padding:8px}.hopa-rb-view-body{padding:2px}}
/* v1.1 additions */
.hopa-rb .hopa-rb-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0 14px}
.hopa-rb .hopa-rb-actions button,.hopa-rb .hopa-rb-submit-send{background:var(--hopa-accent);color:white;border:0;border-radius:10px;padding:11px 16px;font-weight:750;cursor:pointer}
.hopa-rb .hopa-rb-favfilter{background:#fff!important;color:#195073!important;border:1px solid #96b5c4!important}
.hopa-rb .hopa-rb-favfilter.active{background:#fbe4ea!important;color:#a52d5c!important}
.hopa-rb .hopa-rb-tile{position:relative}
.hopa-rb .hopa-rb-fav{position:absolute;right:10px;top:10px;border-radius:99px;background:#fff;color:#ba3568;font-size:26px;line-height:1;padding:8px;box-shadow:0 2px 8px #0004;z-index:2}
.hopa-rb .hopa-rb-byline{display:block;font-size:12px;color:#536b7e;padding:0 8px 8px}
.hopa-rb .hopa-rb-submit-modal[hidden]{display:none!important}
.hopa-rb .hopa-rb-submit-modal{position:fixed;inset:0;z-index:2147483000;background:#0c1727c9;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.hopa-rb .hopa-rb-submit-panel{background:white;color:#20334a;border-radius:16px;padding:22px;width:min(760px,100%);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 18px 70px #0006}
.hopa-rb .hopa-rb-submit-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.hopa-rb .hopa-rb-submit-top h2{margin:0;color:#163d60}
.hopa-rb .hopa-rb-submit-close{background:#e7edf3;border:0;border-radius:9px;padding:8px 12px;font-size:18px;cursor:pointer}
.hopa-rb .hopa-rb-submit-form label{display:block;font-weight:650;font-size:14px;margin:12px 0 5px}
.hopa-rb .hopa-rb-submit-form input:not([type=checkbox]),.hopa-rb .hopa-rb-submit-form select,.hopa-rb .hopa-rb-submit-form textarea{display:block;box-sizing:border-box;width:100%;font:inherit;font-weight:400;border:1px solid #a4b7c9;border-radius:8px;background:#fff;color:#182b40;padding:10px;margin-top:5px}
.hopa-rb .hopa-rb-formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.hopa-rb .hopa-rb-consent{display:flex!important;gap:10px;align-items:flex-start;font-size:12px!important;font-weight:400!important}
.hopa-rb .hopa-rb-consent input{margin-top:3px}.hopa-rb .hopa-rb-submit-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px}
.hopa-rb .hopa-rb-submit-status{font-size:13px}.hopa-rb .hopa-rb-honeypot{position:absolute!important;left:-9999px;opacity:0;width:1px!important;height:1px}
@media(max-width:640px){.hopa-rb .hopa-rb-formgrid{grid-template-columns:1fr}.hopa-rb .hopa-rb-submit-panel{padding:16px;max-height:calc(100dvh - 14px)}.hopa-rb .hopa-rb-submit-modal{padding:7px}.hopa-rb .hopa-rb-submit-bottom{flex-direction:column;align-items:stretch}.hopa-rb .hopa-rb-submit-send{width:100%}}
@media print{@page{size:landscape;margin:0}.hopa-rb .hopa-rb-view-image{max-width:100%!important;max-height:100%!important;object-fit:contain!important}}

/* v1.1.3: make the action buttons the first visible content, without header whitespace. */
.hopa-rb{padding-top:0!important}
.hopa-rb .hopa-rb-actions{margin-top:0!important;padding-top:0!important}
@media(max-width:700px){.hopa-rb{padding-top:0!important}}

/* Version 1.1.4: reset all active gallery filters */
.hopa-rb .hopa-rb-clear{align-self:end;min-height:39px;padding:7px 13px;background:#e7f4f5;color:#14536a;border:1px solid #8abec6;border-radius:8px;font-size:13px;font-weight:750;white-space:nowrap;cursor:pointer;transition:background .15s}
.hopa-rb .hopa-rb-clear:hover,.hopa-rb .hopa-rb-clear:focus-visible{background:#cce9eb;outline-offset:2px}
@media(max-width:700px){.hopa-rb .hopa-rb-clear{flex:1 1 100%;width:100%}}

/* v1.4.4 — recipe sharing and deep-linked gallery return */
.hopa-rb .hopa-rb-tile-share{display:inline-flex;align-items:center;margin:0 12px 12px;padding:6px 11px;border-radius:8px;background:#e6f5f7;border:1px solid #9dcbd0;color:#145069;font-size:12px;font-weight:800;position:relative;z-index:3;cursor:pointer}
.hopa-rb .hopa-rb-tile-share:hover,.hopa-rb .hopa-rb-tile-share:focus{background:#ccecf1;outline-offset:2px}
.hopa-rb .hopa-rb-toast{position:fixed;z-index:2147483000;top:50%;left:50%;bottom:auto;transform:translate(-50%,-50%);width:max-content;max-width:min(92vw,780px);background:#073c50;color:#fff;padding:19px 26px 21px;border:3px solid #70d9bb;border-radius:18px;box-shadow:0 15px 48px rgba(0,0,0,.35);font-size:18px;line-height:1.35;font-weight:400;text-align:center;pointer-events:none;animation:hopa-copy-pop .22s ease-out}
.hopa-rb .hopa-rb-toast-heading{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:13px;line-height:1.15;font-size:clamp(20px,2vw,28px);font-weight:800}
.hopa-rb .hopa-rb-toast-check{display:inline-flex;align-items:center;justify-content:center;border:3px solid #70dfbc;color:#70dfbc;border-radius:50%;width:37px;height:37px;font-size:24px;font-weight:800;line-height:1;flex:none}
.hopa-rb .hopa-rb-toast-detail{font-size:clamp(16px,1.65vw,23px);font-weight:400;line-height:1.35;white-space:normal}
.hopa-rb .hopa-rb-toast[hidden]{display:none!important}
@keyframes hopa-copy-pop{from{opacity:0;transform:translate(-50%,-47%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:700px){.hopa-rb .hopa-rb-toast{width:calc(100vw - 32px);max-width:480px;padding:18px 16px 20px}.hopa-rb .hopa-rb-toast-heading{font-size:21px;gap:9px}.hopa-rb .hopa-rb-toast-detail{font-size:16px}.hopa-rb .hopa-rb-toast-check{width:32px;height:32px;font-size:21px}}
@media(prefers-reduced-motion:reduce){.hopa-rb .hopa-rb-toast{animation:none}}
@media(max-width:700px){.hopa-rb .hopa-rb-view-head{flex-wrap:wrap}.hopa-rb .hopa-rb-view-head>div{flex-wrap:wrap}.hopa-rb .hopa-rb-view-head button{font-size:12px}}
