/* Main competition screens share the compact Inscripcions header geometry.
   Each screen keeps its own colours and functional controls. */
body .competition-workspace-page {
  width: 100%;
  max-width: none;
  margin: 12px auto 0;
  padding-top: 0;
  padding-right: 19px;
  padding-left: 19px;
}

.competition-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  padding: 12px 4px 16px;
}

.competition-page-title-block {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 100%;
}

.competition-page-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.competition-page-header .competition-page-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.competition-page-title-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.competition-page-title-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.competition-page-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 10px;
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.competition-page-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .competition-page-title-block { flex-basis: 230px; }
  .competition-page-header-actions { justify-content: flex-start; }
  .competition-page-header-actions .btn {
    max-width: 100%;
    white-space: normal;
  }
}
