/* =========================================================
   REGIONAL COMPETITIONS
   ========================================================= */

.regional-competitions-page .documents-list {
  align-items: start;
}

.regional-competitions-page .document-group-title > i {
  background: #dff0fa;
}

.competition-news {
  grid-column: 1 / -1;
}

.competition-accordions {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.competition-season {
  overflow: hidden;
  border: 1px solid #e1eaf0;
  border-radius: 9px;
  background: #fbfdfe;
}

.competition-season summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 15px;
  color: #234a73;
  background: #f7fafc;
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease, color .2s ease;
}

.competition-season summary::-webkit-details-marker {
  display: none;
}

.competition-season summary i {
  color: #0a7ec2;
  transition: transform .2s ease;
}

.competition-season[open] summary {
  background: #eaf5fb;
  color: #173b5f;
}

.competition-season[open] summary i {
  transform: rotate(180deg);
}

.competition-scroll-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  margin: 0;
  padding: 12px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #b8cedc transparent;
}

.competition-scroll-list li {
  min-width: 0;
  margin: 0;
}

.competition-scroll-list a,
.empty-document {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  color: #234a73;
  background: #fff;
  border: 1px solid #e7eef3;
  border-radius: 7px;
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.competition-scroll-list a i {
  flex: 0 0 auto;
  color: #0a7ec2;
}

.competition-scroll-list a:hover {
  background: #f0f8fc;
  border-color: #bdd9e8;
  transform: translateY(-1px);
}

.empty-document {
  color: #6d7d89;
  background: #f8fafb;
}

.empty-document i {
  flex: 0 0 auto;
  color: #0a7ec2;
}

@media (max-width: 900px) {
  .competition-scroll-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .competition-accordions {
    padding: 11px;
  }

  .competition-scroll-list {
    grid-template-columns: 1fr;
    max-height: 300px;
    padding: 9px;
  }

  .competition-season summary {
    min-height: 50px;
    padding: 11px 12px;
  }

  .competition-scroll-list a,
  .empty-document {
    min-height: 48px;
    padding: 10px 11px;
    font-size: .88rem;
  }
}


/* =========================================================
   REGIONAL EDITOR
   ========================================================= */

.document-group-title {
  position: relative;
}

.regional-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #fff;
  background: #0a7ec2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.regional-add-button:hover {
  color: #fff;
  background: #08689f;
  transform: scale(1.06);
}

.regional-document-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.regional-document-row > a {
  flex: 1 1 auto;
  min-width: 0;
}

.regional-delete-form {
  display: flex;
  flex: 0 0 auto;
}

.regional-delete-button {
  width: 42px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #e7eef3;
  border-radius: 7px;
  color: #b33;
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.regional-delete-button:hover {
  background: #fff1f1;
  border-color: #e2b8b8;
}

.regional-message {
  margin: 0 0 20px;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
}

.regional-message-success {
  color: #27632a;
  background: #f1f9f1;
  border: 1px solid #b9d9b9;
}

@media (max-width: 600px) {
  .regional-add-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .regional-delete-button {
    width: 40px;
  }
}


/* Inline SVG icons - no external icon library required */
.regional-competitions-page svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.regional-competitions-page .document-group-title > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #0a7ec2;
}

.regional-add-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2.2;
}

.regional-delete-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2.2;
}

.competition-season summary > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #0a7ec2;
  transition: transform .2s ease;
}

.competition-season[open] summary > svg {
  transform: rotate(180deg);
}

.competition-scroll-list a > svg,
.empty-document > svg {
  color: #0a7ec2;
}
