/* card-icon: start content from the top of the card so the icon and heading
   sit at the same height across all cards in a row, regardless of heading length.
   Targets the inner flex container only when it contains the icon background box. */
.flex.h-full.flex-col:has(.bg-accent.rounded-md),
.flex.h-full.flex-col:has(.bg-muted.rounded-md) {
  justify-content: flex-start;
}

/* Double the navbar logo height (from h-8/h-10 = 32px/40px to 64px/80px) */
.navbar--logo .branding,
.navbar--modal-logo .branding {
  height: 4rem !important;
}

@media (min-width: 768px) {
  .navbar--logo .branding,
  .navbar--modal-logo .branding {
    height: 5rem !important;
  }
}

/* Hide duplicate H1 page title on biodata node pages (the biodata card renders its own heading) */
body.page-node-type-biodata header[role="banner"] h1 {
  display: none;
}

/* Shrink breadcrumb current-page crumb text by 30% */
nav[aria-label="breadcrumb"] li.active {
  font-size: 0.6125rem; /* 0.875rem * 0.7 */
}

@media (min-width: 768px) {
  nav[aria-label="breadcrumb"] li.active {
    font-size: 0.7rem; /* 1rem * 0.7 */
  }
}

/* Hide "Get started" header button for already-authenticated users */
body.user-logged-in header[role="banner"] a[href="/user/login"] {
  display: none;
}

/* Hide node title in the admin Navigation top-bar on biodata pages */
body.page-node-type-biodata .top-bar__content .top-bar__title {
  display: none;
}

/* Do not reserve sticky top-bar space when the hidden title is its only item. */
body.page-node-type-biodata .top-bar:not(:has(.top-bar__tools > *)):has(.top-bar__context > .top-bar__title:only-child):not(:has(.top-bar__actions > *)) {
  display: none;
}

@media (min-width: 64rem) {
  body.page-node-type-biodata .top-bar:not(:has(.top-bar__tools > *)):has(.top-bar__context > .top-bar__title:only-child):not(:has(.top-bar__actions > *)) ~ .dialog-off-canvas-main-canvas {
    margin-block-start: 0;
  }
}

/* Views page displays provide their own page controls and need no top bar. */
body.views-page-display :is(#extra-specificity-hack, [data-drupal-admin-styles]).top-bar.top-bar.top-bar {
  display: none;
}

@media (min-width: 64rem) {
  body.views-page-display :is(#extra-specificity-hack, [data-drupal-admin-styles]).top-bar.top-bar.top-bar ~ .dialog-off-canvas-main-canvas {
    margin-block-start: 0;
  }
}
