/*
 * TLA Partner Hub · orbital navy (1.0.368, from the 1.0.365 navy design and the
 * 1.0.366 desktop gutter): the homepage's dark orbital palette, midnight navy
 * with cyan light, champagne gold for primary actions, solid cyan for the
 * partner card button. The rings themselves come from orbital-site-370.css.
 *
 * Loaded last on hub pages (HubHeader::enqueue_design), so it settles the
 * earlier hub layers without editing them. Three parts:
 *   1. The public hub pages (body.tla-ph-public-dark-page): a deep navy page
 *      with soft light at the top, raised gradient panels with real shadows,
 *      and one set of buttons, fields and chips in place of the mid blue.
 *   2. The partner card (.tla-ph-pcard, PartnerCardRenderer::render_card()):
 *      sector icon, logo and full name on one row, coverage on the next, the
 *      summary, services, then status and the profile button at the bottom.
 *   3. The site header on hub pages: the standard header, without its
 *      light/dark switch, because the hub is always dark.
 *
 * Specificity is deliberately high (html body …) and visual properties are
 * !important because the earlier layers, and some inline styles printed with
 * the page, are.
 */

/* ── 1. Public hub pages ───────────────────────────────────────────────── */

html body.tla-ph-public-dark-page {
	--hub-page: #081321;
	--hub-surface: linear-gradient(162deg, #13243d 0%, #0e1c31 46%, #0a1729 100%);
	--hub-surface-soft: linear-gradient(162deg, #112038 0%, #0c1a2e 60%, #091526 100%);
	--hub-field: linear-gradient(180deg, #0a1628 0%, #0d1b30 100%);
	--hub-line: rgba(150, 185, 230, .16);
	--hub-line-strong: rgba(160, 196, 236, .32);
	--hub-text: #f5f7fa;
	--hub-text-2: #c9d4e2;
	--hub-muted: #97a8bd;
	--hub-accent: #5ec7d8;
	--hub-primary: linear-gradient(135deg, #e0c58b 0%, #c7a96b 52%, #b08d4d 100%);
	--hub-primary-hover: linear-gradient(135deg, #e8d09c 0%, #d2b578 52%, #bb9858 100%);
	--hub-primary-text: #1d1606;
	--hub-solid: #5ec7d8;
	--hub-solid-hover: #7fd6e4;
	--hub-solid-text: #04202a;
	--hub-gold: #e6bd6b;
	--hub-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .28), 0 18px 42px -14px rgba(0, 0, 0, .7);
	--hub-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .09), 0 4px 10px rgba(0, 0, 0, .3), 0 28px 60px -16px rgba(0, 0, 0, .78);
	background-color: var(--hub-page) !important;
	background-image:
		radial-gradient(1200px 620px at 10% -6%, rgba(41, 199, 229, .13), rgba(41, 199, 229, 0) 62%),
		radial-gradient(1000px 560px at 100% 2%, rgba(76, 120, 211, .18), rgba(76, 120, 211, 0) 60%),
		linear-gradient(180deg, #0a1729 0%, #081321 30%, #081321 62%, #060f1b 100%) !important;
	background-repeat: no-repeat !important;
	background-size: 100% 100% !important;
}

/* Raised panels: the same depth everywhere; sector colour stays on the
   border and as a soft glow in the top corner. */
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(
	.tla-ph-sector-card,
	.tla-ph-region-card,
	.tla-ph-region-national-card,
	.tla-ph-region-sector-card,
	.tla-ph-sector-directory-tile,
	.tla-ph-region-page-stat,
	.tla-ph-network-ai-link,
	.tla-ph-tier-reveal,
	.tla-ph-workspace-panel,
	.tla-ph-gate-card
) {
	background:
		radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--tla-sector-color, #5ec7d8) 16%, transparent) 0%, transparent 62%),
		var(--hub-surface) !important;
	box-shadow: var(--hub-shadow) !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(
	.tla-ph-sector-card,
	.tla-ph-region-card,
	.tla-ph-region-national-card,
	.tla-ph-region-sector-card,
	.tla-ph-sector-directory-tile,
	.tla-ph-network-ai-link
):hover {
	transform: translateY(-3px) !important;
	box-shadow: var(--hub-shadow-hover), 0 0 0 1px color-mix(in srgb, var(--tla-sector-color, #5ec7d8) 45%, transparent) !important;
}

/* Buttons: one primary (blue to violet, raised) and one secondary (glass). */
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(.tla-ph-frontend-button-primary, .tla-ph-partner-row-link, .tla-ph-s302-button),
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) button.tla-ph-frontend-button:not(.tla-ph-frontend-button-secondary) {
	background: var(--hub-primary) !important;
	border: 1px solid rgba(255, 255, 255, .14) !important;
	color: var(--hub-primary-text) !important;
	-webkit-text-fill-color: var(--hub-primary-text) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -10px rgba(176, 141, 77, .6) !important;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(.tla-ph-frontend-button-primary, .tla-ph-partner-row-link, .tla-ph-s302-button):hover,
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) button.tla-ph-frontend-button:not(.tla-ph-frontend-button-secondary):hover {
	background: var(--hub-primary-hover) !important;
	transform: translateY(-1px) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 30px -10px rgba(176, 141, 77, .75) !important;
	color: var(--hub-primary-text) !important;
	-webkit-text-fill-color: var(--hub-primary-text) !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-frontend-button-secondary {
	background: rgba(255, 255, 255, .06) !important;
	border: 1px solid var(--hub-line-strong) !important;
	color: var(--hub-text) !important;
	-webkit-text-fill-color: var(--hub-text) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
	text-decoration: none !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-frontend-button-secondary:hover {
	background: rgba(94, 199, 216, .14) !important;
	border-color: rgba(94, 199, 216, .6) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(.tla-ph-frontend-button, .tla-ph-partner-row-link, .tla-ph-s302-button):focus-visible {
	outline: 3px solid #7fd6e4 !important;
	outline-offset: 3px !important;
}

/* Guest access gate (the first hub page a signed-out visitor sees). */
html body.tla-ph-public-dark-page .tla-ph-gate-shell .tla-ph-gate-card {
	background:
		radial-gradient(90% 70% at 0% 0%, rgba(94, 199, 216, .18) 0%, transparent 60%),
		radial-gradient(80% 70% at 100% 100%, rgba(76, 120, 211, .14) 0%, transparent 60%),
		linear-gradient(162deg, #13243d 0%, #0e1c31 46%, #0a1729 100%) !important;
	border: 1px solid rgba(150, 185, 230, .2) !important;
	box-shadow: var(--hub-shadow) !important;
}
html body.tla-ph-public-dark-page .tla-ph-gate-shell .tla-ph-gate-login {
	background: rgba(255, 255, 255, .06) !important;
	border: 1px solid var(--hub-line-strong) !important;
	color: var(--hub-text) !important;
	-webkit-text-fill-color: var(--hub-text) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
html body.tla-ph-public-dark-page .tla-ph-gate-shell .tla-ph-gate-login:hover {
	background: rgba(94, 199, 216, .14) !important;
	border-color: rgba(94, 199, 216, .6) !important;
}
html body.tla-ph-public-dark-page .tla-ph-gate-shell button[type="submit"] {
	background: var(--hub-primary) !important;
	border: 1px solid rgba(255, 255, 255, .14) !important;
	color: var(--hub-primary-text) !important;
	-webkit-text-fill-color: var(--hub-primary-text) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px -10px rgba(176, 141, 77, .65) !important;
}
html body.tla-ph-public-dark-page .tla-ph-gate-shell button[type="submit"]:hover { background: var(--hub-primary-hover) !important; }

/* Fields. */
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(input[type="text"], input[type="search"], input[type="email"], input:not([type]), select) {
	background: var(--hub-field) !important;
	border: 1px solid rgba(150, 185, 230, .24) !important;
	border-radius: 12px !important;
	color: var(--hub-text) !important;
	-webkit-text-fill-color: var(--hub-text) !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .04) !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(input, select):focus {
	border-color: #5ec7d8 !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35), 0 0 0 3px rgba(94, 199, 216, .28) !important;
	outline: 0 !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) input::placeholder { color: #7d8ea4 !important; -webkit-text-fill-color: #7d8ea4 !important; }
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) select option { background: #0b1729; color: #f5f7fa; }

/* Chips: area links and quick links. */
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(.tla-ph-region-area-links a, .tla-ph-network-quick-links a, .tla-ph-service-journey-links a) {
	background: rgba(255, 255, 255, .05) !important;
	border: 1px solid rgba(150, 190, 236, .22) !important;
	color: #e2e9f2 !important;
	-webkit-text-fill-color: #e2e9f2 !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 14px -8px rgba(0, 0, 0, .6) !important;
	text-decoration: none !important;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(.tla-ph-region-area-links a, .tla-ph-network-quick-links a, .tla-ph-service-journey-links a):hover {
	background: rgba(94, 199, 216, .15) !important;
	border-color: rgba(94, 199, 216, .55) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	transform: translateY(-1px) !important;
}

/* Compact partner rows (TLA Trusted, Verified and business listings). */
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-partner-row {
	background: var(--hub-surface-soft) !important;
	border: 1px solid var(--hub-line) !important;
	border-left: 3px solid color-mix(in srgb, var(--tla-sector-color, #5ec7d8) 70%, transparent) !important;
	border-radius: 16px !important;
	box-shadow: var(--hub-shadow) !important;
	overflow: hidden !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-partner-row[open] { border-color: var(--hub-line-strong) !important; }
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-partner-row-body { background: rgba(3, 8, 24, .35) !important; border-top: 1px solid var(--hub-line) !important; }
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-partner-row-name {
	color: var(--hub-text) !important;
	-webkit-text-fill-color: var(--hub-text) !important;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	hyphens: none !important;
}
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) .tla-ph-partner-row-logo {
	background: #fff !important;
	border-radius: 12px !important;
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6) !important;
}

/* Names and headings never break inside a word. */
html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) :is(h1, h2, h3, h4) {
	overflow-wrap: break-word !important;
	word-break: normal !important;
	hyphens: none !important;
}

/* ── 2. The partner card ───────────────────────────────────────────────── */

html body .tla-ph-pcard {
	--pc-sector: var(--tla-sector-color, #5ec7d8);
	--pc-line: rgba(150, 185, 230, .18);
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 24px !important;
	border: 1px solid var(--pc-line) !important;
	border-radius: 22px !important;
	background:
		radial-gradient(110% 60% at 0% 0%, color-mix(in srgb, var(--pc-sector) 18%, transparent) 0%, transparent 58%),
		linear-gradient(162deg, #14263f 0%, #0f1d33 44%, #0a1729 100%) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(0, 0, 0, .3), 0 22px 48px -16px rgba(0, 0, 0, .75) !important;
	color: #c9d4e2 !important;
	text-align: left !important;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
	box-sizing: border-box !important;
}
html body .tla-ph-pcard *, html body .tla-ph-pcard *::before, html body .tla-ph-pcard *::after { box-sizing: border-box; }
html body .tla-ph-pcard.is-nationwide {
	--pc-line: rgba(230, 189, 107, .55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(230, 189, 107, .12), 0 2px 6px rgba(0, 0, 0, .3), 0 22px 48px -16px rgba(0, 0, 0, .75), 0 0 46px -18px rgba(230, 189, 107, .35) !important;
}
html body .tla-ph-pcard:hover {
	transform: translateY(-3px) !important;
	border-color: color-mix(in srgb, var(--pc-sector) 55%, rgba(255, 255, 255, .2)) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 12px rgba(0, 0, 0, .32), 0 32px 64px -18px rgba(0, 0, 0, .82) !important;
}
html body .tla-ph-pcard.is-nationwide:hover { border-color: rgba(230, 189, 107, .85) !important; }

/* Row one: sector icon, logo, full name. */
html body .tla-ph-pcard .tla-ph-pcard-head {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	min-width: 0 !important;
	margin: 0 !important;
}
html body .tla-ph-pcard .tla-ph-pcard-sector {
	flex: 0 0 48px !important;
	display: inline-grid !important;
	place-items: center !important;
	width: 48px !important;
	height: 48px !important;
	border-radius: 14px !important;
	background: linear-gradient(160deg, color-mix(in srgb, var(--pc-sector) 30%, #0d1b30) 0%, color-mix(in srgb, var(--pc-sector) 12%, #0a1729) 100%) !important;
	border: 1px solid color-mix(in srgb, var(--pc-sector) 55%, transparent) !important;
	color: color-mix(in srgb, var(--pc-sector) 70%, #fff) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px -8px color-mix(in srgb, var(--pc-sector) 70%, transparent) !important;
}
html body .tla-ph-pcard .tla-ph-pcard-sector :is(.tla-ph-sector-glyph, span) {
	display: inline-grid !important;
	place-items: center !important;
	width: 24px !important;
	height: 24px !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
}
html body .tla-ph-pcard .tla-ph-pcard-sector svg {
	width: 24px !important;
	height: 24px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
}
html body .tla-ph-pcard .tla-ph-pcard-logo {
	flex: 0 0 auto !important;
	display: inline-grid !important;
	place-items: center !important;
	width: 112px !important;
	height: 60px !important;
	padding: 8px 10px !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: inset 0 0 0 1px rgba(10, 16, 48, .06), 0 10px 22px -10px rgba(0, 0, 0, .7) !important;
	overflow: hidden !important;
}
html body .tla-ph-pcard .tla-ph-pcard-logo img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
html body .tla-ph-pcard .tla-ph-pcard-logo.is-placeholder {
	background: linear-gradient(160deg, #1a2f4a, #112036) !important;
	color: #e0e8f1 !important;
	font-weight: 800 !important;
	font-size: 20px !important;
	letter-spacing: .02em !important;
}
html body .tla-ph-pcard .tla-ph-pcard-name {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: clamp(1.1rem, 1.05rem + .45vw, 1.35rem) !important;
	line-height: 1.22 !important;
	font-weight: 800 !important;
	letter-spacing: -.012em !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-transform: none !important;
	text-wrap: balance;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	hyphens: none !important;
}
html body .tla-ph-pcard .tla-ph-pcard-name a {
	color: inherit !important;
	-webkit-text-fill-color: currentColor !important;
	text-decoration: none !important;
	background: none !important;
}
html body .tla-ph-pcard .tla-ph-pcard-name a:hover { text-decoration: underline !important; text-decoration-color: rgba(255, 255, 255, .45) !important; text-underline-offset: 4px !important; }

/* Row two: tier and coverage. */
html body .tla-ph-pcard .tla-ph-pcard-meta {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 8px 14px !important;
	min-height: 28px !important;
	margin: 0 !important;
}
html body .tla-ph-pcard .tla-ph-pcard-meta .tla-ph-pcard-tier { flex: 0 0 auto !important; }
html body .tla-ph-pcard .tla-ph-pcard-meta .tla-ph-pcard-coverage { flex: 1 1 auto !important; }
html body .tla-ph-pcard .tla-ph-pcard-tier {
	display: inline-flex !important;
	align-items: center !important;
	padding: 5px 11px !important;
	border-radius: 999px !important;
	background: rgba(94, 199, 216, .12) !important;
	border: 1px solid rgba(94, 199, 216, .3) !important;
	color: #cfdbe8 !important;
	-webkit-text-fill-color: #cfdbe8 !important;
	font-size: 11.5px !important;
	font-weight: 800 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}
html body .tla-ph-pcard.is-nationwide .tla-ph-pcard-tier {
	background: linear-gradient(135deg, rgba(230, 189, 107, .22), rgba(230, 189, 107, .1)) !important;
	border-color: rgba(230, 189, 107, .55) !important;
	color: #f3d38f !important;
	-webkit-text-fill-color: #f3d38f !important;
}
html body .tla-ph-pcard .tla-ph-pcard-coverage {
	display: inline-flex !important;
	align-items: flex-start !important;
	gap: 6px !important;
	min-width: 0 !important;
	color: #c9d4e2 !important;
	-webkit-text-fill-color: #c9d4e2 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
}
html body .tla-ph-pcard .tla-ph-pcard-coverage svg {
	flex: 0 0 16px !important;
	width: 16px !important;
	height: 16px !important;
	margin-top: 1px !important;
	fill: none !important;
	stroke: #5ec7d8 !important;
	stroke-width: 2 !important;
}

/* Summary: four lines, so cards in a row stay level. */
html body .tla-ph-pcard .tla-ph-pcard-desc {
	display: -webkit-box !important;
	-webkit-line-clamp: 4 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	max-height: none !important;
	margin: 0 !important;
	color: #c9d4e2 !important;
	-webkit-text-fill-color: #c9d4e2 !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
}

/* Services: quiet chips that brighten on hover (no underline, no colour shift). */
html body .tla-ph-pcard .tla-ph-pcard-services {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
html body .tla-ph-pcard .tla-ph-pcard-services li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body .tla-ph-pcard .tla-ph-pcard-services li::before, html body .tla-ph-pcard .tla-ph-pcard-services li::marker { content: none !important; }
html body .tla-ph-pcard .tla-ph-pcard-chip {
	display: inline-flex !important;
	align-items: center !important;
	min-height: 32px !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .05) !important;
	border: 1px solid rgba(150, 190, 236, .22) !important;
	color: #e2e9f2 !important;
	-webkit-text-fill-color: #e2e9f2 !important;
	font-size: 13px !important;
	font-weight: 650 !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}
html body .tla-ph-pcard a.tla-ph-pcard-chip:hover,
html body .tla-ph-pcard a.tla-ph-pcard-chip:focus-visible {
	background: color-mix(in srgb, var(--pc-sector) 22%, rgba(255, 255, 255, .06)) !important;
	border-color: color-mix(in srgb, var(--pc-sector) 70%, #fff) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
}
html body .tla-ph-pcard .tla-ph-pcard-chip.is-more {
	background: transparent !important;
	border-style: dashed !important;
	color: #5ec7d8 !important;
	-webkit-text-fill-color: #5ec7d8 !important;
}

/* Footer: status on the left, the profile button on the right, always at the bottom. */
html body .tla-ph-pcard .tla-ph-pcard-foot {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin-top: auto !important;
	padding-top: 16px !important;
	border-top: 1px solid rgba(150, 185, 230, .14) !important;
}
html body .tla-ph-pcard .tla-ph-pcard-flags { flex: 1 1 auto !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; min-width: 0 !important; }
html body .tla-ph-pcard .tla-ph-pcard-cta { flex: 0 0 auto !important; }
html body .tla-ph-pcard .tla-ph-pcard-flag {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	padding: 5px 11px !important;
	border-radius: 999px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	background: rgba(255, 255, 255, .05) !important;
	border: 1px solid rgba(150, 190, 236, .2) !important;
	color: #e0e8f1 !important;
	-webkit-text-fill-color: #e0e8f1 !important;
}
html body .tla-ph-pcard .tla-ph-pcard-flag::before { content: "" !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: #5ec7d8 !important; }
html body .tla-ph-pcard .tla-ph-pcard-flag.is-open { background: rgba(16, 185, 129, .14) !important; border-color: rgba(52, 211, 153, .45) !important; color: #a7f3d0 !important; -webkit-text-fill-color: #a7f3d0 !important; }
html body .tla-ph-pcard .tla-ph-pcard-flag.is-open::before { background: #34d399 !important; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25) !important; }
html body .tla-ph-pcard .tla-ph-pcard-flag.is-closed::before { background: #f59e0b !important; }
html body .tla-ph-pcard .tla-ph-pcard-flag.is-offer { background: rgba(230, 189, 107, .12) !important; border-color: rgba(230, 189, 107, .45) !important; color: #f3d38f !important; -webkit-text-fill-color: #f3d38f !important; }
html body .tla-ph-pcard .tla-ph-pcard-flag.is-offer::before { background: #e6bd6b !important; }
/* The TLA Trusted Partner mark closes the coverage row, so every footer is one line. */
html body .tla-ph-pcard .tla-ph-pcard-trust { display: block !important; flex: 0 0 auto !important; width: auto !important; height: 28px !important; max-width: 84px !important; margin-left: auto !important; object-fit: contain !important; border: 0 !important; box-shadow: none !important; }
html body .tla-ph-pcard .tla-ph-pcard-cta {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	min-height: 42px !important;
	padding: 0 18px !important;
	border-radius: 12px !important;
	background: var(--hub-solid, #5ec7d8) !important;
	border: 1px solid rgba(255, 255, 255, .14) !important;
	color: var(--hub-solid-text, #04202a) !important;
	-webkit-text-fill-color: var(--hub-solid-text, #04202a) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -12px rgba(94, 199, 216, .6) !important;
	transition: transform .15s ease, box-shadow .15s ease !important;
}
html body .tla-ph-pcard .tla-ph-pcard-cta:hover {
	background: var(--hub-solid-hover, #7fd6e4) !important;
	transform: translateY(-1px) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 30px -10px rgba(94, 199, 216, .55) !important;
	color: var(--hub-solid-text, #04202a) !important;
	-webkit-text-fill-color: var(--hub-solid-text, #04202a) !important;
}
html body .tla-ph-pcard :is(a, button):focus-visible { outline: 3px solid #7fd6e4 !important; outline-offset: 3px !important; border-radius: 10px; }

/* Grids that hold partner cards: equal heights, even gaps. */
html body .tla-ph-shell :is(.tla-ph-directory-grid, .tla-ph-compare-grid, [class*="lead-grid"]):has(> .tla-ph-pcard) {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)) !important;
	align-items: stretch !important;
	gap: 22px !important;
}

/* Phones: the name takes its own full-width line under the icon and logo. */
@media (max-width: 560px) {
	html body .tla-ph-pcard { padding: 18px !important; gap: 14px !important; border-radius: 18px !important; }
	html body .tla-ph-pcard .tla-ph-pcard-head { flex-wrap: wrap !important; row-gap: 12px !important; }
	html body .tla-ph-pcard .tla-ph-pcard-sector { flex-basis: 44px !important; width: 44px !important; height: 44px !important; }
	html body .tla-ph-pcard .tla-ph-pcard-logo { width: 104px !important; height: 56px !important; }
	html body .tla-ph-pcard .tla-ph-pcard-name { flex-basis: 100% !important; font-size: 1.2rem !important; }
	html body .tla-ph-pcard .tla-ph-pcard-meta { flex-wrap: wrap !important; }
	html body .tla-ph-pcard .tla-ph-pcard-meta .tla-ph-pcard-coverage { flex-basis: 100% !important; order: 3 !important; }
	html body .tla-ph-pcard .tla-ph-pcard-foot { flex-direction: column !important; align-items: stretch !important; }
	html body .tla-ph-pcard .tla-ph-pcard-cta { justify-content: center !important; }
}
@media (prefers-reduced-motion: reduce) {
	html body .tla-ph-pcard, html body .tla-ph-pcard * { transition: none !important; }
	html body .tla-ph-pcard:hover { transform: none !important; }
}

/* ── 3. Site header on hub pages ───────────────────────────────────────── */

/* 1.0.366: room for the header's left sidebar. On scroll, desktop pages turn
   the header into a 72px sidebar only where nothing sits in the page's left
   88px (header snippet railRoom()). Hub pages used a 40px gutter, so they
   kept the floating bar. A 96px gutter on desktop gives them the same
   sidebar as the homepage, with nothing underneath it and no page shift. */
@media (min-width: 1001px) {
	html body.tla-ph-public-dark-page :is(.tla-ph-shell, .tla-ph-gate-shell) {
		padding-left: 96px !important;
		padding-right: 96px !important;
		box-sizing: border-box !important;
	}
	html body.tla-ph-public-dark-page :is(.tla-ph-premium-profile, .tla-ph-basic-public-listing) {
		width: calc(100% - 112px) !important;
	}
}

/* The hub is always dark (HubHeader::print_dark_lock), so the header's
   light/dark switch would do nothing here. Everything else is the same
   header as the rest of the site. */
html.tla-ph-hub-dark #tla-uh .tla-uh-switch,
html.tla-ph-hub-dark #tla-uh [data-tla-uh-theme],
html.tla-ph-hub-dark #tla-uh-mobile [data-tla-uh-theme],
body.tla-ph-public-dark-page #tla-uh .tla-uh-switch,
body.tla-ph-public-dark-page #tla-uh [data-tla-uh-theme],
body.tla-ph-public-dark-page #tla-uh-mobile [data-tla-uh-theme] { display: none !important; }
