/* Shared technical support contact line */
.tma-tech-support {
    font-size: 0.875rem;
    color: #64748b;
}
.tma-tech-support-ico {
    margin-right: 0.3rem;
    color: #1d6a8a;
}
.tma-tech-support a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.tma-tech-support a i {
    margin-right: 0.3rem;
    font-size: 0.85em;
}
/* IMPORTANT: never force #0f172a on hover — it vanishes on dark landing chrome */
.tma-tech-support a:hover {
    border-bottom-color: currentColor;
}
.tma-tech-support--block {
    text-align: center;
    margin: 1rem 0 0.25rem;
}
.tma-tech-support--inline {
    display: inline;
    margin: 0;
}
.tma-tech-support--footer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}
.tma-tech-support--header {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 12.5px;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.tma-tech-support--header a {
    font-weight: 600;
    color: #1d4ed8;
    border-bottom: none;
}
.tma-tech-support--header a:hover {
    color: #1e40af;
    text-decoration: underline;
}
[data-theme="dark"] .tma-tech-support--header,
[data-bs-theme="dark"] .tma-tech-support--header {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .tma-tech-support--header a,
[data-bs-theme="dark"] .tma-tech-support--header a {
    color: #93c5fd;
}
@media (max-width: 768px) {
    .tma-tech-support--header .tma-tech-support-label {
        display: none;
    }
}

/*
 * Pill chip (cabinet / admin on light chrome).
 * Shell is a DIV; only .tma-tech-support-email is a mailto <a>.
 * Do NOT use near-black hover colors unless the chip background is solid white.
 */
.tma-tech-support--pill,
.cab-support-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 106, 138, 0.28);
    background: #ffffff;
    color: #12324a;
    color-scheme: light;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(18, 50, 74, 0.16);
    transition: box-shadow .15s ease;
}
.tma-tech-support--pill i,
.cab-support-pill i {
    color: #1d6a8a;
    font-size: 0.85rem;
}
.tma-tech-support--pill .tma-tech-support-label,
.cab-support-pill .cab-support-pill-label,
.cab-support-pill .tma-tech-support-label {
    margin: 0;
    color: #334155;
    font-weight: 600;
}

/* Kill the generic hover darkening for pill emails (cabinet / admin on white chip) */
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email,
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:link,
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:visited,
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:hover,
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:focus,
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:active,
.cab-support-pill a.tma-tech-support-email,
.cab-support-pill a.tma-tech-support-email:link,
.cab-support-pill a.tma-tech-support-email:visited,
.cab-support-pill a.tma-tech-support-email:hover,
.cab-support-pill a.tma-tech-support-email:focus,
.cab-support-pill a.tma-tech-support-email:active {
    color: #0e7490 !important;
    background-color: #ffffff !important;
    border: 0 !important;
    border-bottom: 0 !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    --bs-link-color-rgb: 14, 116, 144;
    --bs-link-hover-color-rgb: 14, 116, 144;
    --bs-link-opacity: 1;
}
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:hover,
.tma-tech-support--pill:not(.tma-tech-support--portal) a.tma-tech-support-email:focus,
.cab-support-pill a.tma-tech-support-email:hover,
.cab-support-pill a.tma-tech-support-email:focus {
    color: #0e7490 !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
}
.tma-tech-support--pill a.tma-tech-support-email i,
.cab-support-pill a.tma-tech-support-email i {
    margin-right: 0.3rem;
    font-size: 0.8em;
}

/* Portal (dark landing topbar): light cyan email, never #0f172a */
.tma-tech-support--portal {
    background: rgba(4, 12, 24, 0.72) !important;
    border: 1px solid rgba(148, 176, 214, 0.14) !important;
    color: #9fb2cc !important;
    box-shadow: none !important;
}
.tma-tech-support--portal:hover {
    background: rgba(4, 12, 24, 0.72) !important;
    box-shadow: none !important;
}
.tma-tech-support--portal .tma-tech-support-email,
.tma-tech-support--portal a.tma-tech-support-email,
.tma-tech-support--portal a.tma-tech-support-email:link,
.tma-tech-support--portal a.tma-tech-support-email:visited,
.tma-tech-support--portal a.tma-tech-support-email:hover,
.tma-tech-support--portal a.tma-tech-support-email:focus,
.tma-tech-support--portal a.tma-tech-support-email:active,
.tma-tech-support--portal a:hover {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none !important;
    border-bottom-color: transparent !important;
}
.tma-tech-support--portal .tma-tech-support-label {
    color: #9fb2cc !important;
}
.tma-tech-support--portal i {
    color: #38bdf8 !important;
}

.tma-tech-support--pill:hover:not(.tma-tech-support--portal),
.cab-support-pill:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(18, 50, 74, 0.22);
}

.tma-header-actions .tma-tech-support--pill {
    border-color: rgba(29, 106, 138, 0.28);
    background: #ffffff;
}

@media (max-width: 575.98px) {
    .tma-tech-support--pill .tma-tech-support-label,
    .cab-support-pill .cab-support-pill-label,
    .cab-support-pill .tma-tech-support-label {
        display: none;
    }
}

.tma-tech-support-label {
    margin-right: 0.25rem;
}

.text-white-50.tma-tech-support,
.tma-tech-support.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}
.text-white-50.tma-tech-support a,
.tma-tech-support.text-white-50 a {
    color: rgba(255, 255, 255, 0.75);
}
.text-white-50.tma-tech-support a:hover,
.tma-tech-support.text-white-50 a:hover {
    color: #fff;
}

[data-theme="dark"] .tma-tech-support:not(.tma-tech-support--pill),
[data-bs-theme="dark"] .tma-tech-support:not(.tma-tech-support--pill) {
    color: #94a3b8;
}
[data-theme="dark"] .tma-tech-support:not(.tma-tech-support--pill) a:hover,
[data-bs-theme="dark"] .tma-tech-support:not(.tma-tech-support--pill) a:hover {
    color: #e2e8f0;
}
