/*
 * Appeals A11y Fixes — front-end styles.
 * Loaded only on the front end; kept intentionally small.
 */

/* ---------------------------------------------------------------
 * 1) Skip to main content
 * ------------------------------------------------------------- */
/* Same visually-hidden-until-focus technique WordPress core itself uses
 * for its own skip links: the element stays in normal document flow
 * (just clipped to 1px) rather than being pushed far off-screen, which
 * keeps it reliably reachable as the first Tab stop in every browser. */
.aa11y-skip-link {
	position: absolute;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	background: #163b7f;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 0 0 4px 0;
}

.aa11y-skip-link:focus,
.aa11y-skip-link:active {
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	padding: 12px 20px;
	outline: 3px solid #ffa40d;
	outline-offset: -3px;
}

/* ---------------------------------------------------------------
 * 2) Duplicate navigation — keyboard-operable hamburger button
 * ------------------------------------------------------------- */
.et_pb_menu .mobile_menu_bar[role="button"] {
	cursor: pointer;
}

.et_pb_menu .mobile_menu_bar[role="button"]:focus-visible {
	outline: 2px solid #163b7f;
	outline-offset: 2px;
}

/* ---------------------------------------------------------------
 * 3) Homepage H1 — the slide keeps the .et_pb_slide_title class,
 * only the tag changes (h2 -> h1). These rules restore the
 * tag-specific sizing Divi's own CSS applied to h2.et_pb_slide_title
 * so the slide looks exactly as before at every breakpoint.
 * ------------------------------------------------------------- */
h1.et_pb_slide_title {
	font-size: 70px;
	line-height: 70px;
	font-weight: 300;
	padding-bottom: 10px;
}

@media (max-width: 980px) {
	h1.et_pb_slide_title {
		font-size: 70px;
		line-height: 70px;
		font-weight: 500;
		padding-bottom: 10px;
	}
}

@media (max-width: 767px) {
	h1.et_pb_slide_title {
		font-size: 30px;
		line-height: 42px;
		font-weight: 500;
		padding-bottom: 10px;
	}
}

/* ---------------------------------------------------------------
 * 4) Criminal Appeals heading hierarchy — the former <h4> questions
 * become <h3>/<h2> for a logical outline. These rules make them look
 * exactly like the original <h4> did; only semantics changed.
 * ------------------------------------------------------------- */
.aa11y-h4-look {
	font-size: 18px;
	line-height: 18px;
	font-weight: 600;
	color: #163b7f;
	padding-bottom: 10px;
	margin-top: 0;
	margin-bottom: 0;
}

/* Visually hidden but still announced by screen readers — used for the
 * group headings that organize the Criminal Appeals questions without
 * changing the page's visible design. */
.aa11y-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------------------------------------------------------------
 * 5) North Carolina cities — the sitewide footer link, and the full
 * section on the Where We Serve page.
 * ------------------------------------------------------------- */
.aa11y-cities-link {
	text-align: left;
	font-weight: bold;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.8em;
	color: #000000;
	margin: 0;
}

.aa11y-cities-link a {
	color: #163b7f;
}

.aa11y-cities-section {
	background-color: #163b7f;
	padding: 54px 0;
}

.aa11y-cities-section__inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 5%;
}

.aa11y-cities-section h2 {
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 26px;
	font-weight: 500;
	line-height: 26px;
	padding-bottom: 10px;
	margin-top: 0;
	text-align: left;
}

.aa11y-cities-panel {
	background-color: #ffffff;
	border-radius: 10px;
	padding: 3% 5%;
}

.aa11y-cities-list {
	list-style: none;
	margin: 0;
	padding: 0;
	column-count: 4;
	column-gap: 24px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.8em;
	color: #000000;
}

.aa11y-cities-list li {
	break-inside: avoid;
}

@media (max-width: 980px) {
	.aa11y-cities-list {
		column-count: 3;
	}
}

@media (max-width: 767px) {
	.aa11y-cities-list {
		column-count: 2;
	}
}
