/**
 * 220 Listings — Recommended Professionals Stylesheet
 *
 * Owns every Recommended Professional shortcode and template:
 *   • Single profile layouts (Endorsement Card, Sidebar Profile)
 *   • List layouts (Bordered Feature Card, Portrait Grid, Grouped)
 *   • Category Accordion (RP-specific design layer over accordion.css)
 *   • V5 Search Hero (search bar above RP listings)
 *
 * Lazy-loaded by AssetLoader::has_reco_pro_content() — only enqueued
 * when the page surfaces Recommended Professional content (singular,
 * archive, taxonomy, or one of the RP shortcodes).
 *
 * Companion stylesheets:
 *   • 220-listings-shared.css   — Buttons, contact links, pagination, a11y
 *   • 220-listings-accordion.css — Accordion shell + JS
 *
 * @package TwoTwenty\Listings
 */

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS · Directory palette
   ---------------------------------------------------------------
   The --220-navy / --220-gold / --220-warm-white / --220-text-*
   tokens consumed throughout this file are defined globally by
   ColorSettings::output_css_variables() (src/Frontend). Each is
   either pinned by an Advanced Palette override in the plugin
   settings, or derived from the four brand colors (primary /
   accent / text / bg_light) via color-mix(). To customize the
   palette site-wide, change the brand colors under
   Settings → 220 Listings → Brand Colors. To customize just one
   token without touching the others, use the Advanced Palette
   section on the same screen.
═══════════════════════════════════════════════════════════════ */
/* Local :root block removed in v2.3.1 — see ColorSettings.php */

/* Standard WordPress visually-hidden pattern (verbatim from wp-admin),
 * defined here rather than assumed from the active theme. Most themes
 * ship .screen-reader-text, but it isn't guaranteed on every client
 * site, and an accessible-name span that fails to hide would show up
 * as stray visible text in the search bar. Used by the search hero's
 * icon-only input label. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED · Typography & Endorsed Badge
   ---------------------------------------------------------------
   Body type baseline (DM Sans) and the gold "Recommended" pill
   used across reco-pro singles, list cards, and accordions.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-single,
.twotwenty-rp-list,
.twotwenty-rp-accordion {
	font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: var(--220-text);
	line-height: 1.5;
}

.twotwenty-rp-endorsed-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	/* Shares the Category Count color settings (Settings -> Recommended
	   Pros -> Category Count & Recommended Badge) rather than the raw
	   gold-light/gold-dark tokens, so both gold-on-gold pairings can be
	   fixed together if a brand's colors don't clear contrast. */
	background: var(--220-rp-count-bg, var(--220-gold-light));
	border: 1px solid var(--220-gold-border);
	border-radius: 3px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--220-rp-count-text, var(--220-gold-dark)) !important;
}
.twotwenty-rp-endorsed-badge svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · Single · Endorsement Card Layout
   ---------------------------------------------------------------
   Centered 760px card. Hero header (photo + identity + absolutely-
   positioned "Recommended" badge), 3-col contact strip, 2-col body
   (bio left, CTA + socials + website right). Class prefix
   .twotwenty-rp-single-a-*. Used by single-card-profile.php.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-single-a { max-width: 1200px; margin: 28px auto 52px; padding: 0 28px; }

.twotwenty-rp-single-a-card {
	border: 1px solid var(--220-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.twotwenty-rp-single-a-header {
	padding: 28px 28px 24px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	border-bottom: 1px solid var(--220-border-cool);
	position: relative;
}

.twotwenty-rp-single-a-badge-row {
	position: absolute;
	top: 20px;
	right: 24px;
}

.twotwenty-rp-single-a-photo {
	position: relative;
	width: 200px;
	height: 200px;
	flex-shrink: 0;
	border-radius: 8px;
	background: linear-gradient(150deg, var(--220-navy), var(--220-navy-light));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
/* Blurred, scaled-up copy of the same photo fills the letterboxed space
   left by object-fit: contain on tall/wide/square uploads. Only paints
   when the template sets --220-rp-photo-bg (i.e. a real photo exists);
   otherwise it's transparent and the gradient background shows through. */
.twotwenty-rp-single-a-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--220-rp-photo-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(20px);
	transform: scale(1.15);
}
.twotwenty-rp-single-a-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.twotwenty-rp-single-a-photo .twotwenty-rp-photo-fallback { position: relative; z-index: 1; opacity: 0.25; color: #fff; }

.twotwenty-rp-single-a-identity { flex: 1; padding-top: 2px; min-width: 0; }
.twotwenty-rp-single-a-name {
	font-size: 28px;
	font-weight: 600;
	color: var(--220-rp-name, var(--220-navy));
	line-height: 1.1;
	margin: 0 0 4px;
}
.twotwenty-rp-single-a-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--220-rp-title, var(--220-text-warm));
	margin: 0 0 3px;
}
.twotwenty-rp-single-a-company {
	font-size: 14px;
	font-weight: 500;
	color: var(--220-gold-dark);
	margin: 0 0 12px;
}
.twotwenty-rp-single-a-address {
	font-size: 14px;
	color: var(--220-text-muted);
	line-height: 1.5;
	font-style: normal;
	margin: 0;
}

.twotwenty-rp-single-a-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.twotwenty-rp-single-a-cta-row .twotwenty-rp-single-a-cta {
	flex: 0 1 auto;
}

.twotwenty-rp-single-a-contact-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--220-border-cool);
}
.twotwenty-rp-single-a-contact-cell {
	padding: 14px 20px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border-right: 1px solid var(--220-border-cool);
	min-width: 0;
}
.twotwenty-rp-single-a-contact-cell:last-child { border-right: none; }
.twotwenty-rp-single-a-contact-icon { color: var(--220-gold); flex-shrink: 0; margin-top: 1px; }
.twotwenty-rp-single-a-contact-lbl {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--220-text-warm);
	display: block;
	margin-bottom: 2px;
}
.twotwenty-rp-single-a-contact-val { font-size: 12.5px; color: var(--220-text); line-height: 1.4; word-break: break-all; margin: 0; }
.twotwenty-rp-single-a-contact-val a { color: var(--220-rp-link, var(--220-text)); text-decoration: none; }
.twotwenty-rp-single-a-contact-val a:hover { text-decoration: underline; color: var(--220-rp-link-hover, var(--220-gold-dark)); }

