body:not(.page-template-department-template) .department-banner,
.page-template-contact-us .department-banner {
	min-height: 75vh;
	padding: calc(var(--header-height, 140px) + 48px) 8vw 160px;
	margin-bottom: 3rem;
}

.tosa-component-wrapper .dept-hero-overlap-section {
	margin-top: -120px;
	grid-column: 1 / -1;
	grid-row: 1;
}

.tosa-component-sidebar {
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: start;
	position: sticky;
	top: 180px;
	z-index: 7;
	margin-bottom: 50px;
}

.tosa-component-wrapper,
.dept-hero-overlap-card .dept-wrapper-card {
	display: grid;
	grid-template-columns: 1fr 405px;
	column-gap: 160px;
	grid-template-rows: auto 1fr;
}

/* Card Section  */

.page-template-government-template .dept-contact-card {
	position: absolute;
	right: 0;
}

.government-content-image__heading {
	font-size: var(--h5-size);
	color: var(--color-purple);
	font-family: var(--font-family-tiktok);
}

.dept-content-image__text h3,
.dept-content-image__text h4,
.dept-content-image__text h5,
.dept-content-image__text h6 {
	font-size: 20px;
	font-weight: var(--fw-medium);
	color: var(--color-purple);
	margin-top: 20px;
}

.dept-content-image__text ul,
.dept-content-image__text ol {
	margin: 0;
	padding-bottom: 12px;
}

.dept-content-image__text a {
	color: var(--color-black);
}

.government-content__cta {
	display: flex;
	column-gap: 35px;
	flex-wrap: wrap;
	margin-top: 10px;
	row-gap: 10px;
}

.video-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.video-wrapper iframe {
	border: solid 1px var(--color-yellow);
	border-radius: 12px;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

iframe {
	border: solid 1px var(--color-yellow);
	border-radius: 12px;
}

iframe html body #top-nav nav.navbar,
iframe html body #top-nav form {
	background-color: var(--color-yellow) !important;
}

.page-template-government-template .dept-contact-card a {
	color: var(--color-off-white);
	font-size: var(--p-size);
	/* text-decoration: underline; */
	display: block;
	margin-bottom: 15px;
	font-weight: var(--fw-semibold);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	line-height: 1.8;
	transition: 0.2s all ease-in-out;
}

.page-template-government-template .dept-contact-card a:hover {
	text-decoration-thickness: 0px;
	text-decoration-color: transparent;
}

.image-option {
	background-color: #f6ede5;
	padding: 47px 57px;
	margin-top: 50px;
	border-radius: 12px;
}

.image-option h6 {
	color: rgba(0, 0, 0, 0.34);
	text-align: center;
	font-family: var(--font-family-tiktok);
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.page-template-government-template .dept-contact-card {
	margin-top: -100px;
}

.component-width {
	/* width: 60%; */
	border-bottom: solid 2px var(--color-yellow);
}

.government-content:last-of-type .component-width,
.tosa-table-layout:last-of-type .component-width {
	border-bottom: 0;
}

.government-content,
.tosa-margin {
	margin-bottom: 3rem;
}

/* Table Component  */

.acf-department-table ul {
	margin: 0;
}

/* Table Year Component  */

.tosa-table-layout {
	z-index: 2;
	overflow: hidden;
}

.download-pdf-link {
	text-decoration: none !important;
	padding: 3px 9px;
	display: block;
	text-wrap: nowrap;
	background-size: 0px !important;
}

.download-pdf-link:hover {
	transform: none;
	background-size: 100% 1px;
}

.tosa-table-controls.global-form {
	display: grid;
	gap: 20px;
	width: 100%;
	grid-template-columns: 2fr 1fr 1fr auto;
	align-items: end;
	padding: 20px;
	background: var(--color-white);
	border-radius: 12px;
	box-shadow: 0px 0px 6px -5px #0000006b;
}

.tosa-table-controls.global-form .tosa-table-search label {
	line-height: 1.5;
}

.tosa-table-controls.tosa-table-controls--search-only {
	grid-template-columns: 1fr;
}

.tosa-table-controls.global-form input,
.tosa-table-controls.global-form select,
.tosa-table-controls.global-form textarea {
	padding: 7px 10px;
}

.tosa-table-controls.global-form select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 25px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c3866' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 7px center;
	background-size: 15px;
	background-color: var(--color-white);
}

