/*!
 * Federal Judicial Academy - color theme override
 * Load this file AFTER bootstrap.min.css in your HTML <head>.
 * Palette: Navy (unchanged, #0C2B4B) + Emerald green accent (#1D6F42)
 * Replaces the previous bright gold/mustard accent (#F3BD00).
 */

:root {
  --bs-primary: #1D6F42;
  --bs-dark: #0C2B4B;
}

/* Links */
a {
  color: #1D6F42;
}
a:hover {
  color: #175935;
}

/* Buttons - primary */
.btn-primary {
  color: #fff;
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.btn-primary:hover {
  color: #fff;
  background-color: #195e38;
  border-color: #175935;
}
.btn-check:focus + .btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: #195e38;
  border-color: #175935;
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.5);
}
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #175935;
  border-color: #165332;
}
.btn-check:checked + .btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.5);
}
.btn-primary:disabled,
.btn-primary.disabled {
  color: #fff;
  background-color: #1D6F42;
  border-color: #1D6F42;
}

/* Buttons - outline primary */
.btn-outline-primary {
  color: #1D6F42;
  border-color: #1D6F42;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.5);
}
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
  color: #fff;
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  color: #1D6F42;
  background-color: transparent;
}

/* Links (btn-link, nav-link, pagination, dropdown active) */
.btn-link {
  color: #1D6F42;
}
.btn-link:hover {
  color: #175935;
}
.nav-link {
  color: #1D6F42;
}
.nav-link:hover,
.nav-link:focus {
  color: #175935;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1D6F42;
}
.page-link {
  color: #1D6F42;
}
.page-link:hover {
  color: #175935;
  background-color: #e9ecef;
}
.page-link:focus {
  color: #175935;
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.25);
}
.page-item.active .page-link {
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.dropdown-item.active,
.dropdown-item:active {
  background-color: #1D6F42;
}
.list-group-item.active {
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
  background-color: #1D6F42;
}

/* Form controls - focus ring, checkboxes, switches, range slider */
.form-control:focus,
.form-select:focus {
  border-color: #7fb89c;
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.25);
}
.form-check-input:focus {
  border-color: #7fb89c;
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.25);
}
.form-check-input:checked {
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.form-check-input[type="checkbox"]:indeterminate {
  background-color: #1D6F42;
  border-color: #1D6F42;
}
.form-range::-webkit-slider-thumb {
  background-color: #1D6F42;
}
.form-range::-moz-range-thumb {
  background-color: #1D6F42;
}
.form-range::-webkit-slider-thumb:active {
  background-color: #7fb89c;
}
.form-range::-moz-range-thumb:active {
  background-color: #7fb89c;
}
.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(29,111,66,0.25);
}
.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(29,111,66,0.25);
}

