/* Competition results (results.php). On top of team.css, hub.css and photocards.css; the --bc-* tokens follow light and dark mode. */
.bc-res-banner.is-plain { background: linear-gradient(135deg, #1b2a4a, #5b4bd1 55%, #d4a23a); }
.bc-res-bigmedal { position: absolute; right: -18px; top: -24px; font-size: 230px; line-height: 1; opacity: .16; transform: rotate(-12deg); z-index: -1; pointer-events: none; color: #fff; }
.bc-res-banner .bc-hub-chips li.is-gold { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 3px 0 #e8b923; }
.bc-res-banner .bc-hub-chips li.is-silver { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 3px 0 #c3cad4; }
.bc-res-banner .bc-hub-chips li.is-bronze { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 3px 0 #cd8a55; }
.bc-res-banner .bc-hub-banner-sub i { margin-right: 4px; opacity: .85; }
.bc-res-orglogo { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; margin-right: 4px; object-fit: cover; background: #fff; }

/* Facts under the summary */
.bc-res-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bc-res-facts li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--bc-surface); border-radius: 18px; box-shadow: var(--bc-shadow-1, none), 0 0 0 1px var(--bc-line); min-width: 0; }
.bc-res-facts li > i { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--bc-surface-2); color: var(--bc-ink-2); font-size: 15px; }
.bc-res-facts span { display: flex; flex-direction: column; min-width: 0; color: var(--bc-ink); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.bc-res-facts small { color: var(--bc-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bc-res-facts a { color: var(--bc-ink); }
.bc-res-facts a i { font-size: .75em; opacity: .7; }

/* Medalists by division */
.bc-res-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bc-res-table thead th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-muted); padding: 0 10px 8px; border-bottom: 1px solid var(--bc-line); }
.bc-res-table td { padding: 10px; border-bottom: 1px solid var(--bc-line); vertical-align: middle; color: var(--bc-ink); }
.bc-res-table tbody tr:last-child td { border-bottom: 0; }
.bc-res-group th { text-align: left; padding: 16px 10px 6px; font-size: 13px; font-weight: 800; color: var(--bc-ink-2); letter-spacing: .02em; border-bottom: 1px solid var(--bc-line); }
.bc-res-div { color: var(--bc-ink-2) !important; overflow-wrap: anywhere; max-width: 340px; }
.bc-res-med { white-space: nowrap; }
.bc-res-med span { margin-left: 6px; font-weight: 700; font-size: 13px; }
.bc-res-medalimg { vertical-align: middle; }
.bc-res-who a { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--bc-ink); min-width: 0; }
.bc-res-who a > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bc-res-who b { font-weight: 700; overflow-wrap: anywhere; }
.bc-res-who a:hover b { text-decoration: underline; }
.bc-res-who .bc-pc-face { width: 36px; height: 36px; flex: none; }
.bc-res-acad a { color: var(--bc-ink-2); }
.bc-res-note { margin: 14px 0 0; font-size: 13px; color: var(--bc-muted); line-height: 1.5; }
.bc-res-note i { margin-right: 4px; }
@media (max-width: 700px) {
  .bc-res-table thead { display: none; }
  .bc-res-table, .bc-res-table tbody, .bc-res-table tr, .bc-res-table td, .bc-res-table th { display: block; width: auto; }
  .bc-res-table tr:not(.bc-res-group) { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "med who" "med div" "med acad"; column-gap: 12px; row-gap: 2px; padding: 12px 2px; border-bottom: 1px solid var(--bc-line); }
  .bc-res-table tbody:last-child tr:last-child { border-bottom: 0; }
  .bc-res-table td { padding: 0; border: 0; }
  .bc-res-med { grid-area: med; padding-top: 6px !important; }
  .bc-res-med span { display: none; }
  .bc-res-who { grid-area: who; }
  .bc-res-div { grid-area: div; font-size: 13.5px; max-width: none; }
  .bc-res-acad { grid-area: acad; font-size: 13px; }
  .bc-res-acad:empty { display: none; }
  .bc-res-group th { padding: 14px 2px 4px; }
}

/* Standings */
.bc-res-scroll { overflow-x: auto; }
.bc-res-stand { width: 100%; border-collapse: collapse; font-size: 14px; }
.bc-res-stand th { font-size: 12px; font-weight: 700; color: var(--bc-muted); text-align: left; padding: 0 8px 8px; border-bottom: 1px solid var(--bc-line); }
.bc-res-stand td { padding: 9px 8px; border-bottom: 1px solid var(--bc-line); color: var(--bc-ink); }
.bc-res-stand tr:last-child td { border-bottom: 0; }
.bc-res-stand .n { text-align: center; width: 42px; font-variant-numeric: tabular-nums; }
.bc-res-stand .r { width: 24px; color: var(--bc-muted); font-variant-numeric: tabular-nums; }
.bc-res-stand td a { color: var(--bc-ink); font-weight: 600; overflow-wrap: anywhere; }

/* Tournament lists */
.bc-res-tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-res-tlist a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 14px; text-decoration: none !important; color: var(--bc-ink); }
.bc-res-tlist a:hover { background: var(--bc-surface-2); }
.bc-res-tdate { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bc-surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.bc-res-tdate b { font-size: 16px; }
.bc-res-tdate small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--bc-muted); margin-top: 2px; }
.bc-res-tmain { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bc-res-tmain b { font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bc-res-tmain small { color: var(--bc-muted); font-size: 12.5px; }
.bc-res-tlist li.is-small .bc-res-tmain b { font-weight: 600; color: var(--bc-ink-2); }
.bc-res-dots { flex: none; display: flex; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--bc-ink-2); font-variant-numeric: tabular-nums; }
.bc-res-dots > span { display: inline-flex; align-items: center; gap: 4px; }
.bc-res-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bc-res-dots .is-gold i { background: #e8b923; } .bc-res-dots .is-silver i { background: #a9b2c0; } .bc-res-dots .is-bronze i { background: #cd8a55; }
.bc-res-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bc-res-year { border-top: 1px solid var(--bc-line); }
.bc-res-year:first-of-type { border-top: 0; }
.bc-res-year summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 12px 2px; list-style: none; }
.bc-res-year summary::-webkit-details-marker { display: none; }
.bc-res-year summary::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; margin-left: auto; color: var(--bc-muted); transition: transform .2s ease; }
.bc-res-year[open] summary::after { transform: rotate(180deg); }
.bc-res-year h3 { margin: 0; font-size: 17px; color: var(--bc-ink); }
.bc-res-year .bc-res-tlist { padding-bottom: 10px; }
.bc-res-more { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; }

/* Organizer cards on the index */
.bc-res-orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bc-res-orgs a { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; background: var(--bc-surface); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); text-decoration: none !important; color: var(--bc-ink); transition: transform .18s ease; }
.bc-res-orgs a:hover { transform: translateY(-2px); }
.bc-res-orgs b { font-size: 18px; letter-spacing: -0.01em; }
.bc-res-orgs small { color: var(--bc-muted); font-size: 12.5px; min-height: 1.2em; }
.bc-res-orgn { font-size: 13.5px; font-weight: 700; color: var(--bc-ink-2); margin-top: 6px; }
.bc-res-orgs .bc-res-dots { margin-top: 4px; }
@media (max-width: 600px) { .bc-res-orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .bc-res-orgs a { padding: 12px 14px; } .bc-res-orgs b { font-size: 16px; } .bc-res-tlist .bc-res-dots { gap: 5px; font-size: 12px; } }
