/* FIX ACCESSIBILITY ISSUES - Interactive elements, like buttons or links, should be at least 44 by 44 pixels, so they can easily be clicked or tapped by all users */
.block-book-block-toc div.book-blocks-toc-book a {
	display: block;
	min-width: 44px;
	min-height: 44px;
	border-bottom: 15px solid #dfe1e2;
	padding: 12px 0 16px;
}

/* SiteImprove Fix - Interactive elements must by at least 44px x 44px */
/* Division pages - tabbed sections */
.horizontal-tabs ul.horizontal-tabs-list li a, .horizontal-tabs ul.horizontal-tabs-list li.selected a {
  padding: 14px 16px; /* Expands the clickable area */
  min-width: 44px; /* Sets a minimum width */
  min-height: 44px; /* Sets a minimum height */
}
/* Search NIC Products and Videos Page */
/* Example page at https://nicic.gov/training/catalog/instructor-led-training/correctional-case-management-jails */
/* Example page at https://nicic.gov/resources/nic-library/all-library-items */
.usa-card__container .usa-card__heading a {
    padding: 12px 0; /* Expands the clickable area - unable to apply to L/R b/c it misaligns the left alignment */
    display: block; /* Changing to try and pass Siteimprove Accessibility error */
}
/* Due to added spacing above, reduce the padding for the .header container */
.usa-card__container .usa-card__header:has(.usa-card__heading a) {
	padding-top: 1rem;
}
/* Tweak the Page Title Hero Section Identifier */
/* NOTE:: unable to adding padding since element is placed absolutely */
.hero-breadcrumb nav ol.usa-breadcrumb__list li.usa-breadcrumb__list-item a {
    min-width: 44px;
}

/* Fix plus and minus buttons on the Training page - overlays map */
/* Sample page at https://nicic.gov/training/schedule/in-person-ilt/leadership-evolution-manager-leader-0 */
.leaflet-touch .leaflet-bar a {
    width: 44px;
    height: 44px;
    line-height: 44px;
}
/* -------------UPDATED 07-27-2026, UPDATED 8-3-2026 ------------------------------------------------------ */
/* Fix link under right side blue bar - Heading FORMAT - LInk DOWNLOAD THE PDF */
/* Sample page at https://nicic.gov/resources/nic-library/national-standards-cjccs-revised-august-2025 */
/* Sample page at https://nicic.gov/resources/nic-library/all-library-items/cjcc-essential-elements-companion-national-standards */
/* Sample page at https://nicic.gov/resources/nic-library/challenges-and-opportunities-in-jail-reentry-insights-transition-jail */
.nic-blue-sidebar a,
.nic-blue-sidebar a.usa-link,
.nic-blue-sidebar .field--name-field-authors .field__item a {
    display: block !important;
    padding: 10px !important; 
    width: 100% !important;
}
/* Fix another interactive issue with the NetLib NIC VET NET page - the pluses on the left side menu */
.layout-sidebar-first .usa-sidenav .usa-sidenav__item a:not(.usa-button):not(.usa-current) {
    min-width: 44px; 
}
/* NEW 7-16-2026, EDITED 8-3-26 */
/* Fix spacing so it meets the 44px width/height minimums - Related source LInks for NIC Products*/
/* Fix link under Additional Links so it meets minimum size for interactive elements on the Funding Opportunities page */
/* Sample Page at https://nicic.gov/about-nic/funding-opportunities/risk-assessment-conducting-prison-security-audits-26pr10 */
/* Sample Page at https://nicic.gov/resources/nic-library/all-library-items/cjcc-essential-elements-companion-national-standards */
/* Add styling to the heading for the fixed link above so it looks better */ 

.related-links .field__label {
    font-size: 1.3rem;
    color: var(--black);
    font-weight: 700;
}
.related-links div > a,
.related-links a,
.nic-content li a:not(.usa-button) {
  display: block; 
  padding: 13px 0 !important; /* Expands the clickable area */
  margin-right: 12px; /* Adds space between adjacent links */ 
}
.related-links a:hover,
.nic-content li a:hover:not(.usa-button) {
	background-color: var(--primary-dark);
	color: #ffffff;
	text-decoration: none;
}
div.related-links {
    margin-top: 2rem;
}

/* Fix links displayed at https://nicic.gov/resources/collection/prison-rape-elimination-act-prea/agencies */
.nic-content h2 a, 
.nic-content h3 a {
	display: inline-block;
	padding: 12px 0;
}
/* Thinking about keeping this for now until all layouts have been updated with the .nic-content class. */
.usa-collection h2 a, .usa-collection h3 a {
	display: inline-block;
	padding: 12px 0;
}

