/* CVPilot membership prompt, consent refresh and premium resume signature system (Nov 2026). */
.cookie-consent-banner:not([hidden]) { display:grid !important; visibility:visible !important; opacity:1 !important; }
.cookie-consent-banner { animation:cvpConsentRise .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cvpConsentRise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }

.member-access-dialog, .resume-preview-zoom-dialog {
  width:min(520px,calc(100vw - 28px)); max-width:520px; max-height:min(90dvh,760px);
  padding:0; border:1px solid #d9dfeb; border-radius:24px; background:#fff; color:#202b40;
  box-shadow:0 28px 90px rgba(16,28,51,.30);
}
.member-access-dialog::backdrop, .resume-preview-zoom-dialog::backdrop { background:rgba(9,16,31,.58); backdrop-filter:blur(6px); }
.member-access-dialog-inner { position:relative; padding:30px; }
.member-access-close { display:grid; place-items:center; width:38px; height:38px; border:1px solid #d8dfeb; border-radius:12px; background:#fff; color:#26354d; font-size:24px; line-height:1; cursor:pointer; }
.member-access-dialog-inner > .member-access-close { position:absolute; top:16px; right:16px; }
.member-access-dialog-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:16px; border:1px solid #dedaff; border-radius:15px; background:#f2f0ff; color:#594dd0; }
.member-access-dialog-icon svg { width:22px; height:22px; }
.member-access-dialog h2 { margin:8px 0; color:#1d2940; font-size:24px; line-height:1.2; font-weight:850; letter-spacing:-.04em; }
.member-access-dialog p { margin:0; color:#526078; font-size:13px; line-height:1.65; }
.member-access-dialog-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.member-access-dialog-actions .btn { min-height:48px; justify-content:center; }
.member-access-dialog-inner > small { display:flex; align-items:center; gap:7px; margin-top:17px; color:#69778d; font-size:10px; line-height:1.5; }
.member-access-dialog-inner > small svg { width:14px; height:14px; color:#21836b; }
html.dark .member-access-dialog, html.dark .resume-preview-zoom-dialog { border-color:#40506a; background:#182438; color:#f2f5fb; }
html.dark .member-access-dialog h2, html.dark .resume-preview-zoom-dialog strong { color:#f5f7fc; }
html.dark .member-access-dialog p, html.dark .member-access-dialog-inner > small, html.dark .resume-preview-zoom-head small { color:#c3cede; }
html.dark .member-access-close { border-color:#4a5870; background:#202e44; color:#edf2fa; }
@media(max-width:560px) { .member-access-dialog-inner { padding:26px 20px 22px; } .member-access-dialog-actions { grid-template-columns:1fr; } }

/* Each catalogue design has its own real-document signature. The combinations are driven by
   its independent layout family, font, accent and stable visual variant. No cartoon decoration. */
.template-document-page { font-family:var(--preview-font,Inter,Arial,sans-serif) !important; color:#253149 !important; }
.template-document-page .tp-sidebar { background:#f3f5f8 !important; border-right:1px solid #dce2eb !important; }
.template-document-page .tp-sidebar-avatar--monogram, .template-document-page .tp-profile-monogram {
  display:grid; place-items:center; flex:none; border:1px solid color-mix(in srgb,var(--tone) 30%,#dce2eb);
  background:color-mix(in srgb,var(--tone) 9%,#fff); color:var(--tone); font:700 12px/1 Georgia,serif; letter-spacing:.04em;
}
.template-document-page .tp-sidebar-avatar--monogram { width:54px; height:54px; margin:0 auto 13px; border-radius:5px; }
.template-document-page .tp-profile-monogram { width:36px; height:42px; border-radius:3px; font-size:11px; }
.template-document-page .tp-sidebar-education { display:none !important; }
.template-document-page .tp-main { min-width:0; }
.template-document-page .tp-resume-heading { border-bottom:1px solid #dce2eb; padding-bottom:10px; }
.template-document-page .tp-identity strong { font-family:var(--preview-font,Inter,Arial,sans-serif); }
.template-document-page .tp-section > b { color:var(--tone) !important; }
.template-document-page .tp-entry-title { color:#253149 !important; }
.template-document-page .tp-copy, .template-document-page .tp-entry-meta, .template-document-page .tp-identity small { color:#59677b !important; }
.template-document-page.layout-header .tp-resume-heading { margin:-18px -15px 10px; padding:20px 15px 13px; border-left:4px solid var(--tone); background:color-mix(in srgb,var(--tone) 8%,#fff); }
.template-document-page.layout-centered .tp-resume-heading { justify-content:center; text-align:center; border-bottom:3px double var(--tone); padding:12px 8px 15px; }
.template-document-page.layout-centered .tp-identity { text-align:center; }
.template-document-page.layout-centered .tp-identity strong { font-family:Georgia,serif; font-size:18px; font-weight:500; }
.template-document-page.layout-centered .tp-identity small { display:block; }
.template-document-page.layout-editorial .tp-identity strong, .template-document-page.layout-editorial-photo .tp-identity strong { font-family:Georgia,'Times New Roman',serif; font-weight:500; font-size:18px; }
.template-document-page.layout-editorial .tp-section > b, .template-document-page.layout-editorial-photo .tp-section > b { font-family:Georgia,serif; font-size:7px; letter-spacing:.06em; text-transform:none; border-bottom:1px solid color-mix(in srgb,var(--tone) 30%,#fff); padding-bottom:4px; }
.template-document-page.layout-bold .tp-resume-heading, .template-document-page.layout-gradient .tp-resume-heading { margin:-18px -15px 12px; padding:20px 15px 15px; background:#20314c; border-bottom:4px solid var(--tone); }
.template-document-page.layout-bold .tp-identity strong, .template-document-page.layout-bold .tp-identity span, .template-document-page.layout-bold .tp-identity small,
.template-document-page.layout-gradient .tp-identity strong, .template-document-page.layout-gradient .tp-identity span, .template-document-page.layout-gradient .tp-identity small { color:#fff !important; }
.template-document-page.layout-gradient .tp-resume-heading { background:linear-gradient(115deg,#263b59,#31445f); }
.template-document-page.layout-ats .tp-resume-heading, .template-document-page.layout-minimal .tp-resume-heading { border-bottom:1px solid #9da9b8; padding-bottom:12px; }
.template-document-page.layout-ats .tp-section > b, .template-document-page.layout-minimal .tp-section > b { color:#253149 !important; letter-spacing:.08em; }
.template-document-page.layout-ats .tp-section > b { border-bottom:1px solid #d3d9e2; padding-bottom:4px; }
.template-document-page.layout-photo .tp-profile-photo, .template-document-page.layout-editorial-photo .tp-profile-photo, .template-document-page.layout-soft-photo .tp-profile-photo { width:42px; height:52px; border-radius:3px; object-fit:cover; }
.template-document-page.layout-nordic .tp-resume-heading { border-bottom:2px solid #a9c0b4; padding-bottom:12px; }
.template-document-page.layout-nordic .tp-section > b { color:#486b5b !important; }
.template-document-page.layout-timeline .tp-entry { position:relative; margin-left:5px; padding-left:10px; border-left:1px solid color-mix(in srgb,var(--tone) 45%,#dce2eb); }
.template-document-page.layout-timeline .tp-entry:before { content:""; position:absolute; top:3px; left:-3.5px; width:6px; height:6px; border-radius:50%; background:var(--tone); }
.template-document-page.layout-code .tp-section > b { font-family:ui-monospace,Consolas,monospace; letter-spacing:0; }
.template-document-page.layout-code .tp-section > b:before { content:"/ "; color:#8c96a7; }
.template-document-page.layout-compact .tp-section { margin-top:8px; }
.template-document-page.layout-compact .tp-entry { margin-top:3px; }
.template-document-page.layout-data .tp-sidebar { background:#edf2f6 !important; }
.template-document-page.layout-results .tp-resume-heading { border-bottom:2px solid var(--tone); padding-bottom:11px; }
.template-document-page.layout-creative .tp-resume-heading { border-left:4px solid var(--tone); padding-left:10px; }
.template-document-page.layout-creative-photo .tp-sidebar { background:color-mix(in srgb,var(--tone) 7%,#f4f5f7) !important; }
.template-document-page.layout-two-column .tp-sidebar { background:#f2f4f7 !important; }
.template-document-page.layout-sidebar-photo .tp-sidebar { background:color-mix(in srgb,var(--tone) 7%,#f5f6f5) !important; }
.template-document-page.layout-soft-photo .tp-profile-monogram { border-radius:50%; width:40px; height:40px; }

/* Stable micro-signatures make templates sharing a family look related, not duplicated. */
.template-document-page.visual-v1 .tp-resume-heading, .resume-preview.visual-v1 .resume-preview-head { border-bottom:2px solid var(--tone); }
.template-document-page.visual-v2 .tp-identity strong, .resume-preview.visual-v2 .preview-name { font-family:Georgia,'Times New Roman',serif !important; font-weight:500 !important; letter-spacing:-.035em !important; }
.template-document-page.visual-v2 .tp-section > b, .resume-preview.visual-v2 .preview-section h3 { text-transform:none !important; letter-spacing:.025em !important; }
.template-document-page.visual-v3 .tp-resume-heading, .resume-preview.visual-v3 .resume-preview-head { border-left:3px solid var(--tone); padding-left:10px; }
.template-document-page.visual-v4 .tp-section > b, .resume-preview.visual-v4 .preview-section h3 { border-bottom:1px solid color-mix(in srgb,var(--tone) 35%,#d9e0e8); padding-bottom:5px !important; }
.template-document-page.visual-v5 .tp-identity span, .resume-preview.visual-v5 .preview-headline { display:inline-block; padding:3px 6px; background:color-mix(in srgb,var(--tone) 9%,#fff); }
.template-document-page.visual-v6 .tp-identity strong, .resume-preview.visual-v6 .preview-name { letter-spacing:.015em !important; font-weight:650 !important; }
.template-document-page.visual-v7 .tp-resume-heading, .resume-preview.visual-v7 .resume-preview-head { border-bottom:1px solid #b8c2cf; padding-bottom:14px; }
.template-document-page.visual-v7 .tp-section > b, .resume-preview.visual-v7 .preview-section h3 { letter-spacing:.18em !important; }
.template-document-page.visual-v8 .tp-identity strong, .resume-preview.visual-v8 .preview-name { font-family:Georgia,'Times New Roman',serif !important; font-size:19px !important; font-style:italic; font-weight:500 !important; }

/* Real A4 / Letter preview scales its typography with the physical paper width on phones.
   The dedicated expanded view is scrollable, preserving exact document proportions. */
.resume-preview { container-type:inline-size; container-name:cvpilot-paper; }
.resume-preview .preview-name { font-size:clamp(13px,3.85cqw,31px) !important; }
.resume-preview .preview-headline { font-size:clamp(5px,1.48cqw,12px) !important; }
.resume-preview .preview-contact { font-size:clamp(4px,1.18cqw,10px) !important; }
.resume-preview .preview-section h3 { font-size:clamp(4.5px,1.22cqw,10px) !important; }
.resume-preview .preview-summary, .resume-preview .preview-entry p { font-size:clamp(4.5px,1.19cqw,10px) !important; }
.resume-preview .preview-entry-top { font-size:clamp(4.7px,1.22cqw,10.5px) !important; }
.resume-preview .preview-entry-top span:last-child, .resume-preview .preview-entry-meta { font-size:clamp(4px,1.05cqw,9px) !important; }
.resume-preview .preview-sidebar-group h3 { font-size:clamp(4px,1.05cqw,8.5px) !important; }
.resume-preview .preview-sidebar-group p, .resume-preview .preview-sidebar-skill { font-size:clamp(3.8px,.96cqw,8px) !important; }
.resume-preview-zoom-dialog { width:min(900px,calc(100vw - 20px)); max-width:900px; height:min(94dvh,1100px); max-height:94dvh; }
.resume-preview-zoom-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 16px; border-bottom:1px solid #dce3ed; }
.resume-preview-zoom-head strong, .resume-preview-zoom-head small { display:block; }
.resume-preview-zoom-head small { margin-top:2px; color:#69778d; font-size:10px; }
.resume-preview-zoom-scroll { height:calc(100% - 61px); overflow:auto; padding:18px; background:#edf1f6; }
.resume-preview-zoom-scroll > div { width:min(100%,720px); margin:0 auto; }
.resume-preview-zoom-scroll .resume-preview { width:100% !important; max-width:none !important; min-height:0; aspect-ratio:210/297; }
.resume-preview-zoom-scroll .resume-preview[data-paper-size="letter"] { aspect-ratio:8.5/11; }
@media(max-width:640px) {
  .resume-preview-zoom-dialog { width:100vw; height:100dvh; max-height:100dvh; border-radius:0; }
  .resume-preview-zoom-scroll { padding:10px; }
  .resume-preview-zoom-scroll > div { width:100%; }
}
@media(prefers-reduced-motion:reduce) { .cookie-consent-banner, .template-card-premium, .member-access-dialog, .resume-preview-zoom-dialog { animation:none !important; transition:none !important; } }
