@import url("/bio-studio.css");
@import url("/business-landings/fonts.css");
@import url("/business-landings/profile-layouts.css");

:root {
    font-family: var(--brand-font);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
.public-body :is(a, button):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}
.public-body {
    background: var(--profile-bg);
    color: var(--profile-fg);
    min-height: 100dvh;
}
.public-profile {
    max-width: 552px;
    margin: auto;
    padding: 64px 24px 32px;
    text-align: center;
    overflow-wrap: anywhere;
}
.public-profile[data-width="sm"] {
    max-width: 448px;
}
.public-profile[data-width="lg"] {
    max-width: 664px;
}
.public-profile[data-align="left"] {
    text-align: left;
}
.profile-header {
    margin-bottom: 32px;
}
.profile-avatar {
    display: inline-flex;
    object-fit: cover;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--profile-accent);
    color: var(--profile-button-text);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.profile-avatar[data-size="sm"] {
    width: 72px;
    height: 72px;
}
.profile-avatar[data-size="lg"] {
    width: 120px;
    height: 120px;
}
.profile-avatar[data-shape="square"] {
    border-radius: 0;
}
.profile-avatar[data-shape="rounded"] {
    border-radius: 24px;
}
.profile-header h1,
.preview-profile-name {
    font-size: 30px;
    letter-spacing: -0.045em;
    line-height: 1.2;
    font-weight: 700;
    margin: 24px 0 8px;
    color: inherit;
}
.profile-handle {
    font-size: 14px;
    margin: 0 0 16px;
}
.profile-bio,
.profile-text {
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.65;
}
.profile-bio {
    max-width: 38ch;
    margin: 16px auto 0;
}
[data-align="left"] .profile-bio {
    margin-left: 0;
}
.profile-blocks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.public-profile[data-spacing="compact"] .profile-blocks {
    gap: 10px;
}
.public-profile[data-spacing="relaxed"] .profile-blocks {
    gap: 24px;
}
.profile-link {
    background: var(--profile-accent);
    color: var(--profile-button-text);
    padding: 18px 20px;
    min-height: 70px;
    border: 1px solid var(--profile-accent);
    border-radius: 16px;
    text-decoration: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    text-align: left;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}
.profile-link:has(.profile-link-icon) {
    grid-template-columns: 24px minmax(0, 1fr) 20px;
}
.profile-link-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-link-copy strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.profile-link-copy small {
    color: inherit;
    font-size: 12px;
    line-height: 1.4;
}
.profile-link-icon,
.profile-link-arrow {
    display: block;
    flex: none;
    color: inherit;
}
.profile-link:hover {
    transform: translateY(-2px);
}
.profile-link:active {
    transform: translateY(0);
}
[data-radius="none"] .profile-link {
    border-radius: 0;
}
[data-radius="md"] .profile-link {
    border-radius: 8px;
}
[data-radius="pill"] .profile-link {
    border-radius: 100px;
}
[data-variant="outline"] .profile-link {
    background: transparent;
    color: var(--profile-accent);
}
[data-shadow="sm"] .profile-link {
    box-shadow: 0 3px 5px #0001;
}
.profile-blocks h2,
.profile-blocks h3 {
    margin: 20px 0 2px;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: inherit;
}
.profile-blocks h3 {
    font-size: 18px;
}
.profile-text {
    margin: 0;
}
.profile-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--profile-border);
    margin: 12px 0;
}
.profile-divider[data-style="dashed"] {
    border-top-style: dashed;
}
.profile-divider[data-style="soft"] {
    opacity: 0.25;
}
.profile-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    font-size: 14px;
}
[data-align="left"] .profile-social {
    justify-content: flex-start;
}
.profile-social a,
.profile-social > span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.profile-footer {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 1.5;
}
.profile-footer a {
    text-decoration: none;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}