.twotwenty-rp-single-a-body {
	padding: 24px 28px;
	display: grid;
	grid-template-columns: 1fr 176px;
	gap: 28px;
}
.twotwenty-rp-single-a-bio-head {
	font-size: 18px;
	font-weight: 600;
	color: var(--220-navy);
	margin: 0 0 10px;
}
.twotwenty-rp-single-a-bio-text {
	font-size: 16px;
	line-height: 1.82;
	color: var(--220-text-2);
	font-weight: 300;
	text-wrap: pretty;
}
.twotwenty-rp-single-a-bio-text p { margin: 0 0 12px; }
.twotwenty-rp-single-a-bio-text p:last-child { margin: 0; }

.twotwenty-rp-single-a-side { display: flex; flex-direction: column; gap: 10px; }
.twotwenty-rp-single-a-cta {
	display: block;
	padding: 12px 16px;
	text-align: center;
	background: var(--220-rp-btn-bg, var(--220-navy));
	/* !important on these button text colors: many themes apply their own
	   link color inside the content area (e.g. .entry-content a {...}),
	   which otherwise beats a single plugin class on specificity alone.
	   These buttons are fully plugin-owned UI, not theme content links. */
	color: var(--220-rp-btn-text, #fff) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	border-radius: 6px;
	border: 1.5px solid var(--220-rp-btn-border, transparent);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
.twotwenty-rp-single-a-cta:hover {
	background: var(--220-rp-btn-bg-hover, #0f1a33);
	color: var(--220-rp-btn-text-hover, #fff) !important;
	border-color: var(--220-rp-btn-border-hover, var(--220-rp-btn-border, transparent));
}
.twotwenty-rp-single-a-cta-secondary {
	background: var(--220-rp-btn2-bg, transparent);
	color: var(--220-rp-btn2-text, var(--220-navy)) !important;
	border-color: var(--220-rp-btn2-border, var(--220-navy));
}
.twotwenty-rp-single-a-cta-secondary:hover {
	background: var(--220-rp-btn2-bg-hover, var(--220-navy));
	color: var(--220-rp-btn2-text-hover, #fff) !important;
	border-color: var(--220-rp-btn2-border-hover, var(--220-rp-btn2-border, var(--220-navy)));
}
.twotwenty-rp-single-a-cta-tertiary {
	background: var(--220-rp-btn3-bg, transparent);
	color: var(--220-rp-btn3-text, var(--220-navy)) !important;
	border-color: var(--220-rp-btn3-border, var(--220-navy));
}
.twotwenty-rp-single-a-cta-tertiary:hover {
	background: var(--220-rp-btn3-bg-hover, var(--220-navy));
	color: var(--220-rp-btn3-text-hover, #fff) !important;
	border-color: var(--220-rp-btn3-border-hover, var(--220-rp-btn3-border, var(--220-navy)));
}
.twotwenty-rp-single-a-social { margin-top: 2px; }
.twotwenty-rp-single-a-social .twotwenty-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
/* !important on color: a Beaver Builder row/module's global link-color rule
   (.fl-builder-content a:not(.fl-builder-submenu-link)) outranks our two-class
   selector on specificity and would otherwise win when this renders inside one. */
.twotwenty-rp-single-a-social .twotwenty-social-icon {
	width: 32px;
	height: 32px;
	border-radius: var(--220-social-icon-radius, 6px);
	border: 1px solid var(--220-border-cool);
	background: var(--220-social-icon-bg, var(--220-warm-white));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--220-social-icon-color, var(--220-text-2)) !important;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.twotwenty-rp-single-a-social .twotwenty-social-icon svg { width: 16px; height: 16px; }
.twotwenty-rp-single-a-social .twotwenty-social-icon:hover {
	background: var(--220-social-icon-bg-hover, var(--220-gold-light));
	color: var(--220-social-icon-hover-color, var(--220-gold-dark)) !important;
}
.twotwenty-rp-single-a-website-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--220-gold-dark);
	padding: 8px 0 0;
	border-top: 1px solid var(--220-border-cool);
	margin-top: 2px;
}
.twotwenty-rp-single-a-website-row a { color: var(--220-rp-link, var(--220-gold-dark)); text-decoration: none; word-break: break-all; }
.twotwenty-rp-single-a-website-row a:hover { text-decoration: underline; color: var(--220-rp-link-hover, var(--220-gold-dark)); }

@media (max-width: 640px) {
	.twotwenty-rp-single-a-header { flex-direction: column; padding: 24px 20px 20px; gap: 16px; }
	.twotwenty-rp-single-a-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; }
	.twotwenty-rp-single-a-badge-row { position: static; margin-bottom: 4px; }
	.twotwenty-rp-single-a-contact-strip { grid-template-columns: 1fr; }
	.twotwenty-rp-single-a-contact-cell { border-right: none; border-bottom: 1px solid var(--220-border-cool); }
	.twotwenty-rp-single-a-contact-cell:last-child { border-bottom: none; }
	.twotwenty-rp-single-a-body { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · Single · Sidebar Profile Layout
   ---------------------------------------------------------------
   Warm 220px left sidebar (photo + Contact group + Connect + CTA).
   Main column shows the Recommended badge, identity block, bio, and
   category pill chips from the 220_rp_category taxonomy. Class
   prefix .twotwenty-rp-single-b-*. Used by single-sidebar-profile.php.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-single-b { max-width: 820px; margin: 28px auto 52px; padding: 0 28px; }
.twotwenty-rp-single-b-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	border: 1px solid var(--220-border);
	border-radius: 8px;
	overflow: hidden;
}

.twotwenty-rp-single-b-sidebar {
	background: var(--220-warm-white);
	border-right: 1px solid var(--220-border);
	padding: 28px 22px 36px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.twotwenty-rp-single-b-photo {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: linear-gradient(150deg, var(--220-navy), var(--220-navy-light));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.twotwenty-rp-single-b-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--220-rp-photo-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(20px);
	transform: scale(1.15);
}
.twotwenty-rp-single-b-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.twotwenty-rp-single-b-photo .twotwenty-rp-photo-fallback { position: relative; z-index: 1; opacity: 0.22; color: #fff; }

.twotwenty-rp-single-b-contact-group { display: flex; flex-direction: column; }
.twotwenty-rp-single-b-contact-heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--220-text-muted);
	margin: 0 0 10px;
}
.twotwenty-rp-single-b-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 9px 0;
	border-bottom: 1px solid var(--220-border);
}
.twotwenty-rp-single-b-contact-row:last-child { border-bottom: none; }
.twotwenty-rp-single-b-contact-icon { color: var(--220-gold); flex-shrink: 0; margin-top: 1px; }
.twotwenty-rp-single-b-contact-lbl {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--220-text-muted);
	display: block;
	margin-bottom: 1px;
}
.twotwenty-rp-single-b-contact-val { font-size: 13px; color: var(--220-text); line-height: 1.4; word-break: break-all; margin: 0; }
.twotwenty-rp-single-b-contact-val a { color: var(--220-rp-link, var(--220-text)); text-decoration: none; }
.twotwenty-rp-single-b-contact-val a:hover { text-decoration: underline; color: var(--220-rp-link-hover, var(--220-gold-dark)); }

.twotwenty-rp-single-b-social-row .twotwenty-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.twotwenty-rp-single-b-social-row .twotwenty-social-icon {
	width: 30px;
	height: 30px;
	border-radius: var(--220-social-icon-radius, 6px);
	border: 1px solid var(--220-border);
	background: var(--220-social-icon-bg, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--220-social-icon-color, var(--220-text-2)) !important;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.twotwenty-rp-single-b-social-row .twotwenty-social-icon svg { width: 15px; height: 15px; }
.twotwenty-rp-single-b-social-row .twotwenty-social-icon:hover {
	background: var(--220-social-icon-bg-hover, var(--220-gold-light));
	color: var(--220-social-icon-hover-color, var(--220-gold-dark)) !important;
}

.twotwenty-rp-single-b-cta {
	display: block;
	padding: 12px 16px;
	text-align: center;
	background: var(--220-rp-btn-bg, var(--220-gold));
	color: var(--220-rp-btn-text, var(--220-navy)) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	border-radius: 6px;
	border: 1.5px solid var(--220-rp-btn-border, transparent);
	text-decoration: none;
	margin-top: auto;
	transition: background 0.15s, border-color 0.15s;
}
.twotwenty-rp-single-b-cta:hover {
	background: var(--220-rp-btn-bg-hover, var(--220-gold-dark));
	color: var(--220-rp-btn-text-hover, #fff) !important;
	border-color: var(--220-rp-btn-border-hover, var(--220-rp-btn-border, transparent));
}
.twotwenty-rp-single-b-cta-secondary {
	margin-top: 0;
	background: var(--220-rp-btn2-bg, transparent);
	color: var(--220-rp-btn2-text, var(--220-navy)) !important;
	border-color: var(--220-rp-btn2-border, var(--220-navy));
}
.twotwenty-rp-single-b-cta-secondary:hover {
	background: var(--220-rp-btn2-bg-hover, var(--220-navy));
	color: var(--220-rp-btn2-text-hover, #fff) !important;
	border-color: var(--220-rp-btn2-border-hover, var(--220-rp-btn2-border, var(--220-navy)));
}
.twotwenty-rp-single-b-cta-tertiary {
	margin-top: 0;
	background: var(--220-rp-btn3-bg, transparent);
	color: var(--220-rp-btn3-text, var(--220-navy)) !important;
	border-color: var(--220-rp-btn3-border, var(--220-navy));
}
.twotwenty-rp-single-b-cta-tertiary:hover {
	background: var(--220-rp-btn3-bg-hover, var(--220-navy));
	color: var(--220-rp-btn3-text-hover, #fff) !important;
	border-color: var(--220-rp-btn3-border-hover, var(--220-rp-btn3-border, var(--220-navy)));
}

.twotwenty-rp-single-b-main { padding: 28px 32px; display: flex; flex-direction: column; }
.twotwenty-rp-single-b-top-badge { margin-bottom: 16px; }
.twotwenty-rp-single-b-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 32px;
	font-weight: 600;
	color: var(--220-rp-name, var(--220-navy));
	line-height: 1.1;
	margin: 0 0 5px;
}
.twotwenty-rp-single-b-title-line {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--220-rp-title, var(--220-text-warm));
	margin: 0 0 4px;
}
.twotwenty-rp-single-b-company-line { font-size: 14px; font-weight: 500; color: var(--220-gold-dark); margin: 0 0 4px; }
.twotwenty-rp-single-b-address-line { font-size: 12px; color: var(--220-text-muted); margin: 0 0 22px; }
.twotwenty-rp-single-b-rule { height: 1px; background: var(--220-border); margin-bottom: 20px; }
.twotwenty-rp-single-b-bio-eyebrow {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--220-gold);
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}
.twotwenty-rp-single-b-bio-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--220-gold); }
.twotwenty-rp-single-b-bio-head {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--220-navy);
	margin: 0 0 10px;
}
.twotwenty-rp-single-b-bio-text {
	font-size: 16px;
	line-height: 1.82;
	color: var(--220-text-2);
	font-weight: 300;
	text-wrap: pretty;
}
.twotwenty-rp-single-b-bio-text p { margin: 0 0 12px; }
.twotwenty-rp-single-b-bio-text p:last-child { margin: 0; }
.twotwenty-rp-single-b-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.twotwenty-rp-single-b-cat {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 12.5px;
	font-weight: 600;
	background: var(--220-rp-btn-bg, var(--220-gold-light));
	color: var(--220-rp-btn-text, var(--220-gold-dark)) !important;
	border: 1px solid var(--220-rp-btn-border, var(--220-gold-border));
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
/* Only <a> renders when the term has a resolvable archive link (see
   single-sidebar-profile.php); the <span> fallback has no interactive
   states to style. */
a.twotwenty-rp-single-b-cat:hover,
a.twotwenty-rp-single-b-cat:focus-visible {
	background: var(--220-rp-btn-bg-hover, var(--220-gold-dark));
	color: var(--220-rp-btn-text-hover, #fff) !important;
	border-color: var(--220-rp-btn-border-hover, var(--220-rp-btn-border, var(--220-gold-border)));
}
a.twotwenty-rp-single-b-cat:focus-visible {
	outline: 2px solid var(--220-rp-btn-bg, var(--220-navy));
	outline-offset: 2px;
}

@media (max-width: 680px) {
	.twotwenty-rp-single-b-layout { grid-template-columns: 1fr; }
	.twotwenty-rp-single-b-sidebar { border-right: none; border-bottom: 1px solid var(--220-border); }
	.twotwenty-rp-single-b-main { padding: 24px 20px; }
	.twotwenty-rp-single-b-name { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · List · Bordered Feature Card
   ---------------------------------------------------------------
   Default [220_reco_pro_list] layout. Vertical stack of horizontal
   cards: 110px navy-gradient photo column on the left, identity +
   contact rows in the middle, dark-navy "View Profile" button on
   the right. Class prefix .twotwenty-rp-hcard-*. Used by
   list-horizontal-card.php.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-hcard-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 100%;
}
.twotwenty-rp-hcard {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--220-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.twotwenty-rp-hcard:hover {
	border-color: color-mix(in srgb, var(--220-navy) 40%, var(--220-border));
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.twotwenty-rp-hcard-photo-col {
	width: 200px;
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
	align-self: center;
	background: linear-gradient(150deg, var(--220-navy), var(--220-navy-light));
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.twotwenty-rp-hcard-photo-col::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--220-rp-photo-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(14px);
	transform: scale(1.15);
}
.twotwenty-rp-hcard-photo-col img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.twotwenty-rp-hcard-photo-col .twotwenty-rp-photo-fallback { position: relative; z-index: 1; opacity: 0.22; color: #fff; }
.twotwenty-rp-hcard-content { flex: 1; padding: 18px 20px; display: flex; align-items: center; gap: 20px; min-width: 0; }
.twotwenty-rp-hcard-info { flex: 1; min-width: 0; }
.twotwenty-rp-hcard-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--220-rp-name, var(--220-navy));
	margin: 0 0 3px;
	line-height: 1.2;
}
.twotwenty-rp-hcard-meta {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--220-rp-title, var(--220-text-warm));
	margin: 0 0 2px;
}
.twotwenty-rp-hcard-company { font-size: 14px; font-weight: 500; color: var(--220-gold-dark); margin: 0 0 10px; }
.twotwenty-rp-hcard-contacts { display: flex; flex-direction: column; gap: 4px; }
.twotwenty-rp-hcard-contact-row {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	color: var(--220-text-2);
}
.twotwenty-rp-hcard-contact-row svg { color: var(--220-gold); flex-shrink: 0; }
.twotwenty-rp-hcard-contact-row a { color: var(--220-rp-link, var(--220-text-2)); text-decoration: none; word-break: break-all; }
.twotwenty-rp-hcard-contact-row a:hover { text-decoration: underline; color: var(--220-rp-link-hover, var(--220-gold-dark)); }
.twotwenty-rp-hcard-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-items: flex-end; }
.twotwenty-rp-hcard-mini-bio {
	font-size: 14px;
	color: var(--220-text-muted);
	line-height: 1.6;
	max-width: 240px;
	margin: 0;
	text-align: right;
}
.twotwenty-rp-hcard-view-btn {
	padding: 11px 20px;
	text-align: center;
	white-space: nowrap;
	background: var(--220-rp-btn-bg, var(--220-navy));
	color: var(--220-rp-btn-text, #fff) !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 6px;
	border: 1.5px solid var(--220-rp-btn-border, transparent);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
.twotwenty-rp-hcard-view-btn:hover {
	background: var(--220-rp-btn-bg-hover, #0f1a33);
	color: var(--220-rp-btn-text-hover, #fff) !important;
	border-color: var(--220-rp-btn-border-hover, var(--220-rp-btn-border, transparent));
}

@media (max-width: 640px) {
	.twotwenty-rp-hcard { flex-direction: column; }
	.twotwenty-rp-hcard-photo-col { width: 100%; aspect-ratio: 1 / 1; }
	.twotwenty-rp-hcard-content { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
	.twotwenty-rp-hcard-info { text-align: center; }
	.twotwenty-rp-hcard-contacts { align-items: center; }
	.twotwenty-rp-hcard-contact-row { justify-content: center; }
	.twotwenty-rp-hcard-actions { align-items: center; width: 100%; }
	.twotwenty-rp-hcard-mini-bio { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · List · Portrait Grid
   ---------------------------------------------------------------
   Compact 3-column grid alternative for [220_reco_pro_list]. Each
   tile shows a 4:3 portrait photo, name, title, and a category
   badge sourced from 220_rp_category. Class prefix
   .twotwenty-rp-grid-*. Used by list-minimal-grid.php.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-grid {
	display: grid;
	/* minmax(0, 1fr), not a bare 1fr (== minmax(auto, 1fr)): a bare 1fr
	 * lets a card's own specified width count toward its track's
	 * automatic minimum size, so an oversized Max Card Width value
	 * could grow that column (and blow out the grid) instead of being
	 * clipped by the card's own max-width. */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 100%;
	margin: 0 0 2rem;
	list-style: none;
	padding: 0;
}
.twotwenty-rp-grid-card {
	border: 1px solid var(--220-border-cool);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.twotwenty-rp-grid-card:hover {
	border-color: color-mix(in srgb, var(--220-navy) 40%, var(--220-border));
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.twotwenty-rp-grid-photo-link,
.twotwenty-rp-acc-card-photo-link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.twotwenty-rp-grid-photo-link:focus-visible,
.twotwenty-rp-acc-card-photo-link:focus-visible {
	outline: 2px solid var(--220-color-primary, #2D5F8A);
	outline-offset: 2px;
}
.twotwenty-rp-grid-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(150deg, var(--220-navy), var(--220-navy-light));
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}
.twotwenty-rp-grid-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--220-rp-photo-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(16px);
	transform: scale(1.15);
}
.twotwenty-rp-grid-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.twotwenty-rp-grid-photo .twotwenty-rp-photo-fallback { position: relative; z-index: 1; opacity: 0.22; color: #fff; }
.twotwenty-rp-grid-photo-badge {
	position: absolute;
	z-index: 2;
	bottom: 10px;
	left: 10px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--220-gold-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 100px;
}
.twotwenty-rp-grid-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.twotwenty-rp-grid-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--220-rp-name, var(--220-navy));
	margin: 0 0 2px;
	line-height: 1.2;
}
.twotwenty-rp-grid-title {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--220-rp-title, var(--220-text-warm));
	margin: 0 0 3px;
}
.twotwenty-rp-grid-company { font-size: 12px; font-weight: 500; color: var(--220-gold-dark); margin: 0 0 10px; }
.twotwenty-rp-grid-phone {
	font-size: 14px;
	color: var(--220-text-muted);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.twotwenty-rp-grid-phone svg { color: var(--220-gold); flex-shrink: 0; }
.twotwenty-rp-grid-phone a { color: var(--220-rp-link, var(--220-text-muted)); text-decoration: none; }
.twotwenty-rp-grid-phone a:hover { text-decoration: underline; color: var(--220-rp-link-hover, var(--220-gold-dark)); }
.twotwenty-rp-grid-link {
	margin-top: auto;
	display: block;
	text-align: center;
	padding: 9px;
	border-radius: 5px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: var(--220-rp-btn-bg, var(--220-navy));
	color: var(--220-rp-btn-text, #fff) !important;
	border: 1.5px solid var(--220-rp-btn-border, transparent);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
.twotwenty-rp-grid-link:hover {
	background: var(--220-rp-btn-bg-hover, #0f1a33);
	color: var(--220-rp-btn-text-hover, #fff) !important;
	border-color: var(--220-rp-btn-border-hover, var(--220-rp-btn-border, transparent));
}

@media (max-width: 820px) { .twotwenty-rp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .twotwenty-rp-grid { grid-template-columns: 1fr; } }

/* Card Grid — Max Card Width (Settings → Recommended Pros → List
 * Layout). Only takes effect in the 3-column view above 820px; below
 * that, cards keep running full width as they do without this setting.
 *
 * Switches the row from CSS Grid to a wrapping flex row so narrower
 * cards pack next to each other with the normal 16px gap, left-aligned
 * as a group — rather than each card centering inside its own
 * equal-thirds grid column, which spreads extra whitespace out between
 * neighbors instead of shrinking the row as a whole.
 * --220-rp-grid-card-basis is precomputed in
 * ColorSettings::rp_grid_card_basis() from the raw setting (a "%" share
 * of one column, or an absolute "px" width). */
@media (min-width: 821px) {
	.twotwenty-rp-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	.twotwenty-rp-grid-card {
		flex: 0 1 var(--220-rp-grid-card-basis, calc((100% - 32px) / 3 * 0.8));
		width: auto;
		max-width: 100%;
	}
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · List · Portrait Grid (grouped)
   ---------------------------------------------------------------
   Variant of the Portrait Grid above driven by
   [220_reco_pro_list layout="minimal-grid" group_by="category"]
   (or group_by="location"). Each populated taxonomy term renders
   as its own labeled section: gold-underlined Playfair heading,
   small uppercase count pill, optional term description, then the
   standard .twotwenty-rp-grid of cards. Used by
   list-minimal-grid-grouped.php; cards still come from the shared
   partials/grid-card.php so they stay visually identical to the
   flat layout.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-grid-grouped {
	max-width: 100%;
	margin: 0 0 2rem;
}
.twotwenty-rp-grid-section {
	margin: 0 0 44px;
}
.twotwenty-rp-grid-section:last-child {
	margin-bottom: 0;
}
.twotwenty-rp-grid-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--220-gold);
}
.twotwenty-rp-grid-section-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--220-navy);
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.005em;
}
.twotwenty-rp-grid-section-heading a,
.twotwenty-rp-grid-subgroup-heading a {
	color: inherit;
	text-decoration: none;
}
.twotwenty-rp-grid-section-heading a:hover,
.twotwenty-rp-grid-section-heading a:focus-visible,
.twotwenty-rp-grid-subgroup-heading a:hover,
.twotwenty-rp-grid-subgroup-heading a:focus-visible {
	text-decoration: underline;
}
.twotwenty-rp-grid-section-count {
	font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--220-rp-count-text, var(--220-gold-dark));
	background: var(--220-rp-count-bg, var(--220-gold-light));
	border: 1px solid var(--220-gold-border);
	padding: 4px 10px;
	border-radius: 100px;
	white-space: nowrap;
}
.twotwenty-rp-grid-section-desc {
	font-size: 13.5px;
	color: var(--220-text-2);
	font-weight: 300;
	margin: -8px 0 18px;
	line-height: 1.55;
	max-width: 64ch;
}

/* "View all N {category}" link rendered when max_per_section caps a
 * grouped section (T7 / round 1). */
.twotwenty-rp-grid-section-more {
	margin-top: 14px;
	text-align: center;
}
.twotwenty-rp-grid-section-more-link {
	display: inline-block;
	font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--220-navy);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	text-decoration: none;
}
.twotwenty-rp-grid-section-more-link:hover {
	color: var(--220-gold-dark);
}

/* The grouped wrapper hosts its own .twotwenty-rp-grid (minimal-grid
   layout) or .twotwenty-rp-hcard-list (horizontal-card layout); reset
   their margin so spacing comes from .twotwenty-rp-grid-section instead. */
.twotwenty-rp-grid-section .twotwenty-rp-grid,
.twotwenty-rp-grid-section .twotwenty-rp-hcard-list {
	margin: 0;
}

/* Nested subcategory within a parent category's section (e.g. "Estate
 * Planning" under "Lawyers"). Sits below the parent's own direct listings
 * (if any) so a pro assigned to a subcategory renders once, in its own
 * subgroup, instead of duplicating under the parent heading too. */
.twotwenty-rp-grid-subgroup {
	margin: 26px 0 0;
}
.twotwenty-rp-grid-subgroup:first-child {
	margin-top: 18px;
}
.twotwenty-rp-grid-subgroup-heading {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--220-gold-dark);
	margin: 0 0 14px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--220-border-cool);
}
.twotwenty-rp-grid-subgroup-count {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--220-text-muted);
	font-size: 13px;
}

@media (max-width: 600px) {
	.twotwenty-rp-grid-section { margin-bottom: 32px; }
	.twotwenty-rp-grid-section-heading { font-size: 20px; }
	.twotwenty-rp-grid-section-header { gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · Category Accordion · Clean Expandable
   ---------------------------------------------------------------
   [220_reco_pro_categories] shortcode. One panel per term in the
   220_rp_category taxonomy, each with a slug-keyed gold SVG icon
   (attorney / realtor / insurance / cpa). Compact 48×48 photo rows
   inside each expanded panel. Class prefix .twotwenty-rp-acc-*.
   Used by category-accordion.php.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-accordion { max-width: 1200px; margin: 0 0 2rem; }

.twotwenty-rp-accordion .twotwenty-accordion-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--220-border-cool);
	background: none;
	border-radius: 0;
	flex-wrap: wrap;
}
.twotwenty-rp-accordion .twotwenty-accordion-filter-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--220-text-2);
	letter-spacing: 0.04em;
	margin: 0;
}
.twotwenty-rp-accordion .twotwenty-accordion-filter-select {
	padding: 7px 28px 7px 11px;
	font-size: 12px;
	font-family: 'DM Sans', sans-serif;
	border: 1px solid var(--220-border);
	border-radius: 6px;
	background-color: #fff;
	color: var(--220-text);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e99' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
	min-width: 140px;
	flex: 0 1 auto;
	max-width: 260px;
}

.twotwenty-rp-accordion .twotwenty-accordion-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.twotwenty-rp-accordion .twotwenty-accordion-item {
	border: 1px solid var(--220-border-cool);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s;
}
.twotwenty-rp-accordion .twotwenty-accordion-item.is-open { border-color: var(--220-border); }

.twotwenty-rp-accordion .twotwenty-accordion-header {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
}
.twotwenty-rp-accordion .twotwenty-accordion-trigger {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: 'DM Sans', sans-serif;
	transition: background 0.15s;
	color: var(--220-navy);
}
.twotwenty-rp-accordion .twotwenty-accordion-trigger:hover,
.twotwenty-rp-accordion .twotwenty-accordion-trigger:focus-visible { background: var(--220-warm-white); }
.twotwenty-rp-accordion .twotwenty-accordion-trigger:focus-visible { outline: 2px solid var(--220-gold); outline-offset: -2px; }

/* Sibling "view category" link — an <a> can't nest inside the toggle
 * <button> above, so this sits next to it instead. Flex-shrink:0 keeps
 * it a fixed width regardless of how long the title/count get. */
.twotwenty-rp-accordion .twotwenty-accordion-view-link {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0 20px;
	color: var(--220-navy);
	transition: background 0.15s, color 0.15s;
}
.twotwenty-rp-accordion .twotwenty-accordion-view-link:hover,
.twotwenty-rp-accordion .twotwenty-accordion-view-link:focus-visible {
	background: var(--220-warm-white);
	color: var(--220-gold-dark);
}
.twotwenty-rp-accordion .twotwenty-accordion-view-link:focus-visible {
	outline: 2px solid var(--220-gold);
	outline-offset: -2px;
}
.twotwenty-rp-accordion .twotwenty-accordion-view-link svg {
	width: 16px;
	height: 16px;
}

.twotwenty-rp-acc-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	flex-shrink: 0;
	background: var(--220-gold-light);
	border: 1px solid var(--220-gold-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--220-gold-dark);
}

.twotwenty-rp-accordion .twotwenty-accordion-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--220-navy);
	flex: 1;
	min-width: 0;
}
.twotwenty-rp-accordion .twotwenty-accordion-count {
	font-size: 14px;
	font-weight: 700;
	color: var(--220-gold-dark);
	background: var(--220-gold-light);
	border: 1px solid var(--220-gold-border);
	border-radius: 100px;
	padding: 2px 10px;
	flex-shrink: 0;
	display: inline-flex;
	line-height: 1.2;
}
.twotwenty-rp-accordion .twotwenty-accordion-chevron {
	color: var(--220-text-muted);
	flex-shrink: 0;
	transition: transform 0.25s ease;
}
.twotwenty-rp-accordion .twotwenty-accordion-trigger[aria-expanded="true"] .twotwenty-accordion-chevron {
	transform: rotate(180deg);
}

