/* Digital business card (2026.11.28-d): the public page and the editor's live preview. */
.cp { --r: 22px; background: var(--bg); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.18); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.45; }
.cp [hidden] { display: none !important; }
.cp a { color: inherit; }
.cp-hero { position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 4px; color: var(--on-acc); background: var(--acc); }
.cp-bg-gradient .cp-hero { background: linear-gradient(150deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #000)); }
.cp-bg-pattern .cp-hero { background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 18%, transparent 19%), radial-gradient(circle at 85% 70%, rgba(255,255,255,.14) 0 24%, transparent 25%), repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 10px, transparent 10px 22px), var(--acc); }
.cp-bg-photo .cp-hero { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.7)), var(--bgimg) center / cover; color: #fff; }
.cp-logo { position: absolute; top: 14px; right: 14px; max-width: 92px; max-height: 46px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 10px; padding: 5px 8px; }
.cp-ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.85); background: var(--soft); display: grid; place-items: center; flex: none; margin-bottom: 8px; }
.cp-ph img { width: 100%; height: 100%; object-fit: cover; }
.cp-ph span { font: 800 38px 'Bricolage Grotesque', sans-serif; color: var(--acc); }
.cp h1 { margin: 0; font: 800 26px/1.15 'Bricolage Grotesque', 'DM Sans', sans-serif; }
.cp-job { font-weight: 600; opacity: .92; }
.cp-co { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.cp-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.cp-about { margin: 0; opacity: .88; }
.cp-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; }
.cp-acts a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; background: var(--soft); border-radius: 14px; padding: 11px 4px; font-size: 13px; font-weight: 700; transition: transform .15s; }
.cp-acts a:hover { transform: translateY(-2px); }
.cp-acts a span { font-size: 21px; }
.cp-svc b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); }
.cp-svc ul { margin: 4px 0 0; padding-left: 18px; }
.cp-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 15px; overflow-wrap: anywhere; }
.cp-reg { font-size: 13px; opacity: .7; }
.cp-reg:empty { display: none; }
.cp .wp-pills { justify-content: flex-start; }
.cp-save { display: flex; justify-content: center; background: var(--acc); color: var(--on-acc) !important; text-decoration: none; font-weight: 700; border-radius: 14px; padding: 14px; }
/* centred heroes: bold, split, elegant */
.cp-bold .cp-hero, .cp-split .cp-hero, .cp-elegant .cp-hero { align-items: center; text-align: center; padding-top: 34px; }
.cp-split .cp-hero { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); padding-bottom: 40px; }
.cp-elegant { background: var(--bg); }
.cp-elegant .cp-hero { background: var(--bg) !important; color: var(--ink); border-bottom: 1px solid var(--acc); }
.cp-elegant.cp-bg-photo .cp-hero { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.75)), var(--bgimg) center / cover !important; color: #fff; }
.cp-elegant .cp-ph { border-color: var(--acc); }
.cp-elegant .cp-co { color: var(--acc); opacity: 1; }
.cp-elegant .cp-job { font-style: italic; }
/* left heroes: classic, minimal */
.cp-classic .cp-hero { padding-bottom: 26px; }
.cp-minimal { background: #fff; color: #1d1d1f; border-left: 8px solid var(--acc); }
.cp-minimal .cp-hero { background: #fff !important; color: #1d1d1f; }
.cp-minimal.cp-bg-photo .cp-hero { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.7)), var(--bgimg) center / cover !important; color: #fff; }
.cp-minimal .cp-co { color: var(--acc); opacity: 1; }
.cp-minimal .cp-acts a, .cp-minimal .cp-lines { background: none; }
.cp-minimal .cp-acts a { background: var(--soft); }
/* fonts */
.cp-font-classic h1, .cp-font-classic .cp-co { font-family: Georgia, 'Times New Roman', serif; }
.cp-font-classic h1 { font-weight: 700; }
.cp-font-bold h1 { text-transform: uppercase; letter-spacing: .02em; font-size: 28px; }
.cf.cf-font-classic .cf-name, .cf.cf-font-classic .cf-back-co { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.cf.cf-font-bold .cf-name { text-transform: uppercase; }
.cp .wp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cp .wp-pills a { text-decoration: none; background: var(--soft); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 13px; }
.cp-save.is-float { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
