/**
 * OMA Workforce Training Directory
 *
 * Everything is scoped under .oma-directory. The plugin never sets a bare element
 * selector, never uses !important, and never assumes it can inherit anything from
 * the theme.
 *
 * Three facts about the live OhioMFG.com theme shape this file:
 *
 * 1. It styles bare h1-h6, p, a, ul, ol, button, input, select, textarea, label,
 *    legend and img globally, at sizes far larger than the directory's. A
 *    `.oma-directory h1` selector outranks a bare `h1`, so scoping wins — but every
 *    property the theme sets has to be restated here. Nothing is left to inherit.
 *
 * 2. It suppresses focus outlines site-wide with
 *    `* { outline: none !important }`. Focus rings here use box-shadow, which
 *    nothing blocks, rather than fighting !important with !important.
 *
 * 3. Each font weight is registered as its own family name, so `font-weight: 700`
 *    does nothing. Weight changes are family changes — hence the --oma-font-* tokens.
 */

/* -----------------------------------------------------------------------------
 * Tokens
 * -------------------------------------------------------------------------- */

.oma-directory {
	/* Colour. Values are the approved design tokens, deliberately not the theme's
	   near-miss equivalents (#DE791C / #C2CD23): the contrast guidance in the
	   handoff was written against these. */
	--oma-black: #000000;
	--oma-ink: #1A1A1A;
	--oma-nav: #3A3A3A;
	--oma-footer: #262626;
	--oma-orange: #D97C24;
	--oma-orange-hover: #B9641A;
	--oma-orange-text: #B25E14;
	--oma-orange-link-hover: #8C4809;

	/* White text on the design's #D97C24 measures 3.06:1, below the 4.5:1 AA needs
	   at button size. The fill for white text is therefore the handoff's own
	   contrast-safe orange, which measures 4.66:1. #D97C24 is unchanged everywhere
	   it carries no text — top rules, accents, borders — so the brand reads the
	   same; only the surface behind white lettering is darkened. */
	--oma-orange-fill: #B25E14;
	--oma-orange-fill-hover: #8C4809;
	--oma-lime: #A5C520;
	--oma-gray-1: #F4F4F4;
	--oma-gray-2: #EDEDED;
	--oma-border: #D8D8D8;
	--oma-border-strong: #B9B9B9;
	--oma-muted: #5F6266;
	--oma-body: #4A4D50;
	--oma-muted-dark: #B9B9B9;
	--oma-muted-dark-2: #CFCFCF;
	--oma-white: #FFFFFF;
	--oma-hero: linear-gradient(100deg, #141414 0%, #333333 45%, #1E1E1E 100%);

	/* Type. The mock's Archivo and Lato are not on this site; these are the theme's
	   own faces, mapped onto the mock's type roles. Sizes, letter-spacing and
	   uppercase treatments stay exactly as designed — only the faces change. */
	--oma-font-display: 'NimbusSansBeckerPBla', 'Arial Black', Impact, sans-serif;
	--oma-font-body: 'OpenSans-Regular', 'Open Sans', system-ui, sans-serif;
	--oma-font-medium: 'OpenSans-Medium', 'Open Sans', system-ui, sans-serif;
	--oma-font-semibold: 'OpenSans-SemiBold', 'Open Sans', system-ui, sans-serif;
	--oma-font-bold: 'OpenSans-Bold', 'Open Sans', system-ui, sans-serif;
	--oma-font-extrabold: 'OpenSans-ExtraBold', 'Open Sans', system-ui, sans-serif;

	/* Spacing scale taken from the design. */
	--oma-gutter: 40px;
	--oma-gutter-mobile: 18px;

	/* Geometry. Radius is 0 everywhere; the only exceptions are the search pill and
	   circular icons, which opt in explicitly. The squareness is the brand. */
	--oma-radius: 0;
	--oma-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--oma-ink);
	--oma-focus-ring-dark: 0 0 0 2px var(--oma-ink), 0 0 0 4px var(--oma-lime);

	font-family: var(--oma-font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--oma-ink);
	letter-spacing: normal;
	text-align: left;
	box-sizing: border-box;
}

