/* My TLA saved and followed businesses - scoped; no global colour overrides.
   1.0.306: one outlined pill for save/follow everywhere outside the showcase
   profile (which uses its own .tla-pp-btn). .tla-mytla-ui is excluded from the
   Hub-wide uppercase button rule in frontend.css.
   1.0.308: the dashboard section uses the member command centre's section
   heading and colour tokens (--mcc-*), so light and dark follow the rest of
   My TLA; business cards show logo, sector and Nationwide status. */

/* Section */
.tla-mytla-section .tla-mcc-section-heading{margin-bottom:18px}
.tla-mytla-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.tla-mytla-count{margin:0;color:var(--mcc-muted,#5a5a7a);font-size:14px;font-weight:600}
.tla-mytla-empty{display:flex;align-items:flex-start;gap:16px;padding:22px;border:1px dashed var(--mcc-border,#d7e5f3);border-radius:var(--mcc-radius-medium,16px);background:var(--mcc-soft,#f6faff)}
.tla-mytla-empty-icon{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border-radius:12px;background:rgba(223,41,211,.1);color:var(--mcc-pink,#df29d3)}
.tla-mytla-empty-icon .tla-pp-icon{width:22px;height:22px}
.tla-mytla-empty strong{display:block;color:var(--mcc-heading,#060614);font-size:16px}
.tla-mytla-empty p{margin:6px 0 0;color:var(--mcc-muted,#5a5a7a);font-size:14px;line-height:1.6}

/* Business cards */
.tla-mytla-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tla-mytla-card{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-areas:"logo body" "actions actions";gap:14px 16px;align-items:center;min-width:0;padding:18px;border:1px solid var(--mcc-border,#d7e5f3);border-radius:var(--mcc-radius-medium,16px);background:var(--mcc-card,#fff);box-shadow:0 7px 25px rgba(10,0,50,.04)}
.tla-mytla-card-logo{grid-area:logo;display:block;width:72px;height:72px;padding:8px;border:1px solid rgba(10,0,50,.08);border-radius:14px;background:#fff;overflow:hidden;box-sizing:border-box}
.tla-mytla-card-logo img{display:block;width:100%;height:100%;object-fit:contain}
.tla-mytla-card-logo.is-initials{display:grid;place-items:center}
.tla-mytla-card-logo.is-initials{border-color:transparent;background:linear-gradient(135deg,rgba(223,41,211,.12),rgba(10,144,246,.14))}
.tla-mytla-card-logo.is-initials span{color:var(--mcc-blue,#0a90f6);font-size:22px;font-weight:800}
.tla-mytla-card-body{grid-area:body;min-width:0}
.tla-mytla-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 6px}
.tla-mytla-card-sector{display:inline-flex;align-items:center;gap:6px;color:var(--tla-sector-color,#17b2e2);font-size:12px;font-weight:700}
.tla-mytla-card-sector svg{width:16px;height:16px}
.tla-mytla-card-badge{display:inline-flex;align-items:center;padding:2px 9px;border:1px solid #d9b05a;border-radius:999px;background:#fff6df;color:#795008;font-size:11px;font-weight:800}
.tla-mytla-card h3{margin:0;font-size:18px;font-weight:800;line-height:1.25;letter-spacing:-.01em;overflow-wrap:anywhere}
.tla-mytla-card h3 a{color:var(--mcc-heading,#060614);text-decoration:none}
.tla-mytla-card h3 a:hover{color:var(--mcc-blue,#0a90f6)}
.tla-mytla-card-state{margin:4px 0 0;color:var(--mcc-muted,#5a5a7a);font-size:13px}
.tla-mytla-card-actions{grid-area:actions;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:14px;border-top:1px solid var(--mcc-divider,rgba(10,0,50,.07))}
.tla-mytla-card-actions .tla-mytla-link{margin-left:auto}

/* Follow feed */
.tla-mytla-feed{margin-top:34px}
.tla-mcc .tla-mytla-feed-title{margin:0 0 14px;color:var(--mcc-heading,#060614);font-size:18px!important;font-weight:800;letter-spacing:-.01em}
.tla-mytla-feed-empty{display:flex;align-items:center;gap:12px;margin:0;padding:16px 18px;border:1px solid var(--mcc-divider,rgba(10,0,50,.07));border-radius:14px;background:var(--mcc-soft,#f6faff);color:var(--mcc-muted,#5a5a7a);font-size:14px;line-height:1.5}
.tla-mytla-feed-empty .tla-pp-icon{flex:0 0 20px;width:20px;height:20px;color:var(--mcc-blue,#0a90f6)}
.tla-mytla-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tla-mytla-news{display:flex;flex-direction:column;gap:8px;min-width:0;padding:18px;border:1px solid var(--mcc-border,#d7e5f3);border-radius:var(--mcc-radius-medium,16px);background:var(--mcc-card,#fff)}
.tla-mytla-news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;color:var(--mcc-muted,#5a5a7a);font-size:12px;font-weight:600}
.tla-mytla-news-type{padding:2px 9px;border-radius:999px;background:rgba(10,144,246,.1);color:var(--mcc-blue,#0a90f6);font-weight:800}
.tla-mytla-news h4{margin:0;font-size:17px;line-height:1.3}
.tla-mytla-news h4 a{color:var(--mcc-heading,#060614);text-decoration:none}
.tla-mytla-news p{margin:0;color:var(--mcc-muted,#5a5a7a);line-height:1.6}
.tla-mytla-news small{color:var(--mcc-muted,#5a5a7a)}

/* Save / follow controls (basic and classic profiles, My TLA dashboard). */
.tla-mytla-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.tla-mytla-ui .tla-mytla-preference{display:flex;margin:0;padding:0}
.tla-mytla-ui .tla-mytla-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0;padding:0 16px;border:1px solid #c6d6e8;border-radius:999px;background:#fff;color:#18314e;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;letter-spacing:normal;text-transform:none;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.tla-mytla-ui .tla-mytla-btn .tla-pp-icon{flex:0 0 17px;width:17px;height:17px;color:#0a90f6}
.tla-mytla-ui .tla-mytla-btn:hover{border-color:#0a90f6;background:#f0f7ff;color:#0b3a68}
.tla-mytla-ui .tla-mytla-btn.is-selected{border-color:#17b2e2;background:#e9f8fd;color:#0b3a68}
.tla-mytla-ui .tla-mytla-btn.is-selected .tla-pp-icon{color:#0e93c0}
.tla-mytla-ui .tla-mytla-btn.is-saved.is-selected .tla-pp-icon{fill:currentColor}
.tla-mytla-ui .tla-mytla-btn:focus-visible,.tla-mytla-ui .tla-mytla-link:focus-visible{outline:3px solid #17b2e2;outline-offset:3px}
.tla-mytla-ui .tla-mytla-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 6px;border-radius:8px;color:#4c6280;font-size:14px;font-weight:600;text-decoration:none}
.tla-mytla-ui .tla-mytla-link .tla-pp-icon{width:15px;height:15px}
.tla-mytla-ui .tla-mytla-link:hover{color:#0b3a68}
body.tla-ph-public-dark-page .tla-mytla-ui .tla-mytla-btn,html[data-tla-theme="dark"] .tla-mytla-ui .tla-mytla-btn{background:transparent;border-color:#37618b;color:#e7f1ff}
body.tla-ph-public-dark-page .tla-mytla-ui .tla-mytla-btn .tla-pp-icon,html[data-tla-theme="dark"] .tla-mytla-ui .tla-mytla-btn .tla-pp-icon{color:#5cc8f2}
body.tla-ph-public-dark-page .tla-mytla-ui .tla-mytla-btn:hover,html[data-tla-theme="dark"] .tla-mytla-ui .tla-mytla-btn:hover,body.tla-ph-public-dark-page .tla-mytla-ui .tla-mytla-btn.is-selected,html[data-tla-theme="dark"] .tla-mytla-ui .tla-mytla-btn.is-selected{background:rgba(23,178,226,.12);border-color:#17b2e2;color:#fff}
body.tla-ph-public-dark-page .tla-mytla-ui .tla-mytla-link,html[data-tla-theme="dark"] .tla-mytla-ui .tla-mytla-link{color:#9fbadb}
body.tla-ph-public-dark-page .tla-mytla-ui .tla-mytla-link:hover,html[data-tla-theme="dark"] .tla-mytla-ui .tla-mytla-link:hover{color:#fff}
html[data-tla-theme="dark"] .tla-mytla-card-badge{border-color:rgba(217,176,90,.55);background:rgba(217,176,90,.14);color:#f0cf86}

@media(max-width:770px){.tla-mytla-card-grid,.tla-mytla-news-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){
  .tla-mytla-bar .tla-mytla-preference,.tla-mytla-bar>a.tla-mytla-btn{flex:1 1 calc(50% - 4px)}
  .tla-mytla-bar .tla-mytla-btn{width:100%}
  .tla-mytla-bar .tla-mytla-link{flex:1 1 100%;justify-content:center}
  .tla-mytla-card{grid-template-columns:56px minmax(0,1fr);padding:16px}
  .tla-mytla-card-logo{width:56px;height:56px;padding:6px}
  .tla-mytla-card-actions .tla-mytla-preference{flex:1 1 calc(50% - 4px)}
  .tla-mytla-card-actions .tla-mytla-btn{width:100%}
  .tla-mytla-card-actions .tla-mytla-link{flex:1 1 100%;justify-content:center;margin:0}
}

/* 1.0.311: documents & brochures from followed businesses, and email preferences. */
.tla-mytla-resources,.tla-mytla-alerts{margin-top:34px}
.tla-mytla-resource-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.tla-mytla-resource{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0;padding:14px 16px;border:1px solid var(--mcc-border,#d7e5f3);border-radius:14px;background:var(--mcc-card,#fff)}
.tla-mytla-resource-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgba(110,34,255,.09);color:#6e22ff}
.tla-mytla-resource-icon .tla-pp-icon{width:22px;height:22px}
.tla-mytla-resource-copy{min-width:0}
.tla-mytla-resource-copy strong{display:block;color:var(--mcc-heading,#060614);font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.tla-mytla-resource-copy span{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:3px;color:var(--mcc-muted,#5a5a7a);font-size:13px}
.tla-mytla-resource-copy b{padding:1px 8px;border-radius:999px;background:rgba(14,159,110,.12);color:#0e7f58;font-size:11px;font-weight:800}
.tla-mytla-alerts-form{display:grid;gap:14px;padding:18px;border:1px solid var(--mcc-border,#d7e5f3);border-radius:var(--mcc-radius-medium,16px);background:var(--mcc-card,#fff)}
.tla-mytla-switch{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
.tla-mytla-switch input{flex:0 0 auto;width:20px;height:20px;margin:2px 0 0;accent-color:#0a90f6}
.tla-mytla-switch strong{display:block;color:var(--mcc-heading,#060614);font-size:15px}
.tla-mytla-switch small{display:block;margin-top:3px;color:var(--mcc-muted,#5a5a7a);font-size:13px;line-height:1.5}
.tla-mytla-alerts-form fieldset{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:12px 0 0 32px;border:0;border-top:1px solid var(--mcc-divider,rgba(10,0,50,.07))}
.tla-mytla-alerts-form legend{float:left;width:100%;margin:0 0 6px;padding:0;color:var(--mcc-muted,#5a5a7a);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.tla-mytla-alerts-form fieldset label{display:inline-flex;align-items:center;gap:8px;color:var(--mcc-heading,#060614);font-size:14px}
.tla-mytla-alerts-form fieldset input{width:18px;height:18px;margin:0;accent-color:#0a90f6}
.tla-mytla-alerts-form .tla-mytla-btn{justify-self:start}
.tla-mytla-alerts-note{margin:0;color:var(--mcc-muted,#5a5a7a);font-size:13px}
.tla-mytla-alerts-saved{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:rgba(14,159,110,.1);color:#0e7f58;font-weight:700;font-size:14px}
html[data-tla-theme="dark"] .tla-mytla-resource-icon{background:rgba(155,120,255,.16);color:#c3a8ff}
html[data-tla-theme="dark"] .tla-mytla-resource-copy b,html[data-tla-theme="dark"] .tla-mytla-alerts-saved{background:rgba(99,230,184,.12);color:#63e6b8}
@media(max-width:520px){
  .tla-mytla-resource{grid-template-columns:40px minmax(0,1fr);padding:14px}
  .tla-mytla-resource-icon{width:40px;height:40px}
  .tla-mytla-resource .tla-mytla-btn{grid-column:1/-1;width:100%}
  .tla-mytla-alerts-form fieldset{padding-left:0}
  .tla-mytla-alerts-form .tla-mytla-btn{justify-self:stretch}
}
