.tag-shell{padding-block-start:clamp(1rem,2vw,2rem)}
.tag-profile{display:grid;gap:.85rem;padding:clamp(1.25rem,3vw,2.5rem);margin-block-end:clamp(1.4rem,3vw,2.6rem);border:1px solid var(--border);border-radius:clamp(18px,2vw,28px);background:var(--surface)}
.tag-profile__eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.16em;color:var(--accent)}
.tag-profile__title{display:flex;align-items:baseline;gap:.45rem}
.tag-profile__hash{font-size:clamp(2rem,6vw,4.8rem);font-weight:900;line-height:1;color:var(--accent)}
.tag-profile h1{margin:0;font-size:clamp(2rem,6vw,4.8rem);line-height:1.08}
.tag-profile p{max-width:70ch;margin:0;color:var(--muted);font-size:clamp(1rem,1.6vw,1.16rem);line-height:1.8}
.tag-profile__stat{display:flex;align-items:baseline;gap:.55rem;margin-block-start:.2rem}
.tag-profile__stat strong{font-size:1.35rem}
.tag-profile__stat span{color:var(--muted)}
.tag-results{scroll-margin-top:7rem}
@media(max-width:720px){.tag-profile{border-radius:18px}.tag-profile__hash,.tag-profile h1{font-size:clamp(2rem,12vw,3.2rem)}}


/* Public Surface Quality V2 — tag pages are a primary Egytag identity surface. */
.tag-profile{
  border:1px solid var(--quality-surface-border);
  border-radius:var(--quality-radius-panel);
  background:var(--quality-surface-bg);
  box-shadow:var(--quality-surface-shadow);
}
.tag-profile__eyebrow,
.tag-profile__hash{
  color:var(--quality-tag-primary);
}
.tag-profile__stat{
  width:max-content;
  max-width:100%;
  padding:.42rem .72rem;
  border:1px solid var(--quality-chip-border);
  border-radius:var(--radius-pill);
  background:var(--quality-chip-bg);
  box-shadow:var(--quality-chip-shadow);
}
@media(max-width:720px){
  .tag-profile{border-radius:18px}
}


/* Cross-site tag discovery V2 */
.tag-group-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.tag-group-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper-1);
  color:var(--ink-1);
  text-decoration:none;
}
.tag-group-card:hover{
  border-color:var(--accent);
  background:color-mix(in srgb,var(--accent) 5%,var(--paper-1));
}
.tag-group-card__mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--accent) 32%,var(--line));
  border-radius:11px;
  background:color-mix(in srgb,var(--accent) 8%,var(--paper-1));
  font-weight:900;
}
.tag-group-card strong{display:block;font-size:.84rem}
.tag-group-card p{
  margin:.25rem 0;
  color:var(--ink-2);
  font-size:.7rem;
  line-height:1.6;
}
.tag-group-card small{color:var(--ink-2);font-size:.62rem}
.tag-post-list{display:grid;gap:9px}
.tag-post-list article{
  display:grid;
  gap:7px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper-1);
}
.tag-post-list article>header,
.tag-post-list article>footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.tag-post-list article>header a,
.tag-post-list article>footer a,
.tag-post-list h3 a{
  color:var(--ink-1);
  text-decoration:none;
}
.tag-post-list article>header span,
.tag-post-list article>footer span{
  color:var(--ink-2);
  font-size:.62rem;
}
.tag-post-list h3{margin:0;font-size:.86rem}
.tag-post-list p{
  margin:0;
  color:var(--ink-2);
  font-size:.72rem;
  line-height:1.7;
}
.tag-post-list article>footer a{
  color:var(--accent);
  font-size:.65rem;
  font-weight:850;
}
@media(max-width:760px){
  .tag-group-grid{grid-template-columns:1fr}
}


/* Tags V2 — follow + cross-entity discovery. */
.tag-profile__actions{
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px
}
.tag-profile__actions button,.tag-profile__actions a{
  min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;
  border:1px solid var(--ds-border-active);border-radius:9px;background:var(--ds-surface-interactive);
  color:var(--ds-text-default);font-size:.68rem;font-weight:900;text-decoration:none;cursor:pointer
}
.tag-profile__actions button.is-active{
  border-color:var(--ds-action-primary-border);background:var(--ds-action-primary-bg);color:var(--ds-action-primary-text)
}
.tag-profile__actions [data-tag-status]{width:100%;color:var(--ds-text-muted);font-size:.61rem;text-align:center}
.tag-entity-grid,.tag-expert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tag-entity-grid>a{
  display:grid;gap:5px;padding:13px;border:1px solid var(--ds-border-subtle);border-radius:11px;
  background:var(--ds-surface-panel);color:var(--ds-text-strong);text-decoration:none
}
.tag-entity-grid>a:hover,.tag-expert-grid>a:hover{border-color:color-mix(in srgb,var(--accent-primary) 38%,var(--ds-border-subtle))}
.tag-entity-grid small{color:var(--ds-text-muted);font-size:.57rem;font-weight:850}
.tag-entity-grid strong{font-size:.76rem}
.tag-entity-grid p{margin:0;color:var(--ds-text-muted);font-size:.64rem;line-height:1.6}
.tag-expert-grid>a{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;padding:12px;
  border:1px solid var(--ds-border-subtle);border-radius:11px;background:var(--ds-surface-panel);text-decoration:none
}
.tag-expert-grid>a>span{
  width:38px;height:38px;display:grid;place-items:center;border-radius:50%;
  background:color-mix(in srgb,var(--accent-primary) 9%,var(--ds-surface-base));color:var(--ds-text-strong);font-weight:900
}
.tag-expert-grid>a>div{display:grid;gap:2px}
.tag-expert-grid strong{color:var(--ds-text-strong);font-size:.7rem}
.tag-expert-grid p{margin:0;color:var(--ds-text-muted);font-size:.61rem}
.tag-expert-grid small{color:var(--ds-text-muted);font-size:.56rem}
@media(max-width:850px){.tag-entity-grid,.tag-expert-grid{grid-template-columns:1fr}}
