/* entity.css — shared page-scoped styles for the SEO-05 programmatic pilot:
   /teams/<slug>/, /conference/<slug>/, /conference/ (index), and the
   "Browse by Conference" block baked into /teams/ (index).
   Generated pages (tools/seo-entity-gen.mjs) and the two hand-authored hubs
   (apps/web/teams/index.html, apps/web/conference/index.html) all load this
   one file so the four surfaces read as one system. Uses shared tokens only
   (tokens.css) — no hardcoded colors/fonts, matching the rest of the site's
   per-route <style> convention (see apps/web/teams/index.html). */

.ent-crumbs {
  font-family: var(--f-body);
  font-size: var(--sns-fs-13, 13px);
  color: var(--text-muted);
  padding: 20px var(--sns-content-px-dt, 24px) 0;
}
.ent-crumbs a { color: var(--text-muted); text-decoration: none; }
.ent-crumbs a:hover, .ent-crumbs a:focus-visible { color: var(--text-primary); text-decoration: underline; }
.ent-crumbs span[aria-current] { color: var(--text-primary); }

.ent-hero {
  padding: 8px var(--sns-content-px-dt, 24px) 4px;
}
.ent-hero h1 {
  font-family: var(--f-display);
  font-size: var(--sns-fs-32, 32px);
  line-height: var(--sns-lh-title, 1.05);
  letter-spacing: var(--sns-ls-display, .06em);
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.ent-hero p {
  font-family: var(--f-body);
  font-size: var(--sns-fs-15, 15px);
  color: var(--text-muted);
  margin: 0 0 10px;
  max-width: 74ch;
}
.ent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ent-badge {
  font-family: var(--f-body);
  font-weight: var(--sns-fw-semi, 600);
  font-size: var(--sns-fs-12, 12px);
  letter-spacing: var(--sns-ls-eyebrow, .12em);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface, #0A0A0A);
  border: 1px solid var(--gray-border, #2A2A2A);
  border-radius: var(--sns-radius-md, 6px);
  padding: 5px 10px;
  text-decoration: none;
}
a.ent-badge:hover, a.ent-badge:focus-visible {
  color: var(--text-primary);
  border-color: var(--team-color, var(--brand-red, #FF2D2D));
  outline: none;
}

.ent-insight, .ent-note {
  font-family: var(--f-body);
  font-size: var(--sns-fs-15, 15px);
  line-height: var(--sns-lh-body, 1.5);
  color: var(--text-primary);
  max-width: 74ch;
  margin: 14px var(--sns-content-px-dt, 24px);
}
.ent-note {
  color: var(--text-muted);
  font-size: var(--sns-fs-14, 14px);
  padding-left: 12px;
  border-left: 2px solid var(--gray-border, #2A2A2A);
}

.ent-section {
  padding: 8px var(--sns-content-px-dt, 24px) 28px;
}
.ent-section h2 {
  font-family: var(--f-display);
  font-size: var(--sns-fs-20, 20px);
  letter-spacing: var(--sns-ls-display, .06em);
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.ent-section p.ent-lead {
  font-family: var(--f-body);
  font-size: var(--sns-fs-14, 14px);
  color: var(--text-muted);
  margin: 0 0 14px;
}

.ent-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline-2, rgba(255,255,255,.1));
  border-radius: var(--sns-radius-lg, 8px);
  background: var(--grad-card-pop, linear-gradient(160deg,#16161A 0%,#0A0A0C 60%,#060608 100%));
}
.ent-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-body);
  font-size: var(--sns-fs-14, 14px);
}
.ent-table caption { text-align: left; padding: 10px 14px 0; color: var(--text-muted); font-size: var(--sns-fs-12, 12px); }
.ent-table th, .ent-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline, rgba(255,255,255,.06));
  white-space: nowrap;
}
.ent-table th {
  font-family: var(--f-display);
  font-size: var(--sns-fs-12, 12px);
  letter-spacing: var(--sns-ls-eyebrow, .12em);
  text-transform: uppercase;
  color: var(--text-muted);
}
.ent-table td.ent-num { font-family: var(--f-mono); color: var(--text-primary); }
.ent-table a { color: var(--text-primary); text-decoration: none; }
.ent-table a:hover, .ent-table a:focus-visible { color: var(--brand-red-bright, #FF3434); text-decoration: underline; }
.ent-table tbody tr:hover { background: rgba(255,255,255,.03); }

.ent-conf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ent-team-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  background: var(--bg-surface, #0A0A0A);
  border: 1px solid var(--hairline-2, rgba(255,255,255,.1));
  border-left: 3px solid var(--team-color, var(--brand-red, #FF2D2D));
  border-radius: var(--sns-radius-md, 6px);
  padding: 9px 12px;
  min-height: var(--sns-touch-target, 44px);
  justify-content: center;
}
.ent-team-chip:hover, .ent-team-chip:focus-visible {
  border-color: var(--team-color, var(--brand-red-bright, #FF3434));
  background: rgba(255,255,255,.04);
  outline: none;
}
.ent-team-chip .name {
  font-family: var(--f-display);
  font-size: var(--sns-fs-14, 14px);
  letter-spacing: var(--sns-ls-tight, .02em);
  text-transform: uppercase;
  color: var(--text-primary);
}
.ent-team-chip .sub {
  font-family: var(--f-mono);
  font-size: var(--sns-fs-11, 11px);
  color: var(--text-muted);
}

.ent-hub-groups { display: flex; flex-direction: column; gap: 18px; }
.ent-hub-group h3 {
  font-family: var(--f-display);
  font-size: var(--sns-fs-14, 14px);
  letter-spacing: var(--sns-ls-eyebrow, .12em);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ent-hub-group h3 a { color: var(--text-primary); text-decoration: none; }
.ent-hub-group h3 a:hover, .ent-hub-group h3 a:focus-visible { color: var(--brand-red-bright, #FF3434); text-decoration: underline; }
.ent-hub-group h3 .n { font-family: var(--f-mono); font-size: var(--sns-fs-11, 11px); color: var(--text-faint, #9CA0A8); text-transform: none; letter-spacing: 0; }

.ent-related { padding: 4px var(--sns-content-px-dt, 24px) 8px; }
.ent-related h2 {
  font-family: var(--f-display);
  font-size: var(--sns-fs-14, 14px);
  letter-spacing: var(--sns-ls-eyebrow, .12em);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.ent-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ent-related a {
  font-family: var(--f-body);
  font-size: var(--sns-fs-14, 14px);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-2, rgba(255,255,255,.1));
}
.ent-related a:hover, .ent-related a:focus-visible { color: var(--brand-red-bright, #FF3434); border-color: var(--brand-red-bright, #FF3434); }

.ent-back-row {
  padding: 4px var(--sns-content-px-dt, 24px) 40px;
  font-family: var(--f-body);
  font-size: var(--sns-fs-14, 14px);
}
.ent-back-row a { color: var(--text-muted); text-decoration: none; }
.ent-back-row a:hover, .ent-back-row a:focus-visible { color: var(--text-primary); text-decoration: underline; }

@media (max-width: 600px) {
  .ent-crumbs, .ent-hero, .ent-section, .ent-related, .ent-back-row {
    padding-left: var(--sns-content-px-mb, 12px);
    padding-right: var(--sns-content-px-mb, 12px);
  }
  .ent-insight, .ent-note { margin-left: var(--sns-content-px-mb, 12px); margin-right: var(--sns-content-px-mb, 12px); }
  .ent-table th, .ent-table td { padding: 8px 10px; }
}
