/* 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 */
.usa-card__container .usa-card__heading a {
    padding: 14px 0; /* Expands the clickable area - unable to apply to L/R b/c it misaligns the left alignment */
}
/* 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;
}

/* 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 */
.nic-blue-sidebar .field a {
    display: inline-block;
    padding: 8px 0; 
}
/* 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 */
/* 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 */
/* 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 {
  display: inline-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 {
	background-color: var(--blue-cool-70v);
	color: #ffffff;
	text-decoration: none;
}
div.related-links {
    margin-top: 2rem;
}

/* Fix links displayed at https://nan.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  ------------------------------------------------- */
/* 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 */

/*.views-element-container .usa-nav__primary>.usa-nav__primary-item>a { */

/* Reset the <a> tag to be a container wrapper without inner padding */
.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"] {
    padding: 0;
    min-width: 44px;
    min-height: 44px;
}
/* Move the sizing, padding, and text rules directly to the visible span */
.usa-nav__primary-item a[title*="next page"] span[aria-hidden="true"],
.usa-nav__primary-item a[title*="last page"] span[aria-hidden="true"] {
    display: flex; /* Changed from inline-block to flex */
    align-items: center;
    justify-content: center;
    padding: 1rem; /* Padding lives here now */
    min-width: 44px;
    min-height: 44px;
    width: 100%;  /* Forces it to match the <a> tag's width */
    height: 100%; /* Forces it to match the <a> tag's height */
}

/* WORK IN PRoGRESS */

/* Fix weblink spacing so it meets the 44px height minimum */
/* Sample page - https://nicic.gov/weblink/hate-displaytm-hate-symbols-database */
/* Sample page - https://nicic.gov/resources/nic-library/corrections-trends/appropriate-temperatures-correctional-housing-units */
html .usa-link, .usa-card__container p a, .usa-card__container p a:link {
    padding: 12px 0;
} /* UPDATE: reevaluate using the usa-card class b/c need to see how it affects all cards on site */

