html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #fff;
  color: #212529;
  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;
}

/* === ASL Visual Identity === */

/* Straight lines only — no rounded corners */
*,
.btn,
.card,
.form-control,
.form-select,
.input-group-text,
.badge,
.alert,
.list-group-item,
.modal-content,
.dropdown-menu,
.popover,
.tooltip-inner {
  border-radius: 0 !important;
}

/* Brand colors */
.text-asl { color: #1B4332 !important; }
.bg-asl { background-color: #1B4332 !important; }
.border-asl { border-color: #1B4332 !important; }

/* Action card icon box */
.asl-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #edf2ef;
  color: #1B4332;
  flex-shrink: 0;
}

/* Subtle card hover for action cards */
.asl-action-card {
  transition: border-color 0.15s ease;
}

.asl-action-card:hover {
  border-color: #1B4332 !important;
}

/* Skip to main content (WCAG 2.4.1) */
.skip-to-main {
  position: absolute;
  top: -4rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #1B4332;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s ease;
}

.skip-to-main:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* High-contrast focus indicator (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #1B4332 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* No shadows — straight-line design language */
.card,
.dropdown-menu,
.modal-content,
.popover,
.toast {
  box-shadow: none !important;
}

/* Primary button — hover and active use deeper dark green */
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color: #081C15 !important;
  border-color: #081C15 !important;
  color: #fff;
}

.btn-primary:focus-visible {
  background-color: #081C15;
  border-color: #081C15;
  box-shadow: none;
}

/* Dropdown active item — use brand dark green instead of Bootstrap blue */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #1B4332;
  color: #fff;
}

/* Navbar links — white on dark-green background, light grey on hover/focus (~5.7:1, WCAG AA) */
.navbar-dark .nav-link,
.navbar-dark .nav-link.dropdown-toggle {
  color: #ffffff !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus,
.navbar-dark .nav-link.show,
.navbar-dark .nav-link.active {
  color: rgba(255, 255, 255, 0.60) !important;
}

/* Navbar btn-link (language switcher) — same white / light-grey treatment */
.navbar-dark .btn-link {
  color: #ffffff;
}

.navbar-dark .btn-link:hover,
.navbar-dark .btn-link:focus {
  color: rgba(255, 255, 255, 0.60);
}

/* Footer link inherits brand colour */
.footer a {
  color: #1B4332;
}
/* Remove default Bootstrap focus shadow */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: none;
}

/* Navbar brand — white on dark-green background (~12:1 contrast, WCAG AA) */
.navbar-brand {
  color: #fff !important;
  font-weight: 700;
}