.oma-directory *,
.oma-directory *::before,
.oma-directory *::after {
	box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
 * Scoped normalization
 *
 * Restates every property the theme sets on a bare element we use. This is not a
 * reset: it is a targeted answer to a known, audited set of global rules.
 * -------------------------------------------------------------------------- */

.oma-directory h1,
.oma-directory h2,
.oma-directory h3,
.oma-directory h4,
.oma-directory h5,
.oma-directory h6 {
	font-family: var(--oma-font-display);
	font-weight: 400;
	color: var(--oma-ink);
	margin: 0;
	padding: 0;
	line-height: 1.1;
	letter-spacing: normal;
	text-transform: none;
}

.oma-directory p {
	margin: 0 0 12px;
	font-family: var(--oma-font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--oma-ink);
}

.oma-directory p:last-child {
	margin-bottom: 0;
}

.oma-directory a {
	color: var(--oma-orange-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

.oma-directory a:hover,
.oma-directory a:focus {
	color: var(--oma-orange-link-hover);
	text-decoration: underline;
}

.oma-directory ul,
.oma-directory ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oma-directory li {
	margin: 0;
}

.oma-directory img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.oma-directory strong,
.oma-directory b {
	font-family: var(--oma-font-bold);
	font-weight: 400;
}

.oma-directory button,
.oma-directory input,
.oma-directory select,
.oma-directory textarea {
	font-family: var(--oma-font-body);
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: normal;
	margin: 0;
	border-radius: var(--oma-radius);
	color: var(--oma-ink);
	text-transform: none;
}

.oma-directory textarea {
	resize: vertical;
}

/* The theme floats legends and forces labels to full-width blocks, which would
   wreck the filter rail. Both are restated. */
.oma-directory fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.oma-directory legend {
	float: none;
	width: auto;
	max-width: 100%;
	padding: 0;
	margin: 0 0 8px;
	font-family: var(--oma-font-bold);
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory label {
	display: inline-block;
	clear: none;
	float: none;
	width: auto;
	margin: 0;
	font-family: var(--oma-font-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--oma-ink);
}

.oma-directory table {
	border-collapse: collapse;
	width: 100%;
}

/* -----------------------------------------------------------------------------
 * Focus
 *
 * box-shadow, not outline: the theme sets `* { outline: none !important }`, which
 * a plugin forbidden from using !important cannot override.
 * -------------------------------------------------------------------------- */

.oma-directory a:focus-visible,
.oma-directory button:focus-visible,
.oma-directory input:focus-visible,
.oma-directory select:focus-visible,
.oma-directory textarea:focus-visible,
.oma-directory summary:focus-visible,
.oma-directory [tabindex]:focus-visible {
	box-shadow: var(--oma-focus-ring);
	position: relative;
	z-index: 1;
}

.oma-directory .oma-on-dark a:focus-visible,
.oma-directory .oma-on-dark button:focus-visible {
	box-shadow: var(--oma-focus-ring-dark);
}

.oma-directory input[type="checkbox"]:focus-visible,
.oma-directory input[type="radio"]:focus-visible {
	box-shadow: 0 0 0 3px var(--oma-ink);
}

/* Screen-reader-only text, scoped so it cannot collide with the theme's own. */
.oma-directory .oma-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */

.oma-directory .oma-band {
	padding: 32px var(--oma-gutter) 30px;
}

.oma-directory .oma-band--gray {
	background: var(--oma-gray-1);
}

.oma-directory .oma-band--ink {
	background: var(--oma-ink);
	color: var(--oma-white);
}

/* -----------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------- */

.oma-directory .oma-hero {
	position: relative;
	overflow: hidden;
	background: var(--oma-hero);
	padding: 34px var(--oma-gutter) 30px;
	color: var(--oma-white);
}

.oma-directory .oma-hero__ring {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.oma-directory .oma-hero__ring--a {
	width: 320px;
	height: 320px;
	top: -140px;
	right: -60px;
	border: 26px solid rgba(255, 255, 255, 0.09);
}

.oma-directory .oma-hero__ring--b {
	width: 210px;
	height: 210px;
	top: -40px;
	right: 190px;
	border: 22px solid rgba(255, 255, 255, 0.07);
}

.oma-directory .oma-hero__inner {
	position: relative;
	z-index: 1;
}

.oma-directory .oma-hero h1 {
	font-size: 46px;
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: var(--oma-white);
	margin: 8px 0 0;
}

/* Breadcrumb */
.oma-directory .oma-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--oma-muted-dark);
}

.oma-directory .oma-breadcrumb a {
	color: #D9A36A;
}

.oma-directory .oma-breadcrumb a:hover {
	color: var(--oma-white);
}

.oma-directory .oma-breadcrumb__sep {
	color: var(--oma-muted);
}

.oma-directory .oma-breadcrumb__current {
	color: var(--oma-white);
}

/* -----------------------------------------------------------------------------
 * Buttons
 *
 * Orange means action. Lime never does.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	min-height: 44px;
	border: 0;
	border-radius: var(--oma-radius);
	font-family: var(--oma-font-bold);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.oma-directory .oma-btn:hover,
.oma-directory .oma-btn:focus {
	text-decoration: none;
}

.oma-directory .oma-btn--primary {
	background: var(--oma-orange-fill);
	color: var(--oma-white);
}

.oma-directory .oma-btn--primary:hover,
.oma-directory .oma-btn--primary:focus {
	background: var(--oma-orange-fill-hover);
	color: var(--oma-white);
}

.oma-directory .oma-btn--outline {
	background: transparent;
	color: var(--oma-ink);
	border: 2px solid var(--oma-ink);
}

.oma-directory .oma-btn--outline:hover,
.oma-directory .oma-btn--outline:focus {
	background: var(--oma-ink);
	color: var(--oma-white);
}

.oma-directory .oma-btn--outline-dark {
	background: transparent;
	color: var(--oma-white);
	border: 2px solid #6E6E6E;
}

.oma-directory .oma-btn--outline-dark:hover,
.oma-directory .oma-btn--outline-dark:focus {
	border-color: var(--oma-lime);
	color: var(--oma-white);
}

.oma-directory .oma-btn--block {
	width: 100%;
}

/* -----------------------------------------------------------------------------
 * Chips
 * -------------------------------------------------------------------------- */

.oma-directory .oma-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-family: var(--oma-font-body);
	font-size: 12.5px;
	line-height: 1.3;
	border-radius: var(--oma-radius);
	background: var(--oma-gray-2);
	color: var(--oma-ink);
}

.oma-directory .oma-chip--dark {
	background: var(--oma-ink);
	color: var(--oma-white);
}

.oma-directory .oma-chip--outline {
	background: transparent;
	border: 1px solid var(--oma-ink);
	font-family: var(--oma-font-bold);
	font-size: 12px;
}

.oma-directory .oma-chip--status {
	background: transparent;
	border: 2px solid var(--oma-ink);
	font-family: var(--oma-font-bold);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

/* Gold Star: lime on ink. Lime is state, never action — this is never a link. */
.oma-directory .oma-chip--gold-star {
	background: var(--oma-ink);
	color: var(--oma-lime);
	font-family: var(--oma-font-bold);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
 * Eyebrow labels
 * -------------------------------------------------------------------------- */

.oma-directory .oma-eyebrow {
	font-family: var(--oma-font-bold);
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory .oma-eyebrow--lime {
	color: var(--oma-lime);
}

/* -----------------------------------------------------------------------------
 * Level toggle
 *
 * A two-segment control. Selected is lime on ink — state, not action.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-level-toggle {
	display: inline-flex;
	border: 2px solid var(--oma-ink);
}

.oma-directory .oma-level-toggle__option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 26px;
	min-height: 44px;
	font-family: var(--oma-font-bold);
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--oma-white);
	color: var(--oma-muted);
}

.oma-directory .oma-level-toggle__option + .oma-level-toggle__option {
	border-left: 2px solid var(--oma-ink);
}

.oma-directory .oma-level-toggle__option:hover {
	color: var(--oma-ink);
	text-decoration: none;
}

.oma-directory .oma-level-toggle__option.is-selected {
	background: var(--oma-ink);
	color: var(--oma-lime);
}

/* -----------------------------------------------------------------------------
 * Cards
 *
 * Borders only. The contact modal is the sole element with a shadow, plus the
 * role-card hover lift.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-card {
	background: var(--oma-white);
	border: 1px solid var(--oma-border);
	border-radius: var(--oma-radius);
}

.oma-directory .oma-card--rule-orange {
	border-top: 5px solid var(--oma-orange);
}

.oma-directory .oma-card--rule-ink {
	border-top: 5px solid var(--oma-ink);
}

.oma-directory .oma-card--rule-lime {
	border-top: 5px solid var(--oma-lime);
}

/* -----------------------------------------------------------------------------
 * Placeholders
 * -------------------------------------------------------------------------- */

.oma-directory .oma-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed var(--oma-border-strong);
	color: var(--oma-muted);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	background: var(--oma-white);
}

/* -----------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */

@media (max-width: 782px) {
	.oma-directory .oma-band,
	.oma-directory .oma-hero {
		padding-left: var(--oma-gutter-mobile);
		padding-right: var(--oma-gutter-mobile);
	}

	.oma-directory .oma-hero h1 {
		font-size: 30px;
	}

	.oma-directory .oma-level-toggle {
		display: flex;
		width: 100%;
	}

	.oma-directory .oma-level-toggle__option {
		flex: 1;
	}
}

/* -----------------------------------------------------------------------------
 * Headings
 * -------------------------------------------------------------------------- */

.oma-directory .oma-h2 {
	font-size: 30px;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0 0 10px;
}

.oma-directory .oma-h2--band {
	font-size: 26px;
	margin-bottom: 4px;
}

.oma-directory .oma-h2--light {
	color: var(--oma-white);
}

.oma-directory .oma-band__note {
	font-size: 13.5px;
	color: var(--oma-muted);
	margin: 0 0 16px;
}

.oma-directory .oma-band--ink .oma-band__note {
	color: var(--oma-muted-dark-2);
}

/* Lime underline marks state, not action — used on an informational link only. */
.oma-directory .oma-link-lime {
	display: inline-block;
	font-family: var(--oma-font-semibold);
	font-size: 13.5px;
	color: var(--oma-ink);
	border-bottom: 2px solid var(--oma-lime);
	padding-bottom: 1px;
}

.oma-directory .oma-link-lime:hover,
.oma-directory .oma-link-lime:focus {
	color: var(--oma-orange-link-hover);
	text-decoration: none;
}

/* -----------------------------------------------------------------------------
 * Landing: intro and statistics
 * -------------------------------------------------------------------------- */

.oma-directory .oma-intro {
	display: flex;
	gap: 44px;
	align-items: flex-start;
}

.oma-directory .oma-intro__copy {
	flex: 1;
	max-width: 660px;
}

.oma-directory .oma-intro__lede {
	font-size: 15px;
	color: var(--oma-body);
	margin: 0 0 18px;
	max-width: 600px;
}

.oma-directory .oma-search-row {
	display: flex;
	margin-top: 18px;
	max-width: 560px;
}

.oma-directory .oma-search-row__input {
	flex: 1;
	min-width: 0;
	padding: 13px 16px;
	border: 2px solid var(--oma-ink);
	border-right: 0;
	background: var(--oma-white);
	font-size: 15px;
}

.oma-directory .oma-search-row__input::placeholder {
	color: var(--oma-muted);
}

.oma-directory .oma-search-row__submit {
	flex: none;
}

.oma-directory .oma-stats {
	width: 296px;
	flex: none;
	padding: 18px 20px 20px;
	background: var(--oma-gray-1);
}

.oma-directory .oma-stats__figures {
	display: flex;
	gap: 26px;
}

.oma-directory .oma-stats__figure {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.oma-directory .oma-stats__number {
	font-family: var(--oma-font-display);
	font-size: 36px;
	line-height: 1;
	color: var(--oma-ink);
}

.oma-directory .oma-stats__label {
	font-family: var(--oma-font-bold);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory .oma-stats__note {
	margin: 14px 0 12px;
	padding-top: 14px;
	border-top: 1px solid var(--oma-border);
	font-size: 13px;
	line-height: 1.5;
	color: var(--oma-body);
}

/* -----------------------------------------------------------------------------
 * Landing: region tiles
 * -------------------------------------------------------------------------- */

.oma-directory .oma-regions__grid,
.oma-directory .oma-roles__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Region tiles size to their own content. Without this the distance-search cell,
   which is taller than a tile, stretches every tile on its grid row. */
.oma-directory .oma-regions__grid {
	align-items: start;
}

.oma-directory .oma-roles__grid {
	gap: 14px;
}

.oma-directory .oma-region-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 14px 16px 16px;
	text-decoration: none;
	color: var(--oma-ink);
}

.oma-directory .oma-region-tile:hover,
.oma-directory .oma-region-tile:focus {
	text-decoration: none;
	border-color: var(--oma-ink);
	color: var(--oma-ink);
}

.oma-directory .oma-region-tile__name {
	font-family: var(--oma-font-extrabold);
	font-size: 18px;
	line-height: 1.2;
}

.oma-directory .oma-region-tile__count {
	font-size: 12.5px;
	color: var(--oma-muted);
}

/* Distance search sits in the eighth cell of the region grid. */
.oma-directory .oma-distance {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 14px 16px 16px;
	border: 1px dashed var(--oma-border-strong);
	background: transparent;
}

.oma-directory .oma-distance__title {
	font-family: var(--oma-font-bold);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory .oma-distance__zip,
.oma-directory .oma-distance__radius {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--oma-border-strong);
	background: var(--oma-white);
	font-size: 14px;
	min-height: 40px;
}

.oma-directory .oma-distance__submit {
	padding: 8px 14px;
	min-height: 40px;
	font-size: 12.5px;
}

/* -----------------------------------------------------------------------------
 * Landing: role cards
 * -------------------------------------------------------------------------- */

.oma-directory .oma-role-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	min-height: 140px;
	padding: 16px 18px 18px;
	text-decoration: none;
	color: var(--oma-ink);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.oma-directory .oma-role-card:hover,
.oma-directory .oma-role-card:focus {
	text-decoration: none;
	color: var(--oma-ink);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.oma-directory .oma-role-card__name {
	font-family: var(--oma-font-display);
	font-size: 21px;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.oma-directory .oma-role-card__desc {
	flex: 1;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--oma-muted);
}

.oma-directory .oma-role-card__count {
	font-family: var(--oma-font-bold);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--oma-orange-text);
}

/* -----------------------------------------------------------------------------
 * Landing: institution call to action
 * -------------------------------------------------------------------------- */

.oma-directory .oma-listing-cta {
	display: flex;
	gap: 44px;
	align-items: flex-start;
	padding-top: 34px;
	padding-bottom: 34px;
}

.oma-directory .oma-listing-cta__copy {
	flex: 1;
	max-width: 660px;
}

.oma-directory .oma-listing-cta__lede {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--oma-muted-dark-2);
	margin: 0;
	max-width: 600px;
}

.oma-directory .oma-listing-cta__actions {
	width: 230px;
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.oma-directory .oma-listing-cta__requirements {
	margin-top: -4px;
	font-size: 13px;
	color: var(--oma-muted-dark-2);
	text-decoration: underline;
}

.oma-directory .oma-listing-cta__requirements:hover,
.oma-directory .oma-listing-cta__requirements:focus {
	color: var(--oma-lime);
}

/* -----------------------------------------------------------------------------
 * Landing: mobile
 * -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.oma-directory .oma-regions__grid,
	.oma-directory .oma-roles__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.oma-directory .oma-intro,
	.oma-directory .oma-listing-cta {
		flex-direction: column;
		gap: 24px;
	}

	.oma-directory .oma-stats,
	.oma-directory .oma-listing-cta__actions {
		width: 100%;
	}

	.oma-directory .oma-search-row {
		flex-direction: column;
	}

	.oma-directory .oma-search-row__input {
		border-right: 2px solid var(--oma-ink);
		border-bottom: 0;
	}

	/* Role cards become full-width rows with a left rule, per the mobile design. */
	.oma-directory .oma-roles__grid {
		grid-template-columns: 1fr;
	}

	.oma-directory .oma-role-card {
		min-height: 0;
		border-top: 1px solid var(--oma-border);
		border-left: 5px solid var(--oma-ink);
	}
}

/* -----------------------------------------------------------------------------
 * Count swapping
 *
 * The mobile design shows bare numbers where the desktop shows a full phrase.
 * Both are in the markup; CSS chooses. The full phrase is only ever visually
 * hidden, never removed, so assistive technology always reads "14 institutions".
 * -------------------------------------------------------------------------- */

.oma-directory .oma-count__short {
	display: none;
}

@media (max-width: 782px) {
	.oma-directory .oma-region-tile__count .oma-count__full,
	.oma-directory .oma-role-card__count .oma-count__full {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.oma-directory .oma-region-tile__count .oma-count__short,
	.oma-directory .oma-role-card__count .oma-count__short {
		display: inline;
	}

	/* Role rows put the count hard right, opposite the name. */
	.oma-directory .oma-role-card {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: baseline;
		column-gap: 12px;
	}

	.oma-directory .oma-role-card__desc {
		grid-column: 1 / -1;
	}

	.oma-directory .oma-role-card__count {
		grid-column: 2;
		grid-row: 1;
		text-align: right;
		white-space: nowrap;
	}
}

/* -----------------------------------------------------------------------------
 * Mobile tap targets
 *
 * Every interactive element clears 44px at the small breakpoint. The two standalone
 * text links get vertical padding rather than a larger font, so the type stays as
 * designed while the hit area grows.
 * -------------------------------------------------------------------------- */

@media (max-width: 782px) {
	.oma-directory .oma-distance__zip,
	.oma-directory .oma-distance__radius,
	.oma-directory .oma-distance__submit {
		min-height: 44px;
	}

	.oma-directory .oma-link-lime,
	.oma-directory .oma-listing-cta__requirements {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.oma-directory .oma-listing-cta__requirements {
		margin-top: 0;
	}
}

/* -----------------------------------------------------------------------------
 * Search: hero and level bar
 * -------------------------------------------------------------------------- */

.oma-directory .oma-hero--compact {
	padding-top: 24px;
	padding-bottom: 26px;
}

.oma-directory .oma-hero--compact h1 {
	font-size: 38px;
}

.oma-directory .oma-levelbar {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px var(--oma-gutter);
	background: var(--oma-gray-1);
}

.oma-directory .oma-levelbar .oma-level-toggle__option {
	padding: 9px 22px;
}

.oma-directory .oma-levelbar__note {
	margin: 0;
	font-size: 13px;
	color: var(--oma-muted);
}

/* -----------------------------------------------------------------------------
 * Search: layout
 * -------------------------------------------------------------------------- */

.oma-directory .oma-results {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 24px var(--oma-gutter) 36px;
}

.oma-directory .oma-results__rail {
	width: 262px;
	flex: none;
}

.oma-directory .oma-results__main {
	flex: 1;
	min-width: 0;
}

/* -----------------------------------------------------------------------------
 * Search: filter rail
 * -------------------------------------------------------------------------- */

.oma-directory .oma-rail {
	border: 1px solid var(--oma-border);
	background: #FAFAFA;
}

.oma-directory .oma-rail__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: var(--oma-ink);
}

.oma-directory .oma-rail__title {
	font-family: var(--oma-font-bold);
	font-size: 12px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--oma-white);
}

.oma-directory .oma-rail__clear {
	font-family: var(--oma-font-semibold);
	font-size: 12.5px;
	color: var(--oma-lime);
}

.oma-directory .oma-rail__clear:hover,
.oma-directory .oma-rail__clear:focus {
	color: var(--oma-lime);
	text-decoration: underline;
}

.oma-directory .oma-rail__body {
	padding: 16px;
}

.oma-directory .oma-rail__group + .oma-rail__group {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--oma-border);
}

.oma-directory .oma-rail__badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	background: var(--oma-gray-2);
	color: var(--oma-muted);
	font-family: var(--oma-font-bold);
	font-size: 10px;
	letter-spacing: 0.09em;
}

/* Distance refinement. Sits above the facets because it is the filter people most
   often change twice — nothing within 25 miles, so try 50. */
.oma-directory .oma-rail__distance {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 8px 10px;
}

.oma-directory .oma-rail__label {
	font-family: var(--oma-font-semibold);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--oma-muted);
	white-space: nowrap;
}

.oma-directory .oma-rail__zip,
.oma-directory .oma-rail__radius {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1.5px solid var(--oma-border-strong);
	border-radius: 0;
	background: var(--oma-white);
	color: var(--oma-ink);
	font-family: var(--oma-font-body);
	font-size: 15px;
}

.oma-directory .oma-rail__zip:focus-visible,
.oma-directory .oma-rail__radius:focus-visible {
	border-color: var(--oma-ink);
	box-shadow: 0 0 0 3px var(--oma-orange);
}

.oma-directory .oma-rail__hint {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--oma-muted);
}

