/* Team email contacts: local SVG, complete addresses, existing mailto targets. */
a.cti-email,
a.cti-email * { box-sizing: border-box; min-width: 0; }
a.cti-email {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #8b876b;
    border-radius: 9px;
    background: linear-gradient(120deg, #1b333b, #142830);
    color: #f3f0e5;
    font: 600 13px/1.5 Arial, Helvetica, sans-serif;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    touch-action: manipulation;
    box-shadow: inset 0 1px #fff7df0a;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.cti-email .cti-email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #958562;
    border-radius: 10px;
    background: #334047;
    color: #eed197;
}
a.cti-email .cti-email-icon svg {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    color: inherit;
}
a.cti-email .cti-email-copy { display: block; flex: 1 1 auto; min-width: 0; }
a.cti-email .cti-email-title { display: block; color: #f3f0e5; font: inherit; overflow-wrap: anywhere; }
a.cti-email .cti-email-address {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    color: #d8d1bd;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .01em;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    user-select: text;
}
a.cti-email .cti-email-arrow { display: inline-flex; flex: 0 0 auto; color: #dfc99f; }
a.cti-email .cti-email-arrow svg { display: block; width: 18px; height: 18px; }
a.cti-email--card,
a.cti-email--profile { width: 100%; }
.cti-as-profile .as-contact > .as-contact-links { min-width: 0; max-width: 100%; }
.cti-as-profile .as-contact-links > a.cti-email { min-width: 0; width: 100%; }
.cti-signature .rf-person .ltm-card-actions > a.cti-email--compact,
a.cti-email--compact {
    gap: 7px;
    justify-content: center;
    min-height: 48px;
    padding: 10px;
    font-size: 12px;
    white-space: normal;
}
a.cti-email--compact .cti-email-icon { flex-basis: 22px; width: 22px; height: 22px; border: 0; border-radius: 0; background: transparent; }
a.cti-email--compact .cti-email-copy { flex: 0 1 auto; }
a.cti-email--compact .cti-email-arrow { display: none; }
a.cti-email--inline {
    width: 100%;
    min-height: 48px;
    gap: 9px;
    padding: 7px 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
}
a.cti-email--inline .cti-email-icon { flex-basis: 22px; width: 22px; height: 22px; border: 0; border-radius: 0; background: transparent; }
a.cti-email--inline .cti-email-address { margin-top: 0; }
a.cti-email--inline .cti-email-arrow { display: none; }
/* The existing email-copy script adds this badge after preparing each link. */
a.cti-email .cti-copy-badge {
    position: absolute;
    left: auto;
    right: 8px;
    bottom: calc(100% + 6px);
    max-width: calc(100% - 16px);
    border: 1px solid #a18b60;
    border-radius: 7px;
    padding: 5px 9px;
    background: #142129;
    color: #f2dca9;
    font: 600 11px/1.5 Arial, Helvetica, sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 5;
}
a.cti-email.is-copied .cti-copy-badge { opacity: 1; visibility: visible; }
a.cti-email:focus-visible { outline: 3px solid #f2d59e !important; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
    a.cti-email:hover {
        border-color: #d6bd89;
        background: #293f44;
        color: #fff9e9;
        box-shadow: 0 5px 16px #0003;
        text-decoration: none;
    }
    a.cti-email--inline:hover { background: transparent; border-color: transparent; box-shadow: none; }
    a.cti-email--inline:hover .cti-email-address { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 420px) {
    a.cti-email--card,
    a.cti-email--profile { gap: 9px; padding: 11px; }
    a.cti-email--card .cti-email-icon,
    a.cti-email--profile .cti-email-icon { flex-basis: 30px; width: 30px; height: 30px; }
    a.cti-email--card .cti-email-arrow,
    a.cti-email--profile .cti-email-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    a.cti-email { transition: none; }
}
@media (forced-colors: active) {
    a.cti-email { color: LinkText; background: Canvas; border-color: ButtonText; box-shadow: none; }
    a.cti-email .cti-email-icon { color: LinkText; background: Canvas; border-color: ButtonText; }
    a.cti-email .cti-email-title,
    a.cti-email .cti-email-address,
    a.cti-email .cti-email-arrow { color: LinkText; }
    a.cti-email .cti-copy-badge { color: CanvasText; background: Canvas; border-color: ButtonText; }
    a.cti-email:focus-visible { outline-color: Highlight !important; }
}