/* Badges, backgrounds, borders, text utilities */
.bg-primary { background-color: #1D6F42 !important; }
.text-primary { color: #1D6F42 !important; }
.border-primary { border-color: #1D6F42 !important; }
.link-primary { color: #1D6F42; }
.link-primary:hover,
.link-primary:focus { color: #175935; }

/* Alerts */
.alert-primary {
  color: #114328;
  background-color: #d2e2d9;
  border-color: #bbd4c6;
}
.alert-primary .alert-link {
  color: #0d331f;
}

/* Tables */
.table-primary {
  --bs-table-bg: #d2e2d9;
  --bs-table-striped-bg: #c4dace;
  --bs-table-striped-color: #000;
  --bs-table-active-bg: #b7d1c3;
  --bs-table-active-color: #000;
  --bs-table-hover-bg: #bcd6c8;
  --bs-table-hover-color: #000;
  color: #000;
  border-color: #b7d1c3;
}

/* List group primary variant */
.list-group-item-primary {
  color: #114328;
  background-color: #d2e2d9;
}
.list-group-item-primary.list-group-item-action:hover,
.list-group-item-primary.list-group-item-action:focus {
  color: #114328;
  background-color: #b7d1c3;
}
.list-group-item-primary.list-group-item-action.active {
  color: #fff;
  background-color: #114328;
  border-color: #114328;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  color: #144e2e;
  background-color: #e8f1ec;
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23144e2e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:focus {
  border-color: #7fb89c;
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.25);
}

/* Progress bar */
.progress-bar {
  background-color: #1D6F42;
}

/* Close button / misc focus rings */
.btn-close:focus {
  box-shadow: 0 0 0 .25rem rgba(29,111,66,0.25);
}

/* Navbar: gold accent removed - nav links on the dark navy navbar now use a soft green tint on hover */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #8FCB9E;
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link {
  color: #fff;
}


/* v1.95 responsive/readability refinements */
html{overflow-x:hidden} body{overflow-x:hidden} .container,.container-fluid{max-width:100%}
.cms-content p,.overview-copy p,.advisor-bio p,.page-content p{font-size:16px;line-height:1.78;word-break:normal;overflow-wrap:normal;hyphens:none}
.cms-content,.overview-copy,.page-content{word-break:normal;overflow-wrap:normal;hyphens:none}
@media (max-width:575px){.cms-content p,.overview-copy p,.advisor-bio p,.page-content p{font-size:15px;line-height:1.7}}

/* FJA v1.96 — professional homepage content width on desktop/LED displays.
   Mobile layout remains fluid. */
@media (min-width: 992px){
  .fja-home-overview > .container,
  .fja-home-updates > .container,
  .fja-initiative-section > .container,
  .fja-team > .container{
    width:calc(100% - 64px)!important;
    max-width:1240px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .fja-home-overview .overview-copy{
    max-width:650px;
    font-size:16px!important;
    line-height:1.78!important;
  }
  .fja-managed-heading{
    padding-left:34px!important;
    padding-right:34px!important;
  }
}
@media (min-width: 1600px){
  .fja-home-overview > .container,
  .fja-home-updates > .container,
  .fja-initiative-section > .container,
  .fja-team > .container{max-width:1280px!important;}
}
@media (max-width: 991.98px){
  .fja-home-overview > .container,
  .fja-home-updates > .container,
  .fja-initiative-section > .container,
  .fja-team > .container{width:100%!important;max-width:100%!important;}
}

/* FJA v1.97 — unified professional desktop content frame.
   Restores the broader v1.94 feel while keeping consistent margins site-wide. */
@media (min-width: 992px){
  body .container{
    width:calc(100% - 48px)!important;
    max-width:1520px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:20px!important;
    padding-right:20px!important;
  }
  .fja-home-overview > .container,
  .fja-home-updates > .container,
  .fja-initiative-section > .container,
  .fja-team > .container{
    width:calc(100% - 48px)!important;
    max-width:1520px!important;
    padding-left:20px!important;
    padding-right:20px!important;
  }
  .fja-home-overview .overview-copy{
    max-width:760px!important;
  }
  .fja-managed-heading{
    padding:30px 38px!important;
    min-height:116px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .cms-shell{
    width:calc(100% - 48px)!important;
    max-width:1520px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:20px!important;
    padding-right:20px!important;
  }
}
@media (min-width: 1600px){
  body .container,
  .fja-home-overview > .container,
  .fja-home-updates > .container,
  .fja-initiative-section > .container,
  .fja-team > .container,
  .cms-shell{max-width:1520px!important;}
}
@media (max-width: 991.98px){
  body .container{width:100%!important;max-width:100%!important;}
  .fja-managed-heading{min-height:0;}
}

/* FJA v1.98 — proportional professional frame. Keeps mobile intact and prevents edge-to-edge desktop text. */
@media (min-width:992px){body .container,.cms-shell{width:94%!important;max-width:1540px!important;margin-inline:auto!important;padding-left:18px!important;padding-right:18px!important}.fja-managed-heading{width:100%!important}}
@media (max-width:991.98px){body .container,.cms-shell{width:100%!important;max-width:100%!important;padding-left:var(--bs-gutter-x,.75rem)!important;padding-right:var(--bs-gutter-x,.75rem)!important}}
