/**
 * Color and Theme Adjustments for Accessibility
 */

.btn-secondary {
    background-color: darkblue !important;
    color: white;
}

.notice {
    color: black;
}

.bottom-content {
    h2 {
        text-align: center;
    }
}

.nav-breadcrumb {
    li {
        color: rgb(37, 35, 35);
    }
}

.footer-primary, .list-linear-pipes {
    a {
        color: white;
        text-decoration-color: white !important;
        text-decoration: underline;
    }

    a:visited {
        color: white !important;
        text-decoration-color: white !important;
    }
}


/** Bootstrap 5 Menu Accessibility **/

.navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Target the active item specifically to ensure contrast */


/** News Navigation **/

/* Container for the news feed */
.news-feed {
  padding: 0.5rem; /* Prevents focus rings from being clipped */

  .news-item {
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: -1rem; /* Negative margin allows the focus box to "float" around the content */
    border: 2px solid transparent;

    /* Logic for when the link inside is focused via Keyboard (Tab) */
    &:focus-within {
      background-color: rgba(13, 110, 253, 0.04);
      border-color: #0d6efd;
      box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
      
      /* Target the header link specifically to increase contrast */
      h3 a {
        color: #0a58ca;
        text-decoration: underline;
        outline: none; /* We handle the focus visually on the parent row */
      }
    }

    /* Optional: Subtle hover state for mouse users that matches the focus feel */
    &:hover {
      background-color: rgba(0, 0, 0, 0.02);
    }
  }
}

/** * Bold Search Results Styles
 * Designed for High Contrast & IBM ADA Compliance
 **/

.srp-container {
  .srp-card {
    background: #fff;
    border: 2px solid #e9ecef; /* Stronger initial border */
    border-left: 5px solid #dee2e6; /* Subtle accent line */
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;

    /* High-Impact Focus State */
    &:focus-within {
      background-color: #fcfdfe;
      border-color: #0d6efd;
      border-left-color: #0a58ca; /* Darker accent on focus */
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 
                  0 0 0 0.25rem rgba(13, 110, 253, 0.25);
      transform: translateY(-2px); /* Subtle lift */

      .srp-title-link {
        color: #0a58ca;
        text-decoration: underline;
      }
    }

    /* Hover state for non-keyboard users */
    &:hover {
      border-color: #ced4da;
      background-color: #f8f9fa;
    }
  }

  .srp-title-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700; /* Bolder font */
    line-height: 1.3;
    display: inline-block;

    &:focus {
      outline: none; /* Handled by parent card */
    }
  }

  .srp-type-tag {
    display: inline-block;
    background-color: #f1f3f5;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
  }

  .srp-excerpt {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;

    mark {
      background-color: #fff3cd; /* Warm yellow highlight */
      color: #000;
      font-weight: 700;
      padding: 0 2px;
      border-bottom: 2px solid #ffda6a; /* Adds extra emphasis to keywords */
    }
  }
}