/* -----------------------NEW 7-17-2026, REVISED 7-20-26, REVISED 7-23-26, REVISED 7-24-2026  ------------------------------------------------- */
/* For NEXT button in the Pagination Nav menu for Library Items, Video archive, etc.,  at the bottom of the page */
/* Sample page at https://nicic.gov/resources/video-training-archive?page=0 */

/* 1. Force the anchor tag to be a rigid, un-collapsible block container */
.views-element-container .usa-nav__primary > .usa-nav__primary-item > a[title*="next page"],
.views-element-container .usa-nav__primary > .usa-nav__primary-item a[title*="last page"] {
    display: inline-block !important;
    box-sizing: border-box !important;
    min-width: 44px !important;       /* Hard minimum width requirement */
    min-height: 44px !important;      /* Hard minimum height requirement */
    padding: 11px 16px !important;    /* Creates a reliable physical footprint */
    text-align: center !important;
    line-height: 24px !important;     /* Locks vertical size calculation */
    text-decoration: none;
}
/* 2. Neutralize your custom .usa-sr-only behavior (off-screen positioning bug) for the crawler JUST inside this pagination link */
.views-element-container .usa-nav__primary > .usa-nav__primary-item > a[title*="next page"] .usa-sr-only,
.views-element-container .usa-nav__primary > .usa-nav__primary-item > a[title*="last page"] .usa-sr-only {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; /* Modern clipping method instead of -999em */
}
/* NEW SUGGESTION USING THE CLASS .PAGINATION-NEXT-TRIGGER AND .PAGINATION-LAST-TRIGGER TO HOOK INSTEAD */
/* 1. Force the anchor tag to be a rigid, un-collapsible block container */
.usa-nav__primary-item .pagination-next-trigger,
.usa-nav__primary-item .pagination-last-trigger {
    display: inline-block !important;
    box-sizing: border-box !important;
    min-width: 44px !important;       /* Hard minimum width requirement */
    min-height: 44px !important;      /* Hard minimum height requirement */
    padding: 11px 16px !important;    /* Creates a reliable physical footprint */
    text-align: center !important;
    line-height: 24px !important;     /* Locks vertical size calculation */
    text-decoration: none;
}

/* 2. Neutralize your custom .usa-sr-only behavior JUST inside this pagination link */
.usa-nav__primary-item .pagination-next-trigger .usa-sr-only,
.usa-nav__primary-item .pagination-last-trigger .usa-sr-only {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; /* Modern clipping method instead of -999em */
}

/* -----------------------NEW 7-20-2026, REVISED 7-23-26  ------------------------------------------------- */
/* List of links needs tweaking after apply NIC content style wrapper */
/* Sample Page - https://nan.nicic.gov/nic-legal-policies-and-disclaimers */
.nic-content li:has(>a:not(.usa-button)){
    margin-bottom: 0;
}

