.contest-app {
  display: block;
  margin: 0;
  background: #faf8f3;
  color: #17283d;
  font:
    15px/1.6 system-ui,
    sans-serif;
}
.contest-top {
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.contest-top button {
  margin-left: auto;
}
.contest-app a {
  color: inherit;
  text-decoration: none;
}
.contest-app main {
  max-width: 1120px;
  padding: 32px 24px 80px;
  margin: auto;
}
.contest-app h1 {
  font-size: 32px;
  line-height: 1.3;
}
.contest-app h2 {
  font-size: 21px;
}
.contest-app h3 {
  font-size: 17px;
  margin: 10px 0;
}
.contest-app button {
  cursor: pointer;
  border: 1px solid #e7e9ec;
  background: white;
  border-radius: 12px;
  padding: 10px 18px;
  color: #17283d;
  font: inherit;
}
.contest-app button.primary {
  background: #ff7a12;
  color: white;
  border-color: transparent;
}
.contest-app button:disabled {
  opacity: 0.5;
  cursor: default;
}
.contest-app button[aria-pressed="true"] {
  color: #e76808;
  background: #fff0e3;
  border-color: #ffba85;
}
.contest-app input,
.contest-app textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce0e5;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}
.contest-app label {
  display: block;
  margin: 16px 0;
}
.contest-app label.agree {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contest-app input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.contest-app .hero {
  padding: 0;
  margin-bottom: 0;
  border: 0;
  align-items: stretch;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.hero > img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}
.hero .intro {
  padding: 30px;
}
.hero:has(> .intro:only-child) {
  display: block;
}
.contest-app .muted {
  color: #788291;
}
.contest-app .tag {
  display: inline-block;
  border-radius: 30px;
  padding: 3px 10px;
  background: #fff0e3;
  color: #bd590b;
  font-size: 12px;
}
.contest-app .rules-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.rules-panel details {
  background: white;
  border-radius: 18px;
  padding: 20px;
}
.contest-app .prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contest-app .gallery-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}
.gallery-head h2 {
  margin-right: auto;
}
.contest-app .grid,
.contest-app .work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contest-app .tile {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.tile .open-entry,
.tile .open-contest {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  width: 100%;
  text-align: left;
}
.tile img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  background: #f3f4f5;
  display: block;
}
.tile .meta {
  padding: 16px;
}
.tile .meta h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile .meta .row {
  justify-content: space-between;
}
.contest-app .row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.contest-app .empty {
  text-align: center;
  padding: 50px 20px;
  color: #788291;
}
.contest-app dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 88vh;
  padding: 26px;
  border: 0;
  border-radius: 22px;
  box-sizing: border-box;
  overflow: auto;
}
.contest-app dialog::backdrop {
  background: #17283d88;
}
.contest-app dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.contest-app dialog header h2 {
  margin: 0;
}
.contest-app .work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.work-grid button {
  padding: 6px;
  text-align: left;
}
.work-grid img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}
.work-grid span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.contest-app #entryBody > img {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: #f8f8f8;
  margin-top: 20px;
}
.contest-app .search {
  display: flex;
  gap: 10px;
}
.contest-app .error {
  color: #b83e30;
}
.contest-app [hidden] {
  display: none !important;
}
.contest-app #moreEntries {
  display: block;
  margin: 24px auto;
}
.contest-app #notice {
  z-index: 10000;
}
.contest-app button:focus-visible,
.contest-app a:focus-visible {
  outline: 3px solid #ffbd80;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .contest-app main {
    padding: 16px 14px 60px;
  }
  .contest-app .hero,
  .contest-app .rules-panel {
    display: block;
  }
  .hero > img {
    max-height: 220px;
  }
  .hero .intro {
    padding: 20px;
  }
  .contest-app h1 {
    font-size: 25px;
  }
  .rules-panel details {
    margin-bottom: 12px;
  }
  .contest-app .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tile img {
    height: 190px;
  }
  .tile .meta {
    padding: 12px;
  }
  .contest-top {
    padding: 0 14px;
    gap: 16px;
  }
  .contest-app .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contest-app .search input {
  flex: 1;
  min-width: 0;
  width: auto;
}
.contest-app .search button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* A light activity identity, compact registration and a prominent public gallery. */
.contest-app .hero {
  position: relative;
  isolation: isolate;
  box-shadow: 0 8px 32px #26354905;
}
.contest-app .hero:not(:has(> img)) {
  display: block;
  background: linear-gradient(120deg, #fff 45%, #fff3e6);
}
.hero-accent {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 32px solid #ffbe791c;
  right: -55px;
  top: -70px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.contest-app .hero .intro {
  padding: 28px 32px;
}
.contest-app .hero h1 {
  margin: 12px 0 16px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.contest-app .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #997454;
  margin-bottom: 12px;
}
.contest-app .hero .muted {
  line-height: 1.9;
  font-size: 13px;
}
.contest-app .browse-link {
  display: inline-block;
  margin-left: 22px;
  font-size: 13px;
  color: #82603f;
}
.contest-app .steps {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: #8c9299;
  border-top: 1px solid #f0eae3;
  padding-top: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.contest-app .rules-panel {
  gap: 16px;
  margin: 20px 0;
}
.contest-app summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.contest-app .rules-panel details {
  padding: 18px 22px;
}
.contest-app .rules-panel .prose {
  font-size: 14px;
  line-height: 1.9;
  max-height: 300px;
  overflow: auto;
}
.contest-app .gallery-head {
  margin: 28px 0 20px;
  gap: 8px;
}
.gallery-head h2 {
  font-size: 22px;
  font-weight: 600;
}
.gallery-head h2 small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #87909b;
  margin-top: 5px;
}
.contest-app .gallery-head button {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  font-size: 13px;
}
.contest-app .gallery-head button[aria-pressed="true"] {
  background: #192b42;
  color: white;
}
.contest-app .tile {
  position: relative;
  box-shadow: 0 3px 15px #27384c04;
}
.contest-app .rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 9px;
  padding: 4px 10px;
  background: #192b42e8;
  color: white;
  font-size: 12px;
  z-index: 1;
}
.contest-app .review-note {
  padding: 12px 16px;
  background: #fff4e8;
  border-radius: 10px;
  color: #976541;
  font-size: 13px;
  line-height: 1.8;
}
.contest-app #workDialog header,
.contest-app #entryDialog header {
  position: sticky;
  top: -26px;
  background: white;
  z-index: 2;
  padding: 15px 0;
  border-bottom: 1px solid #f0f1f3;
}
.contest-app dialog header button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: #f5f6f8;
  border-radius: 50%;
  font-size: 22px;
  flex-shrink: 0;
}
.contest-app .tile .row button {
  font-size: 13px;
  min-width: 72px;
}
@media (max-width: 700px) {
  .contest-app .hero .intro {
    padding: 22px;
  }
  .contest-app .hero h1 {
    font-size: 24px;
  }
  .contest-app .gallery-head h2 {
    width: 100%;
    margin: 8px 0;
  }
  .contest-app .gallery-head button {
    flex: 1;
    padding: 10px 6px;
  }
  .contest-app .steps {
    gap: 14px;
    font-size: 11px;
  }
  .contest-app .browse-link {
    margin-left: 12px;
  }
  .contest-app dialog {
    padding: 18px;
  }
  .contest-app #workDialog header,
  .contest-app #entryDialog header {
    top: -18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contest-app * {
    scroll-behavior: auto !important;
  }
}

#submissionSuccess{max-width:480px;text-align:center}#submissionSuccess header{text-align:left}.submission-group{padding:20px;margin:20px 0;background:#faf7f0;border-radius:16px}.submission-group p{line-height:1.7}.submission-group img{display:block;width:180px;height:180px;object-fit:contain;margin:18px auto;background:white}

.contest-prizes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-top:18px}.contest-prizes article{display:flex;gap:14px;align-items:center;padding:14px;background:#faf7f1;border-radius:14px}.contest-prizes img{width:88px;height:88px;object-fit:contain;border-radius:10px;background:white}.contest-prizes p{margin:6px 0;overflow-wrap:anywhere}

.hero > img{height:auto;max-height:none;aspect-ratio:2/1;object-fit:contain;align-self:start;background:#faf7f1}.contest-rules{overflow-wrap:anywhere}
