/*
 * Partner Hub 1.0.319: the dark Member Perks page, the sector pages' open
 * listings ("Show all"), promoted lead cards, and sector icons in place of
 * initials where a business has no logo yet. The hub is always dark.
 */

/* Hub content on an ordinary page (/member-perks/): the plugin section has
   its own heading, so the theme's page title goes. */
body.tla-ph-hub-content-page .site-main > .page-header { display: none !important; }

/* ---------- Member perks ---------- */
body .tla-pk { --pk-ink: #ecf7ff; --pk-muted: #bbd0ed; --pk-line: #2c4a6e; --pk-card: #0b1a34; --pk-accent: #62baf8; color: var(--pk-ink); padding-bottom: 56px; }
body .tla-pk .tla-pk-overline { color: var(--pk-accent) !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; margin: 0 0 10px; text-transform: uppercase; }
body .tla-pk .tla-pk-hero { align-items: end; background: radial-gradient(120% 140% at 0% 0%, rgba(10, 99, 214, .35), transparent 55%), linear-gradient(135deg, #0c1d3d, #081429); border: 1px solid var(--pk-line); border-radius: 24px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) auto; margin: 18px 0 28px; padding: clamp(26px, 4vw, 48px); }
html body .tla-pk.tla-ph-member-perks .tla-pk-hero .tla-pk-hero-copy > h1 { color: #f5fbff !important; font-size: clamp(30px, 4vw, 46px) !important; letter-spacing: -.02em; line-height: 1.08 !important; margin: 0 0 14px !important; }
body .tla-pk .tla-pk-hero p { color: var(--pk-muted) !important; font-size: 16px; line-height: 1.65; margin: 0 0 22px; max-width: 640px; }
body .tla-pk .tla-pk-stats { display: flex; gap: 14px; margin: 0; }
body .tla-pk .tla-pk-stats > div { background: rgba(255, 255, 255, .04); border: 1px solid var(--pk-line); border-radius: 16px; min-width: 120px; padding: 14px 18px; }
body .tla-pk .tla-pk-stats dt { color: var(--pk-muted); font-size: 12px; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; }
body .tla-pk .tla-pk-stats dd { color: #fff; font-size: 30px; font-weight: 800; margin: 0; }
body .tla-pk a.tla-pk-button { align-items: center; background: linear-gradient(135deg, #0a63d6, #0a90f6); border: 1px solid transparent; border-radius: 999px; color: #fff !important; display: inline-flex; font-weight: 800; gap: 8px; padding: 12px 22px; text-decoration: none !important; -webkit-text-fill-color: #fff; }
body .tla-pk a.tla-pk-button:hover { filter: brightness(1.08); }
body .tla-pk a.tla-pk-button.is-ghost { background: transparent; border-color: #4f7fb3; }
body .tla-pk .tla-pk-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
body .tla-pk .tla-pk-card { background: var(--pk-card); border: 1px solid var(--pk-line); border-radius: 20px; display: flex; flex-direction: column; gap: 14px; padding: 22px; position: relative; transition: border-color .2s, transform .2s; }
body .tla-pk .tla-pk-card::before { background: var(--tla-sector-color, #0a90f6); border-radius: 20px 20px 0 0; content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }
body .tla-pk .tla-pk-card:hover { border-color: #4f7fb3; transform: translateY(-2px); }
body .tla-pk .tla-pk-card-head { align-items: center; display: flex; gap: 14px; }
body .tla-pk .tla-pk-logo { align-items: center; background: #fff; border-radius: 14px; display: grid; flex: 0 0 auto; height: 64px; overflow: hidden; padding: 6px; place-items: center; width: 64px; box-sizing: border-box; }
body .tla-pk .tla-pk-logo img { display: block; height: 100%; object-fit: contain; width: 100%; }
body .tla-pk .tla-pk-logo.is-icon { color: var(--tla-sector-color, #0a63d6); }
body .tla-pk .tla-pk-logo .tla-ph-sector-glyph, body .tla-pk .tla-pk-logo svg { display: block; height: 34px; width: 34px; }
body .tla-pk .tla-pk-sector { color: var(--pk-accent) !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; margin: 0 0 4px; text-transform: uppercase; }
html body .tla-pk.tla-ph-member-perks .tla-pk-card .tla-pk-card-head h2 { font-size: 19px !important; font-weight: 800 !important; line-height: 1.25 !important; margin: 0 !important; }
body .tla-pk .tla-pk-card h2 a { color: #f5fbff !important; text-decoration: none !important; -webkit-text-fill-color: #f5fbff; }
body .tla-pk .tla-pk-offer { color: var(--pk-muted) !important; flex: 1 1 auto; font-size: 15px; line-height: 1.55; margin: 0; }
body .tla-pk .tla-pk-code { align-items: center; background: rgba(98, 186, 248, .08); border: 1px dashed rgba(98, 186, 248, .5); border-radius: 12px; display: flex; gap: 12px; padding: 10px 12px; }
body .tla-pk .tla-pk-code span { color: var(--pk-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body .tla-pk .tla-pk-code strong { color: #fff; font-size: 17px; letter-spacing: .06em; margin-right: auto; }
body .tla-pk button.tla-pk-copy { background: #15375a !important; border: 1px solid #2f608a !important; border-radius: 999px !important; color: #d9efff !important; cursor: pointer; font-size: 12px !important; font-weight: 800 !important; line-height: 1 !important; padding: 8px 14px !important; -webkit-text-fill-color: #d9efff; }
body .tla-pk button.tla-pk-copy:hover { background: #1d4874 !important; }
body .tla-pk a.tla-pk-link { color: var(--pk-accent) !important; font-weight: 800; text-decoration: none !important; -webkit-text-fill-color: var(--pk-accent); }
body .tla-pk .tla-pk-empty { background: var(--pk-card); border: 1px solid var(--pk-line); border-radius: 20px; padding: 32px; }
html body .tla-pk.tla-ph-member-perks .tla-pk-empty .tla-pk-empty h2, html body .tla-pk.tla-ph-member-perks .tla-ph-shell-inner .tla-pk-empty > h2 { color: #fff !important; margin: 0 0 8px !important; }
body .tla-pk .tla-pk-empty p { color: var(--pk-muted) !important; margin: 0 0 18px; }
body .tla-pk .tla-pk-business { align-items: center; background: linear-gradient(135deg, #0c1d3d, #0a1630); border: 1px solid var(--pk-line); border-radius: 20px; display: flex; gap: 24px; justify-content: space-between; margin-top: 28px; padding: 26px 30px; }
html body .tla-pk.tla-ph-member-perks .tla-pk-business > div > h2 { color: #fff !important; font-size: 24px !important; margin: 0 0 6px !important; }
body .tla-pk .tla-pk-business p { color: var(--pk-muted) !important; margin: 0; }
body .tla-pk .tla-ph-service-breadcrumbs :is(a, span) { color: var(--pk-muted) !important; -webkit-text-fill-color: var(--pk-muted); }
@media (max-width: 960px) { body .tla-pk .tla-pk-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
	body .tla-pk .tla-pk-grid { grid-template-columns: 1fr; }
	body .tla-pk .tla-pk-business { align-items: flex-start; flex-direction: column; padding: 22px; }
	body .tla-pk .tla-pk-stats > div { min-width: 0; flex: 1 1 0; }
}

/* ---------- Sector pages ---------- */
/* "Show all N" inside an open listing group. */
.tla-ph-sector-refresh-302 .tla-ph-s302-tier > details.tla-ph-s302-more { margin: 0 17px 18px; }
.tla-ph-sector-refresh-302 .tla-ph-s302-tier > details.tla-ph-s302-more > summary { align-items: center; background: #132b4c !important; border: 1px solid #2f608a; border-radius: 999px; color: #d9efff !important; cursor: pointer; display: inline-flex !important; font-size: 14px; font-weight: 800; list-style: none; min-height: 0 !important; padding: 10px 20px !important; }
.tla-ph-sector-refresh-302 .tla-ph-s302-tier > details.tla-ph-s302-more > summary::-webkit-details-marker { display: none; }
.tla-ph-sector-refresh-302 .tla-ph-s302-tier > details.tla-ph-s302-more > summary:hover { background: #1d4874 !important; }
.tla-ph-sector-refresh-302 .tla-ph-s302-tier > details.tla-ph-s302-more[open] > summary { display: none !important; }
.tla-ph-sector-refresh-302 .tla-ph-s302-tier > details.tla-ph-s302-more > .tla-ph-s302-tier-grid { padding: 0 !important; }
/* A promoted (non-Nationwide) lead card keeps the sector's colour, not gold. */
.tla-ph-sector-refresh-302 .tla-ph-compare-card.is-featured { border-color: color-mix(in srgb, var(--tla-sector-color, #0a90f6) 55%, #315178) !important; }
.tla-ph-sector-refresh-302 .tla-ph-compare-card.is-featured .tla-ph-compare-tier { color: var(--tla-sector-color, #62baf8) !important; }

/* No logo yet: the sector's icon on the white logo tile instead of initials. */
:is(.tla-ph-compare-logo, .tla-ph-partner-row-logo, .tla-ph-directory-logo).is-placeholder .tla-ph-sector-glyph,
.tla-ph-row-mark.is-initials .tla-ph-sector-glyph { color: var(--tla-sector-color, #0a63d6); display: grid; height: 56%; place-items: center; width: 56%; }
:is(.tla-ph-compare-logo, .tla-ph-partner-row-logo, .tla-ph-directory-logo).is-placeholder .tla-ph-sector-glyph svg,
.tla-ph-row-mark.is-initials .tla-ph-sector-glyph svg { display: block; height: 100%; width: 100%; }