/* NEW 7-23-2026, UPDATED 7-24-26 */
/* New Style for inner content boxes - replacement for applying .usa-card styles for a single border box style to better adhere to USWDS standards for use */
.callout,
.borderbox {
    margin-bottom: 2.5rem;
}
.callout__container,
.borderbox__container {
    color: var(--grey-90);
    background-color: var(--white);
    border: 2px solid var(--gray-cool-10);
    border-radius: .5rem;
    padding: 1rem 1.5rem 1.5rem;
    font-family: Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
    font-size: 1.06rem;
    line-height: 1.5; 
    display: flex;
    height: 100%;
    flex-direction: column;
    margin: 0 .5rem;
    position: relative; 
}
.callout h2,
.borderbox h2 {
    margin-bottom: 1.5rem;
}
.borderbox .borderbox__img {
    display: block;

}
.borderbox__img {
    background-color: var(--gray-5);
    position: relative;
    overflow: hidden;
}
.borderbox__img img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
/* Reduce top margin for ULs in the blue sidebar */
/* Sample page - https://nicic.gov/about-nic/funding-opportunities/staffing-analysis-implementation-program-26jd01 */
.nic-blue-sidebar .usa-label + ul {
    margin-top: 0;
}
/* --------------------------------  NEW 07-24-2026 ----------------------------------- */
/* For standalone links that need padding to meet interactive element requirements */  
.text-link, .text-link a {
    display: inline-block;
    padding: 10px 0;
    margin-right: 12px; /* adds space between adjacent links */
}
/* -------------------------------  NEW 07-27-2026  */
h1, h2, h3, h4, h5, h6 {
    margin-top:1rem;
}
/* ---------------------------- NEW 07-27-2026 ------------------------------------ */
/* Reset top-margin to zero since In Chrome/Safari (WebKit/Blink), the browser ignores margin-top (and margin-bottom) on the <legend> when it’s inside a <fieldset>. Only In Firefox and Edge, is the margin-top on a <legend> inside a <fieldset> respected. */
.nic-blue-sidebar legend,
.nic-blue-sidebar p {
    margin-top: 0; 
}
.nic-blue-sidebar p {
    font-weight: normal;
}
/* --------------------------------  NEW 07-28-2026 ----------------------------------- */
/* Sample page at https://nan.nicic.gov/resources/conferences/aja */
/* Make linked Tags accessible */
a.usa-tag.usa-tag--green {
    padding: 12px 16px;
}
/* ------------------------------- NEW 07-31-2026, UPDATED 8-3-2026, 8-4-2026 ------------------------------------- */
/* Meet color contrast ratio 4.5:1 for large text (18pt (24px) and above, or 14pt bold (19px). */
/* Sample page at https://nicic.gov/weblink/advocacy-and-research-reproductive-wellness-incarcerated-people-arrwip */
/* Sample page at https://nan.nicic.gov/resources/nic-library/challenges-and-opportunities-in-jail-reentry-insights-transition-jail */
/* sample Page at https://nan.nicic.gov/resources/digitalpub/challenges-and-opportunities-in-jail-reentry */
/* Reset text sizes so they meet the 14pt bold minimum */
.nic-blue-sidebar,
.nic-blue-sidebar a,
.nic-blue-sidebar .usa-legend,
.nic-blue-sidebar .usa-button,
.nic-blue-sidebar .usa-fieldset,
.nic-blue-sidebar .field--name-field-authors .field__item a {
    font-size: 1.1669rem !important; /* Renders as 18.67px = 14pt */
    font-weight: 700;
}
.nic-blue-sidebar a {
    text-decoration: none;
    border-radius:  5px;
    background-color: var(--primary) !important;
}
.nic-blue-sidebar a:hover,
.nic-blue-sidebar .field--name-field-authors .field__item a:hover {
    background-color: var(--primary-lighter) !important;
    color: var(--primary-dark) !important;
}
.nic-blue-sidebar .field--name-field-authors .field__item a {
    background-color: var(--primary) !important;
    color: var(--primary-lighter) !important;
    display: block;
    width: 100%;
}
.nic-blue-sidebar .field__label {
    margin-bottom: .25rem;
}
.nic-blue-sidebar .usa-list--unstyled > li {
    margin-bottom: .5rem;
}
.nic-blue-sidebar .field--type-file .field__item .file-details__link a {
    display: inline-block;
}
.nic-blue-sidebar .usa-button {
    margin-right: .25rem;
    margin-bottom: 0;
}
.nic-blue-sidebar .usa-button-group__item {
    margin-bottom: .5rem !important;
}

/* --------------------------- NEW 08-03-2026 -------------------------------------- */
/* Change the blue-sidebar background to primary-dark which meets WCAG AAA contrast requirements for normal text and now matches hero BG */
.nic-blue-sidebar {
/*    background-color: var(--primary-dark); NOTE: color looks purplish although it's same as hero BG */
    background-color: var(--blue-70v); 
    border-radius: .5rem;
    padding: 1.5rem 1rem 1rem !important;
    color: var(--white);
}
/* Update nic-content container to match the hero BG and updated sidebar BG 
.nic-content__container {
    border-top-color: var(--primary-dark);
} */
/* To meet the WCAG AAA contrast requirement, you should have a contrast ratio of 7:1 for normal text, and 4.5:1 for large text (18pt and above, or 14pt bold). */
.usa-button {
/*    background-color: var(--primary-dark); */
    font-size: 1.1669rem !important;
}
.usa-hero, 
html .usa-hero, 
html .usa-header+.usa-hero {
    background-color: var(--primary-dark) !important;
}
/* Sample page of links at https://nan.nicic.gov/resources/collection/transition-jail-community-tjc-toolkit/tjc-toolkit-module-eight */
a, html .usa-link {
    color: var(--primary);
    text-decoration: none;
}
a:hover, 
html .usa-link:hover {
    text-decoration: underline;
}
a:not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a), 
html .usa-link:not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(h5 a):not(h6 a) {
    font-size: 1.1669rem;
}