.oma-directory .oma-rail__hint a {
	color: var(--oma-orange-text);
	text-decoration: underline;
}

.oma-directory .oma-rail__hint a:hover {
	color: var(--oma-orange-link-hover);
}

.oma-directory .oma-rail__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.oma-directory .oma-rail__option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}

.oma-directory .oma-rail__option input[type="checkbox"] {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--oma-orange);
	cursor: pointer;
}

/* The design specifies #9A9A9A here, which measures 2.70:1 on the rail's #FAFAFA —
   well under AA at 14px. --oma-muted measures 5.87:1 and still reads as clearly
   secondary against the near-black option label beside it. */
.oma-directory .oma-rail__count {
	color: var(--oma-muted);
}

/* The child list is the taxonomy's children — it appears for any parent with
   children, not just the one the design happens to show. */
.oma-directory .oma-rail__children {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 0 18px;
	padding-left: 11px;
	border-left: 2px solid var(--oma-border);
}

.oma-directory .oma-rail__option--child {
	font-size: 13.5px;
}

.oma-directory .oma-rail__more {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--oma-font-semibold);
	font-size: 13px;
	color: var(--oma-orange-text);
	cursor: pointer;
	text-decoration: underline;
}

.oma-directory .oma-rail__apply {
	margin-top: 16px;
}

