/* Personal QR contact card: the card component (public page and account preview). */
.card-page { box-sizing: border-box; min-height: calc(100vh - var(--top-h, 64px) - 220px); padding: 28px 16px 48px; background: var(--panel, #eef3f9); display: flex; justify-content: center; align-items: flex-start; }
.card-page #card-view { width: 100%; max-width: 440px; }

.dkc { box-sizing: border-box; width: 100%; max-width: 440px; margin: 0 auto; overflow: hidden; border: 1px solid var(--edge, #dfe8f2); border-radius: 22px; background: #fff; color: var(--ink, #10233c); box-shadow: 0 18px 44px rgb(6 39 79 / 12%); }
.dkc *, .dkc *::before, .dkc *::after { box-sizing: border-box; }
.dkc-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 22px 22px; text-align: center; background: linear-gradient(180deg, var(--navy, #06274f) 0, var(--navy, #06274f) 62px, #fff 62px); }
.dkc-avatar { width: 104px; height: 104px; margin-bottom: 8px; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: var(--panel, #eef3f9); box-shadow: 0 6px 18px rgb(6 39 79 / 18%); display: grid; place-items: center; flex: none; }
.dkc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dkc-avatar.is-initials { background: var(--gold, #f6bf18); color: var(--navy, #06274f); font-size: 34px; font-weight: 800; letter-spacing: .02em; }
.dkc-name { margin: 6px 0 0; max-width: 100%; color: var(--navy, #06274f); font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.dkc-business { margin: 2px 0 0; color: var(--navy, #06274f); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.dkc-headline { margin: 2px 0 0; color: #3b4f67; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.dkc-location, .dkc-chamber { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: 14.5px; }
.dkc-location { color: #475569; }
.dkc-chamber { padding: 4px 12px 4px 9px; border-radius: 999px; background: #fff4cc; color: #5c4300; font-weight: 750; }
.dkc-svg { width: 22px; height: 22px; flex: none; }
.dkc-svg-sm { width: 16px; height: 16px; }

.dkc-rows { margin: 0; padding: 0 16px; list-style: none; display: grid; gap: 10px; }
.dkc-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--edge, #dfe8f2); border-radius: 14px; background: var(--panel, #eef3f9); color: var(--navy, #06274f); text-decoration: none; }
a.dkc-row { transition: border-color .15s, background-color .15s, transform .15s; }
a.dkc-row:hover { border-color: var(--gold, #f6bf18); background: #fff9e6; }
a.dkc-row:active { transform: scale(.99); }
.dkc-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--navy, #06274f); color: #fff; }
.dkc-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.dkc-label { color: #475569; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dkc-val { color: var(--navy, #06274f); font-size: 16.5px; font-weight: 700; overflow-wrap: anywhere; word-break: break-word; }
.dkc-norows { margin: 0 16px; padding: 14px; border: 1px dashed #b6c4d6; border-radius: 12px; color: #475569; font-size: 14.5px; text-align: center; }

.dkc-actions { display: grid; gap: 12px; padding: 18px 16px 24px; justify-items: stretch; text-align: center; }
.dkc-save { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 14px; background: var(--gold, #f6bf18); color: var(--navy-deep, #031a37); font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgb(246 191 24 / 30%); transition: background-color .15s, box-shadow .15s; }
a.dkc-save:hover { background: #ffd24b; box-shadow: 0 10px 24px rgb(246 191 24 / 40%); }
.dkc-save.is-inert { cursor: default; opacity: .9; }
.dkc-join { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; color: var(--navy, #06274f); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dkc-join:hover { color: var(--blue, #0759a8); }

.dkc a:focus-visible, .dkc-state a:focus-visible, .dkc-retry:focus-visible { outline: 3px solid var(--navy, #06274f); outline-offset: 3px; box-shadow: 0 0 0 6px var(--gold, #f6bf18); }

.dkc-state { box-sizing: border-box; padding: 34px 24px; border: 1px solid var(--edge, #dfe8f2); border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 18px 44px rgb(6 39 79 / 10%); }
.dkc-state h1 { margin: 0 0 8px; color: var(--navy, #06274f); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.dkc-state p { margin: 0 0 18px; color: #3b4f67; font-size: 16px; line-height: 1.5; }
.dkc-retry { min-height: 48px; margin: 0 0 8px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--navy, #06274f); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.dkc-loading { margin: 40px 0; color: #475569; text-align: center; }

/* Keep the public card calm, readable and usable on small screens. */
.dkc { box-shadow: 0 14px 36px rgb(6 39 79 / 11%); }
.dkc-row { min-width: 0; }
.dkc-txt { overflow-wrap: anywhere; }
.dkc a.dkc-row:focus-visible,
.dkc .dkc-save:focus-visible,
.dkc .dkc-join:focus-visible,
.dkc-retry:focus-visible { outline: 3px solid var(--navy, #06274f); outline-offset: 3px; box-shadow: 0 0 0 6px var(--gold, #f6bf18); }
.dkc-loading { min-height: 120px; display: grid; place-items: center; padding: 20px; border: 1px dashed var(--edge, #dfe8f2); border-radius: 16px; background: #fff; }

/* The account preview sits inside a panel: flatter, no big shadow. */
.dkc.is-preview { max-width: 380px; box-shadow: 0 8px 22px rgb(6 39 79 / 10%); }
.dkc.is-preview .dkc-name { font-size: 22px; }

@media (max-width: 380px) {
  .card-page { padding: 16px 10px 36px; }
  .dkc-top { padding: 26px 14px 18px; }
  .dkc-rows { padding: 0 10px; }
  .dkc-actions { padding-inline: 10px; }
  .dkc-name { font-size: 23px; }
  .dkc-row { gap: 10px; padding-inline: 10px; }
  .dkc-val { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .dkc *, .dkc-retry { transition: none !important; }
  a.dkc-row:active { transform: none; }
}

/* The public card page has no sidebar, so the footer must not reserve the sidebar's width (account.html also loads this file, hence the scope). */
.card-body .site-footer { margin-left: 0; }

.dkc-sector { margin: 6px 0 0; padding: 3px 12px; border-radius: 999px; background: #eef3f9; color: #26405e; font-size: 13.5px; font-weight: 700; }
.dkc-intro { margin: 0 16px 14px; display: grid; gap: 10px; }
.dkc-intro div { padding: 10px 14px; border-radius: 14px; background: var(--panel, #eef3f9); text-align: left; }
.dkc-intro dt { color: #475569; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dkc-intro dd { margin: 2px 0 0; color: var(--navy, #06274f); font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