.tosa-table__main th:nth-child(1),
.tosa-table__main td:nth-child(1) {
	width: 60%;
	/* adjust as needed, e.g. 40%, 300px, etc. */
}

.tosa-table__main td:nth-child(2) {
	text-wrap: nowrap;
}

.tosa-table-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 1.25rem 0;
}

.tosa-table-pagination button {
	text-decoration: none;
	padding: 5px 15px;
	border: 1px solid var(--color-purple, #7F086B);
	border-radius: 6px;
	background: #fff;
	color: var(--color-purple, #7F086B);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.tosa-table-pagination button:hover:not(:disabled) {
	background-color: var(--color-purple, #7F086B);
	color: var(--color-white);
}

.tosa-table-pagination button:disabled {
	color: #b0b7c3;
	border-color: #d0d5dd;
	cursor: not-allowed;
}

.tosa-table-pagination button:focus-visible {
	outline: 3px solid var(--color-purple, #7F086B);
	outline-offset: 2px;
}

.tosa-pagination-status {
	font-size: var(--p-size);
	color: var(--color-purple);
}

/* FAQs  */

.page-template-government-template .dept-faqs__box,
.single-license-permit .dept-faqs__box {
	background-color: transparent;
	padding: 0;
	border-radius: 0;
}

.page-template-government-template .dept-faqs__box .dept-faqs__content .tosa-contact-icon>*,
.single-license-permit .dept-faqs__box .dept-faqs__content .tosa-contact-icon>* {
	fill: currentColor;
}

.page-template-government-template .faqs_container,
.single-license-permit .faqs_container {
	padding-inline: 0;
}

.page-template-government-template .dept-faqs__trigger,
.page-template-government-template .dept-faqs__content,
.single-license-permit .dept-faqs__trigger,
.single-license-permit .dept-faqs__content {
	color: var(--color-purple);
}

.page-template-government-template .dept-faqs__content p a,
.page-template-government-template .dept-faqs__content ul li a,
.single-license-permit .dept-faqs__content p a,
.single-license-permit .dept-faqs__content ul li a,
.page-template-government-template .dept-faqs__content ol li a,
.single-license-permit .dept-faqs__content ol li a {
	color: currentColor;
}

.page-template-government-template .dept-faqs__icon svg,
.single-license-permit .dept-faqs__icon svg {
	stroke: var(--color-purple);
}

.page-template-government-template .dept-faqs__item,
.single-license-permit .dept-faqs__item {
	border-bottom: 1px solid var(--color-yellow);
}

/* ════════════════════════════════════════════════════════════
   ACCORDION 1 — DEPARTMENT MENU
═══════════════════════════════════════════════════════════════ */

/* Accordion wrapper */
.dept-sidebar-accordion {
	border-radius: 12px;
	overflow: hidden;
	font-family: var(--font-family-tiktok);
	background-color: var(--color-purple);
	padding: 48px 50px;
	right: 60px;
	position: relative;
}

/* Accordion item — separator between panels */
.dept-sidebar-accordion .accordion-item {
	border: none;
	background-color: transparent;
}

.dept-sidebar-accordion .accordion-item:first-child .accordion-body {
	padding: 0;
}

.dept-sidebar-accordion .accordion-item:first-child {
	border-top: none;
}

/* Accordion button (header) */
.dept-sidebar-accordion .accordion-button {
	background-color: transparent;
	font-family: var(--font-family-tiktok);
	color: var(--color-off-white);
	font-size: var(--h5-size);
	margin: 0 0 16px 0;
	font-weight: var(--fw-bold);
	border-radius: 0 !important;
	box-shadow: none;
	gap: 10px;
	justify-content: center;
	padding: 0;
	text-align: center;
}

.dept-sidebar-accordion .accordion-button::after {
	filter: brightness(0) invert(1);
	margin-left: inherit;
}

.dept-sidebar-accordion .accordion-button:not(.collapsed) {
	background-color: transparent;
	box-shadow: none;
}

/* Accordion body */
.dept-sidebar-accordion .accordion-body {
	padding: 0;
	padding-inline: 30px;
	background-color: var(--color-purple);
	/* text-align: center; */
}

/* Parent menu items */
.dept-sidebar-menu {
	margin: 0;
	padding: 0;
}

.dept-sidebar-menu__item {
	/* border-bottom: 1px solid var(--color-tan); */
	margin-bottom: 7px;
}

.dept-sidebar-menu__item:last-child {
	border-bottom: none;
}

.dept-sidebar-menu__item>a {
	display: block;
	padding: 12px 18px;
	color: var(--color-off-white);
	font-size: var(--p-size);
	font-weight: var(--fw-regular);
	text-decoration: none;
	transition:
		background-color 0.18s ease,
		color 0.18s ease,
		padding-left 0.18s ease;
	border-radius: 6px;
}

.dept-sidebar-menu__item>a:hover,
.dept-sidebar-menu__item>a:focus {
	background-color: var(--color-off-white);
	color: var(--color-purple);
	padding-left: 24px;
	text-decoration: none;
}

/* Active / current page */
.dept-sidebar-menu__item>a.current-menu-item,
.dept-sidebar-menu__item>a[aria-current="page"],
.dept-sidebar-menu__child-item>a[aria-current="page"] {
	background-color: var(--color-tan);
	color: var(--color-purple);
	font-weight: var(--fw-semibold);
}

.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children)>a.current-menu-item,
.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children)>a[aria-current="page"] {
	border-radius: 6px 6px 0px 0px;
}

/* Highlight the parent link when a child page is currently active */
.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children a[aria-current="page"])>a,
.dept-sidebar-menu__item:has(> .dept-sidebar-menu__children a.current-menu-item)>a {
	background-color: var(--color-off-white);
	color: var(--color-purple);
	font-weight: var(--fw-semibold);
	border-radius: 6px 6px 0px 0px;
}

/* Child (nested) menu list */
.dept-sidebar-menu__children {
	background-color: var(--color-off-white);
	margin: 0;
	padding: 0;
	border-radius: 0px 0px 6px 6px;
	max-height: 280px;
	overflow-y: auto;
}

.dept-sidebar-menu__children::-webkit-scrollbar {
	width: 5px;
}

.dept-sidebar-menu__children::-webkit-scrollbar-thumb {
	background-color: var(--color-tan);
	border-radius: 10px;
}

/* .dept-sidebar-menu__child-item {
  border-top: 1px solid var(--color-tan);
} */

.dept-sidebar-menu__children li:last-child a {
	border-radius: 0px 0px 6px 6px;
}

.dept-sidebar-menu__child-item a {
	display: block;
	padding: 10px 18px 10px 32px;
	color: var(--color-purple);
	font-size: var(--p-size);
	font-weight: var(--fw-regular);
	text-decoration: none;
	position: relative;
	transition:
		background-color 0.18s ease,
		padding-left 0.18s ease;
}

/* .dept-sidebar-menu__child-item a::before {
  content: "–";
  color: var(--color-purple);
  font-weight: var(--fw-regular);
  padding-right: 10px;
} */

.dept-sidebar-menu__child-item a:hover,
.dept-sidebar-menu__child-item a:focus {
	background-color: var(--color-tan);
	color: var(--color-purple);
	padding-left: 36px;
	text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   ACCORDION 2 — CONTACT INFORMATION
   ACCORDION 3 — HELPFUL LINKS
   Both panels render on the dark burgendy body.
═══════════════════════════════════════════════════════════════ */

.dept-sidebar-accordion__contact-body,
.dept-sidebar-accordion__links-body {
	padding: 20px 18px;
}

/* Contact wysiwyg content */

.dept-sidebar-contact__content {
	text-align: center;
}

.dept-sidebar-contact__content p {
	color: var(--color-off-white);
	font-size: var(--p-size);
	line-height: var(--body-line-height);
	margin-bottom: 30px;
}

.dept-sidebar-contact__hours {
	margin-top: 20px;
}

.dept-sidebar-contact__content h5,
.dept-sidebar-contact__content h4,
.dept-sidebar-contact__hours h4 {
	color: var(--color-off-white, #f6ede5);
	font-size: var(--body-medium);
	font-weight: 400;
	line-height: normal;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 12px;
	text-align: center;
}

.dept-sidebar-contact__content p:last-child {
	margin-bottom: 0;
}

.dept-sidebar-contact__content a {
	color: var(--color-off-white);
	font-weight: var(--fw-regular);
	word-break: break-all;
}

/* Hours block inside contact panel */

.dept-sidebar-contact__hours-content p,
.dept-sidebar-contact__hours-content a {
	color: var(--color-off-white);
	font-size: var(--p-size);
	text-align: center;
	margin: 0 0 4px;
}

/* Helpful links list */

.dept-sidebar-accordion__links-body a {
	display: block;
	margin-bottom: 20px;
	color: var(--color-off-white);
	font-size: var(--p-size);
	font-weight: var(--fw-regular);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	line-height: 1.5;
	transition: color 0.18s ease;
	text-align: center;
}

/* .dept-sidebar-accordion__links-body a:hover,
.dept-sidebar-accordion__links-body a:focus {
  color: var(--color-off-white);
  text-decoration-color: transparent;
} */

.dept-sidebar-mobile-trigger {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	width: 100%;
	padding: 0.85rem 1rem;
	background-color: var(--color-pink);
	color: var(--color-off-white);
	border: none;
	font-weight: var(--fw-semibold);
	text-align: center;
}

.dept-sidebar-backdrop {
	display: none;
}

/* PDF & Links  */

.pdf-links-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 15px;
	/* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
}

a.pdf-link-card {
	border: solid 1px var(--color-purple);
	padding: 7px 7px;
	border-radius: 6px;
	display: flex;
	gap: 10px;
	color: var(--color-purple);
	text-decoration: none;
	transition: 0.3s all;
	background-color: transparent;
}

.pdf-links-grid a.pdf-link-card.pdf-link-card--link:hover {
	background-color: var(--color-purple) !important;
	color: var(--color-off-white);
	text-decoration: none;
}

.pdf-links-grid a.pdf-link-card.pdf-link-card--link:hover .card-subtitle,
.pdf-links-grid a.pdf-link-card.pdf-link-card--link:hover .card-title {
	color: var(--color-off-white);
}

.pdf-links-grid a.pdf-link-card .card-icon svg g {
	transition: 0.3s all;
}

.pdf-links-grid a.pdf-link-card.pdf-link-card--link:hover .card-icon svg g {
	fill: var(--color-off-white);
}

.pdf-link-card .card-title {
	font-size: 18px;
	font-weight: var(--fw-medium);
}

/* .pdf-link-card .card-subtitle,
.pdf-link-card .card-title {
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
} */

/* Without Sidebar Component  */

.without-sidebar-overlap {
	margin-top: -80px;
	margin-bottom: 60px;
}

.tosa-contact-us-left-side a {
	color: var(--color-purple);
	text-decoration: underline;
	font-weight: var(--fw-semibold);
}

a.has-icon-link {
	text-decoration: none !important;
	text-wrap: nowrap;
}

a.has-icon-link:hover {
	background: none !important;
}

.has-icon-link .link-text {
	text-decoration: underline;
	text-underline-offset: 3px;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0 1px;
	background-position: left calc(100% - 1px);
	transition: background-size 0.5s ease;
	text-decoration-thickness: 1px;
}

.has-icon-link .link-text:hover {
	background-size: 100% 1px;
	text-decoration: none;
}

.lp-dept-ajax-table {
	position: relative;
}

.lp-dept-ajax-table__overlay {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgb(246 240 235 / 36%);
	z-index: 2;
}

.lp-dept-ajax-table.is-loading .lp-dept-ajax-table__overlay {
	display: block;
}

.lp-dept-ajax-table.is-loading .lp-dept-ajax-table__results {
	pointer-events: none;
}

.lp-dept-ajax-table .sd-page-btn[disabled] {
	opacity: 0.5;
	pointer-events: none;
}

/* Breadcrumb Css */
.dept-hero-overlap-card__breadcrumbs span.breadcrumb_last {
	font-weight: 900;
}

/* Department Event  */

.department-page-event .tosa-events__card {
	top: 0;
	margin-bottom: 80px;
}

.tosa-dept-event-col {
	display: grid;
	grid-template-columns: 0.8fr 1fr;
	align-items: center;
	/* gap: 80px; */
}

.department-page-event .tosa-events__img {
	margin-left: 100px;
}

@media (min-width: 1025px) {

	.dept-sidebar-mobile-trigger,
	.dept-sidebar-backdrop,
	.dept-sidebar-sheet__header {
		display: none !important;
	}

	.tosa-component-sidebar {
		z-index: 5;
	}

	.dept-sidebar-accordion {
		top: 20px;
	}
}

@media(min-width:1820px) {
	.department-page-event .tosa-events__card {
		top: 0;
		margin-bottom: 80px;
	}

	.department-page-event .tosa-events__img {
		margin-left: 143px;
	}
}

@media (max-width: 1600px) {

	.tosa-component-wrapper,
	.dept-hero-overlap-card .dept-wrapper-card {
		grid-template-columns: 1fr 350px;
		column-gap: 100px;
	}

	.tosa-component-sidebar {
		top: 140px;
	}

	.dept-sidebar-accordion {
		padding: 30px 30px;
	}
}

@media (max-width: 1340px) {
	.page-template-government-template .dept-contact-card {
		margin-top: -50px;
	}

	.tosa-component-sidebar {
		top: 120px;
	}
}

@media (max-width: 1200px) {

	.tosa-component-wrapper,
	.dept-hero-overlap-card .dept-wrapper-card {
		grid-template-columns: 1fr 305px;
	}

	.dept-sidebar-accordion {
		padding: 48px 30px;
	}
	.department-page-event .tosa-events__img{
		margin-left: 80px;
	}
}

@media (max-width: 1024px) {
	.page-template-government-template .dept-contact-card {
		position: relative;
	}

	.page-template-license-and-permit-template .acf-department-table {
		min-width: auto;
	}

	.dept-sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 3;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease;
	}

	.dept-sidebar-backdrop.is-visible {
		opacity: 1;
		visibility: visible;
	}

	.dept-sidebar-sheet {
		position: fixed;
		left: 50px;
		right: 50px;
		bottom: 0px;
		z-index: 1045;
		/* max-height: 65vh;
    overflow-y: auto; */
		background-color: var(--color-pink);
		border-radius: 12px;
		transform: translateY(100%);
		transition: transform 0.3s ease;
	}

	.dept-sidebar-sheet.is-open {
		transform: translateY(0);
		bottom: 57px;
	}

	.dept-sidebar-sheet.is-open .dept-sidebar-sheet__header {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 16px 20px 13px;
		margin-top: -65px;
	}

	.dept-sidebar-sheet__title {
		color: var(--color-off-white);
		font-family: var(--font-family-tiktok);
		font-size: var(--h5-size);
		font-weight: var(--fw-bold);
	}

	.dept-sidebar-sheet__close {
		background: var(--color-off-white);
		border: none;
		color: var(--color-purple);
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		border-radius: 50%;
	}

	body.dept-sidebar-sheet-open {
		overflow: hidden;
	}

	.tosa-component-wrapper,
	.dept-hero-overlap-card .dept-wrapper-card {
		grid-template-columns: 1fr;
		column-gap: 0;
		gap: 0;
	}

	.dept-hero-overlap-card__left {
		max-width: 100%;
	}

	.dept-sidebar-accordion {
		right: 0px;
		max-height: 70vh;
		overflow-y: auto;
		padding-bottom: 30px;
	}

	body:not(.page-template-department-template) .department-banner,
	.page-template-contact-us .department-banner {
		min-height: 50vh;
		padding: calc(var(--header-height, 140px) + 32px) 2vw 100px;
	}

	.tosa-dept-event-col {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

@media(max-width:991px) {
	.page-template-department-template main.site-main .tosa-events.department-page-event .tosa_container {
		padding-inline: 0 !important;
	}
	.department-page-event .tosa-events__img{
		margin-left: 0px;
	}
}

@media (max-width: 768px) {

	body:not(.page-template-department-template) .department-banner,
	.page-template-contact-us .department-banner {
		min-height: 33vh;
		padding: calc(var(--header-height, 140px) + 32px) 2vw 100px;
	}

	body:not(.page-template-department-template)::before {
		content: none;
	}

	body:not(.page-template-department-template) .dept-contact-card {
		margin-top: 0px;
	}

	body:not(.page-template-department-template) .department-banner+.dept-hero-overlap-section,
	.page-template-contact-us .department-banner+.dept-hero-overlap-section {
		margin-top: -60px;
	}

	.dept-sidebar-accordion {
		padding: 30px 20px;
	}

	.pdf-link-card .card-title {
		font-size: var(--base-small);
	}

	.pdf-link-card .card-subtitle {
		font-size: 13px;
	}

	.pdf-links-grid {
		grid-template-columns: 1fr 1fr;
	}

	.without-sidebar-overlap {
		margin-top: -20px;
	}

}

@media (max-width: 580px) {
	.dept-hero-overlap-section {
		padding: 0;
	}

	.dept-hero-overlap-card {
		border-radius: 0px;
	}

	.tosa-table-controls.global-form {
		grid-template-columns: 1fr 1fr;
	}

	.tosa-table-search {
		grid-area: 1 / 1 / span 1 / span 2;
	}

	.dept-sidebar-sheet {
		left: 20px;
		right: 20px;
	}

	.pdf-links-grid {
		grid-template-columns: 1fr;
	}
}