/* -----------------------------------------------------------------------------
 * Search: applied chips and sort
 * -------------------------------------------------------------------------- */

.oma-directory .oma-results__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.oma-directory .oma-applied {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Lime marks state. This chip is clickable only to remove the state it reports,
   which is why it is not orange. */
.oma-directory .oma-applied__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--oma-lime);
	color: var(--oma-ink);
	font-family: var(--oma-font-bold);
	font-size: 13px;
	line-height: 1.2;
}

.oma-directory .oma-applied__chip:hover,
.oma-directory .oma-applied__chip:focus {
	background: var(--oma-ink);
	color: var(--oma-lime);
	text-decoration: none;
}

.oma-directory .oma-applied__x {
	font-size: 15px;
	line-height: 1;
}

.oma-directory .oma-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.oma-directory .oma-sort__label {
	font-family: var(--oma-font-bold);
	font-size: 12px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory .oma-sort__select {
	padding: 8px 10px;
	border: 1px solid var(--oma-border-strong);
	background: var(--oma-white);
	font-size: 13.5px;
	min-height: 40px;
}

.oma-directory .oma-sort__submit {
	padding: 8px 12px;
	min-height: 40px;
	border: 1px solid var(--oma-border-strong);
	background: var(--oma-white);
	font-family: var(--oma-font-semibold);
	font-size: 12.5px;
	cursor: pointer;
}

.oma-directory .oma-sort__submit:hover {
	border-color: var(--oma-ink);
}

/* -----------------------------------------------------------------------------
 * Search: count header
 * -------------------------------------------------------------------------- */

/* An entered ZIP the bundled table cannot place. Distance was not applied, and
   silently returning everything looks identical to the filter having worked. */
.oma-directory .oma-results__notice {
	padding: 12px 14px;
	margin: 0 0 16px;
	font-family: var(--oma-font-body);
	font-size: 15px;
	line-height: 1.45;
	color: var(--oma-ink);
	background: var(--oma-gray-1);
	border-left: 4px solid var(--oma-orange);
}

.oma-directory .oma-results__notice strong {
	font-family: var(--oma-font-bold);
}

.oma-directory .oma-results__count {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	margin-bottom: 14px;
	border-bottom: 3px solid var(--oma-ink);
}

.oma-directory .oma-results__total {
	font-family: var(--oma-font-display);
	font-size: 22px;
	line-height: 1.1;
	margin: 0;
}

.oma-directory .oma-results__range {
	margin: 0;
	font-size: 13px;
	color: var(--oma-muted);
	white-space: nowrap;
}

/* -----------------------------------------------------------------------------
 * Search: institution card
 * -------------------------------------------------------------------------- */

.oma-directory .oma-inst {
	margin-bottom: 14px;
}

.oma-directory .oma-inst__main {
	display: flex;
	gap: 18px;
	padding: 20px;
	align-items: flex-start;
}

.oma-directory .oma-inst__logo {
	flex: none;
	width: 64px;
	height: 64px;
}

.oma-directory .oma-inst__logo-placeholder {
	width: 64px;
	height: 64px;
}

.oma-directory .oma-inst__body {
	flex: 1;
	min-width: 0;
}

.oma-directory .oma-inst__title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-family: var(--oma-font-display);
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 4px;
}

