/* JPC document viewer: PDFs open in a panel over the page on computers, touch screen or not (js/viewer.js panelHere).
   Used by every page that links to a document on a server that allows embedding (see data-viewer in the build scripts).
   (10 Nov 2026) Its buttons are at least 44px tall, as the picture viewer's: touch-screen PCs get the panel now. */
.hb-viewer{width:min(1180px,94vw);height:min(92vh,1100px);max-width:none;max-height:none;padding:0;border:0;border-radius:18px;overflow:hidden;
  background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.35);display:flex;flex-direction:column;}
.hb-viewer:not([open]){display:none;}
.hb-viewer::backdrop{background:rgba(20,12,16,.62);backdrop-filter:blur(3px);}
.hb-viewer-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px 14px 22px;background:var(--jpic-burgundy);color:#fff;}
.hb-viewer-head{display:flex;align-items:center;gap:14px;min-width:0;}
.hb-viewer-head > i{font-size:1.6rem;flex:none;}
.hb-viewer-head h2{margin:0;font:800 1.1rem/1.25 var(--km-display);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hb-viewer-head > div{min-width:0;}
.hb-viewer-host{display:block;font:500 .82rem/1.3 var(--km-body);color:rgba(255,255,255,.85);}
.hb-viewer-actions{display:flex;gap:8px;flex:none;}
.hb-viewer-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:9px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.6);background:transparent;color:#fff;
  font:700 .92rem/1 var(--km-body);text-decoration:none;cursor:pointer;}
.hb-viewer-btn:hover{background:rgba(255,255,255,.14);color:#fff;}
.hb-viewer-close{background:#fff;color:var(--jpic-burgundy);border-color:#fff;}
.hb-viewer-close:hover{background:#fff;color:var(--jpic-burgundy);filter:brightness(.95);}
.hb-viewer-btn:focus-visible{outline:3px solid #fff;outline-offset:2px;}
.hb-viewer-body{position:relative;flex:1;background:#525659;}
.hb-viewer-body iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#525659;}
.hb-viewer-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;margin:0;padding:24px;
  color:#fff;font:600 1rem/1.5 var(--km-body);text-align:center;}
.hb-viewer-loading p{margin:0;}
.hb-viewer-slow{max-width:420px;font-weight:400;}
.hb-viewer-slow[hidden]{display:none;}
.hb-viewer-slow a{display:inline-block;margin-top:12px;padding:10px 16px;border-radius:10px;background:#fff;color:var(--jpic-burgundy);font-weight:700;text-decoration:none;}
.hb-viewer-slow a:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.hb-viewer-loading[hidden]{display:none;}
/* (16 Nov 2026) A document the browser won't show in the panel: drawn over the frame, white on #525659 (7.5:1) */
.hb-viewer-blocked{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;justify-content:safe center;overflow-y:auto;gap:12px;margin:0;padding:24px;
  background:#525659;color:#fff;font:400 1rem/1.5 var(--km-body);text-align:center;}
.hb-viewer-blocked[hidden]{display:none;}
.hb-viewer-blocked p{margin:0;max-width:460px;}
.hb-viewer-blocked strong{font-weight:700;font-size:1.1rem;}
.hb-viewer-blocked a{display:inline-block;margin-top:4px;padding:10px 16px;border-radius:10px;background:#fff;color:var(--jpic-burgundy);font-weight:700;text-decoration:none;}
.hb-viewer-blocked a:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.hb-viewer-blocked-who{font-size:.9rem;color:#fff;opacity:.95;}

/* Picture viewer (js/viewer.js): a link to a picture on this website opens it over the page, on every screen size.
   JPC Burgundy bar with white text and buttons (white on #880D27 is 10:1); the picture fitted to the screen. */
html.hb-pic-lock{overflow:hidden;}
.hb-pic{width:min(1400px,96vw);height:min(94vh,1200px);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:18px;overflow:hidden;
  background:#fff;color:#1d1d1d;box-shadow:0 30px 80px rgba(0,0,0,.35);display:flex;flex-direction:column;}
.hb-pic:not([open]){display:none;}
.hb-pic::backdrop{background:rgba(20,12,16,.78);}
.hb-pic-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px 16px;padding:10px 14px 10px 22px;background:#880D27;color:#fff;}
.hb-pic-title{flex:1 1 auto;min-width:0;margin:0;font:800 1.1rem/1.3 var(--km-display, inherit);color:#fff;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hb-pic-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none;}
.hb-pic-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:8px 16px;border-radius:10px;
  border:2px solid #fff;background:transparent;color:#fff;font:700 .95rem/1.1 var(--km-body, inherit);text-decoration:none;cursor:pointer;}
.hb-pic-btn:hover{background:rgba(255,255,255,.16);color:#fff;}
.hb-pic-close{background:#fff;color:#880D27;}
.hb-pic-close:hover{background:#fff;color:#880D27;text-decoration:underline;}
.hb-pic-btn:focus-visible{outline:3px solid #fff;outline-offset:2px;}
.hb-pic-stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px;background:#2b2326;}
.hb-pic-img{display:block;width:100%;height:100%;object-fit:contain;}
.hb-pic-msg{position:absolute;inset:auto 16px 16px;margin:0;padding:12px 16px;border-radius:10px;background:#fff;color:#1d1d1d;font:600 1rem/1.4 var(--km-body, inherit);text-align:center;}
.hb-pic-msg[hidden]{display:none;}
@media (max-width:640px){
  /* phones: the whole screen, the picture full width */
  .hb-pic{width:100vw;height:100vh;height:100dvh;border-radius:0;}
  .hb-pic-bar{flex-wrap:wrap;padding:calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 16px;}
  .hb-pic-title{flex-basis:100%;font-size:1rem;}
  .hb-pic-actions{width:100%;justify-content:flex-end;}
  .hb-pic-stage{padding:0 0 env(safe-area-inset-bottom, 0px);}
}
@media (prefers-reduced-motion: no-preference){
  .hb-pic[open]{animation:hb-pic-in .18s ease-out;}
  @keyframes hb-pic-in{from{opacity:0;transform:scale(.98);}to{opacity:1;transform:none;}}
}
@media (forced-colors: active){
  .hb-pic{border:2px solid CanvasText;}
  .hb-pic-btn{border-color:ButtonText;}
}
