/*
 * Parità visuale SSR per Società e Regolamenti.
 * Il markup resta server-rendered e indicizzabile; nomi e gerarchie seguono
 * i componenti usati dal runtime Capacitor in www/js/app.js.
 */

.skate-live-native-parity .teams-rules-exact {
  /* Alias 1:1 delle variabili del bundle Capacitor sulle palette web SSR. */
  --background-app: var(--bg-canvas);
  --background-elevated: var(--surface-2);
  --background-subtle: var(--surface-3);
  --card-background: var(--card-bg);
  --color-accent-soft: rgb(var(--color-accent-rgb) / 13%);
  --color-brand: var(--color-highlight);
  --color-on-brand: #161200;
  --color-warning: color-mix(in srgb, var(--color-highlight) 72%, var(--text-primary));
  --font-size-xs: 0.72rem;
  --font-size-sm: 0.82rem;
  --font-size-lg: 1.12rem;
  --font-size-xl: clamp(1.65rem, 8vw, 2.5rem);
  --live-panel-soft: #121416;
  --live-copy: #fff;
  --live-muted: #aeb5b2;
  --live-cyan: #39cced;
  --live-orange: #ed8549;
  --live-yellow: #ffd522;
  --live-violet: #8e6ded;
  --live-blue: #5a8ee8;
  --live-green: #42d778;
  --shadow-sm: var(--shadow-soft);
  --text-link: color-mix(in srgb, var(--color-accent) 78%, var(--text-primary));
  display: grid;
  width: 100%;
  min-width: 0;
  gap: var(--space-5);
  color: var(--text-primary);
}

.skate-live-native-parity .teams-rules-exact *,
.skate-live-native-parity .teams-rules-exact *::before,
.skate-live-native-parity .teams-rules-exact *::after {
  box-sizing: border-box;
}

.skate-live-native-parity .native-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Directory società: stessa struttura di directoryHero/directoryControls. */
.skate-live-native-parity .teams-exact-page .directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(13rem, 0.9fr);
  align-items: center;
  gap: var(--space-5);
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.25rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 45%),
    var(--card-background);
  box-shadow: var(--shadow-sm);
}

.skate-live-native-parity .teams-exact-page .directory-hero__copy {
  min-width: 0;
}