.oma-directory .oma-inst__title a {
	color: var(--oma-ink);
}

.oma-directory .oma-inst__title a:hover,
.oma-directory .oma-inst__title a:focus {
	color: var(--oma-orange-link-hover);
	text-decoration: none;
}

.oma-directory .oma-inst__meta,
.oma-directory .oma-inst__distance {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--oma-muted);
}

.oma-directory .oma-inst__distance {
	font-family: var(--oma-font-semibold);
	font-size: 13px;
}

.oma-directory .oma-inst__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.oma-directory .oma-inst__actions {
	flex: none;
	width: 152px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* -----------------------------------------------------------------------------
 * Search: program drawer
 *
 * <details> carries the disclosure, so it works with JavaScript off.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-inst__disclosure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--oma-font-bold);
	font-size: 13.5px;
	color: var(--oma-orange-text);
	cursor: pointer;
	list-style: none;
}

.oma-directory .oma-inst__disclosure::-webkit-details-marker {
	display: none;
}

.oma-directory .oma-inst__disclosure::after {
	content: "\25BE";
	font-size: 11px;
}

.oma-directory .oma-inst__drawer[open] .oma-inst__disclosure::after {
	content: "\25B4";
}

.oma-directory .oma-inst__disclosure-hide,
.oma-directory .oma-inst__drawer[open] .oma-inst__disclosure-show {
	display: none;
}

.oma-directory .oma-inst__drawer[open] .oma-inst__disclosure-hide {
	display: inline;
}

/* An expanded card gains the orange left rule the design uses to mark it. */
.oma-directory .oma-inst:has(.oma-inst__drawer[open]) {
	border-left: 5px solid var(--oma-orange);
}

.oma-directory .oma-drawer {
	margin: 14px -20px -20px -102px;
	padding: 16px 20px 20px 102px;
	background: var(--oma-gray-1);
	border-top: 1px solid var(--oma-border);
}

