/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for the Inmate Text App directory. Design CSS matches the live Next.js site look (white background, blue primary, light gray borders, rounded cards) using only CSS. No template, content, or URL changes live in this file.
Author: Inmate Text App
Template: generatepress
Version: 1.1.8
Text Domain: generatepress-child
*/

/*
Upload note: the staging style.css already holds this design CSS (v1.0.1
and later). On upload, replace the whole file in generatepress-child.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ------------------------------------------------------------------ */
/* 1. Design tokens, taken from the live site globals.css (light mode). */
/* Hex values first for older browsers, then the exact oklch values.   */
/* ------------------------------------------------------------------ */

:root {
	--ita-bg: #ffffff;
	--ita-bg: oklch(1 0 0);
	--ita-fg: #0a0a0a;
	--ita-fg: oklch(0.145 0 0);
	--ita-muted: #f5f5f5;
	--ita-muted: oklch(0.97 0 0);
	--ita-muted-fg: #737373;
	--ita-muted-fg: oklch(0.556 0 0);
	--ita-accent-fg: #171717;
	--ita-accent-fg: oklch(0.205 0 0);
	--ita-border: #e5e5e5;
	--ita-border: oklch(0.922 0 0);
	--ita-primary: #1d4ed8;
	--ita-primary: oklch(0.488 0.243 264.376);
	--ita-primary-fg: #fafafa;
	--ita-primary-fg: oklch(0.985 0 0);
	--ita-success: #16a34a;
	--ita-success: oklch(0.527 0.154 150);
	--ita-radius: 0.625rem;
	--ita-radius-card: 0.875rem;
	--ita-font: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* 2. Base                                                             */
/* ------------------------------------------------------------------ */

body {
	background-color: var(--ita-bg);
	color: var(--ita-fg);
	font-family: var(--ita-font);
	font-size: 1rem;
	line-height: 1.5;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--ita-primary);
	outline-offset: 2px;
}

/* Content links use the live primary blue, like the live text links. */
.site-main article a {
	color: var(--ita-primary);
	text-decoration: none;
}

.site-main article a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* 3. Container, matching the live max-w-7xl container                 */
/* ------------------------------------------------------------------ */

.grid-container {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

#primary.content-area {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 40rem) {
	.grid-container,
	#primary.content-area {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 64rem) {
	.grid-container,
	#primary.content-area {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* ------------------------------------------------------------------ */
/* 4. Header: sticky, blurred white bar, 64px tall, like the live one  */
/* ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ita-border);
}

/* Logged-in view: keep the sticky header below the WordPress admin bar. */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 4rem;
}

/* Logo wordmark: 17px bold tight text, like the live logo lockup. */
/* The live SVG logo mark itself cannot be added by CSS alone. */
.site-branding .main-title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.site-branding .main-title a {
	color: var(--ita-fg);
	text-decoration: none;
}

.site-branding .main-title a:hover {
	color: var(--ita-fg);
	text-decoration: none;
}

/* Nav links: 14px medium pills, muted by default, gray on hover/active. */
.main-navigation .main-nav ul li a {
	padding: 6px 12px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ita-muted-fg);
	border-radius: 0.5rem;
}

.main-navigation .main-nav ul li a:hover {
	color: var(--ita-fg);
	background-color: rgba(245, 245, 245, 0.6);
	text-decoration: none;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
	color: var(--ita-fg);
	background-color: var(--ita-muted);
}

.main-navigation .menu-toggle {
	border: 1px solid var(--ita-border);
	border-radius: 0.5rem;
	background-color: var(--ita-bg);
	color: var(--ita-fg);
	padding: 8px 12px;
	font-size: 0.875rem;
	font-weight: 500;
}

.main-navigation .menu-toggle:hover {
	background-color: var(--ita-muted);
}

/* ------------------------------------------------------------------ */
/* 5. Hero band: soft blue gradient, centered, like FacilityHero      */
/* ------------------------------------------------------------------ */

.ita-hero {
	border-bottom: 1px solid var(--ita-border);
	background: linear-gradient(to bottom, rgba(29, 78, 216, 0.05), rgba(29, 78, 216, 0.02), #ffffff);
	padding: 4rem 1rem;
	text-align: center;
}

.ita-hero h1 {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--ita-fg);
	margin: 0 0 1rem;
}

.ita-hero p {
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--ita-muted-fg);
}

/* Badges: secondary pills, like the live Badge variant. */
.ita-hero .ita-badge {
	display: inline-block;
	background-color: var(--ita-muted);
	color: var(--ita-accent-fg);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.5;
	margin: 0 4px 1.25rem;
}

/* Quick stats: bordered white pills with a soft ring, like live stats. */
.ita-hero .ita-quick-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
}

.ita-hero .ita-quick-stats li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--ita-border);
	border-radius: 0.625rem;
	background-color: var(--ita-bg);
	box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.1);
	padding: 10px 16px;
	font-size: 0.875rem;
	color: var(--ita-muted-fg);
}

.ita-hero .ita-quick-stats li strong {
	font-weight: 600;
	color: var(--ita-fg);
}

@media (min-width: 40rem) {
	.ita-hero h1 {
		font-size: 2.25rem;
	}
}

@media (min-width: 48rem) {
	.ita-hero {
		padding: 6rem 1rem;
	}

	.ita-hero h1 {
		font-size: 3rem;
	}
}

/* ------------------------------------------------------------------ */
/* 6. Article and page content typography                              */
/* ------------------------------------------------------------------ */

.ita-intro {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}

.ita-intro p,
.ita-section p {
	line-height: 1.75;
	color: var(--ita-fg);
}

.ita-intro h2,
.ita-section h2,
.ita-faq h2,
.ita-related h2,
.ita-directory h2,
.ita-cta h2 {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--ita-fg);
	margin: 2rem 0 0.75rem;
}

