/* Shared tournament header: matches the Events Administration tournament card. */
.tournament-hero { --accent: #23724d; --accent-soft: #e4f4e8; background: #fff; border: 1px solid #dce3eb; border-top: 4px solid var(--accent); border-radius: 12px; box-shadow: 0 2px 8px rgba(20, 50, 80, .06); margin: 20px 0 22px; overflow: hidden; }
.tournament-hero.status-draft { --accent: #c98a0d; --accent-soft: #fff3dc; }
.tournament-hero.status-completed { --accent: #6b7c8f; --accent-soft: #eef2f6; }
.tournament-hero.status-cancelled { --accent: #b52d2d; --accent-soft: #fdeaea; }
.tournament-hero .hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; padding: 18px 22px 16px; flex-wrap: wrap; }
.tournament-hero .hero-title { min-width: 0; flex: 1 1 360px; }
.tournament-hero .hero-eyebrow { margin: 0 0 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #64758a; font-weight: 700; }
.tournament-hero .hero-flags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tournament-hero .hero-flags:empty, .tournament-hero .hero-flags:not(:has(:not([hidden]))) { display: none; }
.tournament-hero .status-chip, .tournament-hero .window-chip { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 20px; padding: 2px 9px; }
.tournament-hero .status-chip { background: var(--accent-soft); color: var(--accent); }
.tournament-hero .window-chip { background: #eef2f6; color: #42566b; text-transform: none; letter-spacing: 0; font-weight: 600; }
.tournament-hero .dupr-chip { font-size: .72rem; font-weight: 700; border-radius: 20px; padding: 2px 9px; background: #e6f0ff; color: #0b3d91; }
.tournament-hero [hidden] { display: none !important; }
.tournament-hero h1 { margin: 8px 0 4px; color: #173f66; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; text-align: left; overflow-wrap: anywhere; }
.tournament-hero .hero-meta { margin: 0; color: #52657a; font-size: .95rem; }
.tournament-hero .hero-meta:empty { display: none; }
.tournament-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.tournament-hero .hero-actions > button:not(.lifecycle-end), .tournament-hero .hero-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: .88rem; font-weight: 600; color: #24527f; background: #fff; border: 1px solid #c9d6e3; border-radius: 8px; cursor: pointer; }
.tournament-hero .hero-actions > button:not(.lifecycle-end):hover { background: #eaf2fb; border-color: #9fc0e3; }
.tournament-hero .hero-actions svg { width: 16px; height: 16px; flex: none; }
.tournament-hero a.qr-link { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; padding: 8px 4px 6px; border: 1px solid #dbe4ed; border-radius: 10px; color: #155a9e; text-decoration: none; font-size: .7rem; font-weight: 700; letter-spacing: .05em; background: #f8fbfe; transition: background .15s, border-color .15s; }
.tournament-hero a.qr-link:hover { background: #e8f1fb; border-color: #9fc0e3; }
.tournament-hero .qr-icon { width: 30px; height: 30px; background: currentColor; -webkit-mask: url(/assets/qr-code-svgrepo-com.svg) center / contain no-repeat; mask: url(/assets/qr-code-svgrepo-com.svg) center / contain no-repeat; }
.tournament-hero .hero-tools { display: flex; flex-wrap: wrap; border-top: 1px solid #e5ebf2; background: #fbfcfe; }
.tournament-hero .hero-tools > a, .tournament-hero .hero-tools > span { flex: 1 1 0; min-width: 130px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; font-size: .9rem; font-weight: 600; text-decoration: none; color: #24527f; border-right: 1px solid #e5ebf2; white-space: nowrap; transition: background .15s, color .15s; }
.tournament-hero .hero-tools > :last-child { border-right: 0; }
.tournament-hero .hero-tools > a:hover { background: #eaf2fb; color: #0d47a1; }
.tournament-hero .hero-tools svg { width: 18px; height: 18px; flex: none; }
.tournament-hero .hero-tools .tool-current { color: #173f66; background: #fff; box-shadow: inset 0 -3px 0 var(--accent); cursor: default; }
.tournament-hero .hero-tools .tool-disabled { color: #9aa9b8; cursor: not-allowed; }
@media (max-width: 640px) {
  .tournament-hero .hero-top { padding: 14px 14px 12px; }
  .tournament-hero .hero-actions { justify-content: flex-start; }
  .tournament-hero .hero-tools > a, .tournament-hero .hero-tools > span { flex: 1 1 50%; min-width: 0; border-bottom: 1px solid #e5ebf2; }
}