.oma-directory .oma-drawer__header {
	margin: 0 0 10px;
	font-family: var(--oma-font-bold);
	font-size: 11.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory .oma-drawer__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oma-directory .oma-program {
	padding: 12px 14px;
	background: var(--oma-white);
	border: 1px solid var(--oma-border);
}

.oma-directory .oma-program__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.oma-directory .oma-program__title {
	font-family: var(--oma-font-bold);
	font-size: 16px;
}

.oma-directory .oma-program__duration {
	font-size: 13px;
	color: var(--oma-muted);
}

.oma-directory .oma-program__desc {
	max-width: 620px;
	margin-top: 6px;
	font-size: 14px;
	color: var(--oma-body);
}

.oma-directory .oma-program__desc p {
	font-size: 14px;
	color: var(--oma-body);
	margin: 0;
}

.oma-directory .oma-program__links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 8px 0 0;
	font-family: var(--oma-font-bold);
	font-size: 13.5px;
}

.oma-directory .oma-drawer__all {
	margin: 12px 0 0;
	font-family: var(--oma-font-semibold);
	font-size: 13.5px;
}

/* -----------------------------------------------------------------------------
 * Search: load more and empty state
 * -------------------------------------------------------------------------- */

.oma-directory .oma-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.oma-directory .oma-empty {
	padding: 36px 20px;
	border: 1px solid var(--oma-border);
	background: var(--oma-white);
	text-align: center;
}

.oma-directory .oma-empty__title {
	font-family: var(--oma-font-display);
	font-size: 22px;
	margin: 0 0 8px;
}

.oma-directory .oma-empty__note {
	max-width: 460px;
	margin: 0 auto 16px;
	color: var(--oma-muted);
}

/* -----------------------------------------------------------------------------
 * Search: mobile
 *
 * Filters are never inline on mobile. The rail collapses into a disclosure that
 * opens it as a full-width sheet, still a real form.
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.oma-directory .oma-results {
		flex-direction: column;
		gap: 16px;
	}

	.oma-directory .oma-results__rail,
	.oma-directory .oma-results__main {
		width: 100%;
	}

	.oma-directory .oma-inst__main {
		flex-wrap: wrap;
	}

	.oma-directory .oma-inst__actions {
		width: 100%;
		flex-direction: row;
	}

	.oma-directory .oma-inst__actions .oma-btn {
		flex: 1;
	}

	.oma-directory .oma-drawer {
		margin-left: -20px;
		padding-left: 20px;
	}

	.oma-directory .oma-sort {
		margin-left: 0;
		width: 100%;
	}

	.oma-directory .oma-sort__select {
		flex: 1;
		min-height: 44px;
	}

	.oma-directory .oma-sort__submit {
		min-height: 44px;
	}
}

/* -----------------------------------------------------------------------------
 * Search: mobile tap targets
 *
 * Every control on the results screen clears 44px at the small breakpoint. Filter
 * rows grow through their label, which is the real target, rather than by inflating
 * the checkbox. Type sizes are unchanged; only the hit areas grow.
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.oma-directory .oma-rail__option {
		align-items: center;
		min-height: 44px;
	}

	.oma-directory .oma-rail__option input[type="checkbox"] {
		width: 20px;
		height: 20px;
		margin-top: 0;
	}

	.oma-directory .oma-rail__options {
		gap: 0;
	}

	.oma-directory .oma-rail__children {
		gap: 0;
	}

	.oma-directory .oma-rail__clear,
	.oma-directory .oma-rail__more {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.oma-directory .oma-applied__chip {
		min-height: 44px;
	}

	/* A caption rather than a control, but it is a <label> and therefore clickable,
	   so it gets the same target height as the select it points at. */
	.oma-directory .oma-sort__label {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.oma-directory .oma-inst__disclosure {
		min-height: 44px;
	}

	.oma-directory .oma-program__links a,
	.oma-directory .oma-drawer__all a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.oma-directory .oma-breadcrumb a,
	.oma-directory .oma-breadcrumb__current {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* -----------------------------------------------------------------------------
 * Profile: identity band
 *
 * The profile runs to a narrower measure than the results screen, with tighter
 * gutters, exactly as the design specifies.
 * -------------------------------------------------------------------------- */

.oma-directory--institution {
	--oma-gutter: 36px;
}

.oma-directory .oma-hero--bare {
	padding-top: 20px;
	padding-bottom: 20px;
}

.oma-directory .oma-identity {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 24px var(--oma-gutter) 26px;
	background: var(--oma-gray-1);
}

.oma-directory .oma-identity__logo,
.oma-directory .oma-identity__logo-placeholder {
	flex: none;
	width: 104px;
	height: 104px;
}

.oma-directory .oma-identity__body {
	flex: 1;
	min-width: 0;
}

.oma-directory .oma-identity__title {
	font-size: 38px;
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
}

.oma-directory .oma-identity__status,
.oma-directory .oma-identity__tenure {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.oma-directory .oma-identity__reviewed {
	font-size: 13px;
	color: var(--oma-muted);
}

.oma-directory .oma-identity__intro {
	max-width: 620px;
	margin: 0;
	font-size: 14.5px;
	color: var(--oma-body);
}

.oma-directory .oma-identity__actions {
	flex: none;
	width: 180px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* -----------------------------------------------------------------------------
 * Profile: two-column body
 * -------------------------------------------------------------------------- */

.oma-directory .oma-profile {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	padding: 28px var(--oma-gutter) 36px;
}

.oma-directory .oma-profile__main {
	flex: 1;
	min-width: 0;
}

.oma-directory .oma-profile__side {
	flex: none;
	width: 300px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.oma-directory .oma-profile__heading {
	padding-bottom: 8px;
	margin-bottom: 14px;
	border-bottom: 3px solid var(--oma-ink);
}

.oma-directory .oma-profile__title {
	font-size: 22px;
	line-height: 1.1;
	margin: 0;
}

.oma-directory .oma-profile__programs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oma-directory .oma-profile__none {
	color: var(--oma-muted);
}

.oma-directory .oma-pcard {
	padding: 16px 18px;
}

/* The first program carries the orange left accent from the design. */
.oma-directory .oma-pcard--first {
	border-left: 5px solid var(--oma-orange);
}

.oma-directory .oma-pcard__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.oma-directory .oma-pcard__title {
	font-family: var(--oma-font-bold);
	font-size: 17px;
}

.oma-directory .oma-pcard__meta {
	margin: 0;
	font-size: 13px;
	color: var(--oma-muted);
}

.oma-directory .oma-pcard__desc {
	max-width: 620px;
	margin-top: 8px;
}

.oma-directory .oma-pcard__desc p {
	font-size: 14px;
	color: var(--oma-body);
	margin: 0;
}

.oma-directory .oma-pcard__links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 10px 0 0;
	font-family: var(--oma-font-bold);
	font-size: 13.5px;
}

/* -----------------------------------------------------------------------------
 * Profile: Gold Star panel
 * -------------------------------------------------------------------------- */

.oma-directory .oma-goldstar {
	margin-top: 18px;
	padding: 18px 20px 20px;
	background: var(--oma-ink);
}

.oma-directory .oma-goldstar__title {
	font-family: var(--oma-font-bold);
	font-size: 12px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--oma-lime);
	margin: 0 0 8px;
}

.oma-directory .oma-goldstar__note {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--oma-muted-dark-2);
}

.oma-directory .oma-goldstar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oma-directory .oma-goldstar__chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid #6E6E6E;
	font-size: 12.5px;
	color: var(--oma-white);
}

/* -----------------------------------------------------------------------------
 * Profile: sidebar cards
 * -------------------------------------------------------------------------- */

.oma-directory .oma-side {
	padding: 16px 18px 18px;
}

.oma-directory .oma-side__title {
	font-family: var(--oma-font-bold);
	font-size: 12px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--oma-muted);
	margin: 0 0 10px;
}

