:root {
  /* default fallback, will be updated at runtime by JS */
  --navbar-height: 64px;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Keep main navbar always visible and fixed */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000; /* sits above page content */
}

/* Make room for the fixed navbar - use CSS variable synced from JS */
body {
  padding-top: var(--navbar-height, 64px);
}

/* Force Bootstrap collapsed nav to be displayed (always expanded) */
.navbar-collapse.collapse {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
}

/* Optional: hide hamburger toggler when menu is always visible */
.navbar-toggler {
  display: none !important;
}

/* Ensure every top-level card is 80% width of the container and centered */
/*.skj-grid > .skj-card {
  width: 80% !important;
  min-width: 80% !important;
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0;*/ /* justify-items handles centering */
/*}*/

/* responsive Mermaid SVG */
.mermaid svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.mermaid { overflow: visible; }

/* DEBUG: ensure skjalasafn grid and cards remain visible for anonymous users */
.skj-grid, .skj-card, .skj-child-content, .skj-childrow, .skj-gogn-combined {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

button[disabled], button[aria-disabled="true"], .disabled {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 0.9 !important;
}







