/* Main competition screens share the compact Inscripcions header geometry.
   Notes and Jurat also share a transparent wrapper and a scoring header.
   The wrapper keeps the platform's card controls for their tables and forms. */
body .competition-workspace-page {
  width: 100%;
  max-width: none;
  margin: 12px auto 0;
  padding-top: 0;
  padding-right: 19px;
  padding-left: 19px;
}

.card-surface.competition-workspace-surface {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.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%;
}

.competition-page-header--notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e5cf9b;
}

.competition-page-header--notes .competition-page-title { color: #78350f; }

.competition-page-header--notes .competition-page-title-logo {
  border: 1px solid rgba(161, 98, 7, .2);
  border-radius: 10px;
  background: #fff;
  color: #a16207;
  box-shadow: 0 8px 18px rgba(161, 98, 7, .09);
}

.competition-page-header--notes .competition-page-context {
  color: #0f172a;
  font-weight: 650;
}

.competition-page-header--notes .competition-page-header-actions {
  justify-self: end;
  min-height: 36px;
  gap: .6rem;
}

.competition-page-header-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

@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;
  }
}

@media (max-width: 991.98px) {
  /* Notes and Jurat fit their labelled actions in one row on narrow screens. */
  .competition-page-header--notes .competition-page-header-actions .competition-page-header-action.btn.btn-sm {
    padding-inline: .25rem;
    gap: .35rem;
  }
}

@media (max-width: 599.98px) {
  /* Below 600px the title and all labelled actions need separate rows. */
  .competition-page-header--notes { grid-template-columns: minmax(0, 1fr); }
  .competition-page-header--notes .competition-page-header-actions { justify-self: start; }
}