.oma-directory .oma-side__name {
	font-family: var(--oma-font-bold);
	font-size: 15px;
	margin: 0 0 4px;
}

.oma-directory .oma-side__line {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--oma-body);
}

.oma-directory .oma-side__line--muted {
	color: var(--oma-muted);
	font-size: 13.5px;
}

.oma-directory .oma-side__cta {
	margin-top: 12px;
}

.oma-directory .oma-side__locations,
.oma-directory .oma-side__nearby {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oma-directory .oma-side__loc-name,
.oma-directory .oma-side__nearby a {
	display: block;
	font-family: var(--oma-font-bold);
	font-size: 14px;
}

.oma-directory .oma-side__loc-address,
.oma-directory .oma-side__nearby-meta {
	display: block;
	font-size: 13px;
	color: var(--oma-muted);
}

/* Orange means action, so the link is orange — but quietly. Three uppercase
   buttons stacked in this card would outweigh "Send a request" directly above it,
   which is the action the profile is actually built around. */
.oma-directory .oma-side__loc-directions {
	display: inline-block;
	margin-top: 2px;
	padding: 4px 0;
	font-family: var(--oma-font-semibold);
	font-size: 12.5px;
	color: var(--oma-orange-text);
	text-decoration: none;
}

.oma-directory .oma-side__loc-directions:hover,
.oma-directory .oma-side__loc-directions:focus {
	color: var(--oma-orange-link-hover);
	text-decoration: underline;
}

.oma-directory .oma-side__loc-directions:focus-visible {
	box-shadow: var(--oma-focus-ring);
}

/* -----------------------------------------------------------------------------
 * Profile: location map
 *
 * A bundled Ohio outline with one pin per location — no tile service, no API key,
 * no third-party request from a public page. The pins sit at postal-code centers,
 * which the caption says out loud rather than implying a street accuracy the data
 * does not have.
 *
 * The frame keeps the design's full-width 150px slot; the drawing is centered
 * inside it at Ohio's true proportions rather than stretched to fill it.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-map {
	margin: 14px 0 0;
	padding: 0;
}

.oma-directory .oma-map__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	border: 1px solid var(--oma-border);
	background: var(--oma-gray-1);
}

.oma-directory .oma-map__svg {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	padding: 8px 0;
	box-sizing: border-box;
}

.oma-directory .oma-map__state {
	fill: var(--oma-white);
	stroke: var(--oma-border-strong);
	stroke-width: 2;
	stroke-linejoin: round;
}

/* A pin is neither a control nor a status, so it takes neither the orange nor the
   lime: ink on white reads as a mark on a map and keeps its contrast at 4px. */
.oma-directory .oma-map__pin {
	fill: var(--oma-ink);
	stroke: var(--oma-white);
	stroke-width: 2.5;
}

.oma-directory .oma-map__note {
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--oma-muted);
}

/* -----------------------------------------------------------------------------
 * Profile: mobile
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.oma-directory .oma-identity,
	.oma-directory .oma-profile {
		flex-direction: column;
		gap: 20px;
	}

	.oma-directory .oma-identity__actions,
	.oma-directory .oma-profile__side {
		width: 100%;
	}

	.oma-directory .oma-identity__title {
		font-size: 28px;
	}

	.oma-directory .oma-pcard__links a,
	.oma-directory .oma-side__loc-directions,
	.oma-directory .oma-side__nearby a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* The slot is fixed at 150px on desktop to fit the 300px rail. Once the rail
	   becomes a full-width block there is room to show the state larger. */
	.oma-directory .oma-map__frame {
		height: 220px;
	}
}

/* -----------------------------------------------------------------------------
 * Contact modal
 *
 * Rendered as a normal block by default, so the flow works with scripting off.
 * The dimmed overlay treatment applies only once JavaScript adds .is-dialog, which
 * means a no-JS visitor is never trapped behind an overlay they cannot dismiss.
 *
 * The modal is the only element in the directory with a shadow.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-modal {
	padding: 0 var(--oma-gutter) 40px;
}

.oma-directory .oma-modal__panel,
.oma-directory .oma-sent {
	background: var(--oma-white);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.oma-directory .oma-modal__panel {
	max-width: 620px;
}

.oma-directory .oma-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: var(--oma-ink);
}

.oma-directory .oma-modal__title {
	font-size: 26px;
	line-height: 1.1;
	color: var(--oma-white);
	margin: 0;
}

.oma-directory .oma-modal__sub {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: var(--oma-muted-dark);
}

.oma-directory .oma-modal__close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -8px -8px 0 0;
	font-size: 22px;
	line-height: 1;
	color: var(--oma-white);
}

.oma-directory .oma-modal__close:hover,
.oma-directory .oma-modal__close:focus {
	color: var(--oma-lime);
	text-decoration: none;
}

.oma-directory .oma-modal__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 26px 26px;
}

.oma-directory .oma-modal__alert {
	padding: 10px 12px;
	border-left: 4px solid #A33;
	background: #FBEDED;
	font-size: 14px;
}

/* Signed-in prefill is an enhancement. It never gates anything. */
.oma-directory .oma-signedin {
	padding: 10px 12px;
	background: var(--oma-gray-1);
	border-left: 4px solid var(--oma-lime);
}

