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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Heron Icon Sizing - Consistent across all pages */
.heron-icon, .header-icon {
    height: 1.5rem;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: text-bottom;
    max-width: 1.5rem; /* Prevent oversizing */
    object-fit: contain; /* Maintain aspect ratio */
}

/* For public layout (white background) */
.public-header .heron-icon {
    filter: brightness(0) invert(1); /* Makes image white */
}

/* For admin layout (darker backgrounds) */
.admin-header .heron-icon,
.form-header .heron-icon {
    filter: none; /* Keep original colors */
}

/* Responsive sizing */
@media (max-width: 768px) {
    .heron-icon, .header-icon {
        height: 1.25rem;
        max-width: 1.25rem;
    }
}

/* Ensure headers don't grow too large */
h1 .heron-icon, h2 .heron-icon, h3 .heron-icon {
    height: 1em; /* Scale with text size */
    max-height: 2rem; /* But not too large */
}