/* Hosted QR page (business card page). Drawn by assets/vv-qr-page-render.js
   on /p (p.html) and inside the QR Studio phone preview, so both look the
   same. Every class is vvpg-. Colours come from the page's own design
   (--vvpg-primary / --vvpg-secondary, set inline by the renderer); the
   neutrals are fixed so a card looks the same in the member portal's day
   and night themes. */

.vvpg {
    --vvpg-bg: #f4f6f8; --vvpg-surface: #ffffff; --vvpg-border: #e5e8ec; --vvpg-text: #0f1c2e; --vvpg-muted: var(--vv-muted);
    font-family: var(--vvpg-font, 'Inter', system-ui, sans-serif);
    color: var(--vvpg-text); background: var(--vvpg-bg);
    min-height: 100%; margin: 0; display: flex; flex-direction: column;
    line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
.vvpg *, .vvpg *::before, .vvpg *::after { box-sizing: border-box; }
.vvpg a { color: inherit; }
.vvpg :focus-visible { outline: 2px solid var(--vvpg-secondary); outline-offset: 2px; }
.vvpg-ic { width: 20px; height: 20px; flex: 0 0 auto; }

/* Header: gradient from the two design colours */
.vvpg-head {
    background: linear-gradient(160deg, var(--vvpg-primary) 0%, var(--vvpg-secondary) 100%);
    color: var(--vvpg-ink, #fff); text-align: center; padding: 2.25rem 1.25rem 1.5rem;
    border-radius: 0 0 22px 22px;
}
.vvpg-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto .9rem; border: 3px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .15); }
.vvpg-avatar--empty { display: grid; place-items: center; font-size: 2.25rem; font-weight: 700; letter-spacing: .02em; }
.vvpg-name { font-size: 1.6rem; line-height: 1.2; font-weight: 700; margin: 0; }
.vvpg-headline { margin: .4rem 0 0; font-size: .95rem; opacity: .9; }
.vvpg-quickrow { display: flex; justify-content: center; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.vvpg-quick {
    display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 4.6rem;
    padding: .6rem .5rem; border-radius: 12px; text-decoration: none; font-size: .78rem; font-weight: 600;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
    transition: background-color .2s ease-out, transform .2s ease-out;
}
.vvpg-quick:hover { background: rgba(255, 255, 255, .26); }
.vvpg-quick:active { transform: translateY(1px); }

.vvpg-body { padding: 1rem 1rem 0; display: grid; gap: .8rem; width: 100%; max-width: 520px; margin: 0 auto; }
.vvpg-add {
    appearance: none; display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
    padding: .85rem 1rem; border: 0; border-radius: 12px; cursor: pointer; font: 700 .95rem/1.2 var(--vvpg-font, inherit);
    background: var(--vvpg-secondary); color: #fff; transition: filter .2s ease-out, transform .2s ease-out;
}
.vvpg-add:hover { filter: brightness(.95); }
.vvpg-add:active { transform: translateY(1px); }
.vvpg-card { background: var(--vvpg-surface); border: 1px solid var(--vvpg-border); border-radius: 14px; padding: .35rem .9rem; }
.vvpg-list { list-style: none; margin: 0; padding: 0; }
.vvpg-list li + li { border-top: 1px solid var(--vvpg-border); }
.vvpg-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; text-decoration: none; min-width: 0; }
.vvpg-row .vvpg-ic { color: var(--vvpg-secondary); }
.vvpg-row span { min-width: 0; font-size: .92rem; font-weight: 600; }
.vvpg-row small { display: block; font-size: .72rem; font-weight: 500; color: var(--vvpg-muted); }
.vvpg-ic--brand { width: 22px; height: 22px; }
.vvpg-co, .vvpg-loc { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0 .4rem; }
.vvpg-co .vvpg-ic, .vvpg-loc .vvpg-ic { color: var(--vvpg-secondary); margin-top: .1rem; }
.vvpg-co-name { margin: 0; font-weight: 700; }
.vvpg-co-title { margin: .1rem 0 0; color: var(--vvpg-muted); font-size: .88rem; }
.vvpg-about { margin: .2rem 0 .7rem; font-size: .9rem; white-space: normal; }
.vvpg-loc address { font-style: normal; font-size: .92rem; }
.vvpg-maps { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .7rem 2.05rem; font-size: .85rem; font-weight: 700; color: var(--vvpg-secondary) !important; text-decoration: none; }
.vvpg-maps .vvpg-ic { width: 16px; height: 16px; }
.vvpg-maps:hover { text-decoration: underline; }

