/* Reviewed legacy composition. Content, action targets and quotas stay canonical.
   Low specificity preserves Admin-authored template CSS. */
:where(.profile-standard-composition:not(.has-custom-css)) .public-page-banner {height:clamp(8rem,22vw,12rem);}
:where(.profile-standard-composition:not(.has-custom-css)) .public-page-banner-placeholder {height:6rem;background:linear-gradient(120deg,color-mix(in srgb,var(--seva-accent) 16%,var(--card-bg-solid,#fff)),color-mix(in srgb,var(--seva-accent-2) 10%,var(--card-bg-solid,#fff)));}
:where(.profile-standard-composition:not(.has-custom-css)) .public-inner {padding:1.5rem;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-avatar-wrap {margin-block:-4rem 1rem;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-avatar {width:6rem;height:6rem;border-radius:1.65rem;border:4px solid var(--card-bg-solid,#fff);box-shadow:0 6px 22px #0000000a;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-header-content {margin-block:0 1rem;min-width:0;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-title {font-size:clamp(1.65rem,4vw,2.3rem);line-height:1.25;overflow-wrap:anywhere;margin-block:.25rem .45rem;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-profession {font-size:1rem;font-weight:600;margin-block:0 .7rem;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-biography {font-size:.96rem;line-height:1.75;margin-block:0;}
.profile-contact-actions {display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem;}
.profile-contact-actions:has(a) {margin-block:.75rem;}
.profile-standard-composition .profile-contact-actions a.public-link-card {flex:0 0 2.75rem;width:2.75rem;height:2.75rem;min-height:2.75rem;padding:.45rem;justify-content:center;border-radius:50%;background:color-mix(in srgb,var(--seva-text) 5%,var(--card-bg-solid,#fff));border:1px solid color-mix(in srgb,var(--seva-text) 18%,transparent);box-shadow:none;}
.profile-standard-composition .profile-contact-actions a.public-link-card .public-link-icon-wrap {margin:0;width:1.8rem;height:1.8rem;min-width:1.8rem;min-height:1.8rem;border-radius:0;background:none;border:0;box-shadow:none;display:inline-flex;padding:0;}
.profile-contact-actions .public-link-main {justify-content:center;flex:0 0 auto;gap:0;}
.profile-contact-actions .public-link-content,.profile-contact-actions .public-link-arrow {display:none;}
.profile-main-action {margin-block:1rem;min-width:0;}
.profile-main-action > .public-link-card,.profile-main-action > .public-link-card-button,.profile-main-action .public-link-collapse-toggle {width:100%;min-height:3.1rem;justify-content:center;text-align:center;padding:.8rem 1.1rem;border-radius:.875rem;}
.profile-main-action .public-link-main {flex:1;justify-content:center;min-width:0;}
.profile-main-action .public-link-icon-wrap {display:none;}
.profile-main-action .public-link-content {flex:1;text-align:center;}
.profile-main-action .public-link-title {color:inherit;font-size:1rem;font-weight:700;overflow-wrap:anywhere;}
.profile-main-action .public-link-url,.profile-main-action .public-link-subtitle {display:none;}
.profile-main-action > .is-style-default,.profile-main-action > .is-style-primary {background:color-mix(in srgb,var(--seva-accent) 40%,#111827);color:var(--seva-action-on-strong,#fff);border-color:transparent;box-shadow:0 6px 18px color-mix(in srgb,var(--seva-accent) 16%,transparent);}
.profile-main-action > .is-style-default .public-link-icon-wrap,.profile-main-action > .is-style-primary .public-link-icon-wrap {color:inherit;background:transparent;}
.profile-main-action a:focus-visible,.profile-contact-actions a:focus-visible {outline:3px solid var(--seva-accent);outline-offset:4px;}
:where(.profile-standard-composition) .profile-highlights {grid-template-columns:repeat(auto-fit,minmax(min(100%,4.25rem),1fr));gap:.65rem;margin-block:1rem 1.25rem;}
:where(.profile-standard-composition) .profile-highlight {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;padding:.6rem .25rem;text-align:center;border:0;border-radius:0;background:none;box-shadow:none;}
:where(.profile-standard-composition) .profile-highlight-value {min-width:0;max-width:100%;margin:0;font-size:clamp(1.15rem,3vw,1.65rem);line-height:1.25;color:var(--seva-profile-name);}
:where(.profile-standard-composition) .profile-highlight-label {min-width:0;max-width:100%;font-size:.75rem;line-height:1.4;color:var(--seva-text-soft);}
:where(.profile-standard-composition) .profile-highlight > i {color:var(--seva-accent);font-size:1rem;}
@media(max-width:480px){:where(.profile-standard-composition:not(.has-custom-css)) .public-inner{padding:1.2rem;}}

.profile-main-action > .is-style-default .public-link-icon-wrap i,.profile-main-action > .is-style-primary .public-link-icon-wrap i {color:inherit;}

/* The reviewed standard composition uses the canonical action and tab markup.
   Equal outer tracks keep the label centred while the small arrow sits beside it. */
.profile-standard-composition .profile-main-action > a.public-link-card {
  display:grid;
  grid-template-columns:minmax(1rem,1fr) minmax(0,auto) minmax(1rem,1fr);
  column-gap:.6rem;
}
.profile-standard-composition .profile-main-action > a .public-link-main {grid-column:2;}
.profile-standard-composition .profile-main-action > a .public-link-arrow {
  grid-column:3;justify-self:start;display:inline-flex;
  width:1rem;height:1rem;min-width:1rem;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;color:inherit;
}
.profile-standard-composition .profile-main-action > a .public-link-arrow i {font-size:.9rem;line-height:1;transform:rotate(45deg);}
.profile-standard-composition:dir(rtl) .profile-main-action > a .public-link-arrow i {transform:rotate(225deg);}

/* Clamp presentation only. Full owner-entered text remains in the document and
   is revealed with keyboard/touch focus or pointer hover; native titles also help. */
:where(.profile-standard-composition) .profile-highlight-value,
:where(.profile-standard-composition) .profile-highlight-label {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;
}
:where(.profile-standard-composition) .profile-highlight-value:hover,
:where(.profile-standard-composition) .profile-highlight-value:focus,
:where(.profile-standard-composition) .profile-highlight-label:hover,
:where(.profile-standard-composition) .profile-highlight-label:focus {display:block;overflow:visible;-webkit-line-clamp:unset;}
:where(.profile-standard-composition) .profile-highlight [tabindex]:focus-visible {outline:2px solid var(--seva-accent);outline-offset:3px;border-radius:.2rem;}
:where(.profile-standard-composition:not(.has-custom-css)) .public-profession,
:where(.profile-standard-composition:not(.has-custom-css)) .public-biography {overflow-wrap:anywhere;}

/* Keep existing scrolling, controls, active state and tab navigation. */
.public-phone-screen .profile-standard-composition:not(.has-custom-css) .public-profile-tabs-scroll {border-radius:0;}
.public-phone-screen .profile-standard-composition:not(.has-custom-css) .public-tabs {
  gap:.35rem;padding:0;border:0;border-radius:0;background:none;box-shadow:none;
}
.public-phone-screen .profile-standard-composition:not(.has-custom-css) .public-tab {
  padding:.75rem .65rem;border:0;border-block-end:2px solid transparent;
  border-radius:0;background:none;box-shadow:none;color:var(--seva-text-soft);
  line-height:1.4;transition:color .18s ease,border-color .18s ease;
}
.public-phone-screen .profile-standard-composition:not(.has-custom-css) .public-tab.active {
  border-block-end-color:var(--seva-accent);color:var(--seva-text);background:none;box-shadow:none;
}
.public-phone-screen .profile-standard-composition:not(.has-custom-css) .public-tab:focus-visible {outline:2px solid var(--seva-accent);outline-offset:-3px;}
.public-phone-screen .profile-standard-composition:not(.has-custom-css) .public-profile-tabs-control {border:0;background:none;box-shadow:none;color:var(--seva-text-soft);}

:where(.profile-standard-composition:not(.has-custom-css)) .public-avatar:not(:has(img)) {background:var(--card-bg-solid,#fff);color:var(--seva-profile-name);}

/* Compact contacts use the palette foreground even when a saved neon/primary
   link style previously supplied its own filled icon tile. */
.profile-standard-composition .profile-contact-actions a.public-link-card .public-link-icon-wrap i {color:var(--seva-icon-color);}