.skate-live-native-parity .teams-exact-page .directory-hero__copy > small {
  color: var(--text-link);
  font-size: var(--font-size-xs);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skate-live-native-parity .teams-exact-page .directory-hero h1 {
  margin: 0.25rem 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.05em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .teams-exact-page .directory-hero p {
  max-width: 38rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.skate-live-native-parity .teams-exact-page .directory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.skate-live-native-parity .teams-exact-page .directory-summary span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--background-subtle);
  color: var(--text-secondary);
}

.skate-live-native-parity .teams-exact-page .directory-summary strong {
  color: var(--text-primary);
}

.skate-live-native-parity .teams-exact-page .directory-map-shell,
.skate-live-native-parity .teams-exact-page .directory-map-placeholder {
  position: relative;
  width: 100%;
  min-width: 0;
}

.skate-live-native-parity .teams-exact-page .directory-map-placeholder {
  display: grid;
  min-height: 17rem;
  place-items: center;
}

.skate-live-native-parity .teams-exact-page .directory-map-placeholder img {
  width: min(80%, 16rem);
  height: auto;
  opacity: 0.78;
}

.skate-live-native-parity .teams-exact-page .directory-leaflet-map,
.skate-live-native-parity .teams-exact-page .skate-live-real-map {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 21rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: #07120e;
}

.skate-live-native-parity .teams-exact-page .directory-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.35fr) auto;
  align-items: end;
  gap: var(--space-3);
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: 0.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-subtle);
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle > span {
  padding: 0 var(--space-2);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 850;
  text-transform: uppercase;
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle a {
  display: grid;
  min-width: 8.8rem;
  gap: 0.12rem;
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--radius-md) - 0.2rem);
  color: var(--text-secondary);
  text-decoration: none;
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle strong,
.skate-live-native-parity .teams-exact-page .directory-sort-toggle small {
  overflow-wrap: anywhere;
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle strong {
  color: inherit;
  font-weight: 900;
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle small {
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .teams-exact-page .directory-sort-toggle a.is-active {
  background: var(--color-accent);
  color: #071009;
}

.skate-live-native-parity .teams-rules-exact .search-field {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.skate-live-native-parity .teams-rules-exact .search-field > .icon,
.skate-live-native-parity .teams-rules-exact .search-field > .svg-icon {
  position: absolute;
  z-index: 1;
  left: var(--space-4);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
}

.skate-live-native-parity .teams-rules-exact .search-field input {
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0 var(--space-4) 0 3rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: 0;
  background: var(--background-elevated);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
}

.skate-live-native-parity .teams-rules-exact .search-field input::placeholder {
  color: var(--text-muted);
}

.skate-live-native-parity .teams-rules-exact .search-field input:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.skate-live-native-parity .teams-exact-page .directory-region-select {
  display: grid;
  gap: var(--space-1);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.skate-live-native-parity .teams-exact-page .skate-select {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 3rem 0 var(--space-4);
  appearance: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: 0;
  background-color: var(--background-elevated);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-brand) 50%),
    linear-gradient(135deg, var(--color-brand) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.4rem 0.4rem;
  color: var(--text-primary);
  font: inherit;
  font-weight: 750;
}

.skate-live-native-parity .teams-exact-page .directory-view-toggle {
  display: flex;
  min-height: 3.5rem;
  padding: 0.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-subtle);
}

.skate-live-native-parity .teams-exact-page .directory-view-toggle a {
  display: inline-flex;
  min-width: 5rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: calc(var(--radius-md) - 0.2rem);
  color: var(--text-secondary);
  font-weight: 800;
  text-decoration: none;
}

.skate-live-native-parity .teams-exact-page .directory-view-toggle a.is-active {
  background: var(--color-accent);
  color: #071009;
}

.skate-live-native-parity .teams-exact-page .directory-list-view,
.skate-live-native-parity .teams-exact-page .directory-map-view {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
}

.skate-live-native-parity .teams-exact-page [data-native-directory-panel][hidden],
.skate-live-native-parity .teams-exact-page [data-native-directory-group][hidden],
.skate-live-native-parity .teams-exact-page [data-native-team-card][hidden],
.skate-live-native-parity .native-rules-page [data-native-rule-card][hidden],
.skate-live-native-parity .teams-rules-exact [hidden] {
  display: none !important;
}

.skate-live-native-parity .teams-exact-page .directory-region-group {
  display: grid;
  gap: var(--space-3);
}

.skate-live-native-parity .teams-exact-page .directory-region-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.skate-live-native-parity .teams-exact-page .directory-region-group h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.skate-live-native-parity .teams-exact-page .directory-region-group > header span {
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--background-subtle);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-align: center;
}

.skate-live-native-parity .teams-rules-exact .card-list {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
}

.skate-live-native-parity .teams-rules-exact .data-card,
.skate-live-native-parity .teams-rules-exact .stat-card,
.skate-live-native-parity .teams-rules-exact .empty-state {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-background);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.skate-live-native-parity .teams-rules-exact .data-card {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-4);
}

.skate-live-native-parity .teams-exact-page .team-list-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, var(--background-elevated), color-mix(in srgb, var(--background-subtle) 88%, var(--color-accent-soft)));
}

.skate-live-native-parity .teams-exact-page .team-list-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: var(--color-accent);
  content: "";
}

