/* Fall 2026 results: a quick overview followed by complete award listings. */
#awards, #team-awards, #individual-awards, #countdown-awards { scroll-margin-top: 28px; }
.awards-section { width: min(1180px, calc(100% - 48px)); padding-block: clamp(70px, 9vw, 120px); }
.awards-intro { max-width: 760px; margin-bottom: 70px; }
.awards-intro .eyebrow, .awards-group-heading .eyebrow { color: #a26113; font-size: 13px; }
.awards-intro h2 { margin: 14px 0 18px; color: #123b68; font-size: clamp(42px, 5.5vw, 70px); line-height: 1.08; }
.awards-intro > p:not(.eyebrow) { max-width: 670px; margin: 0; color: #4d5f70; font-size: clamp(18px, 2vw, 22px); }
.awards-jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.awards-jump a { display: inline-flex; gap: 14px; align-items: center; padding: 10px 16px; border: 1px solid #b9cbd9; border-radius: 999px; color: #123b68; text-decoration: none; font-weight: 700; }
.awards-jump a:hover, .awards-jump a:focus-visible { background: #eaf2f8; }
.awards-group { margin-top: 84px; }
.awards-group-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid #123b68; }
.awards-group-heading .eyebrow { margin: 0 0 6px; }
.awards-group-heading h3 { margin: 0; color: #123b68; font-size: clamp(32px, 4vw, 48px); }
.awards-group-heading > p { max-width: 380px; margin: 0; color: #536473; font-size: 15px; }
.division-block { margin-top: 42px; }
.division-heading { max-width: 790px; margin-bottom: 20px; }
.division-heading h4, .grade-awards h4 { margin: 0 0 8px; color: #123b68; font-size: clamp(23px, 2.8vw, 30px); }
.division-heading p { margin: 0; color: #536473; font-size: 15px; }
.team-award-grid, .individual-award-list, .team-roster { list-style: none; padding: 0; margin: 0; }
.team-award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-award-card { min-width: 0; padding: 22px 24px; border: 1px solid #d7e1e8; border-radius: 12px; background: #fbfcfd; }
.team-award-card.award-rank-1, .individual-award-row.award-rank-1 { border-color: #d8ae45; background: #fff8e8; box-shadow: inset 5px 0 0 #d4a83e; }
.team-award-card.award-rank-2, .individual-award-row.award-rank-2 { border-color: #8fa4b8; background: #e6eef5; box-shadow: inset 5px 0 0 #9aafc0; }
.team-award-card.award-rank-3, .individual-award-row.award-rank-3 { border-color: #c69a73; background: #fcf4ee; box-shadow: inset 5px 0 0 #bb865f; }
.team-card-top { display: flex; align-items: baseline; gap: 13px; padding-bottom: 12px; border-bottom: 1px solid #d7e1e8; }
.award-place { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #77531f; font-size: 13px; font-weight: 800; white-space: nowrap; }
.award-medal { display: inline-block; font-size: 30px; line-height: 1; }
.award-rank-2 .award-place { color: #53697b; }
.award-rank-3 .award-place { color: #915a35; }
.team-card-top h5 { margin: 0; color: #123b68; font-size: 19px; line-height: 1.3; }
.team-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding-top: 15px; }
.team-roster li { min-width: 0; line-height: 1.35; }
.team-roster strong, .team-roster span { display: block; overflow-wrap: anywhere; }
.team-roster strong { color: #1e3448; font-size: 14px; }
.team-roster span { margin-top: 2px; color: #627282; font-size: 12px; }
#individual-awards-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.grade-awards { min-width: 0; padding: 20px 16px 16px; border: 1px solid #dce6ee; border-radius: 12px; background: #f5f9fc; }
.grade-awards:nth-child(2) { border-color: #d3e6e2; background: #f2faf8; }
.grade-awards:nth-child(3) { border-color: #e0dbea; background: #f8f6fb; }
.grade-awards h4 { padding: 0 0 12px; border-bottom: 3px solid #3c75a0; }
.grade-awards:nth-child(2) h4 { color: #11685f; border-bottom-color: #45a295; }
.grade-awards:nth-child(3) h4 { color: #664d85; border-bottom-color: #9c82b6; }
.individual-award-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 11px 8px; border-bottom: 1px solid #dce5ed; line-height: 1.35; }
.individual-award-row.award-tie { grid-template-columns: 100px minmax(0, 1fr); }
.individual-award-row.award-rank-1, .individual-award-row.award-rank-2, .individual-award-row.award-rank-3 { margin-bottom: 4px; border-width: 1px; border-style: solid; border-radius: 8px; }
.individual-award-row strong { color: #1e3448; font-size: 14px; overflow-wrap: anywhere; }
.individual-award-row .winner-school { grid-column: 2; color: #627282; font-size: 12px; }
.countdown-congratulations { margin: 28px 0 20px; color: #334d64; font-size: 18px; }
.countdown-award-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.countdown-award-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 24px; border: 1px solid; border-radius: 12px; }
.countdown-award-card.award-rank-1 { border-color: #d8ae45; background: #fff8e8; box-shadow: inset 5px 0 0 #d4a83e; }
.countdown-award-card.award-rank-2 { border-color: #8fa4b8; background: #e6eef5; box-shadow: inset 5px 0 0 #9aafc0; }
.countdown-award-card strong { margin-top: 8px; color: #123b68; font-size: 23px; line-height: 1.3; }
.countdown-award-card > span:last-child { color: #536473; font-size: 15px; }
.home-details-section { background: #f6f9fb; }
.archive-problems { margin-top: 34px; }
.archive-problems > h3 { margin-bottom: 18px; color: #123b68; font-size: 25px; }
.archive-problems-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.archive-problem-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 195px; padding: 22px; border: 1px solid #cbdce9; border-radius: 10px; background: #f7fafc; color: #123b68; text-decoration: none; transition: border-color .15s, background .15s; }
.archive-problem-card:hover, .archive-problem-card:focus-visible { border-color: #3974a0; background: #eaf3f9; }
.problem-file-type { display: inline-block; margin-bottom: 15px; padding: 3px 7px; border-radius: 4px; background: #dce9f2; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.archive-problem-card h4 { margin: 0 0 5px; font-size: 20px; line-height: 1.3; }
.archive-problem-card p { margin: 0; color: #536473; font-size: 14px; }
.problem-action { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.archive-awards-callout { margin-top: 24px; padding: 22px 26px; border-left: 4px solid #d4a83e; background: #fff9eb; }
.archive-awards-callout h3 { margin-bottom: 5px; color: #123b68; font-size: 22px; }
.archive-awards-callout p { margin: 0 0 8px; color: #536473; font-size: 14px; }
.archive-photo-section { margin-top: 44px; }
.archive-photo-section > h3 { margin-bottom: 2px; color: #123b68; font-size: 25px; }
.archive-photo-count { margin: 0 0 18px; color: #536473; font-size: 14px; }
.archive-photo-note { margin: 0 0 22px; padding: 16px 20px; border-left: 4px solid #2b6d9c; background: #f1f7fb; color: #274156; }
.archive-photo-note strong { display: block; margin-bottom: 3px; color: #123b68; font-size: 15px; }
.archive-photo-note p { margin: 0; font-size: 14px; line-height: 1.55; }
.archive-photo-note a { color: #123b68; font-weight: 700; text-underline-offset: 3px; }
.archive-gallery-2026 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.archive-gallery-2026 figure { overflow: hidden; border: 1px solid #dce5eb; border-radius: 8px; background: #f7fafc; }
.archive-gallery-2026 .gallery-thumbnail { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.archive-gallery-2026 .gallery-thumbnail:focus-visible { outline: 3px solid #3974a0; outline-offset: -3px; }
.archive-gallery-2026 img, .archive-gallery-2026 video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #eef3f6; }
.archive-gallery-2026 img { transition: transform .18s ease; }
.archive-gallery-2026 .gallery-thumbnail:hover img { transform: scale(1.035); }
.archive-gallery-2026 .gallery-thumbnail video { pointer-events: none; }
.gallery-play-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #123b68d9; color: white; font-size: 23px; transform: translate(-50%, -50%); }
.gallery-dialog { width: min(1240px, calc(100vw - 24px)); max-width: none; height: min(92dvh, 900px); max-height: calc(100dvh - 24px); padding: 14px 16px 18px; border: 0; border-radius: 12px; background: #142536; color: white; }
.gallery-dialog[open] { display: flex; flex-direction: column; gap: 10px; }
.gallery-dialog::backdrop { background: #0b1729dc; }
.gallery-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.gallery-dialog-bar button, .gallery-arrow { border: 1px solid #ffffff66; border-radius: 6px; background: #ffffff1c; color: white; cursor: pointer; }
.gallery-dialog-bar button { padding: 7px 12px; font: inherit; }
.gallery-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; flex: 1; min-height: 0; }
.gallery-media { display: grid; place-items: center; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.gallery-media img, .gallery-media video { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.gallery-media video { width: min(100%, 1000px); }
.gallery-arrow { width: 44px; height: 54px; font: 40px/1 Arial, sans-serif; }
.gallery-dialog-bar button:hover, .gallery-arrow:hover { background: #ffffff38; }
.gallery-dialog-bar button:focus-visible, .gallery-arrow:focus-visible { outline: 3px solid #a8d5ff; outline-offset: 2px; }
.gallery-caption { margin: 0; text-align: center; color: #e0e9f2; font-size: 14px; }
@media (max-width: 850px) {
  .team-award-grid { grid-template-columns: 1fr; }
  #individual-awards-list { grid-template-columns: 1fr 1fr; }
  .archive-problems-grid { grid-template-columns: 1fr; }
  .archive-problem-card { min-height: 0; }
  .archive-gallery-2026 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .awards-section { width: calc(100% - 32px); padding-block: 64px; }
  .awards-intro { margin-bottom: 52px; }
  .awards-group { margin-top: 64px; }
  .awards-group-heading { display: block; }
  .awards-group-heading > p { margin-top: 10px; }
  .team-award-card { padding: 18px; }
  .team-card-top { display: block; }
  .team-card-top h5 { margin-top: 4px; }
  .team-roster { gap: 12px; }
  #individual-awards-list { grid-template-columns: 1fr; gap: 30px; }
  .countdown-award-list { grid-template-columns: 1fr; }
  .archive-gallery-2026 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: none; padding: 8px; }
  .gallery-stage { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 2px; }
  .gallery-arrow { width: 34px; height: 46px; font-size: 32px; }
  .gallery-caption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-gallery-2026 img { transition: none; }
}
