/* Kocial digital name card (page-templates/namecard.php). Phone-first, centred column on larger screens. */
.nc-body { background: var(--blue); margin: 0; }
.nc-body #wpadminbar ~ .nc { margin-top: 0; }
.nc { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }
@media (min-width: 560px) { .nc { margin: 32px auto; min-height: 0; border-radius: 36px; overflow: hidden; border: 3px solid #000; box-shadow: 12px 12px 0 #000; } }

.nc-top { background: var(--blue); color: #fff; padding: 0 20px 34px; position: relative; overflow: hidden; }
.nc-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.nc-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 18px; }
.nc-brand:hover { color: #fff; }
.nc-brand__k { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.nc-iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nc-iconbtn:hover { background: #fff; color: var(--blue); }
.nc-iconbtn--blue { border-color: var(--blue); color: var(--blue); }
.nc-iconbtn--blue:hover { background: var(--blue); color: #fff; }

.nc-profile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 28px; }
.nc-burst { position: absolute; left: 50%; top: -6px; width: 236px; height: 236px; margin-left: -118px; border: 5px solid #000; background: repeating-conic-gradient(from 0deg at 50% 50%, var(--burst) 0deg 8deg, var(--yellow) 8deg 16deg); }
.nc-photo { position: relative; width: 168px; height: 168px; border-radius: 50%; border: 5px solid #000; background: #fff; overflow: hidden; box-shadow: 8px 8px 0 #000; display: flex; align-items: center; justify-content: center; }
.nc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-photo__ph { padding: 0 18px; font-size: 12px; font-style: italic; color: var(--blue); line-height: 1.4; }
.nc-photo__ph small { display: block; font-style: normal; font-weight: 700; }
.nc-photo__initial { font-size: 72px; font-weight: 800; color: var(--blue); }
.nc-company { position: relative; margin: -14px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--red); border: 2px solid #000; color: #000; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nc-name { margin: 26px 0 0; font-size: clamp(38px, 11vw, 48px); line-height: 1; letter-spacing: -.04em; font-weight: 800; color: #fff; }
.nc-title { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--yellow); }
.nc-intro { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted-blue); max-width: 320px; }

.nc-quick { margin-top: 24px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.nc-qa { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; font-size: 12px; line-height: 1.5; font-weight: 700; color: #fff; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.nc-qa:hover { color: #fff; }
.nc-qa i { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.nc-qa:hover i, .nc-qa:focus-visible i { background: #fff; color: var(--blue); }

.nc-wave { display: block; width: 100%; height: 34px; color: var(--blue); margin-top: -1px; }

.nc-sec { padding: 24px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.nc-links { padding-top: 16px; }
.nc-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 28px; border: 3px solid #000; box-shadow: 6px 6px 0 #000; color: #000; transition: transform .3s var(--ease), box-shadow .3s; }
.nc-link:hover, .nc-link:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; color: inherit; }
.nc-link:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
.nc-link--blue { background: var(--blue); color: #fff; }
.nc-link--blue:hover { color: #fff; }
.nc-link--yellow { background: var(--yellow); }
.nc-link--red { background: var(--red); }
.nc-link--white { background: #fff; }
.nc-link__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; }
.nc-link__ic b { font-weight: 900; font-size: 20px; }
.nc-link--blue .nc-link__ic { background: var(--yellow); color: #000; }
.nc-link--red .nc-link__ic { background: #fff; color: #000; }
.nc-link__txt { min-width: 0; }
.nc-link__txt b { display: block; font-size: 17px; letter-spacing: -.01em; }
.nc-link__txt small { display: block; font-size: 13px; margin-top: 2px; opacity: .85; }
.nc-link__go { margin-left: auto; flex-shrink: 0; display: flex; }

.nc-h2 { font-size: 26px; letter-spacing: -.03em; font-weight: 800; color: var(--blue); margin: 16px 0 0; }
.nc-video { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; border: 3px solid #000; box-shadow: 6px 6px 0 #000; overflow: hidden; background: #000; }
.nc-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.nc-video--auto { aspect-ratio: auto; background: #fff; display: flex; justify-content: center; }
.nc-video--auto blockquote { margin: 0 !important; }
.nc-editor-note { padding: 14px 16px; border-radius: 18px; border: 2px dashed var(--blue); color: var(--blue); font-size: 14px; }

.nc-sharebox { margin-top: 12px; border-radius: 30px; background: #eef2fc; padding: 22px 12px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.nc-sharebox__title { font-size: 18px; font-weight: 800; color: var(--blue); margin: 0; }
.nc-sharerow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
.nc-sh { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #000; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; min-width: 0; }
.nc-sh:hover { color: var(--blue); }
.nc-sh i { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 800; font-size: 17px; transition: transform .25s var(--ease); }
.nc-sh:hover i { transform: translateY(-3px); }
.nc-qr { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: #fff; width: 100%; box-sizing: border-box; text-align: left; }
.nc-qr__code { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; border: 2px solid #000; background: #fff; padding: 4px; box-sizing: border-box; cursor: pointer; }
.nc-qr__code svg { width: 100%; height: 100%; display: block; }
.nc-qr p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.nc-qr p b { color: #000; }

.nc-foot { margin-top: auto; padding: 32px 20px 28px; text-align: center; font-size: 13px; color: var(--muted); }
.nc-foot a { color: var(--blue); font-weight: 700; }

.nc-sheet { position: fixed; inset: 0; z-index: 100; }
.nc-sheet[hidden] { display: none !important; }
.nc-sheet__scrim { position: absolute; inset: 0; background: rgba(0, 20, 80, .5); animation: nc-fade .3s ease; }
.nc-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 32px 32px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); animation: nc-up .45s var(--ease); }
.nc-sheet__grip { align-self: center; width: 44px; height: 5px; border-radius: 5px; background: var(--muted-blue); }
.nc-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nc-sheet__head h2 { font-size: 20px; color: var(--blue); margin: 0; }
.nc-sheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.nc-sheet__note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
@keyframes nc-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes nc-fade { from { opacity: 0; } to { opacity: 1; } }

.nc-rise { opacity: 0; animation: nc-rise .6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes nc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nc-rise { opacity: 1; animation: none; } .nc-burst { animation: none; } }

/* 1.7: editable parts */
.nc-bar--empty { height: 20px; }
.nc-company--solo { margin-top: 0; }
.nc-label { margin: 0; font-size: 14px; font-style: italic; color: var(--blue); }
.nc-caption { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.nc-foot--empty { padding: 16px; margin-top: auto; }

/* Testimonials about the person (1.9) */
.nc-tests { gap: 14px; }
.nc-tests__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nc-tests__nav { display: flex; gap: 8px; }
.nc-round { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); background: #fff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nc-round:hover { background: var(--blue); color: #fff; }
.nc-tests__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 10px 14px 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; scrollbar-width: none; }
.nc-tests__track::-webkit-scrollbar { display: none; }
.nc-tests__track.is-single { grid-auto-columns: 100%; }
.nc-tcard { scroll-snap-align: start; margin: 0; border-radius: 26px; border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.nc-tcard--yellow { background: var(--yellow); }
.nc-tcard--white { background: #fff; }
.nc-tcard--red { background: var(--red); }
.nc-tcard__stars { font-size: 18px; letter-spacing: 2px; }
.nc-tcard blockquote { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; flex: 1; }
.nc-tcard figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nc-tcard figcaption b { display: block; }
.nc-tcard figcaption small { display: block; font-size: 12px; opacity: .8; }
.nc-tcard__av { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 2px solid #000; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nc-tcard__av img { width: 100%; height: 100%; object-fit: cover; }
.nc-write { border-radius: 26px; border: 2px dashed var(--blue); background: #eef2fc; }
.nc-write[open] { border-style: solid; background: #fff; }
.nc-write__btn { list-style: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 18px; font-weight: 800; color: var(--blue); cursor: pointer; }
.nc-write__btn::-webkit-details-marker { display: none; }
.nc-write[open] .nc-write__btn { border-bottom: 2px solid var(--muted-blue); }
.nc-write__form { padding: 18px 16px 20px; }
.nc-write__form .tform__grid, .nc-write__form .kform__grid { grid-template-columns: 1fr; }

/* Uploaded logo & icon (1.10) */
.nc-brand__img { height: 34px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.nc-brand__k.has-img, .nc-link__ic:has(.nc-link__img) { overflow: hidden; background: #fff; }
.nc-brand__k img, .nc-link__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
