/* Hello There — public card styles */

.hello-there-card,
.htc {
    background: var(--htc-bg, #1a1a2e);
    color: var(--htc-fg, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Banner */

.htc-banner {
    aspect-ratio: 21 / 8;
    align-self: stretch;
    border-radius: 16px 16px 0 0;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}

/* Banner slogan */

.htc-slogan {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
}

/* Avatar / logo overlap row */

.htc-overlap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    padding: 0 1.25rem;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.htc-overlap--flat {
    margin-top: 0;
    align-items: center;
    padding-top: 1.25rem;
}

/* Default slot positions */
.htc-overlap > .htc-avatar,
.htc-overlap > .htc-avatar--initials {
    grid-column: 1;
    justify-self: start;
}

.htc-overlap > .htc-logo {
    grid-column: 3;
    justify-self: end;
}

/* Centered avatar */
.htc-overlap--avatar-center > .htc-avatar,
.htc-overlap--avatar-center > .htc-avatar--initials {
    grid-column: 2;
    justify-self: center;
}

/* Centered logo */
.htc-overlap--logo-center > .htc-logo {
    grid-column: 2;
    justify-self: center;
}

/* Avatar */

.htc-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--htc-bg, #1a1a2e);
    flex-shrink: 0;
}

.htc-avatar--square {
    border-radius: 12px;
}

.htc-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--htc-accent, #e94560);
    color: var(--htc-bg, #1a1a2e);
}

/* Company logo */

.htc-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.htc-logo--circle {
    border-radius: 50%;
}

.htc-logo--wide {
    width: 120px;
    height: 44px;
    border-radius: 8px;
}

/* Card body */

.htc-body {
    padding: 0.75rem 1.25rem 1.5rem;
}

.htc-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    line-height: 1.2;
    color: var(--htc-fg, #ffffff);
}

.htc-jobtitle {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: var(--htc-accent, #e94560);
}

.htc-company {
    font-size: 0.8rem;
    margin: 0 0 1rem;
    opacity: 0.6;
    color: var(--htc-fg, #ffffff);
}

/* Contacts */

.htc-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.htc-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--htc-fg, #ffffff);
    transition: opacity 0.15s ease;
}

.htc-contact:hover {
    opacity: 0.7;
}

.htc-contact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.65;
}

.htc-contact__value {
    flex: 1;
    word-break: break-all;
}

.htc-contact__label {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 0.2rem;
    flex-shrink: 0;
}

/* Social row */

.htc-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.75rem;
}

.htc-social__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.htc-social__icon:hover {
    transform: scale(1.12);
    opacity: 0.85;
}

.htc-social__icon svg {
    width: 18px;
    height: 18px;
}

/* Disclosure (twirl-down) */

.htc-disclosure {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0;
}

.htc-disclosure__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.75;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 0.5rem;
}

.htc-disclosure__summary::-webkit-details-marker {
    display: none;
}

.htc-disclosure__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.htc-disclosure[open] .htc-disclosure__chevron {
    transform: rotate(180deg);
}

.htc-disclosure__summary:hover {
    opacity: 1;
}

.htc-disclosure__body {
    padding-bottom: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.6;
    opacity: 0.8;
    color: var(--htc-fg, #ffffff);
}

.htc-disclosure__body p {
    margin: 0 0 0.5rem;
}

.htc-disclosure__body p:last-child {
    margin-bottom: 0;
}

/* Add to Apple Wallet button */

.htc-wallet {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: center;
}

.htc-wallet__btn {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.15s ease;
}

.htc-wallet__btn:hover {
    opacity: 0.85;
}

/* Save Contact button */

.htc-vcf {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.htc-vcf__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--htc-accent, #e94560);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: opacity 0.15s ease;
}

.htc-vcf__btn:hover {
    opacity: 0.85;
}

.htc-vcf__btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* QR code */

.htc-qr {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.htc-qr a {
    display: block;
    line-height: 0;
}

.htc-qr img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    display: block;
}