.ita-intro h3,
.ita-section h3 {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--ita-fg);
	margin: 1.5rem 0 0.5rem;
}

.ita-intro ul,
.ita-intro ol {
	padding-left: 1.5rem;
	line-height: 1.75;
}

.ita-intro li {
	margin-bottom: 0.25rem;
}

/* ------------------------------------------------------------------ */
/* 7. Sections: info cards and list sections                           */
/* ------------------------------------------------------------------ */

.ita-section {
	margin-bottom: 2rem;
}

/* Facility info and communication options: bordered cards. */
.ita-section dl {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem 1rem;
}

.ita-section dt {
	color: var(--ita-muted-fg);
	font-size: 0.875rem;
}

.ita-section dd {
	margin: 0;
	font-weight: 600;
	color: var(--ita-fg);
	font-size: 0.875rem;
}

/* Providers section: card grid. Notes section: plain bullets. */
section[aria-labelledby="ita-providers-heading"] ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

section[aria-labelledby="ita-providers-heading"] ul li a {
	display: block;
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ita-fg);
	text-decoration: none;
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

section[aria-labelledby="ita-providers-heading"] ul li a:hover {
	transform: translateY(-2px);
	border-color: rgba(29, 78, 216, 0.2);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

section[aria-labelledby="ita-notes-heading"] ul {
	padding-left: 1.5rem;
	line-height: 1.75;
	color: var(--ita-muted-fg);
}

@media (min-width: 40rem) {
	section[aria-labelledby="ita-providers-heading"] ul {
		grid-template-columns: 1fr 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* 8. Link grids: browse, directory, related, messaging, compare       */
/* ------------------------------------------------------------------ */

/* Front page browse lists and hub directory lists: live style cards. */
section[aria-labelledby="ita-browse-heading"] ul,
.ita-directory ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

section[aria-labelledby="ita-browse-heading"] ul li a,
.ita-directory ul li a {
	display: block;
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ita-fg);
	text-decoration: none;
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

section[aria-labelledby="ita-browse-heading"] ul li a:hover,
.ita-directory ul li a:hover {
	transform: translateY(-2px);
	border-color: rgba(29, 78, 216, 0.2);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

@media (min-width: 40rem) {
	section[aria-labelledby="ita-browse-heading"] ul,
	.ita-directory ul {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 64rem) {
	section[aria-labelledby="ita-browse-heading"] ul,
	.ita-directory ul {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* Related pages: smaller bordered rows, like the live related cards. */
.ita-related ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ita-related ul li a {
	display: block;
	border: 1px solid var(--ita-border);
	border-radius: 0.625rem;
	background-color: var(--ita-bg);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ita-fg);
	text-decoration: none;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ita-related ul li a:hover {
	border-color: rgba(29, 78, 216, 0.2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-decoration: none;
}

@media (min-width: 40rem) {
	.ita-related ul {
		grid-template-columns: 1fr 1fr;
	}
}

/* Messaging providers and compare lists: cards with a muted excerpt. */
.ita-messaging-list,
.ita-compare-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.ita-messaging-list li,
.ita-compare-list li {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
}

.ita-messaging-list li > a,
.ita-compare-list li > a {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ita-fg);
	text-decoration: none;
}

.ita-messaging-list li > a:hover,
.ita-compare-list li > a:hover {
	color: var(--ita-primary);
	text-decoration: underline;
}

.ita-messaging-list li > p,
.ita-compare-list li > p {
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--ita-muted-fg);
	margin: 0.25rem 0 0;
}

/* ------------------------------------------------------------------ */
/* 9. Table of contents: bordered card with numbered circle links     */
/* ------------------------------------------------------------------ */

.ita-toc {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
	margin: 0 auto 2rem;
	max-width: 48rem;
}

.ita-toc h2 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ita-fg);
	margin: 0 0 1rem;
}

.ita-toc ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ita-toc;
}

.ita-toc ul li a {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	border-radius: 0.375rem;
	padding: 6px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ita-muted-fg);
	text-decoration: none;
}

.ita-toc ul li a:hover {
	background-color: var(--ita-muted);
	color: var(--ita-fg);
	text-decoration: none;
}

.ita-toc ul li a::before {
	counter-increment: ita-toc;
	content: counter(ita-toc);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 1px;
	border-radius: 999px;
	background-color: rgba(29, 78, 216, 0.1);
	color: var(--ita-primary);
	font-size: 0.75rem;
	font-weight: 600;
}

@media (min-width: 40rem) {
	.ita-toc ul {
		grid-template-columns: 1fr 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* 10. FAQs: card accordion (8 Nov 2026). Each question is a card;     */
/* click opens it, click again closes it. All closed by default, each  */
/* opens independently. Theme variables keep it right in dark mode.    */
/* ------------------------------------------------------------------ */

.ita-faq {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}

.ita-faq-item {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	margin-bottom: 0.75rem;
	overflow: hidden;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ita-faq-item[open] {
	border-color: rgba(29, 78, 216, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ita-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	cursor: pointer;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ita-fg);
	transition: color 0.25s ease, background-color 0.25s ease;
}

.ita-faq-item summary:hover {
	background-color: rgba(29, 78, 216, 0.05);
	color: var(--ita-primary);
}

.ita-faq-item summary::-webkit-details-marker {
	display: none;
}

.ita-faq-item summary::after {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ita-muted-fg);
	border-bottom: 2px solid var(--ita-muted-fg);
	transform: rotate(45deg);
	transition: transform 200ms ease, border-color 200ms ease;
}

.ita-faq-item summary:hover::after,
.ita-faq-item[open] summary::after {
	border-color: var(--ita-primary);
}

.ita-faq-item[open] summary::after {
	transform: rotate(225deg);
}

.ita-faq-item > div {
	padding: 0 1.25rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--ita-muted-fg);
}

@media (prefers-reduced-motion: reduce) {
	.ita-faq-item summary::after {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* 11. Breadcrumb: compact inline trail with slash separators          */
/* ------------------------------------------------------------------ */

.ita-breadcrumb {
	margin: 1rem 0;
	font-size: 0.875rem;
}

.ita-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ita-breadcrumb li + li::before {
	content: "/";
	color: var(--ita-muted-fg);
	margin-right: 0.375rem;
}

.ita-breadcrumb a {
	color: var(--ita-muted-fg);
	text-decoration: none;
}

.ita-breadcrumb a:hover {
	color: var(--ita-fg);
	text-decoration: none;
}

.ita-breadcrumb span {
	color: var(--ita-fg);
}

/* ------------------------------------------------------------------ */
/* 12. Call to action band                                             */
/* ------------------------------------------------------------------ */

.ita-cta {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background: linear-gradient(to bottom, rgba(29, 78, 216, 0.05), #ffffff);
	padding: 2rem;
	text-align: center;
	margin: 2rem 0;
}

.ita-cta h2 {
	margin-top: 0;
}

.ita-cta p {
	color: var(--ita-muted-fg);
}

.site-main article .ita-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 0.625rem;
	background-color: var(--ita-primary);
	color: var(--ita-primary-fg);
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.site-main article .ita-cta a:hover {
	background-color: rgba(29, 78, 216, 0.8);
	color: var(--ita-primary-fg);
	text-decoration: none;
}

/* Same guard for block buttons inside article content. */
.site-main article .wp-block-button__link {
	color: var(--ita-primary-fg);
}

/* ------------------------------------------------------------------ */
/* 13. Buttons and form fields, like the live shadcn controls          */
/* ------------------------------------------------------------------ */

button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	border: 1px solid transparent;
	border-radius: 0.625rem;
	background-color: var(--ita-primary);
	color: var(--ita-primary-fg);
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background-color: rgba(29, 78, 216, 0.8);
}

.main-navigation .menu-toggle {
	background-color: var(--ita-bg);
	color: var(--ita-fg);
	border-color: var(--ita-border);
}

.main-navigation .menu-toggle:hover {
	background-color: var(--ita-muted);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
select {
	border: 1px solid var(--ita-border);
	border-radius: 0.5rem;
	background-color: var(--ita-bg);
	color: var(--ita-fg);
	padding: 8px 12px;
	font-size: 0.875rem;
	font-family: var(--ita-font);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	border-color: var(--ita-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.5);
}

/* ------------------------------------------------------------------ */
/* 14. Pagination, like small outline buttons                          */
/* ------------------------------------------------------------------ */

.page-numbers {
	display: inline-block;
	border: 1px solid var(--ita-border);
	border-radius: 0.5rem;
	background-color: var(--ita-bg);
	color: var(--ita-fg);
	padding: 6px 12px;
	font-size: 0.875rem;
	text-decoration: none;
}

a.page-numbers:hover {
	background-color: var(--ita-muted);
	text-decoration: none;
}

.page-numbers.current {
	background-color: var(--ita-primary);
	border-color: var(--ita-primary);
	color: var(--ita-primary-fg);
}

/* ------------------------------------------------------------------ */
/* 15. Sidebar widgets as cards                                        */
/* ------------------------------------------------------------------ */

.widget-area .widget {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.widget-area .widget-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ita-fg);
	margin: 0 0 0.75rem;
}

.widget-area .widget a {
	color: var(--ita-muted-fg);
	text-decoration: none;
}

.widget-area .widget a:hover {
	color: var(--ita-fg);
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* 16. Footer: top border, light gray wash, small muted text           */
/* ------------------------------------------------------------------ */

.site-footer {
	border-top: 1px solid var(--ita-border);
	background-color: rgba(245, 245, 245, 0.3);
	padding: 3rem 0 2rem;
}

.footer-widgets .widget-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ita-fg);
	margin-bottom: 1rem;
}

.footer-widgets a {
	font-size: 0.875rem;
	color: var(--ita-muted-fg);
	text-decoration: none;
}

.footer-widgets a:hover {
	color: var(--ita-fg);
	text-decoration: none;
}

.site-info {
	font-size: 0.75rem;
	color: var(--ita-muted-fg);
}

.site-info a {
	color: var(--ita-muted-fg);
	text-decoration: none;
}

.site-info a:hover {
	color: var(--ita-fg);
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* 17. Motion: keep hovers subtle, respect reduced motion              */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ------------------------------------------------------------------ */
/* 18. Homepage search, popular pills, stats, featured, guide meta    */
/* ------------------------------------------------------------------ */

.ita-search {
	display: flex;
	gap: 0.5rem;
	max-width: 36rem;
	margin: 1.5rem auto 0;
}

.ita-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--ita-border);
	border-radius: 0.625rem;
	background-color: #ffffff;
	padding: 10px 14px;
	font-size: 1rem;
	color: var(--ita-fg);
}

.ita-search input[type="search"]:focus {
	outline: none;
	border-color: var(--ita-primary);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.ita-search button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.625rem;
	background-color: var(--ita-primary);
	color: var(--ita-primary-fg);
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.ita-search button:hover {
	background-color: rgba(29, 78, 216, 0.8);
}

.ita-popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 1rem auto 0;
	max-width: 48rem;
}

.ita-popular > span {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ita-muted-fg);
}

.ita-popular ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-main article .ita-popular a {
	display: inline-block;
	border: 1px solid var(--ita-border);
	border-radius: 999px;
	background-color: #ffffff;
	padding: 6px 14px;
	font-size: 0.875rem;
	color: var(--ita-fg);
	text-decoration: none;
}

.site-main article .ita-popular a:hover {
	border-color: var(--ita-primary);
	color: var(--ita-primary);
	text-decoration: none;
}

.ita-stats ul {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 1rem;
	list-style: none;
	margin: 2rem 0;
	padding: 0;
}

.ita-stats li {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: #ffffff;
	padding: 1.5rem 1rem;
	text-align: center;
}

.site-main article .ita-stats a {
	display: block;
	color: var(--ita-fg);
	text-decoration: none;
}

.ita-stats strong {
	display: block;
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.ita-stats span {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

.ita-stats small {
	display: block;
	font-size: 0.875rem;
	color: var(--ita-muted-fg);
	margin-top: 0.25rem;
}

@media (max-width: 48rem) {
	.ita-stats ul {
		grid-template-columns: 1fr 1fr;
	}
}

.ita-featured ul {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.ita-featured li {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: #ffffff;
	padding: 1rem 1.25rem;
}

.site-main article .ita-featured a {
	color: var(--ita-fg);
	font-weight: 600;
	text-decoration: none;
}

.site-main article .ita-featured a:hover {
	color: var(--ita-primary);
	text-decoration: none;
}

@media (max-width: 48rem) {
	.ita-featured ul {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 32rem) {
	.ita-featured ul,
	.ita-stats ul {
		grid-template-columns: 1fr;
	}
}

.ita-meta {
	color: var(--ita-muted-fg);
	font-size: 0.875rem;
	text-align: center;
	margin: 0 0 2rem;
}

/* ------------------------------------------------------------------ */
/* 19. Entrance animations: transform only, like the live hero fade   */
/* Content is never hidden by default: the keyframes move elements    */
/* only, they never set opacity, so content stays visible even if    */
/* the animation is interrupted or CSS partially fails.              */
/* ------------------------------------------------------------------ */

@keyframes ita-fade-up {
	from {
		transform: translateY(10px);
	}
	to {
		transform: translateY(0);
	}
}

.ita-hero {
	animation: ita-fade-up 0.3s ease-out both;
}

.ita-hero > *:nth-child(2) {
	animation: ita-fade-up 0.3s ease-out 0.05s both;
}

.ita-hero > *:nth-child(3) {
	animation: ita-fade-up 0.3s ease-out 0.1s both;
}

.ita-hero > *:nth-child(4) {
	animation: ita-fade-up 0.3s ease-out 0.15s both;
}

.ita-section,
.ita-toc,
.ita-faq,
.ita-related,
.ita-cta,
.ita-featured,
.ita-stats {
	animation: ita-fade-up 0.5s ease-out both;
}

.ita-directory ul li,
.ita-featured li,
.ita-stats li,
section[aria-labelledby="ita-providers-heading"] ul li,
.ita-messaging-list li,
.ita-compare-list li {
	animation: ita-fade-up 0.5s ease-out both;
}

.ita-directory ul li:nth-child(2),
.ita-featured li:nth-child(2),
.ita-stats li:nth-child(2),
section[aria-labelledby="ita-providers-heading"] ul li:nth-child(2),
.ita-messaging-list li:nth-child(2),
.ita-compare-list li:nth-child(2) {
	animation-delay: 0.05s;
}

.ita-directory ul li:nth-child(3),
.ita-featured li:nth-child(3),
.ita-stats li:nth-child(3),
section[aria-labelledby="ita-providers-heading"] ul li:nth-child(3),
.ita-messaging-list li:nth-child(3),
.ita-compare-list li:nth-child(3) {
	animation-delay: 0.1s;
}

.ita-directory ul li:nth-child(4),
.ita-featured li:nth-child(4),
.ita-stats li:nth-child(4),
section[aria-labelledby="ita-providers-heading"] ul li:nth-child(4),
.ita-messaging-list li:nth-child(4),
.ita-compare-list li:nth-child(4) {
	animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
	.ita-hero,
	.ita-hero > *,
	.ita-section,
	.ita-toc,
	.ita-faq,
	.ita-related,
	.ita-cta,
	.ita-featured,
	.ita-stats,
	.ita-directory ul li,
	.ita-featured li,
	.ita-stats li,
	section[aria-labelledby="ita-providers-heading"] ul li,
	.ita-messaging-list li,
	.ita-compare-list li {
		animation: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* 20. Premium modern look: clean, trustworthy directory styling      */
/* Light rules use --ita-* variables so dark mode flips with them.    */
/* Every new hard-coded light color below has a matching html.ita-    */
/* dark override in this same section, written with a longer          */
/* selector so it outranks the dark plugin where they overlap.        */
/* Nothing here changes content, URLs, headings text, or SEO.         */
/* ------------------------------------------------------------------ */

/* 20.1 Typography: larger hero, stronger section headings. */
.ita-hero h1 {
	font-size: 2.25rem;
	letter-spacing: -0.03em;
}

@media (min-width: 40rem) {
	.ita-hero h1 {
		font-size: 2.75rem;
	}
}

@media (min-width: 48rem) {
	.ita-hero h1 {
		font-size: 3.5rem;
	}
}

.ita-intro h2,
.ita-section h2,
.ita-faq h2,
.ita-related h2,
.ita-directory h2,
.ita-cta h2 {
	font-size: 1.75rem;
	letter-spacing: -0.03em;
	margin: 2.5rem 0 1rem;
}

.ita-intro h3,
.ita-section h3 {
	font-size: 1.375rem;
	letter-spacing: -0.025em;
}

.ita-hero p {
	font-size: 1.25rem;
}

/* 20.2 Hero and CTA: richer blue gradients, same brand blue family. */
.ita-hero {
	background: linear-gradient(180deg, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0.03) 55%, var(--ita-bg));
}

.ita-cta {
	background: linear-gradient(180deg, rgba(29, 78, 216, 0.08), var(--ita-bg));
	border-color: rgba(29, 78, 216, 0.15);
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 12px 32px rgba(29, 78, 216, 0.08);
}

html.ita-dark .site-main .ita-hero {
	background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(96, 165, 250, 0.05) 55%, #0a0a0a);
}

html.ita-dark .site-main .ita-cta {
	background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), #0a0a0a);
	border-color: rgba(96, 165, 250, 0.2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Hero badge and quick stats: softer, rounder, layered. */
.ita-hero .ita-badge {
	border: 1px solid var(--ita-border);
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

.ita-hero .ita-quick-stats li {
	border-radius: 1rem;
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 8px 20px rgba(10, 10, 10, 0.06);
}

html.ita-dark .site-main .ita-hero .ita-quick-stats li {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 20.3 Cards: 18px radius, layered soft shadows, gentle lift on hover. */
.ita-section dl,
section[aria-labelledby="ita-providers-heading"] ul li a,
section[aria-labelledby="ita-browse-heading"] ul li a,
.ita-directory ul li a,
.ita-messaging-list li,
.ita-compare-list li,
.ita-toc,
.widget-area .widget,
.ita-stats li,
.ita-featured li {
	border-radius: 1.125rem;
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 8px 24px rgba(10, 10, 10, 0.06);
}

.ita-related ul li a {
	border-radius: 0.875rem;
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

section[aria-labelledby="ita-providers-heading"] ul li a,
section[aria-labelledby="ita-browse-heading"] ul li a,
.ita-directory ul li a,
.ita-messaging-list li,
.ita-compare-list li,
.ita-stats li,
.ita-featured li,
.ita-related ul li a {
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

section[aria-labelledby="ita-providers-heading"] ul li a:hover,
section[aria-labelledby="ita-browse-heading"] ul li a:hover,
.ita-directory ul li a:hover,
.ita-messaging-list li:hover,
.ita-compare-list li:hover,
.ita-stats li:hover,
.ita-featured li:hover {
	transform: translateY(-3px);
	border-color: rgba(29, 78, 216, 0.25);
	box-shadow: 0 2px 4px rgba(10, 10, 10, 0.05), 0 12px 32px rgba(10, 10, 10, 0.1);
}

.ita-related ul li a:hover {
	border-color: rgba(29, 78, 216, 0.25);
	box-shadow: 0 2px 8px rgba(10, 10, 10, 0.06);
}

html.ita-dark .site-main .ita-section dl,
html.ita-dark .site-main section[aria-labelledby="ita-providers-heading"] ul li a,
html.ita-dark .site-main section[aria-labelledby="ita-browse-heading"] ul li a,
html.ita-dark .site-main .ita-directory ul li a,
html.ita-dark .site-main .ita-messaging-list li,
html.ita-dark .site-main .ita-compare-list li,
html.ita-dark .site-main .ita-toc,
html.ita-dark .site-main .widget-area .widget,
html.ita-dark .site-main .ita-stats li,
html.ita-dark .site-main .ita-featured li,
html.ita-dark .site-main .ita-related ul li a {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.45);
}

html.ita-dark .site-main section[aria-labelledby="ita-providers-heading"] ul li a:hover,
html.ita-dark .site-main section[aria-labelledby="ita-browse-heading"] ul li a:hover,
html.ita-dark .site-main .ita-directory ul li a:hover,
html.ita-dark .site-main .ita-messaging-list li:hover,
html.ita-dark .site-main .ita-compare-list li:hover,
html.ita-dark .site-main .ita-stats li:hover,
html.ita-dark .site-main .ita-featured li:hover,
html.ita-dark .site-main .ita-related ul li a:hover {
	border-color: rgba(96, 165, 250, 0.35);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* 20.4 Buttons and search: pill shape, soft primary shadow. */
.ita-search button,
.site-main article .ita-cta a,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.ita-search button:hover,
.site-main article .ita-cta a:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background-color: rgba(29, 78, 216, 0.9);
	box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}

html.ita-dark .site-main .ita-search button,
html.ita-dark .site-main article .ita-cta a,
html.ita-dark .wp-block-button__link,
html.ita-dark input[type="submit"],
html.ita-dark input[type="button"] {
	box-shadow: 0 4px 14px rgba(96, 165, 250, 0.3);
}

html.ita-dark .site-main .ita-search button:hover,
html.ita-dark .site-main article .ita-cta a:hover,
html.ita-dark .wp-block-button__link:hover,
html.ita-dark input[type="submit"]:hover,
html.ita-dark input[type="button"]:hover {
	background-color: #93c5fd;
	background-color: oklch(0.75 0.16 260);
	box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.ita-search input[type="search"] {
	border-radius: 999px;
	padding: 12px 18px;
}

.ita-search input[type="search"]:focus {
	box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
}

html.ita-dark input[type="text"]:focus,
html.ita-dark input[type="search"]:focus,
html.ita-dark input[type="email"]:focus,
html.ita-dark input[type="url"]:focus,
html.ita-dark textarea:focus,
html.ita-dark select:focus {
	box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
}

/* Popular pills: soft hover lift, same pill shape kept. */
.site-main article .ita-popular a {
	transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-main article .ita-popular a:hover {
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
	background-color: rgba(29, 78, 216, 0.04);
}

html.ita-dark .site-main article .ita-popular a:hover {
	background-color: rgba(96, 165, 250, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Nav links: smooth hover tint in light mode only, dark keeps the plugin tint. */
.main-navigation .main-nav ul li a {
	transition: color 0.25s ease, background-color 0.25s ease;
}

.main-navigation .main-nav ul li a:hover {
	background-color: rgba(29, 78, 216, 0.06);
}

/* FAQ rows: a touch more air, primary hover on the question. */
.ita-faq-item summary {
	padding: 1.125rem 1.25rem;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.ita-faq-item summary:hover {
	color: var(--ita-primary);
}

/* Pagination: pill outline buttons. */
.page-numbers {
	border-radius: 999px;
}

/* 20.5 Generous rhythm: more breathing room, light tinted washes. */
/* Washes sit only on the homepage stats and featured sections, so    */
/* plain sections between them create the alternating rhythm.        */
.ita-section {
	margin-bottom: 2.5rem;
}

.ita-featured {
	background: rgba(29, 78, 216, 0.03);
	border: 1px solid var(--ita-border);
	border-radius: 1.25rem;
	padding: 1.5rem;
}

.ita-stats {
	background: rgba(29, 78, 216, 0.03);
	border: 1px solid var(--ita-border);
	border-radius: 1.25rem;
	padding: 1.5rem;
}

.ita-stats ul {
	margin: 0;
}

html.ita-dark .site-main .ita-featured,
html.ita-dark .site-main .ita-stats {
	background: rgba(96, 165, 250, 0.05);
}

/* 20.6 Header: clean soft shadow, blur kept. */
.site-header {
	box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 4px 16px rgba(10, 10, 10, 0.04);
}

html.ita-dark .site-header {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* 20.7 Footer: deep dark in both modes, always readable. */
/* Dark values below match the dark plugin exactly, so the footer    */
/* looks the same whichever stylesheet wins in dark mode.            */
.site-footer {
	background-color: #171717;
	background-color: oklch(0.205 0 0);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets .widget {
	background-color: transparent;
}

.footer-widgets .widget-title {
	color: #fafafa;
	color: oklch(0.985 0 0);
}

.footer-widgets a {
	color: #a3a3a3;
	color: oklch(0.708 0 0);
}

.footer-widgets a:hover {
	color: #fafafa;
	color: oklch(0.985 0 0);
}

.site-info,
.site-info a {
	color: #a3a3a3;
	color: oklch(0.708 0 0);
}

.site-info a:hover {
	color: #fafafa;
	color: oklch(0.985 0 0);
}

/* 20.7b Footer layers in light mode: section 20.7 colors the outer   */
/* .site-footer dark but GeneratePress gives the widgets area its own */
/* Customizer background (white), which covered the dark wash while   */
/* the light text still applied, so headings went near-white on white */
/* and links went pale grey on white. These rules color every footer  */
/* layer dark in light mode too, with two-class selectors that outrank */
/* the single-class Customizer rules. Values match 20.7 and the dark   */
/* plugin exactly, so dark mode is unchanged.                          */
.site-footer .footer-widgets,
.site-footer .footer-widgets-container,
.site-footer .inside-footer-widgets,
.site-footer .site-info {
	background-color: #171717;
	background-color: oklch(0.205 0 0);
}

.site-footer .footer-widgets .widget {
	background-color: transparent;
}

.site-footer .footer-widgets .widget-title {
	color: #fafafa;
	color: oklch(0.985 0 0);
}

.site-footer .footer-widgets a,
.site-footer .site-info,
.site-footer .site-info a {
	color: #a3a3a3;
	color: oklch(0.708 0 0);
}

.site-footer .footer-widgets a:hover,
.site-footer .site-info a:hover {
	color: #fafafa;
	color: oklch(0.985 0 0);
}

/* 20.8 Motion cap: nothing added here moves longer than 0.25s, and   */
/* reduced-motion users get no transitions at all from this section. */
/* Section 17 already zeroes all transition durations globally, this */
/* block makes the section 20 rule explicit.                         */
@media (prefers-reduced-motion: reduce) {
	section[aria-labelledby="ita-providers-heading"] ul li a,
	section[aria-labelledby="ita-browse-heading"] ul li a,
	.ita-directory ul li a,
	.ita-messaging-list li,
	.ita-compare-list li,
	.ita-stats li,
	.ita-featured li,
	.ita-related ul li a,
	.ita-search button,
	.site-main article .ita-cta a,
	.wp-block-button__link,
	input[type="submit"],
	input[type="button"],
	.site-main article .ita-popular a,
	.ita-faq-item summary,
	.main-navigation .main-nav ul li a {
		transition: none !important;
	}
}

/* 21. Popular pills marquee: mirrors the live PopularSearches strip.  */
/* Pills scroll in one horizontal strip instead of wrapping. The track */
/* holds two identical copies so the 80s loop resets seamlessly; the   */
/* second copy is aria-hidden in the template. Pill colors come from   */
/* the existing variables and dark overrides, so no new color rules   */
/* are needed here and dark mode flips on its own.                    */
.ita-popular {
	flex-wrap: nowrap;
	justify-content: flex-start;
	max-width: none;
}

.ita-popular > span {
	flex-shrink: 0;
}

.ita-popular-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.ita-popular-track {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: max-content;
	animation: ita-marquee 80s linear infinite;
}

.ita-popular-track ul {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0.5rem;
	flex-shrink: 0;
}

.ita-popular-track li {
	flex-shrink: 0;
}

.ita-popular-track a {
	white-space: nowrap;
}

.ita-popular-spacer {
	flex-shrink: 0;
	width: 0.5rem;
}

.ita-popular-clone {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

@keyframes ita-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.ita-popular-viewport:hover .ita-popular-track,
.ita-popular-viewport:focus-within .ita-popular-track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.ita-popular-track {
		animation: none;
	}
	.ita-popular-clone {
		display: none;
	}
	.ita-popular-viewport {
		overflow-x: auto;
		scrollbar-width: none;
	}
	.ita-popular-viewport::-webkit-scrollbar {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* 22. Responsive: tablet and mobile refinements (MOBILE-AUDIT.md).    */
/* Desktop above 1024px is unchanged: every rule below sits inside a  */
/* max-width query, and the blocks run largest to smallest so a       */
/* smaller width wins over a larger one and over the earlier          */
/* min-width rules. No new colors are introduced, so dark mode needs  */
/* no extra overrides here; no new animations or transitions either.  */
/* ------------------------------------------------------------------ */

/* 22.1 Tablet (max-width: 1024px): 4 and 3 column grids to 2 columns, */
/* footer to 2 columns, hero a step smaller.                           */
@media (max-width: 1024px) {
	.ita-hero {
		padding: 4rem 1rem;
	}

	.ita-hero h1 {
		font-size: 2.75rem;
	}

	.ita-stats ul,
	.ita-featured ul {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer .inside-footer-widgets,
	.site-footer .footer-widgets-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.site-footer .inside-footer-widgets > *,
	.site-footer .footer-widgets-container > * {
		width: auto;
		max-width: none;
		min-width: 0;
	}
}

/* 22.2 Mobile (max-width: 768px): smaller hero and headings, stacked  */
/* facility details, 1-column footer, 47px touch targets.             */
@media (max-width: 768px) {
	.ita-hero {
		padding: 2.5rem 1rem;
	}

	.ita-hero h1 {
		font-size: 1.75rem;
	}

	.ita-hero p {
		font-size: 1.125rem;
	}

	.ita-intro h2,
	.ita-section h2,
	.ita-faq h2,
	.ita-related h2,
	.ita-directory h2,
	.ita-cta h2 {
		font-size: 1.5rem;
	}

	.ita-intro h3,
	.ita-section h3 {
		font-size: 1.25rem;
	}

	.ita-section {
		margin-bottom: 2rem;
	}

	.ita-section dl {
		grid-template-columns: 1fr;
		gap: 0.5rem 0;
	}

	.ita-section dd {
		overflow-wrap: anywhere;
	}

	.ita-cta {
		padding: 1.5rem;
	}

	.site-main article .ita-cta a {
		display: flex;
		width: 100%;
	}

	.site-footer {
		padding: 2rem 0 1.5rem;
	}

	.site-footer .inside-footer-widgets,
	.site-footer .footer-widgets-container {
		grid-template-columns: 1fr;
	}

	/* Touch targets to about 47px: generic buttons, search button, */
	/* menu toggle, mobile nav links, pagination, TOC rows. */
	button,
	input[type="submit"],
	input[type="button"],
	.wp-block-button__link {
		padding: 12px 20px;
	}

	.ita-search button {
		padding: 12px 20px;
	}

	.main-navigation .menu-toggle {
		padding: 12px 16px;
	}

	.main-navigation .main-nav ul li a {
		padding: 12px 16px;
	}

	.page-numbers {
		padding: 12px 16px;
	}

	.ita-toc ul li a {
		padding: 12px 6px;
	}

	/* Defensive only: no table exists in any template or in the     */
	/* exported content today, so this never fires yet; if an editor */
	/* adds one later, it scrolls instead of overflowing. */
	.site-main table {
		display: block;
		overflow-x: auto;
	}
}

/* 22.3 Small mobile (max-width: 480px): smallest type scale, stacked  */
/* search form, 1-column stats and featured.                          */
@media (max-width: 480px) {
	.ita-hero {
		padding: 2rem 1rem;
	}

	.ita-hero h1 {
		font-size: 1.5rem;
	}

	.ita-hero p {
		font-size: 1rem;
	}

	.ita-intro h2,
	.ita-section h2,
	.ita-faq h2,
	.ita-related h2,
	.ita-directory h2,
	.ita-cta h2 {
		font-size: 1.375rem;
	}

	.ita-intro h3,
	.ita-section h3 {
		font-size: 1.125rem;
	}

	.ita-featured,
	.ita-stats {
		padding: 1.25rem;
	}

	.ita-stats ul,
	.ita-featured ul {
		grid-template-columns: 1fr;
	}

	.ita-search {
		flex-direction: column;
	}

	.ita-search button {
		width: 100%;
		justify-content: center;
	}

	.ita-cta {
		padding: 1.25rem;
	}
}

/* ------------------------------------------------------------------ */
/* 23. Mobile header and footer fix (phone check, 2 Nov 2026).        */
/* Jan's phone screenshots showed two defects on mobile only: the     */
/* header toggle sat in a detached white box next to the logo with    */
/* the rest of the bar empty, and the footer black background spanned */
/* only a narrow left column instead of the full width. Desktop was   */
/* fine, so every rule below sits inside max-width: 768px.            */
/* Header: GeneratePress intends a single row on mobile (its inline   */
/* Customizer CSS sets .inside-header to row plus wrap, the toggle    */
/* wrapper to flex with margin-left auto, and #site-navigation to a   */
/* 100 percent basis so the opened menu drops to its own line). Our   */
/* toggle box styling (border plus white background) made the toggle  */
/* look like a separate white card, so on mobile the toggle goes      */
/* borderless and transparent while keeping its 47px touch padding    */
/* from section 22. The wrapper margin and the nav basis are          */
/* re-asserted here with stronger selectors so the toggle lands on    */
/* the right edge and the opened menu still drops below the bar.      */
/* Footer: no stylesheet rule was found that narrows the footer on    */
/* mobile (GeneratePress, child CSS, dark plugin, and Customizer CSS  */
/* all give a full width footer), so this enforces full width         */
/* explicitly at every footer layer (outer, widgets wrapper,          */
/* container, inner, info bar) plus the widget columns, and           */
/* re-asserts the near-black background and the 1-column grid from    */
/* section 22. Horizontal padding moves to 20px to match the page     */
/* side padding; vertical rhythm is unchanged. No new colors are      */
/* introduced (the near-black matches section 20), so dark mode needs */
/* no extra overrides here; no new animations or transitions either.  */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
	/* Header: one clean bar, logo left, toggle on the right edge. */
	.site-header .inside-header {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	.site-header .site-branding-container {
		flex: 0 1 auto;
		min-width: 0;
	}

	.site-header #mobile-menu-control-wrapper {
		display: flex;
		margin-left: auto;
		align-items: center;
		flex: 0 0 auto;
	}

	.site-header #site-navigation {
		flex-basis: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.site-header .menu-toggle {
		border-color: transparent;
		background-color: transparent;
		box-shadow: none;
	}

	.site-header .menu-toggle:hover {
		background-color: transparent;
	}

	/* Footer: full width at every layer, 1 column, black edge to edge. */
	.site-footer,
	.site-footer #footer-widgets,
	.site-footer .footer-widgets-container,
	.site-footer .inside-footer-widgets,
	.site-footer .site-info,
	.site-footer .inside-site-info {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		float: none;
	}

	.site-footer .inside-footer-widgets {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.site-footer .inside-footer-widgets > div {
		width: 100%;
		max-width: none;
		min-width: 0;
		flex: none;
	}

	.site-footer .footer-widgets-container {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-footer .inside-site-info {
		padding: 20px;
	}

	.site-footer,
	.site-footer #footer-widgets,
	.site-footer .footer-widgets-container,
	.site-footer .inside-footer-widgets,
	.site-footer .site-info {
		background-color: #171717;
		background-color: oklch(0.205 0 0);
	}
}

/* 24. Horizontal overflow fix (phone check, 2 Nov 2026).              */
/* Measured in a local mobile render: the page scrolled to 1296px on  */
/* a 360px viewport because #primary.content-area kept its old       */
/* 80rem (1280px) max-width cap, which outranks plain class rules,    */
/* so the main column stayed 1280px wide on phones. That sideways     */
/* scroll is what made header and footer look sliced and narrow on    */
/* the phone; measured at scroll-left, both were already correct      */
/* (footer full width, toggle at the right edge). Fix: cap the column */
/* at 100% with the same ID selector, later in the file, so it wins.  */
/* The marquee track is also clipped at its own box now, so its       */
/* 10915px width can never widen the page. Render-verified: 360px     */
/* and 768px scroll back to viewport width, desktop 1280px unchanged. */
/* ------------------------------------------------------------------ */

.ita-popular {
	overflow: hidden;
}

.site-content .content-area {
	min-width: 0;
	max-width: 100%;
}

/* The 80rem cap below is the one that actually wins on mobile: an    */
/* older rule, #primary.content-area { max-width: 80rem }, outranks   */
/* the plain class rule above (ID beats classes), so it must be       */
/* overridden with the same selector, later in the file, to cap the   */
/* column at its container on phones. On desktop nothing changes:     */
/* the site container never exceeds 1200px, so 100% already equals    */
/* the old 80rem cap there.                                            */
#primary.content-area {
	max-width: 100%;
}

/* 25. Mobile footer links centered (2 Nov 2026).                      */
/* Jan: footer links center me hon. Mobile par footer 1 column hai,   */
/* is liye widget text center kar diya gaya hai (headings samet,      */
/* taake har group aik block lage). List ki side spacing zero ki hai  */
/* taake centering bilkul darmiyan me aaye. Sirf mobile (768px tak);  */
/* desktop footer waisa ka waisa hai. Copyright line is me nahi hai.  */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
	.site-footer .inside-footer-widgets > div {
		text-align: center;
	}

	.site-footer .inside-footer-widgets ul {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}
}

/* 26. Header slimmer top to bottom (2 Nov 2026).                     */
/* Jan: header ki height kam ho. Inside-header ki top/bottom padding  */
/* 10px kar di gayi hai (pehle GeneratePress default taqreeban 20px),  */
/* jis se bar patli ho jati hai aur sticky header ke neeche content   */
/* zyada nazar aata hai. Logo, menu aur toggle ki size nahi badli,    */
/* sirf bar ki height kam hui hai. Har width par lagu hai.            */
/* ------------------------------------------------------------------ */

.site-header .inside-header {
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Mobile toggle button: line-height 60px inherit ho rahi thi (nav ki), */
/* jis se button 86px lamba ho gaya tha aur header bar lambi lagti thi. */
/* Line-height normal karne se button 48px rehta hai (touch target     */
/* barqarar) aur header bar mazeed patli ho jati hai.                  */
@media (max-width: 768px) {
	.site-header .menu-toggle {
		line-height: 24px;
	}
}

/* ------------------------------------------------------------------ */
/* 27. Facilities directory filter (8 Nov 2026, F7 gap fix).          */
/* Search box + state dropdown above the /facilities listing. Uses    */
/* theme variables so it works in light and dark mode. The form wraps  */
/* on narrow screens instead of overflowing.                          */
/* ------------------------------------------------------------------ */

.ita-dir-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	align-items: center;
	margin: 0 0 1.5rem;
}

.ita-dir-filter input[type="search"] {
	flex: 2 1 16rem;
	min-width: 0;
	border: 1px solid var(--ita-border);
	border-radius: 0.625rem;
	background-color: var(--ita-bg);
	padding: 10px 14px;
	font-size: 1rem;
	color: var(--ita-fg);
}

.ita-dir-filter select {
	flex: 1 1 10rem;
	min-width: 0;
	border: 1px solid var(--ita-border);
	border-radius: 0.625rem;
	background-color: var(--ita-bg);
	padding: 10px 14px;
	font-size: 1rem;
	color: var(--ita-fg);
}

.ita-dir-filter input[type="search"]:focus,
.ita-dir-filter select:focus {
	outline: none;
	border-color: var(--ita-primary);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.ita-dir-filter button {
	border: 1px solid transparent;
	border-radius: 0.625rem;
	background-color: var(--ita-primary);
	color: var(--ita-primary-fg);
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.ita-dir-filter button:hover {
	background-color: rgba(29, 78, 216, 0.8);
}

.ita-dir-clear {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ita-primary);
	text-decoration: none;
}

.ita-dir-count {
	font-size: 0.875rem;
	color: var(--ita-muted-fg);
	margin: 0 0 1rem;
}

.ita-dir-empty {
	border: 1px solid var(--ita-border);
	border-radius: var(--ita-radius-card);
	background-color: var(--ita-bg);
	padding: 1.25rem;
}