.skate-live-native-parity .teams-exact-page .team-list-card:hover,
.skate-live-native-parity .teams-exact-page .team-list-card:focus-within {
  border-color: color-mix(in srgb, var(--color-accent) 56%, var(--border-strong));
  transform: translateY(-1px);
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-accent) 38%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 62%),
    var(--background-elevated);
  color: var(--color-accent);
  box-shadow: 0 0.6rem 1.5rem rgb(0 0 0 / 14%);
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button--compact {
  width: 4.4rem;
  height: 4.4rem;
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button--large {
  width: 7rem;
  height: 7rem;
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button--mini {
  width: 3.4rem;
  height: 3.4rem;
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button__plus {
  position: absolute;
  right: -0.1rem;
  bottom: 0.15rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 2px solid var(--background-app, var(--bg-canvas, #0b0e0c));
  border-radius: 999px;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
}

.skate-live-native-parity .teams-rules-exact .profile-logo-button--mini .profile-logo-button__plus {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.85rem;
}

.skate-live-native-parity .teams-exact-page .team-list-card__body,
.skate-live-native-parity .native-team-detail-page .live-athlete-card__body {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.skate-live-native-parity .teams-rules-exact .data-card__top {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.skate-live-native-parity .teams-rules-exact .data-card__top strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .teams-rules-exact .data-card__top small {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .teams-rules-exact .data-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .teams-exact-page .team-sport-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skate-live-native-parity .teams-exact-page .team-sport-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  min-height: 1.8rem;
  padding: 0.34rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 24%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 750;
}

.skate-live-native-parity .teams-exact-page .team-sport-stats strong {
  color: var(--text-primary);
  font-weight: 950;
}

.skate-live-native-parity .teams-exact-page .team-sport-stats .is-muted {
  border-color: var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
}

.skate-live-native-parity .teams-exact-page .directory-map-view {
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--card-background);
}

.skate-live-native-parity .teams-exact-page .directory-map-view .directory-leaflet-map,
.skate-live-native-parity .teams-exact-page .directory-map-view .skate-live-real-map {
  min-height: min(64vh, 40rem);
}

.skate-live-native-parity .teams-exact-page .skate-live-map-marker {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 0.16rem solid #071009;
  border-radius: 50%;
  background: var(--color-brand);
  color: transparent;
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--color-brand) 24%, transparent), 0 0 1rem color-mix(in srgb, var(--color-brand) 30%, transparent);
}

.skate-live-native-parity .teams-exact-page .skate-live-map-marker.is-many {
  border-color: #071009;
  background: var(--color-brand);
  color: transparent;
}

.skate-live-native-parity .teams-exact-page .skate-live-map-marker > span {
  width: 0.35rem;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 50%;
  background: currentColor;
  color: transparent;
  text-indent: -999px;
}

.skate-live-native-parity .teams-rules-exact .section-title {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.skate-live-native-parity .teams-rules-exact .section-title h2,
.skate-live-native-parity .teams-rules-exact .section-title h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  letter-spacing: -0.025em;
}

.skate-live-native-parity .teams-rules-exact .section-title span,
.skate-live-native-parity .teams-rules-exact .sync-row {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .teams-rules-exact .sync-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.skate-live-native-parity .teams-rules-exact .status-badge {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.skate-live-native-parity .teams-rules-exact .empty-state {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}

.skate-live-native-parity .teams-rules-exact .empty-state > .icon,
.skate-live-native-parity .teams-rules-exact .empty-state > .svg-icon {
  width: 2rem;
  height: 2rem;
  color: var(--text-muted);
}

.skate-live-native-parity .teams-rules-exact .empty-state p {
  max-width: 28rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.skate-live-native-parity .teams-exact-page .native-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* Scheda società: pageHead, identity card, stat-grid e liste native. */
.skate-live-native-parity .native-team-detail-page .page-head,
.skate-live-native-parity .native-rules-home-page .page-head,
.skate-live-native-parity .native-rules-page .page-head,
.skate-live-native-parity .native-categories-page .page-head {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.skate-live-native-parity .teams-rules-exact .page-head__eyebrow {
  margin: 0;
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skate-live-native-parity .teams-rules-exact .page-head h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .teams-rules-exact .page-head > p:not(.page-head__eyebrow) {
  max-width: 52rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.skate-live-native-parity .teams-rules-exact .button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.skate-live-native-parity .teams-rules-exact .button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

.skate-live-native-parity .teams-rules-exact .button--primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.skate-live-native-parity .teams-rules-exact .button--secondary {
  border-color: var(--border-subtle);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

.skate-live-native-parity .native-team-detail-page .team-identity-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 36%),
    var(--card-background);
}

.skate-live-native-parity .native-team-detail-page .team-identity-card > div {
  flex: 1 1 0;
  min-width: 0;
}

.skate-live-native-parity .native-team-detail-page .team-identity-card h2 {
  max-width: 100%;
  margin: 0.2rem 0;
  color: var(--text-primary);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .native-team-detail-page .team-identity-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .native-team-detail-page .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.skate-live-native-parity .native-team-detail-page .stat-card {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-3);
  border-color: var(--border-strong);
  text-align: center;
}

.skate-live-native-parity .native-team-detail-page .stat-card strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  overflow-wrap: anywhere;
}

.skate-live-native-parity .native-team-detail-page .stat-card span {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .native-team-detail-page .native-team-section {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
}

.skate-live-native-parity .native-team-detail-page .team-roster-category {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.skate-live-native-parity .native-team-detail-page .team-roster-category .section-title h3 {
  margin: 0;
  color: var(--text-primary);
}

.skate-live-native-parity .native-team-detail-page .live-athlete-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-color: var(--border-strong);
}

.skate-live-native-parity .native-team-detail-page .live-athlete-card p,
.skate-live-native-parity .native-team-detail-page .native-event-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.skate-live-native-parity .native-team-detail-page .native-event-card {
  color: inherit;
  text-decoration: none;
}

.skate-live-native-parity .native-team-detail-page a.native-event-card:hover,
.skate-live-native-parity .native-team-detail-page a.native-event-card:focus-visible {
  border-color: color-mix(in srgb, var(--color-accent) 54%, var(--border-strong));
  transform: translateY(-1px);
}

.skate-live-native-parity .native-team-detail-page .section-note {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-subtle);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.skate-live-native-parity .native-team-detail-page .official-source-link {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-link);
  font-weight: 800;
  text-decoration: none;
}

/* Scheda atleta: hero, statistiche e storico identici al runtime nativo. */
.skate-live-native-parity .native-athlete-detail-page {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-back {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-back .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  overflow: hidden;
  padding: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--card-border));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--color-accent) 30%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--color-accent-soft) 38%, var(--card-background)), var(--card-background));
  box-shadow: var(--shadow-sm);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-avatar {
  display: grid;
  width: 7rem;
  height: 7rem;
  place-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 2px solid color-mix(in srgb, var(--color-accent) 48%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 24%, var(--background-elevated)), var(--background-elevated));
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-avatar img,
.skate-live-native-parity .native-athlete-detail-page .athlete-avatar.is-approved img {
  width: 72%;
  height: 72%;
  border-radius: 0;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0.35rem 0.7rem rgb(0 0 0 / 28%));
}

.skate-live-native-parity .native-athlete-detail-page .athlete-avatar.is-approved img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-avatar .profile-logo-button__plus {
  opacity: 1;
  transform: none;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-avatar__label {
  max-width: 6.5rem;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero__body {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero__body p {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero__body p .icon {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-accent);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero__body h1 {
  max-width: 100%;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: var(--font-weight-bold);
  hyphens: none;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow-wrap: break-word;
  text-transform: uppercase;
  text-wrap: balance;
  word-break: normal;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-stat-card {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-background);
  box-shadow: var(--shadow-sm);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-stat-card .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--color-brand);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-stat-card span {
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-stat-card strong {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-history-card {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--color-accent) 26%, var(--card-border));
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-accent-soft) 45%, var(--card-background)), var(--card-background));
  box-shadow: var(--shadow-sm);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-history-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-history-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 8vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-history-head p,
.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-cache-note {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-content,
.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-year {
  display: grid;
  min-width: 0;
  gap: var(--space-4);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-year h2 {
  margin: 0;
  color: var(--color-brand);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--card-border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card-background) 74%, var(--color-accent-soft));
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event header {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event header span {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event h3,
.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event p {
  margin: 0;
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-event p {
  color: var(--text-secondary);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-list {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-row {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 78%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--background-elevated) 78%, transparent);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-row span {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-row strong,
.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-row small {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-row small {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-official-result-row em {
  display: inline-grid;
  min-width: 2.55rem;
  min-height: 2.55rem;
  place-items: center;
  padding: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-brand) 28%, var(--background-subtle));
  color: var(--color-brand);
  font-style: normal;
  font-weight: var(--font-weight-bold);
}

.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-loader,
.skate-live-native-parity .native-athlete-detail-page .skate-live-athlete-history-error {
  border-color: var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-elevated);
}

/* Regolamenti: stesso pageHead/search/card dell'app. */
.skate-live-native-parity .native-rules-page .native-rules-search {
  display: block;
  min-width: 0;
}

.skate-live-native-parity .native-rules-page .native-clear-filter {
  width: fit-content;
  margin-top: calc(var(--space-3) * -1);
  color: var(--text-link);
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-decoration: none;
}

.skate-live-native-parity .teams-rules-exact .event-nav-list,
.skate-live-native-parity .teams-rules-exact .category-section-list,
.skate-live-native-parity .teams-rules-exact .rule-detail-copy {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.skate-live-native-parity .teams-rules-exact .category-section-list {
  margin-top: 1.25rem;
}

.skate-live-native-parity .teams-rules-exact .category-nav-section {
  display: grid;
  gap: 0.75rem;
}

.skate-live-native-parity .teams-rules-exact .event-nav-card {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--card-bg-strong);
  color: var(--text-primary);
  text-align: start;
  text-decoration: none;
}

.skate-live-native-parity .teams-rules-exact .event-nav-card:hover,
.skate-live-native-parity .teams-rules-exact .event-nav-card:focus-visible {
  border-color: var(--border-accent);
  background: rgba(var(--color-accent-rgb), 0.07);
  outline: 0;
}

.skate-live-native-parity .teams-rules-exact .event-nav-card div {
  display: grid;
  min-width: 0;
  gap: 0.24rem;
}

.skate-live-native-parity .teams-rules-exact .event-nav-card strong {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.skate-live-native-parity .teams-rules-exact .event-nav-card span,
.skate-live-native-parity .teams-rules-exact .event-nav-card small {
  color: var(--text-secondary);
  line-height: 1.35;
}

.skate-live-native-parity .teams-rules-exact .event-nav-card__arrow {
  color: var(--color-accent);
  font-size: 1.9rem;
  font-weight: 850;
  line-height: 1;
}

.skate-live-native-parity .teams-rules-exact .live-step-list {
  display: grid;
  min-width: 0;
  gap: 0.9rem;
}

.skate-live-native-parity .teams-rules-exact .live-step-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 6.1rem;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--live-green) 28%, var(--border-subtle));
  border-radius: 1.25rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-green) 22%, var(--live-panel-soft)), var(--live-panel-soft));
  color: var(--live-copy);
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 4%);
}

.skate-live-native-parity .teams-rules-exact .live-step-card:hover,
.skate-live-native-parity .teams-rules-exact .live-step-card:focus-visible {
  transform: translateY(-1px);
  outline: 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%), 0 0.9rem 1.8rem rgb(0 0 0 / 18%);
}

.skate-live-native-parity .teams-rules-exact .live-step-card__category-icon {
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 0.8rem;
  color: currentColor;
}

.skate-live-native-parity .teams-rules-exact .live-step-card > span {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 0.3rem;
}

.skate-live-native-parity .teams-rules-exact .live-step-card strong {
  color: var(--live-copy);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.18;
}

.skate-live-native-parity .teams-rules-exact .live-step-card small {
  color: var(--live-muted);
  font-size: 0.92rem;
  line-height: 1.32;
}

.skate-live-native-parity .teams-rules-exact .live-step-card > .icon,
.skate-live-native-parity .teams-rules-exact .live-step-card > .svg-icon:last-child {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  color: currentColor;
}

.skate-live-native-parity .teams-rules-exact .live-tone--primi-passi {
  border-color: var(--live-green);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-green) 30%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--giovanissimi {
  border-color: var(--live-cyan);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-cyan) 28%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--esordienti {
  border-color: var(--live-orange);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-orange) 28%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--ragazzi,
.skate-live-native-parity .teams-rules-exact .live-tone--ragazzi-12 {
  border-color: var(--live-yellow);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-yellow) 25%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--allievi {
  border-color: var(--live-violet);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-violet) 28%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--juniores {
  border-color: var(--live-blue);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-blue) 28%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--seniores {
  border-color: var(--live-orange);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-orange) 25%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .teams-rules-exact .live-tone--master-over-30,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-35,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-40,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-45,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-50,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-55,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-60,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-65,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-70,
.skate-live-native-parity .teams-rules-exact .live-tone--master-over-75 {
  border-color: var(--live-cyan);
  background: linear-gradient(120deg, color-mix(in srgb, var(--live-cyan) 18%, var(--live-panel-soft)), var(--live-panel-soft));
}

.skate-live-native-parity .native-rules-page .event-nav-card.rule-list-card {
  position: relative;
  overflow: hidden;
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, var(--background-elevated), color-mix(in srgb, var(--background-subtle) 88%, var(--color-accent-soft)));
}

.skate-live-native-parity .native-rules-page .event-nav-card.rule-list-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: var(--color-info);
  content: "";
}

.skate-live-native-parity .native-rules-page .event-nav-card.rule-list-card strong {
  padding-left: 0.15rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
}

.skate-live-native-parity .native-rules-page .event-nav-card.rule-list-card span {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.skate-live-native-parity .native-rules-page .rule-list-card.is-verified .data-card__meta span:last-child {
  color: var(--color-accent);
  font-weight: 800;
}

.skate-live-native-parity .native-rules-page .rule-list-card.is-to-check .data-card__meta span:last-child {
  color: var(--color-warning);
  font-weight: 800;
}

.skate-live-native-parity .native-rules-page .native-rule-details {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.skate-live-native-parity .native-rules-page .native-rule-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--text-link);
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.skate-live-native-parity .native-rules-page .native-rule-details[open] {
  display: grid;
  gap: var(--space-3);
}

.skate-live-native-parity .native-rules-page .native-rule-details p,
.skate-live-native-parity .native-rules-page .native-rule-details small {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.skate-live-native-parity .native-rules-page .native-rule-details a {
  width: fit-content;
  color: var(--text-link);
  font-weight: 800;
  text-decoration: none;
}

.skate-live-native-parity .native-rules-page .native-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skate-live-native-parity .native-rules-page .native-rule-chips span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--background-subtle);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 750;
}

.skate-live-native-parity .native-rules-page .native-rule-examples {
  display: grid;
  gap: var(--space-2);
}

.skate-live-native-parity .native-rules-page .native-rule-examples ul {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.skate-live-native-parity .native-rule-detail-page .rule-detail-copy .data-card {
  gap: 0.55rem;
}

.skate-live-native-parity .native-rule-detail-page .rule-detail-copy .data-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bottom sheet informativa: dialog nativo con fallback browser. */
.skate-live-native-parity .teams-rules-exact .native-profile-dialog {
  width: min(calc(100% - 2rem), 38rem);
  max-width: 38rem;
  max-height: min(86dvh, 46rem);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--text-primary);
}

.skate-live-native-parity .teams-rules-exact .native-profile-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(0.35rem);
}

