body.hadara-academic .hadara-department-canvas .elementor-widget-hadara_academic_head {
  position: fixed !important;
  z-index: 90;
  left: 16px;
  top: 34vh;
  width: max-content !important;
  max-width: min(330px, calc(100vw - 32px));
  margin: 0 !important;
  direction: rtl;
}
body.hadara-academic .hadara-department-canvas .elementor-widget-hadara_academic_head:has(.hadara-head-float[data-side="right"]) { left: auto; right: 16px; }
body.hadara-academic .hadara-department-canvas .hadara-head-float {
  --hadara-head-accent: #7a965f;
  width: max-content;
  max-width: 100%;
  color: #183d42;
  font-family: var(--hadara-display);
}
body.hadara-academic .hadara-department-canvas .hadara-head-float summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 12px 5px 8px;
  border: 1px solid #819f93;
  border-radius: 8px;
  background: #f9fbf7;
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 var(--hadara-head-accent), 0 10px 20px rgba(16,52,53,.18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.hadara-academic .hadara-department-canvas .hadara-head-float summary::-webkit-details-marker { display: none; }
body.hadara-academic .hadara-department-canvas .hadara-head-float summary:is(:hover,:focus-visible) { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 6px 0 var(--hadara-head-accent), 0 15px 24px rgba(16,52,53,.2); }
body.hadara-academic .hadara-department-canvas .hadara-head-float summary:focus-visible,
body.hadara-academic .hadara-department-canvas .hadara-head-float a:focus-visible { outline: 3px solid #9a7040; outline-offset: 4px; }
body.hadara-academic .hadara-department-canvas .hadara-head-sign { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: #dfeadf; color: #235d57; }
body.hadara-academic .hadara-department-canvas .hadara-head-sign svg { width: 21px; height: 21px; }
body.hadara-academic .hadara-department-canvas .hadara-head-chevron { width: 7px; height: 7px; margin-inline-start: 4px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
body.hadara-academic .hadara-department-canvas .hadara-head-float[open] .hadara-head-chevron { transform: rotate(225deg); }
body.hadara-academic .hadara-department-canvas .hadara-head-panel {
  width: min(310px, calc(100vw - 32px));
  margin-block-start: 10px;
  padding: 22px;
  border: 1px solid #a6bdb2;
  border-block-end: 4px solid var(--hadara-head-accent);
  border-radius: 8px;
  background: #f9fbf7;
  box-shadow: 0 18px 34px rgba(16,52,53,.2);
  text-align: right;
}
body.hadara-academic .hadara-department-canvas .hadara-head-float.has-motion[open] .hadara-head-panel { animation: hadara-head-enter .34s cubic-bezier(.16,1,.3,1) both; }
@keyframes hadara-head-enter { from { opacity: .5; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
body.hadara-academic .hadara-department-canvas .hadara-head-photo { display: block; width: 68px; height: 68px; margin-block-end: 14px; object-fit: cover; border: 2px solid #d4e0d4; border-radius: 6px; }
body.hadara-academic .hadara-department-canvas .hadara-head-panel h3 { margin: 0 0 5px; color: #183d42; font: 750 19px/1.5 var(--hadara-display); }
body.hadara-academic .hadara-department-canvas .hadara-head-panel p { margin: 0; color: #355b5b; font: 500 14px/1.8 var(--hadara-reading); }
body.hadara-academic .hadara-department-canvas .hadara-head-panel .hadara-head-description { margin-block-start: 13px; padding-block-start: 11px; border-block-start: 1px solid #d2ddd5; }
body.hadara-academic .hadara-department-canvas .hadara-head-panel a { display: inline-block; margin-block-start: 14px; color: #174e4b; font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
@media (max-width: 767px) {
  body.hadara-academic .hadara-department-canvas .elementor-widget-hadara_academic_head { top: auto !important; bottom: 24px; left: 12px; }
  body.hadara-academic .hadara-department-canvas .elementor-widget-hadara_academic_head:has(.hadara-head-float[data-side="right"]) { left: auto; right: 12px; }
  body.hadara-academic .hadara-department-canvas .hadara-head-float summary { width: 50px; min-height: 50px; padding: 8px; justify-content: center; }
  body.hadara-academic .hadara-department-canvas .hadara-head-float summary > span:nth-child(2) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  body.hadara-academic .hadara-department-canvas .hadara-head-chevron { display: none; }
  body.hadara-academic .hadara-department-canvas .hadara-head-float[open] { display: flex; flex-direction: column-reverse; }
  body.hadara-academic .hadara-department-canvas .hadara-head-panel { margin-block: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.hadara-academic .hadara-department-canvas .hadara-head-float *, body.hadara-academic .hadara-department-canvas .hadara-head-float[open] .hadara-head-panel { animation: none !important; transition: none !important; }
}
