/* IP profile and tabs: shared tokens, optional cover, native card renderers. */
.tst-ip [hidden] {display:none!important}
.tst-ip-profile {margin-bottom:var(--tst-space-4)}
.tst-ip-cover {aspect-ratio:var(--tst-media-ip-cover);overflow:hidden;border-radius:var(--tst-radius-feature);background:var(--tst-surface-subtle)}
.tst-ip .tst-ip-cover-image {display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.tst-ip-identity {display:flex;align-items:center;gap:var(--tst-space-5);padding-block:var(--tst-space-4)}
.tst-ip-profile--cover .tst-ip-identity {padding-inline:var(--tst-space-5)}
.tst-ip-logo {position:relative;flex:none;width:144px;height:144px;border:var(--tst-space-1) solid var(--tst-canvas);border-radius:var(--tst-radius-round);background:var(--tst-surface);overflow:hidden}
.tst-ip-profile--cover .tst-ip-logo {align-self:flex-start;margin-top:calc(-1 * var(--tst-space-7))}
.tst-ip .tst-ip-logo-image {display:block;width:100%;height:100%;object-fit:contain}
.tst-ip-intro {flex:1;min-width:0}
.tst-ip-breadcrumb {display:flex;align-items:center;gap:var(--tst-space-2);flex-wrap:wrap;font-size:var(--tst-type-caption);color:var(--tst-muted);margin:0 0 var(--tst-space-2)}
.tst-ip-breadcrumb a {color:inherit;min-height:var(--tst-touch-min);display:inline-flex;align-items:center;margin-block:calc(-1 * var(--tst-space-2))}
.tst-ip .tst-ip-intro h1 {font-size:var(--tst-type-page);line-height:var(--tst-leading-heading);font-weight:700;letter-spacing:-.035em;margin:0 0 var(--tst-space-2);overflow-wrap:anywhere}
.tst-ip .tst-ip-description {max-width:65ch;font-size:var(--tst-type-reading);line-height:var(--tst-leading-body);color:var(--tst-muted);margin:0;overflow-wrap:anywhere}
.tst-ip .tst-ip-followers {font-size:var(--tst-type-label);color:var(--tst-muted);margin:var(--tst-space-2) 0 0}
.tst-ip-followers span {font-weight:600;color:var(--tst-ink)}
.tst-ip-panel {scroll-margin-top:var(--tst-space-5)}
.tst-ip-panel:focus-visible {outline:2px solid var(--tst-focus);outline-offset:var(--tst-space-1)}
.tst-ip .tst-ip-panel>h2 {font-size:var(--tst-type-section);line-height:var(--tst-leading-heading);letter-spacing:-.025em;margin:0 0 var(--tst-space-4)}
.tst-ip .tst-ip-grid {display:grid;gap:var(--tst-section-gap) var(--tst-grid-gap);margin:0}
.tst-ip .tst-ip-grid.tstd-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.tst-ip-empty {padding-block:var(--tst-space-6);color:var(--tst-muted);margin:0}
.tst-ip-pagination {display:flex;align-items:center;justify-content:center;gap:var(--tst-space-4);flex-wrap:wrap;margin-top:var(--tst-space-6);font-size:var(--tst-type-label)}
@media(max-width:900px) {
  .tst-ip .tst-ip-grid.tstd-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .tst-ip-identity {flex-wrap:wrap}
  .tst-ip-intro {flex-basis:calc(100% - 168px)}
  .tst-ip-identity>.tstd-save--profile {margin-left:168px}
  .tst-ip-profile:not(.tst-ip-profile--logo) .tst-ip-identity>.tstd-save--profile {margin-left:0}
}
@media(max-width:600px) {
  .tst-ip-cover {border-radius:var(--tst-radius-card)}
  .tst-ip-profile {margin-bottom:var(--tst-space-4)}
  .tst-ip-identity {gap:var(--tst-space-4);align-items:flex-start}
  .tst-ip-profile--cover .tst-ip-identity {padding-inline:0}
  .tst-ip-logo {width:72px;height:72px}
  .tst-ip-profile--cover .tst-ip-logo {margin-top:calc(-1 * var(--tst-space-6))}
  .tst-ip-intro {flex-basis:calc(100% - 88px)}
  .tst-ip .tst-ip-intro h1 {font-size:var(--tst-type-page)}
  .tst-ip .tst-ip-description {font-size:var(--tst-type-reading);line-height:var(--tst-leading-ui)}
  .tst-ip-breadcrumb {display:none}
  .tst-ip-identity>.tstd-save--profile {width:100%;margin-left:0}
  .tst-ip .tst-ip-panel>h2 {font-size:var(--tst-type-section);margin-bottom:var(--tst-space-4)}
  .tst-ip .tst-ip-grid {gap:var(--tst-section-gap) var(--tst-grid-gap)}
  .tst-ip .tst-ip-grid.tstd-grid {grid-template-columns:minmax(0,1fr)}
}
