/* Results: stable identity images without distorting photographs or regional crests. */
.result-number-card .result-number-body{display:flex;align-items:center;gap:16px;padding:20px}
.result-number-logo{position:relative;display:grid;place-items:center;flex:0 0 64px;width:64px;height:72px;color:#8198b3}
.result-number-logo>i{font-size:26px}
.result-number-logo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.result-number-logo>img[hidden]{display:none}
.result-number-copy{min-width:0;overflow-wrap:anywhere}
.result-number-card:focus-visible{outline:3px solid #075da8;outline-offset:3px}
@media(max-width:575px){.result-number-card .result-number-body{padding:16px;gap:12px}.result-number-logo{flex-basis:54px;width:54px;height:64px}}
.public-result-card{overflow:hidden;border-radius:22px;background:#fff;border:1px solid #e1e9f3!important;box-shadow:0 10px 32px #122d4d06!important}
.result-table-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border-bottom:1px solid #e6edf5;background:linear-gradient(115deg,#fff,#f8fbff)}
.result-eyebrow{display:block;font-size:10px;letter-spacing:.16em;font-weight:750;color:#178197;margin-bottom:8px}
.result-table-heading h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:19px;font-weight:750;letter-spacing:-.025em;color:#193453;margin:0}
.result-count{display:inline-flex;align-items:center;padding:5px 9px;border-radius:7px;background:#ebf3fc;color:#467399;font-size:10px;letter-spacing:0;font-weight:650}
.result-official{display:inline-flex;align-items:center;gap:7px;color:#328165;font-size:11px;white-space:nowrap}
.public-result-table{min-width:700px}
.public-main .public-result-table thead th{background:#f4f7fb;color:#6c8098;font-size:10px;letter-spacing:.08em;padding:16px 20px;border-bottom:1px solid #e6edf5}
.public-main .public-result-table td{vertical-align:middle;padding:19px 20px;border-color:#edf1f7;color:#324b68;font-size:12px;background:transparent;box-shadow:none}
.public-result-table tbody tr{background:#fff;transition:background .15s}
.public-result-table tbody tr:nth-child(even){background:#fbfcfe}
.public-result-table tbody tr:hover{background:#f2f7fd}
.public-result-table tbody tr:last-child>td{border-bottom:0}
.public-result-table .result-rank-cell{width:85px;text-align:center}
.public-result-table thead th:first-child{text-align:center}
.result-rank{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eef3f9;color:#6c8098;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums}
.result-rank.rank-gold{color:#96700b;background:linear-gradient(135deg,#fff6cf,#ffedb3);border:1px solid #f2df9b}
.result-rank.rank-silver{color:#5a718b;background:linear-gradient(135deg,#f1f5fb,#e2e9f2);border:1px solid #d5deea}
.result-rank.rank-bronze{color:#9a603d;background:linear-gradient(135deg,#fff2e8,#f4dfce);border:1px solid #ecd0bb}
.result-medal{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:750;white-space:nowrap;border:1px solid transparent}
.result-medal>i{font-size:15px}
.result-medal.is-gold{color:#8c6404;background:#fff7db;border-color:#f5e4a9}
.result-medal.is-silver{color:#597089;background:#edf2f8;border-color:#dce5ef}
.result-medal.is-bronze{color:#985b35;background:#fbefe5;border-color:#f0dac7}
.result-medal.is-none{color:#7b8b9f;background:#f4f6f9;font-weight:550}
.result-value{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.public-result-table .result-value .text-muted{color:#8995a5!important;font-weight:450;font-size:10px}
.result-participant{display:flex;align-items:center;gap:14px;min-width:230px}
.result-avatar{position:relative;display:grid;place-items:center;width:52px;height:66px;flex:0 0 52px;overflow:hidden;border:1px solid #e1e8f1;border-radius:10px;background:#f2f6fc;color:#8198b3}
.result-avatar>i{font-size:25px}
.result-avatar>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;background:#fff}
.result-avatar>img[hidden]{display:none}
.result-person-copy{min-width:0;line-height:1.5}
.result-person-copy>strong{display:block;color:#1a3354}
.result-person-copy>.small{margin-top:3px}
.result-team-label{font-size:11px;font-weight:700;letter-spacing:.035em;color:#657c96;margin-bottom:10px}
.result-team-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:590px}
.result-team-member{display:flex;align-items:center;gap:10px;min-width:0}
.result-team-member>strong{color:#1a3354;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.result-identity-code{margin-top:8px;font-size:10px;color:#75879d;overflow-wrap:anywhere}
@media(max-width:767px){.result-team-members{grid-template-columns:1fr;min-width:200px;gap:12px}.result-team-label{font-size:10px}.result-team-member>strong{font-size:12px}}
.result-region{display:flex;align-items:center;gap:10px;min-width:190px;line-height:1.5}
.result-region-logo{width:32px;height:38px;flex:0 0 32px;object-fit:contain}
.result-region>span{font-size:11px;font-weight:600;color:#435b76}
.medalist-table{min-width:940px}
.medalist-table .result-participant{min-width:215px}
.result-sport{display:flex;align-items:center;gap:9px;min-width:140px;font-size:11px;font-weight:650;color:#3d5875}
.result-sport-logo{height:48px;width:48px;flex:0 0 48px;object-fit:contain}
.result-sport>i{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#edf5fc;color:#3479af;font-size:22px}
.result-event-link{display:inline-flex;align-items:baseline;gap:7px;max-width:260px;color:#214a72;text-decoration:none;font-size:12px;font-weight:650;line-height:1.6}
.result-event-link>i{font-size:10px;flex-shrink:0;color:#7b9bb9}
.result-event-link:hover{text-decoration:underline;color:#075da8}
.result-event-link:focus-visible{outline:3px solid #e5b92b;outline-offset:4px;border-radius:3px}
.result-event-code{margin-top:4px;font-size:10px;letter-spacing:.025em}
@media(max-width:767px){.result-table-heading{padding:18px;align-items:start;flex-direction:column;gap:10px}.result-table-heading h2{font-size:17px}.result-official{font-size:10px}.public-main .public-result-table td{padding:15px}.public-main .public-result-table thead th{padding:14px 15px}.result-sport-logo{width:40px;height:40px;flex-basis:40px}}
@media(prefers-reduced-motion:reduce){.public-result-table tbody tr{transition:none}}
/* Medalist detail becomes a compact identity card on phones; every field stays visible. */
@media(max-width:767px){
 .public-main .medalist-table{display:block;min-width:0;width:100%}
 .public-main .medalist-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .public-main .medalist-table tbody{display:block;width:100%}
 .public-main .medalist-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 10px;padding:18px 15px;border-bottom:1px solid #e6edf5}
 .public-main .medalist-table tbody tr:last-child{border-bottom:0}
 .public-main .medalist-table tbody td{display:block;padding:0;border:0;width:auto;min-width:0;text-align:left}
 .public-main .medalist-table tbody td:nth-child(1){grid-column:2;grid-row:1;align-self:center}
 .public-main .medalist-table tbody td:nth-child(2){grid-column:1;grid-row:1}
 .public-main .medalist-table tbody td:nth-child(3){grid-column:1;grid-row:2;align-self:center}
 .public-main .medalist-table tbody td:nth-child(4){grid-column:1/-1;grid-row:3;padding-top:12px;border-top:1px solid #e8eef6}
 .public-main .medalist-table tbody td:nth-child(5){grid-column:2;grid-row:2;text-align:center}
 .public-main .medalist-table tbody td:nth-child(6){grid-column:1/-1;grid-row:4;white-space:normal}
 .public-main .medalist-table .result-participant{min-width:0;gap:10px}
 .public-main .medalist-table .result-person-copy{overflow-wrap:anywhere;font-size:12px}
 .public-main .medalist-table .result-person-copy>.small{font-size:10px}
 .public-main .medalist-table .result-sport{min-width:0;gap:8px}
 .public-main .medalist-table .result-sport-logo{width:36px;height:36px;flex-basis:36px}
 .public-main .medalist-table .result-event-link{max-width:none;font-size:12px}
 .public-main .medalist-table .result-value:before{content:'Hasil: ';color:#6a7f98;font-size:11px;font-weight:500}
 .public-main .medalist-table .result-rank-cell:before{content:'Peringkat';display:block;font-size:9px;color:#71859b;margin-bottom:4px}
 .public-main .medalist-table .result-rank{width:30px;height:28px;font-size:12px;border-radius:8px}
 .public-main .medalist-table .result-medal{font-size:10px;padding:6px 8px}
 .public-main .medalist-table td[colspan]{grid-column:1/-1!important;grid-row:auto!important;text-align:center;padding:20px!important}
}
@media(max-width:767px){.result-participant{gap:10px;min-width:205px}.result-avatar{width:44px;height:56px;flex-basis:44px;border-radius:8px}.result-region{gap:8px;min-width:170px}.result-region-logo{width:27px;height:33px;flex-basis:27px}}
/* Official results keep the two athlete portraits readable without sideways scrolling. */
@media(max-width:767px){
 .public-main .public-result-table:not(.medalist-table){display:block;min-width:0;width:100%}
 .public-result-table:not(.medalist-table) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .public-result-table:not(.medalist-table) tbody{display:block;width:100%}
 .public-result-table:not(.medalist-table) tbody tr{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px 12px;padding:20px 16px;border-bottom:1px solid #e6edf5}
 .public-main .public-result-table:not(.medalist-table) tbody td{padding:0;border:0;min-width:0;width:auto;display:block}
 .public-result-table:not(.medalist-table) tbody td:nth-child(1){grid-column:1;grid-row:1;text-align:left}
 .public-result-table:not(.medalist-table) tbody td:nth-child(2){grid-column:1/-1;grid-row:2}
 .public-result-table:not(.medalist-table) tbody td:nth-child(3){grid-column:1/-1;grid-row:3}
 .public-result-table:not(.medalist-table) tbody td:nth-child(4){grid-column:1/-1;grid-row:4;white-space:normal}
 .public-result-table:not(.medalist-table) tbody td:nth-child(5){grid-column:2;grid-row:1;text-align:right;align-self:center}
 .public-result-table:not(.medalist-table) .result-team-members{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:14px}
 .public-result-table:not(.medalist-table) .result-team-member{align-items:flex-start;flex-direction:column;gap:8px}
 .public-result-table:not(.medalist-table) .result-participant{min-width:0}
 .public-result-table:not(.medalist-table) .result-region{min-width:0}
 .public-result-table:not(.medalist-table) .result-value:before{content:'Hasil: ';color:#6a7f98;font-size:11px;font-weight:500}
 .public-result-table:not(.medalist-table) td[colspan]{grid-column:1/-1!important;grid-row:auto!important;text-align:center}
}
