/* 得獎結果沿用活動頁的緞帶、星星、獎盃及藍白配色。 */
.results-flow,
.results-flow * {
  box-sizing: border-box;
}
.results-flow {
  padding: clamp(42px, 5vw, 76px) 0 clamp(64px, 7vw, 108px);
  background: url("image/essay_competition/after-banner-bg.jpg") center top / 100% auto no-repeat #eaf6ff;
}
.results-inner {
  width: min(86.8%, 1248px);
  margin: 0 auto;
}
.section-ribbon.results-ribbon {
  margin-bottom: 30px;
}
.results-group-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.results-group-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid #9bcfff;
  border-radius: 999px;
  background: #fff;
  color: #2468ad;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.results-group-nav a:hover {
  border-color: #087cff;
  background: #087cff;
  color: #fff;
}
.results-group-nav a:focus-visible {
  outline: 3px solid #087cff;
  outline-offset: 4px;
}
.results-group {
  margin-bottom: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border: 1.5px solid #a3d2ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(56, 142, 213, 0.08);
  scroll-margin-top: calc(var(--event-nav-height) + 24px);
}
.results-group:last-child {
  margin-bottom: 0;
}
.results-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(20px, 3vw, 42px);
  border-bottom: 1px solid #c6e3ff;
  background: linear-gradient(100deg, #d9f0ff, #f1f9ff);
}
.results-group-heading img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.results-group-heading h3 {
  margin: 0;
  color: #263f66;
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 900;
  line-height: 1.3;
}
.results-list {
  padding: 8px clamp(20px, 3vw, 42px) 14px;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #314b73;
  font-size: clamp(17px, 1.8vw, 25px);
  line-height: 1.65;
}
.results-award-column {
  width: clamp(116px, 13vw, 170px);
}
.results-table th,
.results-table td {
  padding: 18px 0;
  border-bottom: 1px dashed #d1e4f6;
  text-align: left;
  vertical-align: top;
}
.results-table tr:last-child th,
.results-table tr:last-child td {
  border-bottom: 0;
}
.results-table th {
  padding-right: 18px;
  font-weight: 800;
}
.results-award {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.results-award img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.results-award.is-excellence img {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
}
.results-award.is-gold {
  color: #9b6615;
}
.results-award.is-silver {
  color: #506fa9;
}
.results-award.is-bronze {
  color: #a75f26;
}
.results-recipient {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 2px;
}
.results-school {
  min-width: 0;
  overflow-wrap: anywhere;
}
.results-name {
  font-weight: 800;
  white-space: nowrap;
}
.results-pending {
  color: #697c93;
  font-size: 0.9em;
}
@media (max-width: 640px) {
  .results-flow {
    padding: 32px 0 52px;
    background-size: auto 400px;
  }
  .results-inner {
    width: calc(100% - 24px);
  }
  .section-ribbon.results-ribbon {
    width: 230px;
    margin-bottom: 22px;
  }
  .results-group-nav {
    gap: 8px;
    margin-bottom: 24px;
  }
  .results-group-nav a {
    flex: 1 1 0;
    padding: 10px 8px;
    font-size: 16px;
    white-space: nowrap;
  }
  .results-group {
    border-radius: 16px;
  }
  .results-group-heading {
    gap: 10px;
    padding: 14px 18px;
  }
  .results-group-heading img {
    width: 32px;
    height: 32px;
  }
  .results-group-heading h3 {
    font-size: 22px;
  }
  .results-list {
    padding: 4px 16px 8px;
  }
  .results-table {
    font-size: 16px;
    line-height: 1.7;
  }
  .results-award-column {
    width: 92px;
  }
  .results-table th,
  .results-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .results-table th {
    padding-right: 10px;
  }
  .results-award {
    gap: 6px;
  }
  .results-award img {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  .results-award.is-excellence img {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }
  .results-recipient {
    column-gap: 10px;
  }
}