[data-font="inter"] {
    font-family: Inter, Arial, sans-serif;
}
[data-font="manrope"] {
    font-family: Manrope, Arial, sans-serif;
}
[data-font="poppins"] {
    font-family: Poppins, Arial, sans-serif;
}
[data-font="dm-sans"] {
    font-family: "DM Sans", Arial, sans-serif;
}
/* Template previews use the same colors, radii and link treatment as the live renderer. */
.theme-preview {
    background: var(--profile-bg);
    color: var(--profile-fg);
    padding: 20px;
    overflow: hidden;
    text-align: center;
    min-width: 0;
}
.theme-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    line-height: 20px;
    margin-bottom: 26px;
}
.theme-preview-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.theme-preview-avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--profile-accent);
    color: var(--profile-button-text);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 14px;
}
.theme-preview-profile > strong {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.035em;
}
.theme-preview-profile > p {
    font-size: 12px;
    line-height: 1.5;
    margin: 8px 0 22px;
}
.theme-preview-links {
    display: grid;
    gap: 9px;
}
.theme-preview .profile-link {
    padding: 12px;
    min-height: 56px;
    gap: 9px;
}
.theme-preview .profile-link:has(.profile-link-icon) {
    grid-template-columns: 18px minmax(0, 1fr) 14px;
}
.theme-preview .profile-link-copy strong {
    font-size: 12px;
    font-weight: 600;
}
.theme-preview .profile-link-copy small {
    color: inherit;
    font-size: 11px;
}
.theme-preview-footer {
    font-size: 11px;
    line-height: 1.5;
    padding-top: 24px;
}
.theme-preview[data-template="say-professional"] .theme-preview-avatar {
    border-radius: 8px;
}
.theme-preview[data-template="say-bloom"] .theme-preview-avatar {
    border-radius: 22px;
}
@media (max-width: 480px) {
    .public-profile {
        padding-top: 40px;
    }
    .profile-header h1 {
        font-size: 28px;
    }
    .profile-link {
        padding: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* LinkStack profile adaptation: one centered link column, matching public and preview geometry. */
.public-profile {
    --profile-link-height: 56px;
    max-width: 600px;
    padding: 20px 24px 32px;
}
.public-profile[data-width="sm"] {
    max-width: 440px;
}
.public-profile[data-width="lg"] {
    max-width: 720px;
}
.profile-utilities {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    margin-bottom: 24px;
}
.profile-utility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--profile-fg);
    background: color-mix(in srgb, var(--profile-fg) 6%, var(--profile-bg));
    text-decoration: none;
    cursor: pointer;
}
.profile-utility:hover {
    background: color-mix(in srgb, var(--profile-fg) 12%, var(--profile-bg));
}
.profile-header {
    margin-bottom: 24px;
}
.profile-header h1,
.profile-header .preview-profile-name {
    margin: 20px 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.profile-handle {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
}
.profile-bio {
    font-size: 16px;
    max-width: 38ch;
    line-height: 1.65;
    overflow-wrap: anywhere;
    margin: 14px auto 0;
}
.public-profile .profile-link {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 14px 18px;
    min-height: var(--profile-link-height);
    position: relative;
}
.public-profile .profile-link:has(.profile-link-icon) {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
}
.public-profile .profile-link-copy {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}
.public-profile .profile-link-copy strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.public-profile .profile-link-copy small {
    display: none;
}
.public-profile .profile-link-icon {
    grid-column: 1;
    grid-row: 1;
    width: 22px;
    height: 22px;
}
.public-profile .profile-link-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    justify-self: end;
}
.profile-blocks {
    gap: 14px;
}
.profile-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 0 8px;
    margin: 0;
}
.profile-social .profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    color: var(--profile-fg);
    border-radius: 50%;
    background: transparent;
    line-height: 1;
}
.profile-social a.profile-social-link:hover {
    background: color-mix(in srgb, var(--profile-fg) 7%, var(--profile-bg));
}
.social-icon {
    display: block;
    flex: none;
}
.profile-social .social-icon {
    width: 22px;
    height: 22px;
}
.profile-footer {
    margin-top: 40px;
    gap: 10px;
    font-size: 12px;
}
.profile-brand {
    font-family: var(--brand-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    min-height: 32px;
}
.profile-brand img {
    width: 16px;
    height: 16px;
}
.preview-body {
    min-height: 480px;
    max-height: 600px;
    overflow: auto;
}
.preview-body .public-profile {
    padding: 16px 18px 24px;
    --profile-link-height: 52px;
}
.preview-body .profile-utilities {
    margin-bottom: 20px;
}
.preview-body .profile-avatar {
    width: 96px;
    height: 96px;
    font-size: 36px;
}
.preview-body .profile-avatar[data-size="sm"] {
    width: 72px;
    height: 72px;
}
.preview-body .profile-avatar[data-size="lg"] {
    width: 120px;
    height: 120px;
}
.preview-body .profile-header h2 {
    font-size: 25px;
    margin: 18px 0 6px;
}
.preview-body .profile-bio {
    font-size: 13px;
}
.preview-body .profile-handle {
    font-size: 12px;
}
.preview-body .profile-link-copy strong {
    font-size: 14px;
}
.preview-body .profile-text {
    font-size: 13px;
}
/* Thumbnails are inert copies of LivePreview, not a second design. */
.public-body.preview-body.theme-preview {
    padding: 0;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    pointer-events: none;
}
.preview-body.theme-preview .public-profile {
    width: 100%;
    max-width: none;
    padding: 14px 18px 20px;
    --profile-link-height: 44px;
}
.theme-preview .profile-utilities {
    min-height: 28px;
    margin-bottom: 16px;
}
.theme-preview .profile-utility {
    width: 28px;
    height: 28px;
}
.theme-preview .profile-utility svg {
    width: 14px;
    height: 14px;
}
.theme-preview .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
}
.theme-preview .profile-avatar[data-size="sm"] {
    width: 44px;
    height: 44px;
}
.theme-preview .profile-avatar[data-size="lg"] {
    width: 72px;
    height: 72px;
}
.theme-preview .profile-header {
    margin-bottom: 16px;
}
.theme-preview .profile-header h2 {
    font-size: 21px;
    margin: 14px 0 6px;
}
.theme-preview .profile-handle {
    font-size: 11px;
    margin-bottom: 10px;
}
.theme-preview .profile-bio {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}
.theme-preview .profile-social {
    gap: 6px;
    padding-bottom: 2px;
}
.theme-preview .profile-social .profile-social-link {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 6px;
}
.theme-preview .profile-social .social-icon {
    width: 18px;
    height: 18px;
}
.theme-preview .profile-blocks {
    gap: 10px;
}
.theme-preview .profile-link {
    grid-template-columns: 18px minmax(0, 1fr) 14px;
    padding: 10px 12px;
    gap: 8px;
}
.theme-preview .profile-link:has(.profile-link-icon) {
    grid-template-columns: 18px minmax(0, 1fr) 14px;
}
.theme-preview .profile-link-icon {
    width: 18px;
    height: 18px;
}
.theme-preview .profile-link-arrow {
    width: 13px;
    height: 13px;
}
.theme-preview .profile-link-copy strong {
    font-size: 12px;
}
.theme-preview .profile-footer {
    margin-top: 24px;
}
.theme-preview .profile-brand {
    font-size: 11px;
}
.theme-preview .profile-brand img {
    width: 13px;
    height: 13px;
}
.profile-share-dialog {
    width: min(440px, calc(100% - 32px));
    margin: auto;
    border: 0;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    color: #172e25;
    font-family: Manrope, Arial, sans-serif;
}
.profile-share-dialog::backdrop {
    background: #0006;
}
.profile-share-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.profile-share-heading h2 {
    font-size: 20px;
    margin: 0;
}
.profile-share-heading button {
    width: 44px;
    height: 44px;
    border: 0;
    background: #f4f7f5;
    color: inherit;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
}
.profile-share-dialog label {
    display: block;
    font-size: 14px;
    margin: 0 0 8px;
}
.profile-share-dialog input {
    width: 100%;
    border: 1px solid #b5c2ba;
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    font-size: 14px;
    color: inherit;
    background: #fff;
}
.profile-copy-action {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #246b4d;
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.profile-share-status {
    font-size: 13px;
    line-height: 1.6;
    margin: 14px 0 0;
}
@media (max-width: 600px) {
    .public-profile {
        padding: 16px 20px 28px;
    }
    .profile-utilities {
        margin-bottom: 20px;
    }
    .profile-header h1 {
        font-size: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .profile-link {
        transition: none;
    }
}

/* Category compositions: the same rules serve the public page and editor. */
.public-profile {
    container-type: inline-size;
}
.public-profile[data-page-type="cv"]:where(:not([data-bio-studio])),
.public-profile[data-page-type="company_profile"] {
    max-width: 680px;
}
.public-profile:is(
        [data-page-type="cv"]:where(:not([data-bio-studio])),
        [data-page-type="company_profile"]
    )[data-width="sm"] {
    max-width: 480px;
}
.public-profile:is(
        [data-page-type="cv"]:where(:not([data-bio-studio])),
        [data-page-type="company_profile"]
    )[data-width="lg"] {
    max-width: 900px;
}
.public-profile[data-page-type="cv"] .profile-blocks,
.public-profile[data-page-type="company_profile"] .profile-blocks {
    text-align: left;
}
.public-profile[data-page-type="cv"] .profile-blocks h2 {
    font-size: 20px;
    margin-top: 26px;
}
.public-profile[data-page-type="cv"] .profile-text {
    max-width: 65ch;
}
.public-profile[data-page-type="company_profile"] .profile-header {
    padding-block: 28px 36px;
}
.public-profile[data-page-type="company_profile"] .profile-bio {
    max-width: 46ch;
}
.public-profile[data-page-type="company_profile"] .profile-blocks h2 {
    margin-top: 28px;
    font-size: 24px;
}
.public-profile:is(
        [data-template="bio-studio"],
        [data-template="bio-punch"],
        [data-template="bio-moss"]
    )
    .profile-header {
    padding-block: 20px 8px;
}
.public-profile:is(
        [data-template="bio-midnight"],
        [data-template="bio-paper"],
        [data-template="bio-graphite"]
    )
    .profile-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 20px;
    align-items: center;
    text-align: left;
}
.public-profile:is(
        [data-template="bio-midnight"],
        [data-template="bio-paper"],
        [data-template="bio-graphite"]
    )
    .profile-avatar {
    grid-row: 1 / 4;
}
.public-profile:is(
        [data-template="bio-midnight"],
        [data-template="bio-paper"],
        [data-template="bio-graphite"]
    )
    .profile-header
    :is(h1, h2, .profile-handle, .profile-bio) {
    margin: 0;
}
.public-profile:is([data-template="bio-cobalt"], [data-template="bio-ocean"])
    .profile-header {
    padding: 24px;
    background: var(--profile-accent);
    color: var(--profile-button-text);
    border-radius: 16px;
}
.public-profile:is([data-template="bio-cobalt"], [data-template="bio-ocean"])
    .profile-avatar {
    background: var(--profile-bg);
    color: var(--profile-fg);
}
.public-profile:is(
        [data-template="bio-rosewood"],
        [data-template="bio-sunrise"]
    )
    .profile-header
    :is(h1, h2) {
    font-size: 36px;
}
.public-profile:is(
        [data-template="bio-rosewood"],
        [data-template="bio-sunrise"]
    )
    .profile-link {
    min-height: 64px;
}
.public-profile:is(
        [data-template="cv-executive"],
        [data-template="cv-creative"],
        [data-template="cv-nocturne"],
        [data-template="company-corporate"],
        [data-template="company-tech"],
        [data-template="company-collective"]
    )
    .profile-header {
    padding: 28px;
    background: var(--profile-accent);
    color: var(--profile-button-text);
    border-radius: 12px;
}
.public-profile:is(
        [data-template="cv-executive"],
        [data-template="cv-creative"],
        [data-template="cv-nocturne"],
        [data-template="company-corporate"],
        [data-template="company-tech"],
        [data-template="company-collective"]
    )
    .profile-avatar {
    background: var(--profile-bg);
    color: var(--profile-fg);
}
.public-profile:is(
        [data-template="cv-modern"],
        [data-template="cv-sage"],
        [data-template="company-verdant"],
        [data-template="company-consult"]
    )
    .profile-blocks
    h2 {
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--profile-accent);
    color: var(--profile-button-text);
}
.public-profile:is(
        [data-template="cv-minimal"],
        [data-template="cv-academic"],
        [data-template="company-essential"],
        [data-template="company-finance"]
    )
    .profile-header {
    padding-bottom: 36px;
    border-bottom: 3px solid var(--profile-accent);
}
.public-profile:is(
        [data-template="cv-portfolio"],
        [data-template="company-atelier"],
        [data-template="company-local"]
    )
    .profile-header
    :is(h1, h2) {
    font-size: 38px;
}
.public-profile:is(
        [data-template="cv-portfolio"],
        [data-template="company-atelier"],
        [data-template="company-local"]
    )
    .profile-bio {
    font-size: 18px;
}
.public-profile:is(
        [data-template="company-studio"],
        [data-template="company-essential"]
    )
    .profile-link {
    text-align: left;
}
@container (min-width:520px) {
    .public-profile[data-page-type="cv"] .profile-blocks {
        display: grid;
        grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
        gap: 24px 32px;
        align-items: start;
    }
    .public-profile[data-page-type="cv"] .profile-blocks :is(h2, h3) {
        grid-column: 1;
        margin: 0;
        font-size: 18px;
    }
    .public-profile[data-page-type="cv"] .profile-blocks .profile-text {
        grid-column: 2;
    }
    .public-profile[data-page-type="cv"]
        .profile-blocks
        :is(.profile-link, .profile-social, .profile-divider) {
        grid-column: 1/-1;
    }
    .public-profile[data-page-type="company_profile"][data-align="left"]
        .profile-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 32px;
        align-items: center;
    }
    .public-profile[data-page-type="company_profile"][data-align="left"]
        .profile-header
        .profile-avatar {
        grid-column: 2;
        grid-row: 1/4;
    }
    .public-profile[data-page-type="company_profile"][data-align="left"]
        .profile-header
        :is(h1, h2, .profile-handle, .profile-bio) {
        grid-column: 1;
    }
    .public-profile[data-page-type="company_profile"]
        .profile-header
        :is(h1, h2) {
        font-size: 40px;
    }
}
/* Miniatures show a crop of the same design; full dialogs remain readable. */
.public-body.preview-body.theme-preview {
    height: 340px;
    max-height: 340px;
    overflow: hidden;
}
.theme-preview .public-profile[data-page-type="cv"],
.theme-preview .public-profile[data-page-type="company_profile"] {
    padding: 14px 16px 20px;
}
.theme-preview .public-profile[data-page-type="cv"] .profile-header,
.theme-preview
    .public-profile[data-page-type="company_profile"]
    .profile-header {
    padding: 14px;
    margin-bottom: 16px;
}
.theme-preview .public-profile .profile-header :is(h1, h2) {
    font-size: 21px;
}
.theme-preview .public-profile .profile-header .profile-bio {
    font-size: 12px;
}
.theme-preview .public-profile[data-page-type="cv"] .profile-avatar,
.theme-preview
    .public-profile[data-page-type="company_profile"]
    .profile-avatar {
    width: 44px;
    height: 44px;
    font-size: 22px;
}
.theme-preview .public-profile .profile-blocks :is(h2, h3) {
    font-size: 13px;
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    color: var(--profile-fg);
}
.theme-preview .public-profile .profile-text {
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.theme-preview .public-profile .profile-blocks {
    gap: 8px;
}

/* CV portfolio: original composition informed by Preline's personal portfolio. */
.public-profile[data-page-type="cv"] {
    --cv-paper: color-mix(in srgb, var(--profile-bg) 92%, #fff);
    --cv-soft: color-mix(in srgb, var(--profile-bg) 94%, var(--profile-fg));
    --cv-line: color-mix(in srgb, var(--profile-bg) 84%, var(--profile-fg));
    --cv-muted: color-mix(in srgb, var(--profile-fg) 82%, var(--profile-bg));
    padding-top: 24px;
}
.cv-portfolio {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    text-align: left;
}
.cv-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--cv-line);
    background: var(--cv-paper);
    border-radius: 20px;
    box-shadow: 0 12px 36px #142a3b09;
}
.cv-avatar {
    flex: none;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--profile-accent);
    color: var(--profile-button-text);
}
.cv-avatar[data-size="sm"] {
    width: 64px;
    height: 64px;
}
.cv-avatar[data-size="lg"] {
    width: 112px;
    height: 112px;
}
.cv-avatar[data-shape="square"] {
    border-radius: 0;
}
.cv-avatar[data-shape="rounded"] {
    border-radius: 18px;
}
.cv-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
}
.public-profile :is(.profile-header, .profile-blocks, .profile-link-copy, .cv-portfolio, .cv-section, .cv-sections, .cv-identity, .cv-section-nav) {
    min-width: 0;
    overflow-wrap: anywhere;
}
.public-profile .profile-link.profile-link-featured {
    outline: 2px solid var(--profile-accent);
    outline-offset: 2px;
}
.public-profile .profile-link.profile-link-featured:focus-visible {
    outline: 3px dashed var(--profile-fg);
    outline-offset: 4px;
}
.public-profile[data-page-type="link_bio"]:not([data-bio-studio]) .profile-link-featured {
    min-height: calc(var(--profile-link-height) + .75rem);
    outline: none;
    box-shadow: inset 0 -2px 0 color-mix(in srgb, currentColor 23%, transparent);
}
.public-profile[data-page-type="link_bio"][data-variant="outline"]:not([data-bio-studio]) .profile-link-featured {
    background: var(--profile-accent);
    color: var(--profile-button-text);
}
.public-profile[data-page-type="link_bio"] .profile-link-featured .profile-link-copy strong {
    font-size: 1.125rem;
    line-height: 1.3;
    text-wrap: balance;
}
.public-profile[data-page-type="link_bio"] .profile-link-featured:focus-visible {
    outline: 3px solid var(--profile-fg);
    outline-offset: 4px;
}
.public-profile[data-page-type="link_bio"][data-align="left"] .profile-link-copy { text-align: start; }
.public-profile[data-page-type="link_bio"][data-align="left"] .profile-link:not(:has(.profile-link-icon)) .profile-link-copy {
    grid-column: 1 / 3;
}
.public-profile:is([data-template="bio-moss"], [data-template="bio-studio"])[data-variant="solid"]
    .profile-blocks:has(> .profile-link-featured) > .profile-link:not(.profile-link-featured) {
    background: color-mix(in srgb, var(--profile-bg) 94%, var(--profile-fg));
    color: var(--profile-fg);
    border-color: color-mix(in srgb, var(--profile-fg) 24%, var(--profile-bg));
}
.public-profile .profile-link-featured .profile-link-copy strong { font-weight: 800; }
.cv-identity {
    min-width: 0;
}
.cv-handle {
    color: var(--cv-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px;
}
.cv-portfolio .cv-name {
    font-size: clamp(28px, 5cqi, 42px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: inherit;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}
.cv-profession {
    font-size: 17px;
    line-height: 1.6;
    white-space: pre-line;
    margin: 0;
    max-width: 52ch;
}
.cv-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--cv-paper);
    border: 1px solid var(--cv-line);
    padding: 6px;
    border-radius: 12px;
}
.cv-section-nav :is(a, span) {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    min-height: 44px;
    color: var(--profile-fg);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 6px;
    overflow-wrap: anywhere;
}
.cv-section-nav a:hover {
    background: var(--cv-soft);
}
.cv-sections {
    display: grid;
    gap: 20px;
    min-width: 0;
}
.cv-section {
    padding: 28px;
    border: 1px solid var(--cv-line);
    border-radius: 16px;
    background: var(--cv-paper);
    min-width: 0;
    scroll-margin-top: 24px;
}
.cv-portfolio .cv-section-title {
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -0.025em;
    color: inherit;
}
.cv-section-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.cv-copy {
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    max-width: 70ch;
    overflow-wrap: anywhere;
}
.cv-portfolio .cv-entry-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: inherit;
}
.cv-timeline {
    gap: 24px;
}
.cv-timeline-entry {
    position: relative;
    padding-left: 26px;
    border-left: 1px solid var(--cv-line);
}
.cv-timeline-entry::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    top: 8px;
    left: -5px;
    background: var(--profile-accent);
    outline: 4px solid var(--cv-paper);
}
.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cv-skill {
    padding: 8px 12px;
    background: var(--cv-soft);
    border: 1px solid var(--cv-line);
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.cv-project-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--cv-line);
    border-radius: 12px;
    background: var(--cv-soft);
    color: var(--profile-fg);
    text-decoration: none;
    transition:
        border-color 160ms ease,
        transform 160ms ease;
}
.cv-project-card:hover {
    border-color: var(--profile-accent);
}
.cv-project-card:active {
    transform: translateY(1px);
}
.cv-project-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--cv-paper);
    color: var(--profile-accent);
    border: 1px solid var(--cv-line);
    border-radius: 8px;
}
.cv-project-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.cv-project-copy strong {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.cv-project-copy small {
    font-size: 12px;
    line-height: 1.5;
    color: var(--cv-muted);
    overflow-wrap: anywhere;
}
.cv-project-arrow {
    width: 18px;
    height: 18px;
}
.cv-divider {
    border: 0;
    border-top: 1px solid var(--cv-line);
    width: 100%;
    margin: 8px 0;
}
.cv-divider[data-style="dashed"] {
    border-top-style: dashed;
}
.cv-divider[data-style="soft"] {
    opacity: 0.4;
}
.public-profile[data-align="center"] .cv-profile-header {
    flex-direction: column;
    text-align: center;
}
.public-profile[data-spacing="compact"] .cv-sections {
    gap: 12px;
}
.public-profile[data-spacing="relaxed"] .cv-sections {
    gap: 32px;
}
.public-profile[data-template="cv-creative"] .cv-profile-header {
    background: var(--profile-accent);
    color: var(--profile-button-text);
}
.public-profile[data-template="cv-creative"] .cv-handle {
    color: inherit;
}
.public-profile[data-template="cv-creative"] .cv-avatar {
    background: var(--profile-bg);
    color: var(--profile-fg);
}
.public-profile[data-template="cv-technical"]
    :is(.cv-profile-header, .cv-section, .cv-section-nav) {
    border-radius: 4px;
}
.public-profile[data-template="cv-technical"] .cv-section {
    border-left: 1px solid var(--profile-accent);
}
.public-profile[data-template="cv-minimal"] .cv-profile-header {
    box-shadow: none;
    border-top: 1px solid var(--profile-accent);
    border-radius: 8px;
}
.public-profile[data-template="cv-academic"] .cv-section {
    border-radius: 4px;
}
.public-profile[data-template="cv-sage"] .cv-profile-header {
    background: var(--cv-soft);
    box-shadow: none;
}
.public-profile[data-template="cv-portfolio"] .cv-profile-header {
    padding-block: 44px;
}
.public-profile[data-template="cv-portfolio"] .cv-name {
    font-size: clamp(32px, 6cqi, 48px);
}
.public-profile[data-template="cv-modern"] .cv-section-title {
    color: var(--profile-accent);
}
@container (min-width:620px) {
    .public-profile[data-template="cv-editorial"] .cv-section {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 28px;
    }
    .public-profile[data-template="cv-editorial"]
        .cv-section:not(:has(.cv-section-title)) {
        display: block;
    }
    .public-profile:is(
            [data-template="cv-modern"],
            [data-template="cv-portfolio"]
        )
        .cv-section-content:has(> .cv-project-card) {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    }
    .public-profile:is(
            [data-template="cv-modern"],
            [data-template="cv-portfolio"]
        )
        .cv-section-content:has(> .cv-project-card)
        > :not(.cv-project-card) {
        grid-column: 1/-1;
    }
}
@container (min-width:720px) {
    .public-profile:is(
            [data-template="cv-executive"],
            [data-template="cv-nocturne"]
        )
        .cv-portfolio {
        grid-template-columns: clamp(240px, 30cqi, 300px) minmax(0, 1fr);
        grid-template-rows: min-content 1fr;
        align-items: start;
        gap: 24px;
    }
    .public-profile:is(
            [data-template="cv-executive"],
            [data-template="cv-nocturne"]
        )
        .cv-profile-header {
        grid-column: 1;
        grid-row: 1/3;
        flex-direction: column;
        align-items: start;
        position: sticky;
        top: 24px;
        padding: 24px;
    }
    .public-profile:is(
            [data-template="cv-executive"],
            [data-template="cv-nocturne"]
        )
        .cv-name {
        font-size: 30px;
    }
    .public-profile:is(
            [data-template="cv-executive"],
            [data-template="cv-nocturne"]
        )
        .cv-section-nav {
        grid-column: 2;
    }
    .public-profile:is(
            [data-template="cv-executive"],
            [data-template="cv-nocturne"]
        )
        .cv-sections {
        grid-column: 2;
    }
}
@container (max-width:440px) {
    .cv-profile-header {
        padding: 24px 20px;
        gap: 16px;
        flex-wrap: wrap;
    }
    .cv-section {
        padding: 22px 20px;
    }
    .cv-portfolio .cv-copy {
        font-size: 16px;
    }
    .cv-section-nav :is(a, span) {
        padding: 10px;
    }
    .cv-project-card {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        padding: 14px;
        gap: 12px;
    }
    .cv-project-icon {
        width: 40px;
        height: 40px;
    }
}
.theme-preview .cv-portfolio {
    gap: 10px;
}
.theme-preview .cv-profile-header {
    padding: 16px;
    gap: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    text-align: left;
    border-radius: 12px;
    box-shadow: none;
}
.theme-preview .cv-avatar {
    width: 44px;
    height: 44px;
    font-size: 20px;
}
.theme-preview .cv-portfolio .cv-name {
    font-size: 20px;
    margin-bottom: 6px;
}
.theme-preview .cv-handle {
    font-size: 12px;
    margin-bottom: 4px;
}
.theme-preview .cv-profession {
    font-size: 12px;
    line-height: 1.5;
}
.theme-preview .cv-section-nav {
    display: none;
}
.theme-preview .cv-sections {
    gap: 10px;
}
.theme-preview .cv-section {
    padding: 14px;
    border-radius: 10px;
}
.theme-preview .cv-portfolio .cv-section-title {
    font-size: 13px;
    margin-bottom: 10px;
}
.theme-preview .cv-portfolio .cv-copy {
    font-size: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme-preview .cv-section-content {
    gap: 10px;
}
.theme-preview .cv-portfolio .cv-entry-title {
    font-size: 12px;
    margin-bottom: 4px;
}
.theme-preview .cv-skill {
    font-size: 12px;
    padding: 4px 8px;
}
.theme-preview .cv-timeline-entry {
    padding-left: 16px;
}
.theme-preview .cv-project-card {
    min-height: 54px;
    padding: 10px;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 8px;
}
.theme-preview .cv-project-icon {
    width: 28px;
    height: 28px;
}
.theme-preview .cv-project-copy strong {
    font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .cv-project-card {
        transition: none;
        transform: none;
    }
}

/* Saved link appearance controls also apply to the CV card renderer. */
.public-profile[data-page-type="cv"][data-variant="solid"] .cv-project-card {
    background: var(--profile-accent);
    color: var(--profile-button-text);
    border-color: var(--profile-accent);
}
.public-profile[data-page-type="cv"][data-variant="outline"] .cv-project-card {
    background: transparent;
    color: var(--profile-accent);
    border-color: var(--profile-accent);
}
.public-profile[data-page-type="cv"] .cv-project-copy small {
    color: inherit;
}
.public-profile[data-page-type="cv"][data-radius="none"] .cv-project-card {
    border-radius: 0;
}
.public-profile[data-page-type="cv"][data-radius="md"] .cv-project-card {
    border-radius: 8px;
}
.public-profile[data-page-type="cv"][data-radius="lg"] .cv-project-card {
    border-radius: 16px;
}
.public-profile[data-page-type="cv"][data-radius="pill"] .cv-project-card {
    border-radius: 44px;
}
.public-profile[data-page-type="cv"][data-shadow="sm"] .cv-project-card {
    box-shadow: 0 3px 5px #0001;
}

/* Saylink originals inspired by the LinkStack community theme gallery. */
.public-body:has(
    > .public-profile:is(
            [data-template="bio-orbit"],
            [data-template="bio-aurora"],
            [data-template="bio-facet"],
            [data-template="bio-ember"],
            [data-template="bio-rainfall"],
            [data-template="bio-spectrum"],
            [data-template="bio-bold"],
            [data-template="bio-lagoon"]
        )
) {
    position: relative;
    isolation: isolate;
}
.public-profile:is(
    [data-template="bio-orbit"],
    [data-template="bio-aurora"],
    [data-template="bio-facet"],
    [data-template="bio-ember"],
    [data-template="bio-rainfall"],
    [data-template="bio-spectrum"],
    [data-template="bio-bold"],
    [data-template="bio-lagoon"]
) {
    position: relative;
    z-index: 1;
}
.public-body:has(
        > .public-profile:is(
                [data-template="bio-orbit"],
                [data-template="bio-aurora"],
                [data-template="bio-facet"],
                [data-template="bio-ember"],
                [data-template="bio-rainfall"],
                [data-template="bio-spectrum"],
                [data-template="bio-lagoon"]
            )
    )::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.public-profile:is(
        [data-template="bio-orbit"],
        [data-template="bio-aurora"],
        [data-template="bio-facet"],
        [data-template="bio-ember"],
        [data-template="bio-rainfall"],
        [data-template="bio-spectrum"],
        [data-template="bio-lagoon"]
    )
    .profile-header {
    padding-block: 24px 8px;
}
.public-profile:is(
        [data-template="bio-orbit"],
        [data-template="bio-aurora"],
        [data-template="bio-facet"],
        [data-template="bio-rainfall"]
    )
    .profile-link {
    background: var(--profile-bg);
}
.public-profile:is(
        [data-template="bio-orbit"],
        [data-template="bio-aurora"],
        [data-template="bio-facet"],
        [data-template="bio-rainfall"]
    )[data-variant="solid"]
    .profile-link {
    background: var(--profile-accent);
}
.public-body:has(> [data-template="bio-orbit"])::before {
    background-image:
        radial-gradient(circle at 10% 18%, #ffffffa6 0 1px, transparent 1.5px),
        radial-gradient(circle at 80% 12%, #ffffff8c 0 1px, transparent 1.5px),
        radial-gradient(circle at 36% 54%, #ffffff80 0 1px, transparent 1.5px),
        radial-gradient(
            ellipse at 70% 8%,
            color-mix(in srgb, var(--profile-accent) 14%, transparent),
            transparent 54%
        );
    background-size:
        137px 193px,
        211px 157px,
        283px 241px,
        100% 100%;
}
.public-body:has(> [data-template="bio-aurora"])::before {
    background:
        radial-gradient(
            ellipse at 15% 6%,
            color-mix(in srgb, var(--profile-accent) 20%, transparent),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 90% 25%,
            color-mix(in srgb, var(--profile-accent) 10%, transparent),
            transparent 48%
        );
}
.public-body:has(> [data-template="bio-aurora"])::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    background: color-mix(in srgb, var(--profile-fg) 7%, var(--profile-bg));
    clip-path: polygon(
        0 60%,
        8% 46%,
        15% 63%,
        24% 30%,
        34% 52%,
        45% 21%,
        56% 47%,
        65% 33%,
        78% 61%,
        88% 39%,
        100% 58%,
        100% 100%,
        0 100%
    );
}
.public-body:has(> [data-template="bio-facet"])::before {
    background:
        linear-gradient(
            135deg,
            transparent 34%,
            color-mix(in srgb, var(--profile-accent) 7%, transparent) 34% 58%,
            transparent 58%
        ),
        linear-gradient(
            35deg,
            transparent 43%,
            color-mix(in srgb, var(--profile-accent) 5%, transparent) 43% 66%,
            transparent 66%
        );
}
.public-profile[data-template="bio-facet"] .profile-header {
    padding: 28px 24px;
    border: 1px solid color-mix(in srgb, var(--profile-accent) 35%, transparent);
    background: var(--profile-bg);
    border-radius: 12px;
}
.public-body:has(> [data-template="bio-ember"])::before {
    background:
        radial-gradient(
            ellipse at 0 0,
            color-mix(in srgb, var(--profile-accent) 10%, transparent),
            transparent 62%
        ),
        radial-gradient(
            ellipse at 100% 90%,
            color-mix(in srgb, var(--profile-accent) 8%, transparent),
            transparent 56%
        );
}
.public-profile[data-template="bio-ember"] .profile-avatar {
    outline: 6px solid
        color-mix(in srgb, var(--profile-accent) 10%, var(--profile-bg));
    outline-offset: 5px;
}
.public-body:has(> [data-template="bio-rainfall"])::before {
    background: repeating-linear-gradient(
        105deg,
        transparent 0 38px,
        color-mix(in srgb, var(--profile-accent) 8%, transparent) 39px 40px,
        transparent 41px 92px
    );
}
.public-profile[data-template="bio-rainfall"] .profile-header {
    padding: 24px;
    border-radius: 16px;
    background: var(--profile-bg);
    border: 1px solid color-mix(in srgb, var(--profile-accent) 30%, transparent);
}
.public-body:has(> [data-template="bio-spectrum"])::before {
    background:
        radial-gradient(
            ellipse at 0 0,
            color-mix(in srgb, var(--profile-bg) 88%, #d1b0ef),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 100% 30%,
            color-mix(in srgb, var(--profile-bg) 88%, #a4dedb),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 0 100%,
            color-mix(in srgb, var(--profile-bg) 88%, #efca88),
            transparent 50%
        );
}
.public-profile[data-template="bio-spectrum"] .profile-avatar {
    outline: 4px solid var(--profile-accent);
    outline-offset: 6px;
}
.public-profile[data-template="bio-spectrum"] .profile-header {
    padding-top: 30px;
}
.public-profile[data-template="bio-bold"] .profile-header :is(h1, h2) {
    font-size: 36px;
    letter-spacing: -0.045em;
}
.public-profile[data-template="bio-bold"] .profile-avatar {
    border: 2px solid var(--profile-fg);
}
.public-profile[data-template="bio-bold"][data-radius="none"] .profile-link {
    border-width: 2px;
}
.public-profile[data-template="bio-bold"][data-shadow="sm"] .profile-link {
    box-shadow: 5px 5px 0 var(--profile-fg);
}
.public-profile[data-template="bio-bold"] .profile-blocks {
    padding-right: 6px;
    padding-bottom: 6px;
}
.public-profile[data-template="bio-bold"] .profile-link {
    margin-bottom: 4px;
}
.public-body:has(> [data-template="bio-lagoon"])::before {
    background:
        linear-gradient(
            160deg,
            color-mix(in srgb, var(--profile-accent) 10%, transparent),
            transparent 46%
        ),
        radial-gradient(
            ellipse at 100% 100%,
            color-mix(in srgb, var(--profile-accent) 12%, transparent),
            transparent 58%
        );
}
.public-profile[data-template="bio-lagoon"] .profile-header {
    border-bottom: 2px solid
        color-mix(in srgb, var(--profile-accent) 25%, transparent);
    padding-bottom: 28px;
}
@keyframes saylink-orbit-drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-12px);
    }
}
.public-body:not(.preview-body):has(> [data-template="bio-orbit"])::before {
    animation: saylink-orbit-drift 16s ease-in-out infinite alternate;
}
.public-body:not(.preview-body):has(> [data-template="bio-rainfall"])::before {
    animation: saylink-orbit-drift 8s ease-in-out infinite alternate;
}
.theme-preview
    .public-profile:is(
        [data-template="bio-facet"],
        [data-template="bio-rainfall"]
    )
    .profile-header {
    padding: 14px;
}
.theme-preview
    .public-profile[data-template="bio-bold"]
    .profile-header
    :is(h1, h2) {
    font-size: 21px;
}
@media (prefers-reduced-motion: reduce) {
    .public-body:not(.preview-body):has(
            > .public-profile:is(
                    [data-template="bio-orbit"],
                    [data-template="bio-rainfall"]
                )
        )::before {
        animation: none;
    }
}

/* Keep animated decoration bounded even on profiles with many links. */
.public-body:not(.preview-body):has(
        > .public-profile:is(
                [data-template="bio-orbit"],
                [data-template="bio-rainfall"]
            )
    )::before {
    bottom: auto;
    height: min(100dvh, 960px);
    mask-image: linear-gradient(#000 70%, transparent 100%);
}
.dialog-close-icon {
    width: 20px;
    height: 20px;
    flex: none;
    display: block;
}
.profile-share-heading button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

:is(.profile-cover, .cover-swatch)[data-cover="highlands"],
:is(.profile-cover, .cover-swatch)[data-cover="drift"] {
    --cover-image: url("/covers/highlands.webp");
}
:is(.profile-cover, .cover-swatch)[data-cover="dunes"] {
    --cover-image: url("/covers/dunes.webp");
}
:is(.profile-cover, .cover-swatch)[data-cover="kontur"] {
    --cover-image:
        repeating-radial-gradient(ellipse at 13% 125%, transparent 0 12px, #49704957 13px 14px, transparent 15px 25px),
        repeating-radial-gradient(ellipse at 105% -20%, transparent 0 18px, #eff7dd78 19px 20px, transparent 21px 34px),
        linear-gradient(147deg, #dceac4 0%, #b9d29a 46%, #729c71 100%);
}
:is(.profile-cover, .cover-swatch)[data-cover="nila"] {
    --cover-image:
        radial-gradient(ellipse at 77% 13%, #9a75e0a8, transparent 44%),
        radial-gradient(ellipse at 24% 105%, #5c63c48c, transparent 56%),
        linear-gradient(132deg, #14132e 18%, #2b1c54 68%, #161b3d);
}
:is(.profile-cover, .cover-swatch)[data-cover="serat"] {
    --cover-image:
        repeating-linear-gradient(105deg, #6b45220e 0 1px, transparent 1px 7px, #fdf5df64 7px 8px, transparent 8px 13px),
        repeating-linear-gradient(14deg, transparent 0 5px, #75503016 6px 7px, transparent 8px 16px),
        linear-gradient(120deg, #f8e9c8, #edcfa2 66%, #d8ac7d);
}
:is(.profile-cover, .cover-swatch)[data-cover="kisi"] {
    --cover-image:
        repeating-linear-gradient(0deg, #eefaff55 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, #eefaff55 0 1px, transparent 1px 20px),
        repeating-linear-gradient(0deg, #e6f7fb47 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, #e6f7fb47 0 1px, transparent 1px 80px),
        linear-gradient(130deg, #224b6a, #437592 70%, #558e9e);
}
:is(.profile-cover, .cover-swatch)[data-cover="teraso"] {
    --cover-image:
        repeating-conic-gradient(from 15deg at 21% 38%, #ac4d368f 0 12%, transparent 12% 100%),
        repeating-conic-gradient(from 75deg at 75% 58%, #d087508c 0 8%, transparent 8% 100%),
        linear-gradient(115deg, #fae8cf, #f1cbb1 62%, #e9b79e);
    --cover-size: 34px 27px, 26px 32px, cover;
    --cover-repeat: repeat, repeat, no-repeat;
}
:is(.profile-cover, .cover-swatch)[data-cover="pasang"] {
    --cover-image:
        radial-gradient(ellipse at 14% -58%, transparent 60%, #b7ebcb3b 60.3% 60.8%, transparent 61%),
        radial-gradient(ellipse at 107% 153%, #29716c 43%, #58a48e 43.3% 44%, #337e78 44.3% 50%, transparent 50.3%),
        radial-gradient(ellipse at 14% -60%, #144b52 58%, #246d6c 58.5% 69%, #398980 69.5% 79%, transparent 79.5%),
        linear-gradient(120deg, #205d62, #154047 72%, #123439);
}
.profile-cover {
    aspect-ratio: 4 / 1;
    position: relative;
    overflow: hidden;
    margin-block-end: clamp(12px, 2vw, 28px);
}
.profile-cover::before,
.cover-swatch {
    background-image: var(--cover-image);
    background-position: center;
    background-size: var(--cover-size, cover);
    background-repeat: var(--cover-repeat, no-repeat);
}
.profile-cover::before {
    content: "";
    position: absolute;
    inset: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .profile-cover[data-motion="true"]::before {
        animation: cv-landscape-pan 4.8s ease-out both;
    }
}
@keyframes cv-landscape-pan {
    from { transform: scale(1.14) translateX(-3%); }
    to { transform: scale(1.04); }
}
.public-profile[data-page-type="cv"] .cv-profile-header {
    border: 0;
    box-shadow: none;
}
.public-profile[data-page-type="cv"] .cv-section {
    border-inline: 0;
    box-shadow: none;
}
@container (min-width: 620px) {
    .public-profile[data-page-type="cv"]:not([data-template="cv-executive"], [data-template="cv-nocturne"]) .cv-profile-header {
        padding: clamp(32px, 5cqi, 64px);
    }
    .public-profile[data-page-type="cv"]:not([data-template="cv-executive"], [data-template="cv-nocturne"])[data-align="left"] .cv-profile-header {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    .public-profile[data-page-type="cv"]:not([data-template="cv-executive"], [data-template="cv-nocturne"]) .cv-name {
        font-size: clamp(36px, 4.6cqi, 64px);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }
    .public-profile[data-page-type="cv"]:not([data-template="cv-executive"], [data-template="cv-nocturne"]) .cv-section:has(> .cv-section-title) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: start;
        gap: clamp(16px, 3cqi, 40px);
    }
}

.cv-project-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.cv-project-card:has(> .cv-project-image) {
    grid-template-columns: clamp(3.5rem, 10cqi, 6rem) minmax(0, 1fr) 1.125rem;
}
.public-profile:is([data-template="cv-editorial"], [data-template="cv-minimal"], [data-template="cv-academic"]) .cv-section {
    padding-inline: 0;
    border: 0;
    border-block-start: 1px solid var(--cv-line);
    border-radius: 0;
    background: transparent;
}
.public-profile:is([data-template="cv-editorial"], [data-template="cv-minimal"], [data-template="cv-academic"]) .cv-profile-header {
    padding-inline: 0;
    background: transparent;
}
.public-profile:is([data-template="cv-editorial"], [data-template="cv-minimal"], [data-template="cv-academic"]) .cv-section-nav {
    padding: 0;
    gap: 0 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.public-profile:is([data-template="cv-editorial"], [data-template="cv-minimal"], [data-template="cv-academic"]) .cv-section-nav :is(a, span) {
    padding-inline: 0;
    text-decoration: underline;
    text-decoration-color: var(--cv-line);
    text-underline-offset: .35em;
}
.cv-portfolio :is(.cv-name, .cv-section-title, .cv-entry-title) { text-wrap: balance; }
.cv-section-title[id] { scroll-margin-block-start: 1.5rem; }
.public-profile[data-template="bio-klub-baca"] .profile-header {
    padding-block-end: 1.5rem;
    border-block-end: 3px double var(--profile-border);
}
.public-profile[data-template="bio-klub-baca"][data-font="dm-sans"] .profile-header :is(h1, .preview-profile-name) {
    font-family: "Playfair Display", Georgia, serif;
}
.public-profile[data-template="bio-klub-baca"] .profile-blocks > :is(h2, h3) {
    text-align: start;
    text-wrap: balance;
}
.public-profile[data-template="bio-klub-baca"] .profile-blocks > .profile-link:not(.profile-link-featured) {
    border-inline: 0;
    border-block-start: 0;
    background: var(--profile-bg);
    color: var(--profile-fg);
}
.public-profile[data-template="cv-portofolio-riset"] .cv-section {
    border-radius: 0;
    border-block: 0;
    border-block-start: 1px solid var(--cv-line);
    background: transparent;
    padding-inline: 0;
}
.public-profile[data-template="cv-portofolio-riset"] .cv-profile-header {
    border-inline-start: .35rem solid var(--profile-accent);
    border-radius: 0;
    background: var(--cv-soft);
}
.cv-project-copy > span { display: block; white-space: pre-line; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.5; }

.public-profile .business-section {
    --business-rule: color-mix(in srgb, var(--profile-fg) 28%, var(--profile-bg));
    display: grid;
    gap: 1rem;
    text-align: start;
    overflow-wrap: anywhere;
    padding-block: clamp(1rem, 4cqi, 2.5rem);
    border-top: 2px solid var(--profile-accent);
}
.public-profile .profile-blocks .business-section :is(h2, h3) {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: start;
    line-height: 1.2;
}
.public-profile .business-section h2 { text-wrap: balance; }
.business-services, .business-case {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    list-style: none;
}
.business-services li {
    min-width: 0;
    padding: clamp(1rem, 3cqi, 1.75rem);
    border: 1px solid var(--business-rule);
    background: color-mix(in srgb, var(--profile-fg) 4%, var(--profile-bg));
}
.business-section p, .business-case dd {
    margin: .65rem 0 0;
    max-width: 65ch;
    white-space: pre-line;
    line-height: 1.6;
}
.business-case > div { border-top: 1px solid var(--business-rule); padding-top: .8rem; }
.business-case dt { font-weight: 700; }
@container (min-width: 560px) {
    .business-services { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
    .business-case > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; }
    .business-case dd { margin: 0; }
    .business-section[data-format="case_study"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Full-screen background, with opaque reading surfaces over the image. */
.public-body[data-full-cover] {
    position: relative;
    isolation: isolate;
}
.public-body[data-full-cover]::before,
.public-body[data-full-cover]::after {
    display: none;
}
.public-body > .profile-cover[data-cover-mode="full"] {
    position: fixed;
    z-index: -1;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;
    pointer-events: none;
}
.public-body > .profile-cover[data-cover-mode="full"]::before {
    background-image: linear-gradient(
        color-mix(in srgb, var(--profile-bg) 12%, transparent),
        color-mix(in srgb, var(--profile-bg) 26%, transparent)
    ), var(--cover-image);
    background-position: 72% center;
    background-size: cover, var(--cover-size, cover);
    background-repeat: no-repeat, var(--cover-repeat, no-repeat);
}
.preview-body > .profile-cover[data-cover-mode="full"] {
    position: sticky;
    inset: 0 auto auto 0;
    height: 0;
    overflow: visible;
}
.preview-body > .profile-cover[data-cover-mode="full"]::before {
    bottom: auto;
    height: min(100dvh, 600px);
}
[data-full-cover] > .public-profile[data-page-type="link_bio"] .profile-header {
    padding: clamp(18px, 6cqi, 38px);
    background: var(--profile-bg);
    border-radius: 16px;
}
[data-full-cover] .public-profile[data-page-type="link_bio"] .profile-blocks > :is(h2, h3, .profile-text, .profile-social),
[data-full-cover] .public-profile[data-page-type="link_bio"][data-variant="outline"] .profile-link,
[data-full-cover] .profile-brand {
    padding: 12px 16px;
    background: var(--profile-bg);
    color: var(--profile-fg);
}
[data-full-cover] .public-profile[data-page-type="link_bio"] .profile-blocks > .profile-social {
    justify-self: center;
    padding: 4px 8px;
    border-radius: 24px;
}
[data-full-cover] .profile-brand {
    padding: 4px 12px;
    border-radius: 999px;
}
[data-full-cover] .public-profile[data-page-type="link_bio"] .profile-link.profile-link-featured {
    min-height: calc(var(--profile-link-height) + 10px);
    background: var(--profile-accent);
    color: var(--profile-button-text);
}
[data-full-cover] .profile-link:focus-visible,
[data-full-cover] .profile-brand:focus-visible {
    outline-color: var(--profile-fg);
    box-shadow: 0 0 0 5px var(--profile-bg);
}
[data-full-cover] .cv-portfolio {
    --cv-paper: var(--profile-bg);
}

.public-profile[data-template="bio-kontur"] .profile-header {
    border: 1px solid color-mix(in srgb, var(--profile-fg) 25%, var(--profile-bg));
}
.public-profile[data-template="bio-kontur"] .profile-avatar {
    outline: 1px solid var(--profile-border);
    outline-offset: 4px;
}
.public-profile[data-template="bio-nila"] .profile-header {
    border-inline-start: 3px solid var(--profile-accent);
    box-shadow: 0 12px 32px #14102b4d;
}
.public-profile[data-template="bio-nila"] .profile-header :is(h1, h2) {
    text-wrap: balance;
}
.public-profile[data-template="cv-serat"] .cv-profile-header {
    border-radius: 0;
    border-block-end: 2px solid var(--profile-accent);
}
.public-profile[data-template="cv-serat"] .cv-section-nav {
    border-radius: 0;
    border-inline: 0;
}
.public-profile[data-template="cv-kisi"] .cv-profile-header {
    border-inline-start: 4px solid var(--profile-accent);
}
.public-profile[data-template="cv-kisi"] :is(.cv-section-nav, .cv-section) {
    border-style: dashed;
}

/* Company landing pages use full-width sections with a consistent text measure. */
.public-profile[data-business-layout="landing"] {
    --company-measure: 61rem;
    --company-gutter: clamp(18px, 6cqi, 70px);
    --company-divider: color-mix(in srgb, var(--profile-fg) 22%, var(--profile-bg));
    --company-hero-bg: color-mix(in srgb, var(--profile-accent) 11%, var(--profile-bg));
}
.public-body .public-profile[data-page-type="company_profile"][data-business-layout="landing"] {
    max-width: none;
    padding: 0 0 32px;
}
.public-profile[data-business-layout="landing"][data-width="sm"] {
    --company-measure: 42rem;
}
.public-profile[data-business-layout="landing"][data-width="lg"] {
    --company-measure: 70rem;
}
.public-profile[data-business-layout="landing"][data-template="company-studio"] {
    --company-hero-bg: color-mix(in srgb, var(--profile-accent) 7%, var(--profile-bg));
}
.public-profile[data-business-layout="landing"][data-template="company-teraso"] {
    --company-hero-bg: color-mix(in srgb, var(--profile-accent) 8%, var(--profile-bg));
}
.public-profile[data-business-layout="landing"][data-template="company-teraso"] .company-hero {
    border-block-width: 2px;
}
.public-profile[data-business-layout="landing"][data-template="company-pasang"] {
    --company-hero-bg: color-mix(in srgb, var(--profile-accent) 8%, var(--profile-bg));
}
.public-profile[data-business-layout="landing"][data-template="company-pasang"] .company-hero-grid {
    border-inline-start: 3px solid var(--profile-accent);
    padding-inline-start: clamp(16px, 4cqi, 40px);
}
.public-profile[data-business-layout="landing"] > :is(.profile-utilities, .profile-cover),
.company-content {
    width: min(var(--company-measure), calc(100% - 2 * var(--company-gutter)));
    margin-inline: auto;
}
.public-profile[data-business-layout="landing"] > .profile-utilities {
    justify-content: flex-end;
    gap: 8px;
    margin-block: 8px;
}
.company-landing {
    text-align: start;
}
.company-hero {
    background: var(--company-hero-bg);
    border-block: 1px solid var(--company-divider);
}
.company-hero-grid {
    display: grid;
    align-items: center;
    gap: clamp(18px, 4cqi, 44px);
    padding-block: clamp(30px, 7cqi, 80px);
}
.company-identity {
    min-width: 0;
}
.company-identity :is(h1, h2) {
    margin: 0;
    font-size: clamp(2.2rem, 7.25cqi, 5.25rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.public-profile[data-business-layout="landing"][data-align="center"] .company-hero-grid {
    justify-items: center;
    text-align: center;
}
.public-profile[data-business-layout="landing"][data-align="center"] .company-intro {
    margin-inline: auto;
}
.company-intro {
    max-width: 42ch;
    margin: 16px 0 0;
    font-size: clamp(1rem, 2.1cqi, 1.375rem);
    line-height: 1.55;
    white-space: pre-line;
}
.company-handle {
    margin: 12px 0 0;
    font-size: .875rem;
}
.company-logo {
    display: block;
    width: clamp(64px, 19cqi, 210px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    grid-row: 1;
}
.company-logo[data-shape="circle"] {
    border-radius: 50%;
}
.company-logo[data-shape="square"] {
    border-radius: 0;
}
.company-logo[data-size="sm"] {
    width: clamp(56px, 13cqi, 150px);
}
.company-logo[data-size="lg"] {
    width: clamp(80px, 22cqi, 240px);
}
.public-profile[data-business-layout="landing"][data-align="center"] .company-logo {
    max-width: 120px;
}
.company-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 18px;
    background: var(--profile-accent);
    color: var(--profile-button-text);
    border: 1px solid var(--profile-accent);
    border-radius: 8px;
    font-weight: 650;
    text-decoration: none;
}
.public-profile[data-business-layout="landing"][data-variant="outline"] .company-cta {
    background: var(--profile-bg);
    color: var(--profile-accent);
}
.public-profile[data-business-layout="landing"][data-radius="none"] .company-cta {
    border-radius: 0;
}
.public-profile[data-business-layout="landing"][data-radius="lg"] .company-cta {
    border-radius: 14px;
}
.public-profile[data-business-layout="landing"][data-radius="pill"] .company-cta {
    border-radius: 999px;
}
.company-cta .profile-link-arrow {
    flex: none;
}
a.company-cta:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.company-cta:focus-visible {
    outline-color: var(--profile-fg);
}
.company-band {
    border-bottom: 1px solid var(--company-divider);
    padding-block: clamp(22px, 5cqi, 70px);
}
.public-profile[data-business-layout="landing"][data-spacing="compact"] .company-band {
    padding-block: clamp(18px, 3cqi, 42px);
}
.public-profile[data-business-layout="landing"][data-spacing="relaxed"] .company-band {
    padding-block: clamp(24px, 6cqi, 76px);
}
.company-band:nth-child(even) {
    background: color-mix(in srgb, var(--profile-accent) 4%, var(--profile-bg));
}
.company-section-title,
.public-profile[data-business-layout="landing"] .company-band .business-section h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3cqi, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.public-profile[data-business-layout="landing"] .company-band .business-section {
    border: 0;
    padding: 0;
}
.public-profile[data-business-layout="landing"] .company-band .profile-text {
    max-width: 65ch;
}
.public-profile[data-business-layout="landing"] .company-band .profile-link {
    width: min(100%, 38rem);
}
.public-profile[data-business-layout="landing"] .company-band .profile-social {
    justify-content: flex-start;
}
@container (min-width: 640px) {
    .public-profile[data-business-layout="landing"][data-align="left"] .company-hero-grid:has(.company-logo) {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .public-profile[data-business-layout="landing"][data-align="left"] .company-logo {
        grid-row: auto;
    }
    .company-band:has(.company-section-title) > .company-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: start;
        gap: clamp(24px, 5cqi, 80px);
    }
}
.theme-preview .public-profile[data-business-layout="landing"] .company-hero-grid {
    gap: 10px;
    padding-block: 14px;
}
.theme-preview .company-identity :is(h1, h2) {
    font-size: clamp(1.15rem, 7cqi, 2.2rem);
}
.theme-preview .company-intro {
    margin-top: 7px;
    font-size: .8rem;
}
.theme-preview .company-logo[data-size] {
    width: 48px;
}
.theme-preview .company-cta {
    min-height: 36px;
    margin-top: 8px;
    padding: 8px 10px;
    font-size: .75rem;
}
.theme-preview .company-handle {
    margin-top: 4px;
    font-size: .75rem;
}
.theme-preview .public-profile[data-business-layout="landing"] .company-band {
    padding-block: 12px;
}

.local-business-details {
    display: grid;
    gap: clamp(24px, 5cqi, 64px);
    text-align: start;
}
.public-profile .profile-blocks .local-business-details h2 {
    margin: 0 0 14px;
    padding: 0;
    color: inherit;
    background: none;
    font-size: clamp(1.25rem, 2.5cqi, 2rem);
}
.local-business-details :is(dl, dd, p) { margin: 0; }
.local-business-details p { white-space: pre-line; }
.local-business-details dl > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding-block: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--profile-fg) 22%, transparent);
}
.local-business-details dd { font-variant-numeric: tabular-nums; }
.local-business-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.local-business-actions:not(:empty) { margin-top: 16px; }
.local-business-actions :is(a, span) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    color: var(--profile-fg);
    border: 1px solid currentColor;
    border-radius: 8px;
    font-weight: 600;
}
@container (min-width: 600px) {
    .local-business-details:has(> div:nth-child(2)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.preview-body[data-custom-cover] { container-type: inline-size; }
.profile-custom-cover,
.company-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--cover-desktop-x, 50%) var(--cover-desktop-y, 50%);
}
.profile-custom-cover { position: absolute; inset: 0; }
.profile-cover[data-cover="custom"][data-cover-mode="full"]::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(transparent, color-mix(in srgb, var(--profile-bg) 26%, transparent));
}
.preview-body > .profile-cover[data-cover-mode="full"] > .profile-custom-cover,
.preview-body > .profile-cover[data-cover="custom"][data-cover-mode="full"]::after {
    bottom: auto;
    height: min(100dvh, 600px);
}
.company-hero-media {
    grid-row: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--company-hero-bg);
}
.company-hero-brand {
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 10px;
    object-fit: cover;
}
.public-profile[data-align="center"] .company-hero-brand { margin-inline: auto; }
@media (max-width: 600px) {
    .profile-custom-cover,
    .company-hero-image { object-position: var(--cover-mobile-x, 50%) var(--cover-mobile-y, 50%); }
}
@container (max-width: 600px) {
    .preview-body .profile-custom-cover,
    .preview-body .company-hero-image { object-position: var(--cover-mobile-x, 50%) var(--cover-mobile-y, 50%); }
}
@container (min-width: 640px) {
    .company-hero-grid:has(> .company-hero-media) {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
    .company-hero-media { grid-row: auto; }
}