.skate-live-native-parity .teams-rules-exact .native-profile-dialog__panel {
  position: relative;
  display: grid;
  gap: var(--space-3);
  max-height: min(86dvh, 46rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--background-elevated);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 56%);
}

.skate-live-native-parity .teams-rules-exact .native-profile-dialog__panel > small {
  padding-right: 3rem;
  color: var(--color-accent);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skate-live-native-parity .teams-rules-exact .native-profile-dialog__panel h2,
.skate-live-native-parity .teams-rules-exact .native-profile-dialog__panel p {
  margin: 0;
}

.skate-live-native-parity .teams-rules-exact .native-profile-dialog__panel p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra {
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--background-subtle);
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra[open] {
  display: grid;
  gap: var(--space-3);
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra summary {
  cursor: pointer;
  color: var(--text-link);
  font-weight: 800;
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra dl > div {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-2);
  border-radius: calc(var(--radius-md) - 0.25rem);
  background: var(--background-elevated);
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra dt {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 850;
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra .native-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra .native-rule-chips span {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--background-elevated);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 750;
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra article {
  display: grid;
  gap: var(--space-1);
}

.skate-live-native-parity .native-team-detail-page .native-profile-extra article small {
  color: var(--text-muted);
  line-height: 1.5;
}

.skate-live-native-parity .teams-rules-exact .native-profile-dialog__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--background-subtle);
  color: var(--text-primary);
  font-size: 1.7rem;
  line-height: 1;
}

.skate-live-native-parity .native-categories-page .category-season-panel,
.skate-live-native-parity .native-rule-detail-page .rule-detail-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.skate-live-native-parity .native-categories-page .category-season-panel > div,
.skate-live-native-parity .native-categories-page .category-season-panel > a,
.skate-live-native-parity .native-rule-detail-page .rule-detail-panel > div {
  display: flex;
  min-height: 4.75rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.95rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--card-bg-strong);
  color: var(--text-primary);
  text-decoration: none;
}

.skate-live-native-parity .native-categories-page .category-season-panel span,
.skate-live-native-parity .native-rule-detail-page .rule-detail-panel span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.skate-live-native-parity .native-categories-page .category-season-panel strong,
.skate-live-native-parity .native-rule-detail-page .rule-detail-panel strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.skate-live-native-parity .native-categories-page .category-season-panel > a {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.skate-live-native-parity .native-categories-page .category-season-panel > a .icon,
.skate-live-native-parity .native-categories-page .category-season-panel > a .svg-icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
}

.skate-live-native-parity .native-categories-page .category-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--card-bg-strong);
  box-shadow: var(--shadow-card);
}

