/* Business card component - identity, quick actions, details, socials, save. */
.bc { display: grid; gap: 14px; }
.bc-top { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: calc(var(--e-radius) - 2px); background: var(--e-hero); border: 1px solid color-mix(in srgb, var(--e-accent) 12%, transparent); }
.bc-logo { flex: none; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--e-bg); box-shadow: 0 1px 2px rgba(16, 22, 43, .08), 0 4px 14px rgba(16, 22, 43, .08); }
.bc-logo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bc-initials { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 1.45em; letter-spacing: -.02em; color: #fff; background: linear-gradient(135deg, var(--e-accent) 0%, var(--e-accent-2) 100%); }
html.e-custom-accent .bc-initials { background: var(--e-accent); color: var(--e-accent-ink); }
.bc-id { min-width: 0; display: grid; gap: 2px; }
.bc-name { margin: 0; font-size: 1.28em; line-height: 1.2; font-weight: 750; letter-spacing: -.015em; color: var(--e-ink); overflow-wrap: anywhere; }
.bc-tag { margin: 0; font-size: .92em; color: var(--e-ink-2); overflow-wrap: anywhere; }
.bc-hours-inline { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: .84em; color: var(--e-ink-3); }
.bc-hours-inline .bc-i { width: 15px; height: 15px; }

.bc-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bc-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.bc-act {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 66px; padding: 10px 6px;
    border-radius: 14px; border: 1px solid var(--e-line); background: var(--e-surface); color: var(--e-ink); text-decoration: none;
    font-size: .86em; font-weight: 650; transition: background-color .15s var(--e-ease), border-color .15s var(--e-ease), transform .15s var(--e-ease);
}
.bc-act .bc-i { color: var(--e-accent-fg); width: 22px; height: 22px; }
.bc-act:hover { border-color: color-mix(in srgb, var(--e-accent) 45%, var(--e-line)); background: var(--e-surface-2); transform: translateY(-1px); }
.bc-act-main { background: linear-gradient(135deg, var(--e-accent) 0%, var(--e-accent-2) 100%); border-color: transparent; color: var(--e-accent-ink); }
.bc-act-main .bc-i { color: inherit; }
.bc-act-main:hover { background: linear-gradient(135deg, var(--e-accent) 0%, var(--e-accent-2) 100%); filter: brightness(1.05); }
html.e-custom-accent .bc-act-main, html.e-custom-accent .bc-act-main:hover { background: var(--e-accent); }

.bc-info { margin: 0; display: grid; gap: 2px; }
.bc-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--e-line); }
.bc-row:last-child { border-bottom: 0; }
.bc-row > .bc-i { color: var(--e-ink-3); margin-top: 1px; }
.bc-row dd { margin: 0; min-width: 0; display: grid; gap: 2px; font-size: .94em; color: var(--e-ink); overflow-wrap: anywhere; }
.bc-row dd a { color: var(--e-ink); text-decoration: none; font-weight: 600; }
.bc-row dd a:hover { color: var(--e-accent-fg); text-decoration: underline; text-underline-offset: 2px; }
.bc-adr { font-style: normal; display: grid; }
.bc-row dd a.bc-alt { font-size: .86em; font-weight: 600; color: var(--e-accent-fg); }

.bc-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bc-social a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none;
    background: var(--e-surface); border: 1px solid var(--e-line); color: var(--e-ink-2); transition: background-color .15s var(--e-ease), color .15s var(--e-ease);
}
.bc-social a:hover { background: var(--e-accent); border-color: var(--e-accent); color: var(--e-accent-ink); }
.bc-glyph { font-size: .8em; font-weight: 800; letter-spacing: -.02em; }
.bc-social .bc-i { width: 18px; height: 18px; }

.bc-cta { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 46px; font-size: .98em; border-radius: 14px; }
.bc-cta .bc-i { width: 18px; height: 18px; }

.bc-qr { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px dashed var(--e-line-strong); }
.bc-qr-code { flex: none; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #fff; }
.bc-qr-code svg, .bc-qr-code canvas { display: block; width: 100%; height: 100%; }
.bc-qr p { margin: 0; display: grid; font-size: .86em; color: var(--e-ink-2); min-width: 0; overflow-wrap: anywhere; }
.bc-qr strong { color: var(--e-ink); font-size: 1.05em; }

.bc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bc-tool {
    display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .84em; font-weight: 650; cursor: pointer; min-height: 40px;
    padding: 6px 13px; border-radius: 999px; border: 1px solid var(--e-line-strong); background: var(--e-bg); color: var(--e-ink);
}
.bc-tool .bc-i { width: 16px; height: 16px; }
.bc-tool:hover { border-color: var(--e-accent); color: var(--e-accent-fg); }
.bc-status { flex-basis: 100%; }
.bc-status:empty { display: none; }
.bc-issues { margin: 0; padding-left: 28px; }

/* compact row layout: identity and actions side by side on wide frames */
.bc.bc-l-row { gap: 12px; }
.bc.bc-l-row .bc-top { padding: 2px 0; background: transparent; border: 0; }
.bc.bc-l-row .bc-logo { width: 56px; height: 56px; border-radius: 16px; }
.bc.bc-l-row .bc-name { font-size: 1.14em; }
.bc.bc-l-row .bc-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 420px) { .bc.bc-l-row .bc-acts { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); } }
.bc.bc-l-row .bc-act { flex-direction: row; min-height: 44px; border-radius: 999px; }
.bc.bc-l-row .bc-act .bc-i { width: 18px; height: 18px; }
@media (min-width: 620px) {
    .bc.bc-l-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
    .bc.bc-l-row > * { grid-column: 1 / -1; }
    .bc.bc-l-row > .bc-top { grid-column: 1; }
    .bc.bc-l-row > .bc-acts { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; }
    .bc.bc-l-row > .bc-social { grid-column: 1; }
    .bc.bc-l-row > .bc-cta { grid-column: 2; padding-left: 22px; padding-right: 22px; }
    .bc.bc-l-row .bc-act { padding: 8px 14px; }
}

html[data-compact="1"] .bc { gap: 10px; }
html[data-compact="1"] .bc-top { padding: 10px; }
html[data-compact="1"] .bc-act { min-height: 56px; }
@media (max-width: 340px) {
    .bc-top { padding: 12px; gap: 12px; }
    .bc-logo { width: 54px; height: 54px; border-radius: 15px; }
    .bc-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
