.gp-contest-poem {
  max-width: 760px;
  margin: 1rem 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #641a27;
  background: #faf8f5;
  white-space: normal;
  line-height: 1.65;
}

/* Keep every public /konkurs page visually aligned with the site's content. */
body.gp-contest-route .region-content {
  box-sizing: border-box;
  margin: 20px 50px 50px;
}

body.gp-contest-route .block-page-title-block {
  margin-top: 0;
  margin-bottom: 30px;
}

body.gp-contest-route .block-page-title-block h1,
body.gp-contest-route h1.page-header,
body.gp-contest-route h1.page-title {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body.gp-contest-route .region-content {
    margin: 12px 0 30px;
  }
  body.gp-contest-route .block-page-title-block {
    margin-bottom: 22px;
  }
}
.gp-jury-poem-title {
  font-weight: 700;
}
.gp-assignment {
  max-width: 760px;
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 4px solid #397591;
  background: #f4f8fa;
}
.gp-assignment img,
.gp-assignment-choice-image {
  display: block;
  width: auto;
  max-width: min(100%, 620px);
  max-height: 520px;
  margin-top: .6rem;
}
.gp-assignment-filename {
  margin-top: .35rem;
  color: #526d7c;
  font-weight: 600;
}
.gp-contest-reader-ballot details {
  margin-bottom: .75rem;
}
.gp-contest-page .gp-contest-button,
.gp-contest-page .button--primary,
.gp-contest-page .form-submit.button--primary,
body.path-contest .button,
body.path-contest .form-submit,
body.path-admin-content-gp-contests .button,
body.path-admin-content-gp-contests .form-submit {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid #397591;
  border-radius: 5px;
  background: #397591;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.gp-contest-page .gp-contest-button:hover,
.gp-contest-page .button--primary:hover,
.gp-contest-page .form-submit.button--primary:hover,
body.path-contest .button:hover,
body.path-contest .form-submit:hover,
body.path-admin-content-gp-contests .button:hover,
body.path-admin-content-gp-contests .form-submit:hover {
  border-color: #2d6078;
  background: #2d6078;
  color: #fff;
}
body.path-contest a.gp-contest-button:hover,
body.path-contest a.gp-contest-button:focus {
  border-color: #397591;
  background: #fff;
  color: #d00000 !important;
  text-decoration: none;
}
.path-contest .field--name-comment-node-article .rate-widget .form-submit {
  display: none !important;
}
.gp-contest-page table th:last-child,
.gp-contest-page table td:last-child {
  text-align: right;
}
.gp-result-medal {
  display: block;
  width: 40px;
  height: auto;
  margin: 0 auto;
}
.gp-contest-page table th:first-child,
.gp-contest-page table td:first-child {
  width: 58px;
  text-align: center;
  vertical-align: middle;
}
.gp-contest-general-comment {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #faf8f5;
  border-left: 4px solid #641a27;
}
.gp-contest-stage-notice {
  max-width: 760px;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #b54848;
  background: #fff6f4;
}
.gp-contest-stage-notice h2 {
  margin: 0 0 .5rem;
  color: #641a27;
}
.gp-contest-stage-notice p {
  margin: 0;
}
.gp-vote-blocked {
  margin: .75rem 0;
  padding: .65rem .85rem;
  border-left: 4px solid #b54848;
  background: #fff6f4;
  color: #641a27;
  font-weight: 600;
}
.gp-results-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1rem 0 1.25rem;
  border-bottom: 2px solid #397591;
}
.gp-entry-total {
  padding: .65rem .85rem;
  border-left: 4px solid #397591;
  background: #f4f8fa;
}
.gp-contest-card {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #cbd9e0;
  border-left: 4px solid #397591;
  background: #fff;
}
.gp-contest-card h2 { margin-top: 0; }
.gp-round-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
.gp-results-tab {
  margin: 0;
  padding: .65rem 1.1rem;
  border: 1px solid #b9cbd4;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #edf3f6;
  color: #315f76;
  font-weight: 700;
  cursor: pointer;
}
.gp-results-tab:hover,
.gp-results-tab:focus {
  background: #dce9ef;
}
.gp-results-tab.is-active {
  border-color: #397591;
  background: #397591;
  color: #fff;
}
.gp-results-tab-panel[hidden] {
  display: none;
}
.gp-results-discussion-title {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #b8c6ce;
}
.gp-results-comments {
  max-width: 760px;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.gp-results-comments > li {
  margin-bottom: 1rem;
}
.gp-results-comment {
  padding: .85rem 1rem;
  border-left: 3px solid #397591;
  background: #f4f8fa;
}
.gp-results-comment__meta {
  margin-bottom: .4rem;
  color: #657985;
  font-size: .9rem;
}
.gp-results-comment__body {
  line-height: 1.55;
}
.gp-judge-entry {
  max-width: 820px;
  margin: 0 0 2rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid #d9e0e4;
}
.gp-judge-summary {
  width: 100%;
  margin-bottom: 1.5rem;
}
.gp-judge-summary-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gp-judge-summary th,
.gp-judge-summary td {
  padding-right: .55rem;
  padding-left: .55rem;
}
.gp-judge-details-title {
  margin-top: 2rem;
}
.gp-judge-entry__title {
  margin-bottom: .25rem;
}
.gp-judge-entry__author {
  margin-bottom: .75rem;
  color: #5c7280;
}
.gp-judge-entry__poem {
  margin-bottom: 0;
}
.gp-judge-evaluation {
  padding: 1rem 1.25rem;
  border: 1px solid #cbd9e0;
  border-top: 3px solid #397591;
  background: #f4f8fa;
}
.gp-judge-evaluation h3 {
  margin: 0 0 .75rem;
  color: #397591;
}
.gp-judge-evaluation__scores {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: .8rem;
}
.gp-judge-evaluation__total {
  color: #2d6078;
}
.gp-judge-evaluation__comment {
  padding-top: .75rem;
  border-top: 1px solid #cbd9e0;
}
.gp-judge-evaluation__comment > div {
  margin-top: .35rem;
}
.gp-reader-voters__help {
  color: #667985;
  font-size: .92rem;
}
.gp-reader-voters {
  columns: 2;
  max-width: 700px;
}
.gp-reader-voters li {
  break-inside: avoid;
}
.gp-reader-comments {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.gp-reader-comments li {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid #d4e0e6;
  border-left: 4px solid #397591;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(45, 96, 120, .09);
}
.gp-reader-comment__author {
  padding: .55rem .9rem;
  border-bottom: 1px solid #dce6eb;
  background: #eef5f8;
  color: #2d6078;
  font-weight: 700;
}
.gp-reader-comment__author a {
  color: #2d6078;
  text-decoration: none;
}
.gp-reader-comment__author a:hover,
.gp-reader-comment__author a:focus {
  color: #641a27;
  text-decoration: underline;
}
.gp-reader-comment__text {
  padding: .8rem .9rem 1rem;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .gp-reader-voters {
    columns: 1;
  }
}
@media (max-width: 900px) {
  .gp-judge-summary {
    font-size: .9rem;
  }
  .gp-judge-summary th,
  .gp-judge-summary td {
    padding-right: .35rem;
    padding-left: .35rem;
  }
}
/* Centre the first column of contest tables. */
body.path-contest table tr > *:first-child {
  text-align: center !important;
  vertical-align: middle !important;
}