.twotwenty-rp-accordion .twotwenty-accordion-panel {
	border-top: 1px solid var(--220-border-cool);
	padding: 20px 20px 20px 70px;
	background: #fff;
}
.twotwenty-rp-accordion .twotwenty-accordion-panel[hidden] { display: none; }

.twotwenty-rp-accordion .twotwenty-accordion-subgrid { display: flex; flex-direction: column; gap: 24px; }
.twotwenty-rp-accordion .twotwenty-accordion-subtitle {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--220-gold-dark);
	margin: 0 0 10px;
	padding: 0 0 6px;
	border-bottom: 1px solid var(--220-border-cool);
}
.twotwenty-rp-accordion .twotwenty-accordion-subtitle a {
	color: inherit;
	text-decoration: none;
}
.twotwenty-rp-accordion .twotwenty-accordion-subtitle a:hover,
.twotwenty-rp-accordion .twotwenty-accordion-subtitle a:focus-visible {
	text-decoration: underline;
}
.twotwenty-rp-accordion .twotwenty-accordion-subcount {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--220-text-muted);
	margin-left: 6px;
	font-size: 12.5px;
}

.twotwenty-rp-accordion .twotwenty-accordion-cards {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.twotwenty-rp-acc-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 0;
	border-bottom: 1px solid var(--220-border-cool);
}
.twotwenty-rp-acc-card:last-child { border-bottom: none; }
.twotwenty-rp-acc-card-photo {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 6px;
	flex-shrink: 0;
	background: linear-gradient(140deg, var(--220-navy), var(--220-navy-light));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.twotwenty-rp-acc-card-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--220-rp-photo-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(12px);
	transform: scale(1.15);
}
.twotwenty-rp-acc-card-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.twotwenty-rp-acc-card-photo .twotwenty-rp-photo-fallback { position: relative; z-index: 1; opacity: 0.25; color: #fff; }
.twotwenty-rp-acc-card-info { flex: 1; min-width: 0; }
.twotwenty-rp-acc-card-name { font-size: 16px; font-weight: 600; color: var(--220-rp-name, var(--220-navy)); margin: 0 0 2px; line-height: 1.2; }
.twotwenty-rp-acc-card-name a { color: inherit; text-decoration: none; }
.twotwenty-rp-acc-card-name a:hover { text-decoration: underline; color: var(--220-gold-dark); }
.twotwenty-rp-acc-card-company { font-size: 14px; color: var(--220-gold-dark); font-weight: 500; margin: 0 0 1px; }
.twotwenty-rp-acc-card-phone { font-size: 14px; color: var(--220-text-muted); margin: 0; }
.twotwenty-rp-acc-card-phone a { color: var(--220-rp-link, var(--220-text-muted)); text-decoration: none; }
.twotwenty-rp-acc-card-phone a:hover { text-decoration: underline; color: var(--220-rp-link-hover, var(--220-gold-dark)); }
.twotwenty-rp-acc-view-btn {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 5px;
	padding: 6px 13px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	background: var(--220-rp-btn-bg, var(--220-navy));
	color: var(--220-rp-btn-text, #fff) !important;
	border: 1.5px solid var(--220-rp-btn-border, transparent);
	transition: background 0.15s, border-color 0.15s;
}
.twotwenty-rp-acc-view-btn:hover {
	background: var(--220-rp-btn-bg-hover, #0f1a33);
	color: var(--220-rp-btn-text-hover, #fff) !important;
	border-color: var(--220-rp-btn-border-hover, var(--220-rp-btn-border, transparent));
}

.twotwenty-rp-accordion .twotwenty-no-results {
	padding: 14px 0;
	margin: 0;
	color: var(--220-text-muted);
	font-size: 12.5px;
	font-style: italic;
}

@media (max-width: 640px) {
	.twotwenty-rp-accordion .twotwenty-accordion-panel { padding: 14px 16px; }
	.twotwenty-rp-acc-card { flex-wrap: wrap; }
	.twotwenty-rp-acc-view-btn { margin-top: 4px; }
}

/* ==========================================================================
   Recommended Professionals: Search Hero (V5)
   --------------------------------------------------------------------------
   Hero panel above the rec-pro listing — navy gradient, pill tabs, white
   search bar, gold accents. As of v2.3.1 this surface respects the global
   palette emitted by ColorSettings::output_css_variables(), so changing
   the brand colors in Settings → 220 Listings → Brand Colors re-themes
   it automatically. The local rp-search aliases below exist only so the
   selector list below can reference short names; each one maps to a
   global token.
   ========================================================================== */
.twotwenty-rp-search-hero {
	--220-rp-search-navy: var(--220-navy-light, #4a5b87);
	--220-rp-search-navy-deep: var(--220-navy, #3a4a73);
	--220-rp-search-gold: var(--220-gold, #f5c14e);
	--220-rp-search-gold-hover: var(--220-gold-hover, #f0b528);
	--220-rp-search-gold-dark: var(--220-gold-dark, #b8860b);
	--220-rp-search-text: var(--220-text, #2a3142);
	--220-rp-search-text-muted: var(--220-text-muted, #9098a8);

	background: var(--220-rp-banner-bg, var(--220-rp-search-navy-deep));
	border-radius: 14px;
	padding: 36px 36px 30px;
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.twotwenty-rp-search-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--220-rp-banner-eyebrow, var(--220-rp-search-gold));
	text-transform: uppercase;
	margin: 0 0 8px;
}

.twotwenty-rp-search-headline {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 500;
	/* !important: some themes apply their own heading color inside the
	   content area (e.g. .entry-content h2 {...}), which otherwise beats
	   this single-class selector on specificity alone. This headline is
	   fully plugin-owned, so it shouldn't inherit theme heading colors. */
	color: var(--220-rp-banner-headline, #fff) !important;
	line-height: 1.2;
	margin: 0 0 18px;
	max-width: 720px;
}

/* Form is the flex parent for the tabs / bar / meta-row stack so an
   unstyled <form> default doesn't collapse internal spacing. */
.twotwenty-rp-search-form {
	display: block;
	margin: 0;
}

/* Tabs */
.twotwenty-rp-search-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 12px;
	background: rgba(255, 255, 255, 0.08);
	padding: 4px;
	border-radius: 10px;
	width: fit-content;
}

.twotwenty-rp-search-tab {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	padding: 6px 14px;
	border-radius: 6px;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

.twotwenty-rp-search-tab:hover {
	color: rgba(255, 255, 255, 0.95);
	/* !important: some themes ship a generic button:hover { border: ... }
	   rule. That selector's specificity can beat our own unhovered
	   border: 0, so it has to be re-asserted here on hover too. */
	border: 0 !important;
}

.twotwenty-rp-search-tab:focus-visible {
	outline: 2px solid var(--220-rp-search-gold);
	outline-offset: 2px;
}

/* !important: some themes also ship a generic
   button:active/:focus { background-color; color; border; } rule —
   plain :focus (not :focus-visible) fires on every click too, so a
   clicked tab would otherwise flash the theme's colors on top of
   ours. Re-assert the resting look for both states. */
.twotwenty-rp-search-tab:active,
.twotwenty-rp-search-tab:focus {
	background-color: transparent !important;
	color: rgba(255, 255, 255, 0.7) !important;
	border: 0 !important;
}

/* Shares the Search button's color settings (Settings → Recommended
   Pros → Header Banner) so both solid gold-filled elements in the
   banner stay in sync from one set of controls. The unselected tabs
   above (.twotwenty-rp-search-tab base + :hover) are untouched. */
.twotwenty-rp-search-tab.is-active {
	background: var(--220-rp-search-btn-bg, var(--220-rp-search-gold));
	color: var(--220-rp-search-btn-text, var(--220-rp-search-navy-deep));
}

.twotwenty-rp-search-tab.is-active:hover {
	background: var(--220-rp-search-btn-bg-hover, var(--220-rp-search-gold-hover));
	color: var(--220-rp-search-btn-text-hover, var(--220-rp-search-btn-text, var(--220-rp-search-navy-deep)));
	border: 0 !important;
}

.twotwenty-rp-search-tab.is-active:active,
.twotwenty-rp-search-tab.is-active:focus {
	background-color: var(--220-rp-search-btn-bg, var(--220-rp-search-gold)) !important;
	color: var(--220-rp-search-btn-text, var(--220-rp-search-navy-deep)) !important;
	border: 0 !important;
}

/* Search bar */
.twotwenty-rp-search-bar {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.25);
}

.twotwenty-rp-search-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 18px 0px 18px;
	min-width: 0;
}

.twotwenty-rp-search-icon {
	color: var(--220-rp-search-gold-dark);
	flex-shrink: 0;
	display: inline-flex;
}

.twotwenty-rp-search-input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--220-rp-search-text);
	padding: 16px 0;
	min-width: 0;
}

.twotwenty-rp-search-input::placeholder {
	color: var(--220-rp-search-text-muted);
	opacity: 1;
}

/* "By Staff Member" tab — swaps in for .twotwenty-rp-search-input above
   (both share name="220_rp_q"; JS toggles which one is hidden/disabled).
   Same font-size/line-height/vertical padding as the input above so the
   two never visibly change the search bar's height when swapped — but a
   bare <select> renders taller than that box model alone would suggest
   because of the browser's own native control chrome, so appearance:none
   strips that (same fix already used for .twotwenty-accordion-filter-
   select elsewhere in this file), with a custom chevron standing in for
   the native dropdown arrow it also removes. */
.twotwenty-rp-search-select {
	flex: 1;
	border: 0;
	outline: 0;
	background-color: transparent;
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--220-rp-search-text);
	padding: 7px 22px 7px 0;
	min-width: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
}

.twotwenty-rp-search-submit {
	background: var(--220-rp-search-btn-bg, var(--220-rp-search-gold)) !important;
	color: var(--220-rp-search-btn-text, var(--220-rp-search-navy-deep)) !important;
	border: 0;
	cursor: pointer;
	padding: 0 28px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background-color 120ms ease, color 120ms ease;
}

.twotwenty-rp-search-submit:hover {
	background: var(--220-rp-search-btn-bg-hover, var(--220-rp-search-gold-hover)) !important;
	color: var(--220-rp-search-btn-text-hover, var(--220-rp-search-btn-text, var(--220-rp-search-navy-deep))) !important;
	/* !important: see the note on .twotwenty-rp-search-tab:hover above —
	   a theme's generic button:hover { border: ... } rule can otherwise
	   beat this button's unhovered border: 0. */
	border: 0 !important;
}

.twotwenty-rp-search-submit:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* !important: see the note on .twotwenty-rp-search-tab:active above —
   a theme's generic button:active/:focus rule can otherwise paint
   over this button's colors on click. */
.twotwenty-rp-search-submit:active,
.twotwenty-rp-search-submit:focus {
	background-color: var(--220-rp-search-btn-bg, var(--220-rp-search-gold)) !important;
	color: var(--220-rp-search-btn-text, var(--220-rp-search-navy-deep)) !important;
	border: 0 !important;
}

.twotwenty-rp-search-submit-icon {
	display: inline-flex;
}

/* Meta row (Recent / Use my location) */
.twotwenty-rp-search-meta {
	display: flex;
	gap: 18px;
	margin-top: 14px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	flex-wrap: wrap;
}

/* Plain text links, not <button> — a theme's generic
   button:hover/:active/:focus rules only target real buttons and
   inputs, so using <a> here sidesteps that class of collision
   entirely instead of having to fight it with !important. */
.twotwenty-rp-search-meta a {
	background: none;
	border: 0;
	color: var(--220-rp-search-meta-text, #ffffff) !important;
	text-decoration: none;
	cursor: pointer;
	font: inherit;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
}

.twotwenty-rp-search-meta a:hover {
	color: var(--220-rp-search-meta-text-hover, #f2f2f2) !important;
}

.twotwenty-rp-search-meta a[hidden] {
	display: none;
}

.twotwenty-rp-search-meta a:focus-visible {
	outline: 2px solid var(--220-rp-search-gold);
	outline-offset: 2px;
}

/* Responsive */
@media (max-width: 640px) {
	.twotwenty-rp-search-hero {
		padding: 24px 20px 22px;
		border-radius: 10px;
	}

	.twotwenty-rp-search-headline {
		font-size: 20px;
	}

	.twotwenty-rp-search-bar {
		flex-direction: column;
	}

	.twotwenty-rp-search-submit {
		padding: 14px;
		justify-content: center;
		border-top: 1px solid var(--220-color-border, #e2e2e8);
	}

	.twotwenty-rp-search-tabs {
		flex-wrap: wrap;
		width: 100%;
	}
}

/* ───────────────────────────────────────────────────────────────
   Single category (term) archive — plugin-owned page heading.
   The H1 carries .twotwenty-rp-grid-section-heading for its type
   treatment (no new font declared here); this block lays out the
   back-link row, the H1 + count pill row, and the listing wrapper.
   The theme's own page-heading element is excluded from these
   archives via a Themer location rule, so this is the only heading.
   ─────────────────────────────────────────────────────────────── */
.twotwenty-rp-back {
	margin: 0 0 16px;
}

.twotwenty-rp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--220-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.twotwenty-rp-back-link:hover,
.twotwenty-rp-back-link:focus {
	color: var(--220-gold-dark);
}

.twotwenty-rp-back-arrow {
	flex: none;
}

.twotwenty-rp-archive-header {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 22px;
}

/* Count pill already styled by .twotwenty-rp-grid-section-count;
   center it against the heading baseline in this standalone row. */
.twotwenty-rp-archive-header .twotwenty-rp-archive-count {
	align-self: center;
}

.twotwenty-rp-archive-listing {
	margin: 0;
}

@media (max-width: 600px) {
	.twotwenty-rp-archive-header {
		gap: 8px;
		margin-bottom: 16px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · Lead Capture (inquiry form section)
   ---------------------------------------------------------------
   Rendered below the profile content on both single-profile
   layouts. See templates/recommended-professionals/partials/inquiry-form.php.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-section-inquiry {
	margin-top: 32px;
}

.twotwenty-rp-section-inquiry .twotwenty-rp-h2 {
	font-size: 18px;
	font-weight: 600;
	color: var(--220-navy);
	margin: 0 0 10px;
}

.twotwenty-rp-inquiry-container {
	margin-left: auto;
	margin-right: auto;
}

.twotwenty-rp-inquiry-frame {
	background: var(--220-warm-white);
	border: 1px solid var(--220-color-border, #e2e2e8);
	border-radius: var(--220-radius, 10px);
	padding: 10px 0 10px 20px;
}

.twotwenty-rp-form-host,
.twotwenty-rp-inquiry-frame {
	min-width: 0;
}

.twotwenty-rp-form-host > * {
	max-width: 100%;
}

.twotwenty-rp-inquiry-frame iframe {
	width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDED PROFESSIONALS · Single Profile — Maximum Width
   (Settings → Recommended Pros)
   ---------------------------------------------------------------
   Caps each single-profile layout's own container at a custom width
   on large screens only. Scoped inside min-width:1024px — above both
   layouts' own internal mobile/tablet stacking breakpoint (680px) —
   so a narrow override value never fights the responsive layout
   below that. Falls back to each layout's existing default width
   when the setting is blank, so an untouched site sees no change.
═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
	.twotwenty-rp-single-a {
		max-width: var(--220-rp-single-max-width, 1200px);
	}

	.twotwenty-rp-single-b {
		max-width: var(--220-rp-single-max-width, 820px);
	}

	/* Lead Capture form — Inquiry Form Maximum Width. Same large-screens-
	 * only gating as the page-level Maximum Width above; mobile/tablet
	 * always render the form at 100% regardless of this setting. */
	.twotwenty-rp-inquiry-container {
		max-width: var(--220-rp-inquiry-max-width, none);
	}
}

/* ═══════════════════════════════════════════════════════════════
   Assigned Staff Members ("Recommended By") section
   ---------------------------------------------------------------
   Rendered below the profile content on both single-profile
   layouts, after the inquiry form / current listings blocks. See
   templates/recommended-professionals/partials/assigned-staff.php.
   Card markup itself comes from the site's configured Staff List
   Layout template (220-listings-staff.css), not from this file.
═══════════════════════════════════════════════════════════════ */
.twotwenty-rp-section-assigned-staff {
	margin-top: 32px;
}