.vvpg-foot { margin-top: auto; padding: 1.5rem 1rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; font-size: .75rem; color: var(--vvpg-muted); }
.vvpg-foot a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; color: var(--vvpg-muted); }
.vvpg-foot a:hover { text-decoration: underline; }
.vvpg-foot .vvpg-ic { width: 13px; height: 13px; }

/* Entrance: sections rise in once. Off for reduced motion and in previews. */
@media (prefers-reduced-motion: no-preference) {
    .vvpg:not([data-preview]) .vvpg-body > * { animation: vvpg-rise .35s ease-out both; }
    .vvpg:not([data-preview]) .vvpg-body > *:nth-child(2) { animation-delay: .05s; }
    .vvpg:not([data-preview]) .vvpg-body > *:nth-child(3) { animation-delay: .1s; }
    .vvpg:not([data-preview]) .vvpg-body > *:nth-child(n+4) { animation-delay: .15s; }
}
@keyframes vvpg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Phone mockup used by the editor and the free generator. */
.vvpg-phone { width: 100%; max-width: 320px; margin: 0 auto; border: 1px solid var(--border, #e5e8ec); border-radius: 36px; padding: 10px; background: var(--surface, #fff); }
.vvpg-phone-screen { border-radius: 28px; overflow: hidden; height: 600px; overflow-y: auto; background: #f4f6f8; position: relative; overscroll-behavior: contain; }
.vvpg-phone-screen .vvpg { min-height: 100%; }
.vvpg-phone-screen .vvpg-name { font-size: 1.35rem; }
.vvpg-phone-notch { width: 34%; height: 6px; border-radius: 6px; background: var(--border, #e5e8ec); margin: 2px auto 8px; }
@media (max-height: 720px) { .vvpg-phone-screen { height: 480px; } }

/* p.html states: loading, password, not available, welcome screen */
html.vvpg-doc, html.vvpg-doc body { margin: 0; min-height: 100%; background: #f4f6f8; }
.vvpg-root { min-height: 100vh; display: flex; flex-direction: column; }
.vvpg-root > .vvpg { flex: 1 0 auto; max-width: 560px; width: 100%; margin: 0 auto; }
.vvpg-state { flex: 1 0 auto; display: grid; place-items: center; padding: 2rem 1.25rem; font-family: 'Inter', system-ui, sans-serif; color: #0f1c2e; text-align: center; }
.vvpg-state-box { width: 100%; max-width: 360px; background: #fff; border: 1px solid #e5e8ec; border-radius: 16px; padding: 1.6rem 1.4rem; }
.vvpg-state h1 { font-size: 1.2rem; margin: .6rem 0 .4rem; }
.vvpg-state p { color: var(--vv-muted); font-size: .9rem; margin: 0 0 1rem; }
.vvpg-state .vvpg-ic { width: 34px; height: 34px; color: var(--vv-blue); }
.vvpg-state a.vvpg-btn, .vvpg-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; padding: .75rem 1rem; border: 0; border-radius: 8px; background: #0A2540; color: #fff; font: 700 .9rem/1.2 'Inter', system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: filter .2s ease-out; }
.vvpg-btn:hover { filter: brightness(1.1); }
.vvpg-btn:disabled { opacity: .4; cursor: not-allowed; }
.vvpg-field { text-align: left; margin: 0 0 .8rem; }
.vvpg-field label { display: block; font-size: .8rem; font-weight: 600; margin: 0 0 .3rem; }
.vvpg-field input { width: 100%; box-sizing: border-box; font: 400 1rem/1.4 'Inter', system-ui, sans-serif; padding: .65rem .75rem; border: 1px solid #c9d1da; border-radius: 10px; }
.vvpg-field input:focus-visible { outline: 2px solid var(--vv-blue); outline-offset: 1px; }
.vvpg-err { color: #b42318; font-size: .82rem; font-weight: 600; margin: .4rem 0 0; min-height: 1.1em; }
.vvpg-skel { width: 100%; max-width: 560px; margin: 0 auto; }
.vvpg-skel-head { height: 260px; border-radius: 0 0 22px 22px; background: linear-gradient(160deg, #dfe4ea, #eef1f4); }
.vvpg-skel-row { height: 58px; margin: 1rem; border-radius: 14px; background: #e9edf1; }
.vvpg-welcome { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #0A2540; transition: opacity .3s ease-out; }
.vvpg-welcome img { max-width: 78vw; max-height: 62vh; object-fit: contain; border-radius: 12px; }
.vvpg-welcome.is-out { opacity: 0; pointer-events: none; }
.vvpg-skip { position: absolute; top: 1rem; right: 1rem; appearance: none; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; border-radius: 999px; padding: .4rem .9rem; font: 600 .8rem/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.vvpg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .vvpg-welcome, .vvpg-btn, .vvpg-quick, .vvpg-add { transition: none; } }
