/* Site chrome for hugr-lab.com: header, menus, footer, copy buttons. Page content keeps its own inline styles. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: #0B1F2A; }
img { max-width: 100%; }

.hl-header { position: relative; z-index: 20; padding: 20px 5%; }
.hl-header-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.hl-logo { display: inline-flex; align-items: center; }
.hl-logo img { height: 40px; width: auto; display: block; }
.hl-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font: 500 15px/1.4 Manrope, system-ui, sans-serif; }
.hl-nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 0; color: #0B1F2A; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.hl-nav-link:hover, .hl-nav-link[aria-current="page"], .hl-current > .hl-nav-link { color: #0A3146; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hl-nav-link[aria-current="page"], .hl-current > .hl-nav-link { font-weight: 700; }
.hl-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #0A3146; color: #FFFFFF !important; font-weight: 600; text-decoration: none; }
.hl-cta:hover { background: #2A7470; }

.hl-dd { position: relative; }
.hl-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 260px; padding: 10px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 12px 40px rgba(10, 49, 70, 0.16); }
.hl-dd:hover .hl-menu, .hl-dd:focus-within .hl-menu { display: flex; flex-direction: column; }
.hl-menu a { padding: 10px 14px; border-radius: 12px; color: #0B1F2A; text-decoration: none; font-weight: 500; }
.hl-menu a:hover, .hl-menu a:focus-visible { background: #F2F7F7; color: #0A3146; }

.hl-mnav { display: none; position: relative; }
.hl-mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 999px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hl-mnav summary::-webkit-details-marker { display: none; }
.hl-mnav summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #0A3146; }
.hl-mnav-panel { position: absolute; right: 0; top: 52px; width: min(320px, calc(100vw - 32px)); padding: 12px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 12px 40px rgba(10, 49, 70, 0.18); display: flex; flex-direction: column; font: 500 16px/1.4 Manrope, system-ui, sans-serif; }
.hl-mnav-panel a { padding: 12px 14px; border-radius: 12px; color: #0B1F2A; text-decoration: none; }
.hl-mnav-panel a:hover { background: #F2F7F7; }
.hl-mnav-panel .hl-cta { margin-top: 8px; justify-content: center; border-radius: 999px; }
.hl-mnav-panel .hl-cta:hover { background: #2A7470; }
@media (max-width: 900px) {
  .hl-nav { display: none; }
  .hl-mnav { display: block; }
}

.hl-footer { padding: 24px 5% 40px; color: #4A5B64; font: 14px/22px Manrope, system-ui, sans-serif; border-top: 1px solid #E3ECED; }
.hl-footer-in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.hl-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.hl-footer a { padding: 11px 0; color: #2A7470; }
.hl-footer a.hl-strong { color: #0B1F2A; font-size: 15px; font-weight: 700; }

.hl-copy { border: 0; cursor: pointer; font: 600 13px/1 Manrope, system-ui, sans-serif; }
.hl-copy:hover { background: #2A7470 !important; }
.hl-copy:focus-visible, .hl-nav-link:focus-visible, .hl-cta:focus-visible, summary:focus-visible { outline: 2px solid #5CBDB6; outline-offset: 2px; }

/* Open source projects table: one block per project on phones instead of a sideways-scrolling table. */
@media (max-width: 720px) {
  .hl-proj thead { display: none; }
  .hl-proj, .hl-proj tbody, .hl-proj tr { display: block; }
  .hl-proj tr { padding: 14px 0; }
  .hl-proj td { display: block; padding: 4px 0 !important; min-width: 0 !important; }
  .hl-proj td.hl-proj-meta { display: inline-block; margin: 8px 12px 0 0; vertical-align: middle; }
}

@media (max-width: 600px) {
  .hg-glow { width: 160px !important; height: 160px !important; border-width: 10px !important; outline-width: 10px !important; }
  .hg-glow svg { width: 96px; height: 96px; }
}