.oma-directory .oma-signedin__text {
	margin: 0;
	font-size: 14px;
}

/* Honeypot: removed from the accessibility tree and from view, without
   display:none, which some bots detect and skip. */
.oma-directory .oma-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.oma-directory .oma-field-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.oma-directory .oma-field {
	flex: 1;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.oma-directory .oma-field--narrow {
	flex: 0 0 180px;
}

.oma-directory .oma-field__label {
	font-family: var(--oma-font-bold);
	font-size: 11.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

.oma-directory .oma-field__required {
	color: var(--oma-orange-text);
}

.oma-directory .oma-field__input {
	width: 100%;
	padding: 10px 12px;
	min-height: 44px;
	border: 1.5px solid var(--oma-border-strong);
	background: var(--oma-white);
	font-size: 15px;
}

.oma-directory .oma-field.has-error .oma-field__input {
	border-color: #A33;
}

.oma-directory .oma-field__error {
	margin: 0;
	font-size: 13px;
	color: #A33;
}

.oma-directory .oma-modal__fine {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--oma-muted);
}

.oma-directory .oma-modal__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.oma-directory .oma-modal__cancel {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--oma-font-bold);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--oma-muted);
}

/* -----------------------------------------------------------------------------
 * Contact sent state
 * -------------------------------------------------------------------------- */

.oma-directory .oma-sent {
	max-width: 400px;
}

.oma-directory .oma-sent__bar {
	display: block;
	height: 6px;
	background: var(--oma-lime);
}

.oma-directory .oma-sent__body {
	padding: 22px 26px 26px;
}

.oma-directory .oma-sent__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--oma-ink);
	color: var(--oma-lime);
	font-size: 20px;
}

.oma-directory .oma-sent__title {
	font-size: 28px;
	line-height: 1.1;
	margin: 0 0 8px;
}

.oma-directory .oma-sent__note {
	margin: 0 0 16px;
	color: var(--oma-body);
}

.oma-directory .oma-sent__next {
	padding: 14px 16px;
	background: var(--oma-gray-1);
}

.oma-directory .oma-sent__next ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.oma-directory .oma-sent__next a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--oma-font-semibold);
	font-size: 14px;
}

.oma-directory .oma-sent__copy {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: var(--oma-muted);
}

/* -----------------------------------------------------------------------------
 * Contact: mobile
 * -------------------------------------------------------------------------- */

@media (max-width: 782px) {
	.oma-directory .oma-field--narrow {
		flex: 1;
	}

	.oma-directory .oma-modal__body {
		padding: 16px 18px 20px;
	}
}

/* -----------------------------------------------------------------------------
 * Scripted enhancements
 *
 * Every rule here is gated on .oma-js, which JavaScript adds to <html> before
 * anything else. Without it the page keeps its server-rendered behaviour: all
 * filter options visible, no dead toggles, the rail inline, and the contact form a
 * normal block rather than an overlay nobody can dismiss.
 * -------------------------------------------------------------------------- */

/* Controls that only make sense with a handler behind them. */
.oma-directory .oma-rail__more,
.oma-directory .oma-rail__done,
.oma-directory .oma-filterbar,
.oma-directory .oma-sort__submit,
.oma-directory .oma-rail__apply {
	display: none;
}

.oma-js .oma-directory .oma-rail__more {
	display: inline-block;
}

.oma-js .oma-directory .oma-rail__group.is-collapsed .oma-rail__row.is-extra {
	display: none;
}

/* Without scripting these submit the form, so they must be present. */
:root:not(.oma-js) .oma-directory .oma-sort__submit,
:root:not(.oma-js) .oma-directory .oma-rail__apply {
	display: inline-flex;
}

.oma-directory .oma-results__main.is-loading {
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.oma-directory .oma-rail__done {
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--oma-font-bold);
	font-size: 12.5px;
	color: var(--oma-lime);
	cursor: pointer;
}

body.oma-noscroll {
	overflow: hidden;
}

/* -----------------------------------------------------------------------------
 * Mobile filter sheet
 *
 * Filters are never inline on mobile. With scripting the rail becomes a full-screen
 * sheet; without it, it stays above the results where it already worked.
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.oma-js .oma-directory .oma-filterbar {
		display: flex;
		gap: 10px;
		align-items: center;
		padding: 10px var(--oma-gutter);
		background: var(--oma-gray-1);
	}

	.oma-js .oma-directory .oma-filterbar__toggle {
		background: var(--oma-ink);
		color: var(--oma-white);
		border-color: var(--oma-ink);
	}

	.oma-js .oma-directory .oma-results__rail {
		position: fixed;
		inset: 0;
		z-index: 1000;
		overflow-y: auto;
		background: var(--oma-white);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform 0.2s ease, visibility 0.2s ease;
	}

	.oma-js .oma-directory .oma-results__rail.is-open {
		transform: translateY(0);
		visibility: visible;
	}

	.oma-js .oma-directory .oma-results__rail .oma-rail {
		min-height: 100%;
		border: 0;
	}

	.oma-js .oma-directory .oma-rail__header {
		position: sticky;
		top: 0;
		z-index: 1;
		min-height: 56px;
	}

	.oma-js .oma-directory .oma-rail__done {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* Applying is instant, so the sheet closes with Done rather than a submit. */
	.oma-js .oma-directory .oma-rail__apply {
		display: none;
	}
}

/* -----------------------------------------------------------------------------
 * Contact dialog
 *
 * The overlay treatment applies only once JavaScript has promoted the form, so a
 * visitor without it is never trapped behind a scrim they cannot dismiss.
 * -------------------------------------------------------------------------- */

.oma-directory .oma-modal.is-dialog {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 20px;
	background: rgba(0, 0, 0, 0.55);
}

.oma-directory .oma-modal.is-dialog .oma-modal__panel,
.oma-directory .oma-modal.is-dialog .oma-sent {
	width: 100%;
}

@media (max-width: 782px) {
	.oma-directory .oma-modal.is-dialog {
		padding: 0;
		align-items: stretch;
	}

	.oma-directory .oma-modal.is-dialog .oma-modal__panel {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oma-js .oma-directory .oma-results__rail {
		transition: none;
	}
}
