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

/* Modern type + slightly softer UI */
:root {
    --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Subtle shadow used on the nav (mobile especially) */
.shadow-sm-sm {
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* Card vibe to match the reference aesthetic */
.card.elevated, .elevated {
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.06);
}

/* Rounder buttons like the reference */
.btn {
    border-radius: .75rem;
    font-weight: 600;
}

/* Tweak nav link appearance for a cleaner feel */
.navbar .nav-link {
    font-weight: 500;
}

    .navbar .nav-link:hover {
        color: #0d6efd; /* Bootstrap primary */
    }

/* Optional: smaller brand avatar letter box */
.navbar-brand span.rounded-3 {
    font-size: .9rem;
    line-height: 1;
}

.card-img-top {
    object-fit: cover;
    height: 200px; /* adjust to taste */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.ql-editor img {
    max-width: 100%;
    height: auto;
}

.ql-align-center img {
    display: block;
    margin: 0 auto;
}

.ql-align-right img {
    display: block;
    margin-left: auto;
}


/* RFP hardening: keyboard and accessibility foundation */
.skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 1100;
    padding: .65rem .9rem;
    border-radius: .5rem;
    background: #ffffff;
    color: #0b5ed7;
    border: 2px solid #0b5ed7;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .12s ease-in-out;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Give all interactive elements a consistent, high-visibility keyboard focus. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0b5ed7;
    outline-offset: 3px;
    box-shadow: none !important;
}

/* The main landmark receives focus only when the skip link is used. */
#main-content:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
