/* ==========================================================
   Programmatic entity pages — club / stadium / league.
   Inherits tokens from /assets/style.css and /blog/blog.css.
   Kept deliberately small so every new page type is cheap to style.
   ========================================================== */

.entity-crumbs {
  padding: 24px 32px 0;
  margin: 0 auto;
  max-width: 1100px;
}

.entity-hero {
  padding: 56px 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.entity-hero .container {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: center;
}
.entity-hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}
.entity-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.entity-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}
.entity-hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.entity-hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.entity-body {
  padding: 56px 0;
  max-width: 920px !important;
}
.entity-body .container {
  max-width: 920px;
}

.entity-section + .entity-section {
  margin-top: 56px;
}

.entity-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.entity-section h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.entity-section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}
.entity-section p:last-child {
  margin-bottom: 0;
}

.entity-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.entity-facts > li {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}
.entity-facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.entity-facts dd {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.entity-facts dd a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.entity-facts dd a:hover {
  border-bottom-color: var(--green);
}

.entity-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  list-style: none;
  padding: 0;
}
.entity-list li {
  border-bottom: 1px solid var(--border);
}
.entity-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--text);
  transition: padding-left 0.15s;
}
.entity-list a:hover {
  padding-left: 10px;
  color: var(--green);
}
.entity-list-crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.entity-list-name {
  font-weight: 500;
  flex: 1;
}
.entity-list-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.entity-matches {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.entity-matches li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.entity-matches .match-date {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.entity-matches .match-teams {
  font-weight: 500;
}
.entity-matches .match-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

.entity-siblings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.entity-siblings li {
  font-size: 15px;
  line-height: 1.8;
}
.entity-siblings a {
  color: var(--text-secondary);
}
.entity-siblings a:hover {
  color: var(--green);
}

.entity-empty {
  color: var(--text-secondary);
  font-size: 15px;
  padding: 18px 0;
}

@media (max-width: 640px) {
  .entity-hero { padding: 36px 0 32px; }
  .entity-hero .container { grid-template-columns: 72px 1fr; gap: 18px; }
  .entity-hero-logo { width: 72px; height: 72px; border-radius: 14px; }
  .entity-hero h1 { font-size: 30px; }
  .entity-section h2 { font-size: 22px; }
  .entity-body p { font-size: 16px; }
  .entity-matches li { grid-template-columns: 72px 1fr auto; font-size: 13px; }
}