.skate-live-native-parity .native-categories-page .category-table {
  width: 100%;
  min-width: 41rem;
  border-collapse: collapse;
  color: var(--text-primary);
}

.skate-live-native-parity .native-categories-page .category-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skate-live-native-parity .native-categories-page .category-table th,
.skate-live-native-parity .native-categories-page .category-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.skate-live-native-parity .native-categories-page .category-table thead th {
  background: rgba(var(--theme-contrast-rgb), 0.055);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.skate-live-native-parity .native-categories-page .category-table tbody th {
  font-weight: 850;
}

.skate-live-native-parity .native-categories-page .category-table tbody td {
  color: var(--text-secondary);
  font-weight: 700;
}

.skate-live-native-parity .native-categories-page .category-section-row th {
  padding: 0.7rem 1rem;
  background: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skate-live-native-parity .native-categories-page .category-table tr:last-child th,
.skate-live-native-parity .native-categories-page .category-table tr:last-child td {
  border-bottom: 0;
}

.skate-live-native-parity .native-categories-page .category-note {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.skate-live-native-parity .skate-live-global-follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.skate-live-native-parity .skate-live-global-follow-button .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.skate-live-native-parity .skate-live-global-follow-button:hover,
.skate-live-native-parity .skate-live-global-follow-button:focus-visible {
  border-color: color-mix(in srgb, var(--color-accent) 54%, var(--border-strong));
  color: var(--color-accent);
}

.skate-live-native-parity .skate-live-global-follow-button.is-followed,
.skate-live-native-parity .skate-live-global-follow-button[aria-pressed="true"] {
  border-color: color-mix(in srgb, #f3b41b 76%, var(--border-strong));
  background: color-mix(in srgb, #f3b41b 16%, var(--surface));
  color: #9b6400;
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.skate-live-native-parity .native-athlete-detail-page .athlete-hero__actions .skate-live-global-follow-button {
  width: auto;
  min-width: 0;
  gap: 0.4rem;
  padding: 0 0.85rem;
}

@media (max-width: 48rem) {
  .skate-live-native-parity .native-categories-page .category-season-panel,
  .skate-live-native-parity .native-rule-detail-page .rule-detail-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .skate-live-native-parity .teams-exact-page .directory-hero,
  .skate-live-native-parity .teams-exact-page .directory-controls {
    grid-template-columns: 1fr;
  }

  .skate-live-native-parity .teams-exact-page .directory-view-toggle {
    width: 100%;
  }

  .skate-live-native-parity .teams-exact-page .directory-view-toggle a {
    flex: 1;
  }

  .skate-live-native-parity .teams-exact-page .directory-sort-toggle a {
    flex: 1 1 8rem;
  }

  .skate-live-native-parity .teams-exact-page .directory-leaflet-map,
  .skate-live-native-parity .teams-exact-page .skate-live-real-map {
    min-height: 18rem;
  }

  .skate-live-native-parity .teams-exact-page .directory-map-view .directory-leaflet-map,
  .skate-live-native-parity .teams-exact-page .directory-map-view .skate-live-real-map {
    min-height: min(62vh, 34rem);
  }
}

@media (min-width: 45rem) {
  .skate-live-native-parity .teams-rules-exact .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skate-live-native-parity .native-athlete-detail-page .athlete-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .skate-live-native-parity .native-athlete-detail-page .athlete-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .skate-live-native-parity .native-athlete-detail-page .athlete-avatar {
    width: 6.1rem;
    height: 6.1rem;
  }

  .skate-live-native-parity .native-athlete-detail-page .athlete-avatar__label {
    max-width: 5.8rem;
    font-size: 0.58rem;
  }

  .skate-live-native-parity .native-athlete-detail-page .athlete-hero__body h1 {
    font-size: clamp(2rem, 10.2vw, 2.7rem);
    line-height: 1.02;
  }

  .skate-live-native-parity .native-team-detail-page .team-identity-card {
    align-items: flex-start;
  }

  .skate-live-native-parity .native-team-detail-page .team-identity-card .profile-logo-button--large {
    width: 6rem;
    height: 6rem;
  }

  .skate-live-native-parity .native-team-detail-page .team-identity-card h2 {
    font-size: clamp(1.05rem, 5.4vw, 1.35rem);
  }

}

@media (max-width: 34rem) {
  .skate-live-native-parity .teams-rules-exact .native-profile-dialog {
    width: calc(100% - 1rem);
    margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
}
