.acat-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.35rem;max-width:100%}
.acat-contact-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #008ab0;border-radius:4px;padding:.5rem .8rem;color:#006d8c;background:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.acat-contact-link[hidden]{display:none!important}
.acat-contact-link:focus-visible,.acat-contact-revealed:focus-visible{outline:3px solid #008ab0;outline-offset:3px}
.acat-contact-link[aria-disabled=true]{opacity:.65;cursor:wait}
.acat-contact-status{font-size:.85em;line-height:1.35;max-width:24rem}
.acat-contact-status:empty{display:none}
.acat-contact-revealed{overflow-wrap:anywhere;color:#006d8c}


/* ACAT directory controls: consistent corners without changing cards or avatars. */
.ddir button,
.ddir .ddir-input-wrap,
.ddir .ddir-input-wrap input,
.ddir .ddir-page,
.ddir .ddir-action,
.ddmd-search-form input[type="search"],
.ddmd-search-form button,
.ddmd-button,
.ddmd-member-button,
.ddmd-pagination a,
.pmpro_member_directory_search input,
.pmpro_member_directory_search button,
.acat-member-profile #main-content .et_pb_button,
.acat-member-directory #main-content .et_pb_button {
    border-radius: 4px !important;
}

.ddmd-search-form input[type="search"],
.ddmd-search-form .ddmd-search-submit,
.pmpro_member_directory_search input[type="search"],
.pmpro_member_directory_search input[type="submit"] {
    box-sizing: border-box;
    min-height: 44px;
    font-size: 14px;
    line-height: 20px;
}

/* Full-width text actions retain the original compact social-link row. */
.ddir .ddir-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    align-items: start;
    gap: 8px;
}
.ddir .ddir-actions .acat-contact {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

/* Important declarations override saved Divi inline appearance, not visibility. */
.ddir .ddir-actions a.ddir-action:not(.ddir-action-icon),
.acat-member-profile .ddmd-member-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    width: 100%;
    max-width: 100%;
    height: 44px !important;
    min-height: 44px;
    padding: 0 12px !important;
    border: 1px solid #00728f !important;
    border-radius: 4px !important;
    background: #00728f !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    opacity: 1;
    transform: none;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.acat-member-profile .ddmd-member-button {
    width: 192px !important;
}
.acat-member-profile .acat-contact {
    width: 192px;
    max-width: 100%;
    vertical-align: top;
    margin: 0 8px 8px 0;
}
.ddir .ddir-actions a.ddir-action:not(.ddir-action-icon):hover,
.acat-member-profile .ddmd-member-button:hover {
    background: #00566d !important;
    border-color: #00566d !important;
    color: #fff !important;
    opacity: 1;
    transform: none;
}
.ddir .ddir-actions a.ddir-action:focus-visible,
.acat-member-profile .ddmd-member-button:focus-visible,
.acat-member-profile .ddmd-icon-link:focus-visible,
.ddmd-search-form input:focus-visible,
.ddmd-search-form button:focus-visible {
    outline: 3px solid #00566d !important;
    outline-offset: 3px;
}
.ddir .ddir-actions a[aria-disabled="true"],
.acat-member-profile .acat-contact-link[aria-disabled="true"] {
    opacity: .65;
    cursor: wait;
}
.ddir .ddir-actions a[hidden],
.acat-member-profile .acat-contact-link[hidden] {
    display: none !important;
}
.ddir .ddir-actions svg,
.acat-member-profile .ddmd-member-button .dashicons,
.acat-member-profile .ddmd-member-button img {
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    line-height: 16px;
    color: inherit !important;
    fill: currentColor !important;
}
.acat-contact-status {
    width: 100%;
    overflow-wrap: anywhere;
    color: #334652;
}
/* Restore the existing outlined profile contact controls. */
.acat-member-profile .acat-contact .ddmd-member-button {
    background: #fff !important;
    border-color: #008ab0 !important;
    color: #006d8c !important;
}
.acat-member-profile .acat-contact .ddmd-member-button:hover {
    background: #eef8fb !important;
    border-color: #006d8c !important;
    color: #006d8c !important;
}
/* Biography paragraphs inherit the profile's existing typography. */
.ddmd-meta-value-biography p { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
    .ddir .ddir-actions a.ddir-action,
    .acat-member-profile .ddmd-member-button { transition: none; }
}

/* Profile feedback spans the action row instead of one button's width. */
.acat-member-profile .acat-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acat-member-profile .acat-contact-actions .acat-contact { margin: 0; }
.acat-member-profile .acat-contact-details {
    width: 100%; max-width: 100%; box-sizing: border-box;
    margin: 16px 0 24px; padding: 16px 0 0; border-top: 1px solid #d6e3e8;
    text-align: left; text-transform: none !important;
}
.acat-member-profile .acat-contact-details[hidden],
.acat-member-profile .acat-contact-detail-row[hidden] { display: none !important; }
.acat-member-profile .acat-contact-details .acat-contact-details-title {
    margin: 0 0 12px; padding: 0; font: inherit; font-size: 14px; font-weight: 600;
    line-height: 22px; color: #334652; text-transform: none !important;
}
.acat-member-profile .acat-contact-details dl { margin: 0; padding: 0; }
.acat-member-profile .acat-contact-detail-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; margin: 8px 0 0; }
.acat-member-profile .acat-contact-detail-row dt,
.acat-member-profile .acat-contact-detail-row dd { margin: 0; padding: 0; font-size: 14px; line-height: 22px; text-transform: none !important; }
.acat-member-profile .acat-contact-detail-row dt { font-weight: 600; color: #334652; }
.acat-member-profile .acat-contact-detail-row dd { min-width: 0; }
.acat-member-profile .acat-contact-details .acat-contact-status { font-size: 14px; line-height: 22px; text-transform: none !important; }
.acat-member-profile .acat-contact-details .acat-contact-value {
    display: inline; color: #006d8c; font-size: 14px; font-weight: 400; line-height: 22px;
    text-transform: none !important; white-space: normal; overflow-wrap: anywhere;
}
.acat-member-profile .acat-contact-details a.acat-contact-value { text-decoration: underline; text-underline-offset: 3px; }
.acat-member-profile .acat-contact-details .acat-contact-value:focus-visible { outline: 3px solid #00566d; outline-offset: 3px; border-radius: 4px; }
.acat-member-profile .acat-contact-details .acat-contact-announcement {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 480px) {
    .acat-member-profile .acat-contact-detail-row { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 12px; }
}
