*{box-sizing:border-box}
:root{--navy:#102d50;--navy2:#173e68;--yellow:#f5df24;--green:#4b9f50;--blue:#13a6d5;--red:#e53232;--ink:#182536;--muted:#718096;--line:#e8edf2;--paper:#f4f6f9}
html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",sans-serif}
.topbar{min-height:82px;background:#fff;display:flex;align-items:center;gap:20px;padding:10px max(5vw,24px);box-shadow:0 2px 18px #102d500d;position:relative;z-index:2}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:52px;height:52px;object-fit:contain}.brand .porprov-logo{width:65px}
.topbar-label{display:flex;flex-direction:column;gap:3px}.topbar-label .eyebrow,.section-kicker{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#7d8b9a}.topbar-label strong{font-family:"Barlow Condensed",sans-serif;font-size:21px;color:var(--navy);letter-spacing:.4px}
.refresh-btn{margin-left:auto;border:0;border-radius:9px;background:var(--navy);color:#fff;padding:11px 16px;font:700 12px "DM Sans";cursor:pointer;display:flex;gap:8px;align-items:center}.refresh-btn:hover{background:var(--navy2)}.refresh-icon{font-size:19px;line-height:12px}
main{max-width:1200px;margin:auto;padding:28px 28px 48px}
.hero{min-height:255px;border-radius:17px;background:linear-gradient(112deg,#102d50 0%,#17466d 67%,#2a6b70 100%);color:#fff;padding:36px 42px;position:relative;overflow:hidden;display:flex;align-items:center}
.hero-copy{position:relative;z-index:1;max-width:660px}.event-pill{display:inline-flex;align-items:center;gap:8px;background:#ffffff1c;border:1px solid #ffffff38;border-radius:30px;padding:7px 12px;font-size:10px;font-weight:800;letter-spacing:1.2px}
.live-dot,.status-indicator{width:7px;height:7px;border-radius:50%;background:#a8dc48;display:inline-block;box-shadow:0 0 0 4px #a8dc4825}
.hero h1{font:800 clamp(38px,5vw,58px)/.98 "Barlow Condensed",sans-serif;letter-spacing:.6px;margin:18px 0 10px}.hero h1 em{font-style:normal;color:var(--yellow)}.hero p{max-width:560px;color:#d9e4ed;font-size:13px;line-height:1.7;margin:0}
.hero-meta{display:flex;align-items:center;gap:11px;margin-top:22px;font-size:9px;letter-spacing:1.2px;font-weight:800;color:#d2e1ed}.hero-meta i{width:4px;height:4px;border-radius:50%;background:var(--yellow)}
.hero-crest{position:absolute;right:9%;height:160px;width:200px;display:grid;place-items:center;z-index:1}.hero-crest img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 18px #061b2c55)}.hero-shape{position:absolute;border:1px solid #ffffff18;border-radius:50%;width:390px;height:390px;right:-70px;top:-65px}.shape-two{width:500px;height:500px;right:-125px;top:-120px}
.status-row{display:flex;justify-content:space-between;align-items:center;padding:14px 2px;color:var(--muted);font-size:11px}.status-row>div{display:flex;align-items:center;gap:9px}.status-indicator{background:#a0aab6;box-shadow:none}.status-indicator.ok{background:#35a66b;box-shadow:0 0 0 4px #35a66b1c}.status-indicator.error{background:#df5656;box-shadow:0 0 0 4px #df56561c}
.medal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.medal-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;align-items:center;gap:13px;min-height:105px;box-shadow:0 3px 12px #122b4405}.medal-icon{width:43px;height:43px;border-radius:12px;background:#f8f4df;display:grid;place-items:center;font-size:22px;flex:none}.medal-card.silver .medal-icon{background:#eef1f4}.medal-card.bronze .medal-icon{background:#f7eee7}.medal-card.total .medal-icon{background:#eaf2f8}.medal-card div:last-child{display:flex;flex-direction:column}.medal-card span{font-size:9px;font-weight:800;letter-spacing:1.4px;color:#8290a0}.medal-card strong{font:800 32px "Barlow Condensed";color:var(--navy);line-height:1.15}.medal-card small{font-size:9px;color:#9aa5b1}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin:34px 0 15px}.section-heading h2{font:700 31px "Barlow Condensed";color:var(--navy);margin:4px 0 2px}.section-subtitle{font-size:11px;color:var(--muted);margin:0}.total-athletes{display:flex;align-items:baseline;gap:6px;color:var(--muted);font-size:11px}.total-athletes strong{font:700 23px "Barlow Condensed";color:var(--navy)}
.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px;box-shadow:0 3px 16px #122b4405}.filter-row{display:flex;gap:10px;margin-bottom:13px}.search-box{display:flex;align-items:center;gap:9px;flex:1;border:1px solid #e2e8ef;border-radius:8px;padding:0 12px;color:#8b98a7}.search-box span{font-size:22px}.search-box input{border:0;outline:0;width:100%;height:42px;font:12px "DM Sans";color:var(--ink);background:transparent}
select{border:1px solid #e2e8ef;border-radius:8px;padding:0 12px;background:#fff;color:#566477;font:12px "DM Sans";min-width:155px;outline:0}
.sport-chips{display:flex;gap:7px;overflow-x:auto;padding:1px 0 13px;scrollbar-width:thin}.sport-chip{white-space:nowrap;border:1px solid #e3e9ef;background:#fff;color:#65758a;border-radius:30px;padding:7px 12px;font:600 10px "DM Sans";cursor:pointer}.sport-chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.medal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.medal-event{border:1px solid #e9edf2;border-radius:10px;padding:14px 15px;min-width:0;transition:border-color .15s,box-shadow .15s}.medal-event:hover{border-color:#c8d5e2;box-shadow:0 4px 15px #102d500b}.event-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.sport-label{font-size:9px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#7e8da0}.event-medal{font-size:9px;font-weight:800;border-radius:20px;padding:5px 8px;white-space:nowrap}.event-medal.emas{background:#fff5c7;color:#987400}.event-medal.perak{background:#edf1f5;color:#667487}.event-medal.perunggu{background:#f8ece2;color:#a66a3c}.event-name{font-size:13px;font-weight:800;color:#1d3551;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere}.event-athletes{font-size:11px;color:#68778a;line-height:1.6;overflow-wrap:anywhere}.event-athletes b{color:#34475e;font-weight:700}.empty-state{grid-column:1/-1;text-align:center;color:#98a3b0;padding:40px 15px;font-size:12px}.table-foot{display:flex;justify-content:space-between;color:#98a3b0;font-size:10px;padding-top:14px;border-top:1px solid #f0f2f5;margin-top:14px}
.source-note{display:flex;align-items:center;gap:11px;background:#edf3f8;border-radius:9px;padding:13px 16px;margin-top:18px;color:#64758a}.source-note p{font-size:10px;line-height:1.6;margin:0}.note-icon{border:1px solid #9aabbc;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;font-size:11px;flex:none}
footer{background:#0b2340;color:#fff;min-height:105px;padding:20px max(5vw,24px);display:flex;align-items:center;gap:15px}.footer-logos{display:flex;gap:7px}.footer-logos img{width:43px;height:43px;object-fit:contain;background:#fff;border-radius:6px;padding:3px}footer>div:nth-child(2){display:flex;flex-direction:column;gap:4px}footer strong{font:700 15px "Barlow Condensed";letter-spacing:.5px}footer span,footer small{font-size:9px;letter-spacing:1px;color:#b6c6d6}footer small{margin-left:auto;text-transform:uppercase}
@media(max-width:760px){.topbar{min-height:68px;padding:8px 14px;gap:10px}.brand{gap:6px}.brand img{width:38px;height:42px}.brand .porprov-logo{width:48px}.topbar-label .eyebrow{font-size:8px;letter-spacing:1px}.topbar-label strong{font-size:15px;line-height:1.1}.refresh-btn{padding:10px 11px}.refresh-btn span:last-child{display:none}
main{padding:15px 12px 30px}.hero{padding:25px 20px;min-height:220px;border-radius:13px}.hero-copy{max-width:100%}.hero p{max-width:78%;font-size:11px;line-height:1.6}.hero h1{font-size:42px;margin:15px 0 9px}.hero-crest{width:112px;height:100px;right:3px;top:17px;opacity:.38}.hero-meta{font-size:8px;gap:7px;flex-wrap:wrap}.status-row{font-size:9px;gap:8px;align-items:flex-start}.status-row>span{text-align:right;max-width:48%}
.medal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.medal-card{padding:12px 10px;min-height:88px;gap:9px}.medal-icon{width:34px;height:34px;font-size:17px;border-radius:9px}.medal-card span{font-size:8px;letter-spacing:1px}.medal-card strong{font-size:27px}.medal-card small{font-size:8px}
.section-heading{margin:26px 1px 13px;align-items:end}.section-heading h2{font-size:26px}.section-subtitle{font-size:9px;max-width:230px;line-height:1.4}.total-athletes{font-size:9px;gap:4px}.total-athletes strong{font-size:20px}
.panel{padding:11px;border-radius:11px}.filter-row{flex-direction:column;gap:8px}.search-box input{height:40px;font-size:11px}select{height:40px;width:100%;font-size:11px}.sport-chips{margin-right:-2px}.sport-chip{font-size:9px;padding:7px 10px}
.medal-list{grid-template-columns:1fr;gap:8px}.medal-event{padding:12px}.event-name{font-size:12px}.event-athletes{font-size:10px}.table-foot{font-size:9px;gap:8px}.table-foot span:last-child{text-align:right}.source-note{padding:11px;margin-top:13px}.source-note p{font-size:9px}
footer{padding:16px 13px;gap:10px}.footer-logos img{width:34px;height:34px}footer strong{font-size:12px}footer span{font-size:8px}footer small{display:none}}
@media(max-width:360px){.hero h1{font-size:36px}.hero-crest{width:88px;opacity:.25}.medal-card{gap:7px;padding:10px 8px}.medal-card strong{font-size:24px}.medal-card small{font-size:7px}}

/* Medal table inspired by the supplied competition results reference */
.medal-table-wrap{width:100%;overflow-x:auto;border:1px solid #e9edf2;border-radius:10px}
.medal-table{width:100%;border-collapse:separate;border-spacing:0;min-width:620px}
.medal-table thead th{background:#f7f9fb;color:#8995a3;font-size:9px;font-weight:800;letter-spacing:1px;text-align:left;padding:14px 15px;border-bottom:1px solid #e7ebf0;white-space:nowrap}
.medal-table tbody td{padding:13px 15px;border-bottom:1px solid #edf0f3;font-size:11px;color:#34465b;vertical-align:middle}
.medal-table tbody tr:nth-child(even){background:#fbfcfd}
.medal-table tbody tr:hover{background:#fffbea}
.medal-table tbody tr:last-child td{border-bottom:0}
.medal-table .rank-col{width:55px;text-align:center}
.medal-table .medal-col{width:130px;text-align:center}
.medal-table tbody .rank-cell{text-align:center;color:#98a3b0;font-weight:700}
.medal-table .sport-cell{font-weight:800;color:#183451;min-width:155px}
.medal-table .event-cell{font-weight:600;line-height:1.5;min-width:240px}
.medal-table .athlete-sub{display:block;font-size:9px;font-weight:500;color:#8793a1;margin-top:3px;line-height:1.45}
.medal-table .medal-cell{text-align:center}
.medal-symbol{display:inline-flex;align-items:center;gap:7px;border-radius:30px;padding:6px 10px;font-size:10px;font-weight:800;white-space:nowrap}
.medal-symbol.emas{background:#fff6d4;color:#987500}
.medal-symbol.perak{background:#edf1f5;color:#657386}
.medal-symbol.perunggu{background:#f8ede3;color:#a66b3c}
.medal-symbol .medal-emoji{font-size:14px}
.medal-table .empty-state{padding:35px;text-align:center;color:#98a3b0;font-size:12px}
@media(max-width:760px){
 .medal-table-wrap{overflow:visible;border:0}
 .medal-table{min-width:0;border-collapse:separate;border-spacing:0 8px}
 .medal-table thead{display:none}
 .medal-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;background:#fff!important;border:1px solid #e8edf2;border-radius:10px;padding:11px 12px;box-shadow:0 2px 8px #102d5006}
 .medal-table tbody td{display:block;border:0;padding:0}
 .medal-table tbody .rank-cell{display:none}
 .medal-table tbody .sport-cell{grid-column:1;grid-row:1;font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#8794a2;padding-bottom:5px}
 .medal-table tbody .event-cell{grid-column:1;grid-row:2;font-size:11px;min-width:0;padding-right:3px}
 .medal-table tbody .medal-cell{grid-column:2;grid-row:1/3;align-self:center;text-align:right}
 .medal-symbol{font-size:9px;padding:6px 8px;gap:4px}
 .medal-symbol .medal-emoji{font-size:13px}
 .medal-table tbody .empty-state{display:block;padding:28px 8px}
}

/* Results & medals competition layout */
.results-shell{margin-top:30px;background:#fff;border:1px solid #e4e9ef;border-radius:16px;overflow:hidden;box-shadow:0 5px 24px #122b4408}
.results-topline{min-height:58px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9edf1;gap:16px}
.results-brand{font-size:12px;font-weight:800;letter-spacing:1.15px;color:#26384b;display:flex;align-items:center;gap:14px}
.results-brand span{height:22px;width:1px;background:#dce2e8}
.gender-filter{display:flex;gap:3px;background:#f2f4f6;padding:3px;border-radius:9px}
.gender-btn{border:0;background:transparent;color:#778391;padding:7px 12px;border-radius:7px;font:700 10px "DM Sans";cursor:pointer}
.gender-btn.active{background:#1b2d43;color:#fff;box-shadow:0 2px 5px #15283d20}
.results-tabs{display:flex;align-items:stretch;gap:0;border-bottom:1px solid #e7ebef;padding:0 25px;overflow-x:auto;scrollbar-width:none}
.results-tabs::-webkit-scrollbar{display:none}
.results-tab{background:none;border:0;border-bottom:3px solid transparent;color:#929ba6;padding:16px 17px 13px;white-space:nowrap;font:700 12px "DM Sans";cursor:pointer}
.results-tab.active{color:#1b2d43;border-bottom-color:#1b2d43}
.results-content{padding:22px 25px 18px}
.results-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}
.results-heading h2{font:800 22px "DM Sans";color:#1d2e42;margin:0 0 5px}
.results-heading p{font-size:11px;color:#929ba6;margin:0}
.results-count{font-size:10px;color:#7d8997;white-space:nowrap}
.results-tools{display:flex;gap:9px;margin-bottom:14px}
.results-tools .search-box{min-height:39px}
.results-tools .search-box input{height:38px}
.results-tools select{height:40px}
.view-panel.hidden{display:none}
.matrix-wrap,.simple-table-wrap{width:100%;overflow:auto;border:1px solid #e7ebef;border-radius:9px}
.matrix-table{width:100%;border-collapse:separate;border-spacing:0;min-width:680px}
.sport-matrix-block+.sport-matrix-block{border-top:9px solid #f4f6f8}
.event-matrix-scroll{overflow-x:auto}
.event-matrix{width:100%;border-collapse:separate;border-spacing:0;min-width:100%}
.event-matrix th{background:#fafbfc;color:#8d97a3;font-size:9px;letter-spacing:.45px;font-weight:800;text-align:center;vertical-align:bottom;padding:12px 10px;border-bottom:1px solid #e7ebef;border-right:1px solid #eef1f4;min-width:82px;max-width:145px;line-height:1.35}
.event-matrix th small{display:block;font-size:8px;font-weight:600;letter-spacing:0;color:#a1aab4;margin-top:4px}
.event-matrix th.sport-sticky{min-width:180px;text-align:left;padding-left:16px}
.event-matrix th.total-head{min-width:55px}
.event-matrix td{height:53px;text-align:center;padding:9px 10px;border-right:1px solid #f0f2f4;border-bottom:1px solid #edf0f3;font-size:11px;color:#8b95a0;white-space:nowrap}
.event-matrix tbody tr:last-child td,.event-matrix tbody tr:last-child th{border-bottom:0}
.event-matrix .sport-name-cell{background:#fff;text-align:left;color:#1e344c;font-size:11px;font-weight:800;padding-left:16px;border-right:1px solid #e8edf1}
.matrix-medal{display:inline-flex;align-items:center;justify-content:center;font-size:19px;line-height:1;filter:drop-shadow(0 1px 1px #00000012);margin:0 2px}
.event-matrix .total-cell{font-size:13px;font-weight:800;color:#26394e;background:#fafbfc}
.sport-matrix-title{height:43px;display:flex;align-items:center;gap:10px;padding:0 15px;background:#fff}
.sport-rank{width:20px;height:20px;border-radius:5px;background:#f0f3f6;color:#718093;display:grid;place-items:center;font-size:9px;font-weight:800}
.sport-matrix-title strong{font-size:11px;color:#253a51;letter-spacing:.3px}
.sport-total{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:10px;color:#8994a0}
.sport-total b{font-size:12px;color:#26394e;padding-left:9px;border-left:1px solid #e6eaee}
.gold-text{color:#c39b16!important;font-weight:800}.silver-text{color:#8793a2!important;font-weight:800}.bronze-text{color:#b9783d!important;font-weight:800}
.detail-table{width:100%;border-collapse:collapse;min-width:640px}
.detail-table th{background:#f8fafb;color:#8995a2;text-align:left;font-size:9px;letter-spacing:.8px;padding:13px 14px;white-space:nowrap}
.detail-table td{padding:12px 14px;border-top:1px solid #edf0f3;color:#435368;font-size:11px}
.detail-table tbody tr:nth-child(even){background:#fbfcfd}
.medal-pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:800;white-space:nowrap}
.medal-pill.gold{background:#fff5cf;color:#9a7800}.medal-pill.silver{background:#edf1f5;color:#687789}.medal-pill.bronze{background:#f8ece2;color:#a66b3c}
.podium-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.podium-item{display:flex;align-items:center;gap:11px;border:1px solid #e9edf1;border-radius:9px;padding:12px;min-width:0}
.podium-medal{font-size:23px}.podium-info{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.podium-info span{font-size:9px;color:#8793a0;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.podium-info strong{font-size:11px;color:#263b52;line-height:1.4}
.podium-info small{font-size:9px;color:#7d8997;line-height:1.4}
.results-foot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #edf0f3;margin-top:14px;padding-top:13px;color:#9aa3ad;font-size:9px}
@media(max-width:760px){
 .results-shell{margin-top:20px;border-radius:12px}
 .results-topline{padding:0 12px;min-height:52px;gap:8px}
 .results-brand{font-size:9px;letter-spacing:.6px;gap:8px}.results-brand span{height:17px}
 .gender-filter{padding:2px}.gender-btn{padding:6px 8px;font-size:9px}
 .results-tabs{padding:0 8px}
 .results-tab{padding:14px 11px 11px;font-size:10px}
 .results-content{padding:16px 11px 13px}
 .results-heading{align-items:flex-start;margin-bottom:13px}
 .results-heading h2{font-size:18px}.results-heading p{font-size:9px;line-height:1.5;max-width:250px}
 .results-count{font-size:9px;text-align:right;white-space:normal}
 .results-tools{flex-direction:column;gap:7px}.results-tools select{width:100%}
 .matrix-wrap,.simple-table-wrap{overflow-x:auto}
 .event-matrix th{min-width:92px;padding:10px 8px;font-size:8px}
 .event-matrix th.sport-sticky{min-width:135px}
 .event-matrix td{height:47px;padding:8px 6px}
 .event-matrix .sport-name-cell{min-width:135px;padding-left:10px;font-size:9px}
 .sport-matrix-title{padding:0 10px}
 .sport-matrix-title strong{font-size:9px}
 .sport-total{gap:8px;font-size:9px}
 .matrix-medal{font-size:16px}
 .podium-list{grid-template-columns:1fr}
 .results-foot{font-size:8px;line-height:1.45}
}

/* Refined grouped medal matrix: one clear sport heading, then its event columns */
.sport-board{border:1px solid #e6ebf1;border-radius:12px;background:#fff;margin:0 0 14px;overflow:hidden}
.sport-board:last-child{margin-bottom:0}
.sport-board-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 17px;background:#fbfcfe;border-bottom:1px solid #edf0f4}
.sport-board-name{display:flex;align-items:center;gap:11px;min-width:180px}
.sport-rank{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#edf2f7;color:#53657a;font-size:10px;font-weight:800;flex:none}
.sport-overline{display:block;font-size:8px;font-weight:800;letter-spacing:1.4px;color:#9aa5b2;margin-bottom:3px}
.sport-board-name h3{margin:0;color:#173653;font-size:14px;font-weight:800;letter-spacing:.2px}
.sport-board-score{display:flex;align-items:center;gap:17px}
.sport-board-score>span{display:flex;align-items:center;gap:5px}
.sport-board-score b{font-size:13px;font-weight:800}
.sport-board-score small{font-size:8px;font-weight:800;letter-spacing:.6px;color:#9aa5b2}
.score-gold b{color:#bd9200}.score-silver b{color:#8290a0}.score-bronze b{color:#b97843}.score-total{border-left:1px solid #e3e8ee;padding-left:15px}.score-total b{color:#203a55}
.event-matrix-scroll{width:100%;overflow-x:auto}
.event-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.event-matrix th,.event-matrix td{border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;text-align:center;vertical-align:middle}
.event-matrix tr:last-child th,.event-matrix tr:last-child td{border-bottom:0}
.event-matrix th:last-child,.event-matrix td:last-child{border-right:0}
.event-matrix thead th{min-width:155px;max-width:190px;padding:12px 10px;background:#fff;color:#617187;font-size:10px;font-weight:800;line-height:1.4}
.event-matrix thead th small{display:block;margin-top:4px;color:#9ba6b2;font-size:9px;font-weight:500;line-height:1.3}
.event-matrix .event-first-col{position:sticky;left:0;z-index:1;min-width:180px;max-width:180px;text-align:left;padding-left:16px;background:#f7f9fb;color:#8390a0;font-size:9px;letter-spacing:.8px}
.event-matrix tbody .sport-row-label{font-size:11px;font-weight:800;letter-spacing:0;color:#173653;background:#f8fafc}
.event-matrix td{height:57px;min-width:155px;padding:9px;background:#fff}
.event-matrix tbody td:nth-child(even){background:#fcfdfe}
.matrix-medal{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;font-size:16px;margin:1px}
.matrix-medal.gold{background:#fff5ce}.matrix-medal.silver{background:#eef1f5}.matrix-medal.bronze{background:#f8ece2}
@media(max-width:760px){
 .sport-board{border-radius:10px;margin-bottom:11px}
 .sport-board-heading{padding:11px 12px;align-items:flex-start;gap:8px;flex-wrap:wrap}
 .sport-board-name{min-width:0;flex:1}
 .sport-board-name h3{font-size:12px}
 .sport-board-score{gap:10px;margin-left:36px}
 .sport-board-score b{font-size:12px}.sport-board-score small{font-size:7px}
 .score-total{padding-left:9px}
 .event-matrix{min-width:max-content}
 .event-matrix thead th{min-width:132px;max-width:150px;padding:10px 8px;font-size:9px}
 .event-matrix .event-first-col{min-width:145px;max-width:145px;padding-left:10px}
 .event-matrix tbody .sport-row-label{font-size:10px}
 .event-matrix td{min-width:132px;height:49px;padding:7px}
 .matrix-medal{width:23px;height:23px;font-size:14px}
}

/* Alphabetical sport directory and dedicated sport detail page */
.sport-directory{display:flex;flex-direction:column;gap:8px}
.sport-directory-card{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:14px 15px;border:1px solid #e7ecf1;border-radius:11px;background:#fff;color:#24384f;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.sport-directory-card:hover{background:#fbfdff;border-color:#b9c9d8;transform:translateY(-1px)}
.directory-rank{width:27px;height:27px;border-radius:8px;background:#f0f3f7;color:#738398;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}
.directory-main{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.directory-main strong{font-size:12px;font-weight:800;color:#173653;letter-spacing:.2px}
.directory-main small{font-size:9px;color:#929eac}
.directory-medals{display:flex;align-items:center;gap:12px}
.mini-medal{display:flex;align-items:center;gap:4px}
.mini-medal b{font-size:12px}
.mini-medal small{font-size:12px}
.mini-medal.gold b{color:#b68c00}.mini-medal.silver b{color:#7d8998}.mini-medal.bronze b{color:#b77742}
.directory-total{display:flex;flex-direction:column;align-items:center;border-left:1px solid #e8edf2;padding-left:15px;min-width:44px}
.directory-total b{font-size:16px;color:#183653}
.directory-total small{font-size:7px;letter-spacing:.8px;color:#98a4b1;font-weight:800}
.directory-chevron{font-size:23px;color:#9aa6b3;margin-left:2px}
.sport-detail-back{margin-bottom:14px}
.sport-detail-back button{border:0;background:#eef3f7;color:#31516f;border-radius:8px;padding:9px 12px;font:700 10px "DM Sans";cursor:pointer}
.sport-detail-hero{background:linear-gradient(115deg,#102d50,#1d5274);color:#fff;border-radius:12px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.detail-kicker{font-size:8px;font-weight:800;letter-spacing:1.4px;color:#91a4b8}
.sport-detail-hero h2{font:800 28px "Barlow Condensed";margin:5px 0;color:#fff}
.sport-detail-hero p{font-size:10px;color:#d2dfeb;margin:0}
.detail-total{display:flex;flex-direction:column;align-items:center;background:#ffffff18;border:1px solid #ffffff30;border-radius:10px;padding:10px 17px}
.detail-total b{font:800 27px "Barlow Condensed";color:#fff}
.detail-total small{font-size:8px;letter-spacing:.8px;color:#d4e0eb}
.detail-medal-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 20px}
.detail-medal{display:flex;align-items:center;gap:9px;border:1px solid #e8edf2;border-radius:9px;padding:12px}
.detail-medal b{font:800 21px "Barlow Condensed"}
.detail-medal span{font-size:10px;font-weight:700;color:#68788b}
.detail-medal.gold b{color:#b68c00}.detail-medal.silver b{color:#7d8998}.detail-medal.bronze b{color:#b77742}
.detail-section-title{display:flex;align-items:center;justify-content:space-between;margin:8px 0 11px}
.detail-section-title h3{font:700 19px "Barlow Condensed";color:#173653;margin:0}
.detail-section-title span{font-size:9px;color:#8b98a7}
.detail-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.detail-event-card{border:1px solid #e7ecf1;border-radius:10px;padding:13px;min-width:0}
.detail-event-heading h4{font-size:12px;line-height:1.45;color:#203a55;margin:5px 0 3px}
.detail-event-heading small{font-size:9px;color:#8996a4}
.detail-medal-winners{border-top:1px solid #edf0f4;margin-top:10px;padding-top:8px;display:flex;flex-direction:column;gap:7px}
.winner-row{display:flex;align-items:flex-start;gap:9px}
.winner-row .medal-pill{flex:none;font-size:8px;padding:4px 7px}
.winner-names{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#65758a;line-height:1.4;min-width:0}
@media(max-width:760px){
 .sport-directory{gap:7px}
 .sport-directory-card{padding:11px 9px;gap:8px;border-radius:9px}
 .directory-rank{width:23px;height:23px;font-size:9px}
 .directory-main strong{font-size:10px;line-height:1.3}
 .directory-main small{font-size:8px}
 .directory-medals{gap:6px}
 .mini-medal{gap:2px;flex-direction:column-reverse}
 .mini-medal b{font-size:10px}.mini-medal small{font-size:10px}
 .directory-total{padding-left:8px;min-width:30px}
 .directory-total b{font-size:13px}.directory-total small{font-size:6px}
 .directory-chevron{font-size:18px}
 .sport-detail-hero{padding:17px 14px}
 .sport-detail-hero h2{font-size:23px}
 .detail-total{padding:8px 11px}
 .detail-medal-summary{gap:6px}
 .detail-medal{padding:9px 7px;gap:5px;flex-direction:column;align-items:flex-start}
 .detail-medal b{font-size:19px}.detail-medal span{font-size:9px}
 .detail-event-list{grid-template-columns:1fr}
 .detail-event-card{padding:12px}
}

/* PORPROV visual refresh: stronger typography, medal-first hierarchy, event palette */
:root{
 --event-blue:#1556A2;
 --event-blue-deep:#103B70;
 --event-yellow:#F6D51F;
 --event-green:#36A852;
 --event-red:#E53935;
 --ink:#172B45;
 --muted:#687B91;
}
body{background:#eef2f7;color:var(--ink);font-size:15px}
.topbar{min-height:88px;padding:12px max(5vw,28px);border-bottom:4px solid transparent;border-image:linear-gradient(90deg,var(--event-blue) 0 25%,var(--event-yellow) 25% 50%,var(--event-green) 50% 75%,var(--event-red) 75% 100%) 1}
.topbar-label .eyebrow{font-size:11px;color:var(--event-blue);letter-spacing:1.8px}
.topbar-label strong{font-size:23px}
.refresh-btn{background:var(--event-blue);font-size:13px;padding:13px 18px;box-shadow:0 4px 12px #1556a226}
.refresh-btn:hover{background:var(--event-blue-deep)}
main{max-width:1320px;padding:30px 30px 54px}
.hero{min-height:270px;padding:42px 48px;background:linear-gradient(112deg,#103b70 0%,#1556a2 58%,#167c78 100%);border-radius:18px;box-shadow:0 12px 30px #103b701a}
.event-pill{font-size:11px;padding:8px 14px}
.hero h1{font-size:clamp(46px,5vw,66px);letter-spacing:.7px}
.hero p{font-size:15px;max-width:650px}
.hero-meta{font-size:10px}
.status-row{font-size:12px;padding:17px 3px}
.medal-grid{gap:16px}
.medal-card{min-height:128px;padding:21px;border-radius:15px;gap:17px;box-shadow:0 5px 18px #102d5008}
.medal-icon{width:55px;height:55px;font-size:27px;border-radius:15px}
.medal-card span{font-size:11px;letter-spacing:1.5px}
.medal-card strong{font-size:43px;line-height:1.05}
.medal-card small{font-size:11px;margin-top:4px}
.medal-card.gold{border-top:4px solid #e5b800}
.medal-card.silver{border-top:4px solid #9ba9ba}
.medal-card.bronze{border-top:4px solid #bd7947}
.medal-card.total{border-top:4px solid var(--event-blue)}
.results-shell{border-radius:16px;box-shadow:0 8px 28px #102d500d}
.results-topline{min-height:62px;padding:0 24px}
.results-brand{font-size:12px;letter-spacing:1.3px}
.results-tabs{padding:0 20px;gap:8px}
.results-tab{font-size:13px;padding:17px 19px}
.results-tab.active{color:var(--event-blue);border-bottom:3px solid var(--event-yellow)}
.gender-filter{padding:4px}
.gender-btn{font-size:11px;padding:9px 13px}
.results-content{padding:26px 25px}
.results-heading h2{font-size:30px}
.results-heading p{font-size:13px;line-height:1.5}
.results-count{font-size:11px}
.results-tools{gap:12px;margin:19px 0}
.search-box{border-radius:10px;padding:0 14px}
.search-box input{height:48px;font-size:14px}
.results-tools select{font-size:13px;min-height:48px;border-radius:10px}
.sport-directory{gap:12px}
.sport-directory-card{padding:17px 19px;gap:17px;border-radius:13px;border-left:4px solid var(--event-blue);box-shadow:0 3px 12px #122b4408}
.sport-directory-card:nth-child(4n+2){border-left-color:var(--event-green)}
.sport-directory-card:nth-child(4n+3){border-left-color:var(--event-yellow)}
.sport-directory-card:nth-child(4n+4){border-left-color:var(--event-red)}
.sport-directory-card:hover{background:#fff;border-color:#c6d4e3;box-shadow:0 7px 20px #102d5012}
.directory-rank{width:34px;height:34px;font-size:12px;background:#eaf1fb;color:var(--event-blue);border-radius:10px}
.directory-main strong{font-size:15px;letter-spacing:.35px}
.directory-main small{font-size:11px}
.directory-medals{gap:15px}
.mini-medal{display:flex;flex-direction:row;align-items:center;gap:5px;padding:7px 9px;border-radius:9px}
.mini-medal.gold{background:#fff6d2}
.mini-medal.silver{background:#eef1f5}
.mini-medal.bronze{background:#f9eee5}
.mini-medal b{font-size:16px}
.mini-medal small{font-size:15px}
.directory-total{padding-left:18px;min-width:62px}
.directory-total b{font-size:23px;color:var(--event-blue)}
.directory-total small{font-size:9px}
.directory-chevron{font-size:27px;color:var(--event-blue)}
.results-foot{font-size:11px;padding-top:18px}
.source-note{padding:16px 18px;border-left:4px solid var(--event-yellow);background:#fff}
.source-note p{font-size:12px}
footer{border-top:4px solid transparent;border-image:linear-gradient(90deg,var(--event-blue) 0 25%,var(--event-yellow) 25% 50%,var(--event-green) 50% 75%,var(--event-red) 75% 100%) 1}
@media(max-width:760px){
 main{padding:14px 11px 30px}
 .topbar{min-height:70px;padding:8px 12px}
 .topbar-label strong{font-size:15px}
 .topbar-label .eyebrow{font-size:8px}
 .hero{min-height:205px;padding:24px 19px;border-radius:13px}
 .hero h1{font-size:43px}
 .hero p{font-size:12px;max-width:82%}
 .status-row{font-size:10px}
 .medal-grid{gap:9px}
 .medal-card{min-height:104px;padding:12px 10px;gap:9px;border-radius:11px}
 .medal-icon{width:38px;height:38px;font-size:19px;border-radius:10px}
 .medal-card span{font-size:8px}
 .medal-card strong{font-size:31px}
 .medal-card small{font-size:8px}
 .results-topline{padding:0 12px;min-height:52px}
 .results-brand{font-size:9px;letter-spacing:.7px}
 .results-tabs{padding:0 7px;gap:0;overflow-x:auto}
 .results-tab{font-size:10px;padding:14px 10px;white-space:nowrap}
 .gender-filter{display:none}
 .results-content{padding:17px 12px}
 .results-heading h2{font-size:25px}
 .results-heading p{font-size:10px}
 .results-tools{flex-direction:column;gap:8px;margin:14px 0}
 .search-box input{height:43px;font-size:12px}
 .results-tools select{height:43px;min-height:43px;font-size:12px}
 .sport-directory{gap:8px}
 .sport-directory-card{padding:11px 9px;gap:8px;border-left-width:3px}
 .directory-rank{width:25px;height:25px;font-size:9px}
 .directory-main strong{font-size:11px}
 .directory-main small{font-size:8px}
 .directory-medals{gap:4px}
 .mini-medal{gap:2px;padding:5px 4px;border-radius:6px}
 .mini-medal b{font-size:11px}.mini-medal small{font-size:10px}
 .directory-total{padding-left:7px;min-width:35px}
 .directory-total b{font-size:16px}.directory-total small{font-size:6px}
 .directory-chevron{font-size:19px}
 .source-note p{font-size:10px}
}

/* --- Porprov branded portal layout + official 61-sport logo set --- */
body{background:linear-gradient(180deg,#f5f8ff 0%,#eaf2ff 48%,#f5f8fc 100%);color:#0b2453}
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border:0;border-bottom:1px solid #dce7f6;padding:0 4.5vw;box-shadow:0 3px 15px #0b3b8010}
.header-inner{max-width:1450px;min-height:82px;margin:auto;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:17px;min-width:345px}
.brand .porprov-logo{width:78px;height:66px;object-fit:contain}
.topbar-label{display:flex;flex-direction:column;gap:4px;border-left:2px solid #e1e8f3;padding-left:17px}
.topbar-label .eyebrow{font-size:10px;letter-spacing:1.4px;color:#123d83;font-weight:800}
.topbar-label strong{font-size:17px;color:#0c2354;font-weight:800}
.header-nav{display:flex;align-items:center;justify-content:center;gap:9px;margin-left:auto}
.header-nav-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#152b58;font-size:13px;font-weight:800;padding:12px 17px;border-radius:24px;white-space:nowrap}
.header-nav-link.active,.header-nav-link:hover{background:#0649bd;color:#fff;box-shadow:0 4px 12px #0649bd25}
.refresh-btn{background:#0649bd;border-radius:24px;padding:12px 22px;font-size:13px;font-weight:800;white-space:nowrap}
main{max-width:1450px;padding:26px 28px 55px}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:230px;border:2px solid rgba(255,255,255,.85);border-radius:22px;padding:36px 46px;background:linear-gradient(115deg,#073da9 0%,#0756c9 55%,#073b9c 100%);box-shadow:0 13px 32px #124c9c28}
.hero:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 78% 40%,#ffffff20 0 1px,transparent 2px);background-size:22px 22px;mask-image:linear-gradient(90deg,transparent 55%,#000)}
.hero:after{content:"";position:absolute;z-index:-1;width:420px;height:420px;right:-90px;top:-260px;border:2px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 30px #ffffff09,0 0 0 60px #ffffff08}
.hero-copy{max-width:800px}
.hero .event-pill{background:#ffffff16;border:1px solid #ffffff80;color:#fff;font-size:12px;padding:9px 17px}
.hero h1{font-size:clamp(48px,5vw,72px);font-style:italic;font-weight:800;line-height:.98;letter-spacing:-1px;color:#fff}
.hero h1 em{color:#ffdf19}
.hero p{font-size:17px;color:#f0f5ff;max-width:760px}
.hero-meta{color:#d5e5ff;font-size:10px}
.hero-crest{width:200px;height:170px;background:transparent;box-shadow:none}
.hero-crest img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 7px 10px #001b5d50)}
.hero-shape{opacity:.9}
.shape-one{background:#f6d719;transform:rotate(-16deg);width:340px;height:28px;right:-35px;bottom:20px}
.shape-two{background:#e62c39;transform:rotate(-16deg);width:260px;height:18px;right:-30px;bottom:0}
.status-row{font-size:12px;color:#647894;padding:13px 5px}
.medal-grid{gap:16px}
.medal-card{min-height:125px;border-radius:15px;border:1px solid #d8e4f5;box-shadow:0 7px 20px #0b3c8010;position:relative;overflow:hidden}
.medal-card:after{content:"";position:absolute;right:-25px;bottom:-34px;width:115px;height:70px;transform:rotate(-25deg);border-radius:18px 0 0 0;opacity:.9}
.medal-card.gold{border:1px solid #f4c400;border-top:1px solid #f4c400}.medal-card.gold:after{background:linear-gradient(135deg,#ffe45a,#efa900)}
.medal-card.silver{border:1px solid #9fc4f6}.medal-card.silver:after{background:linear-gradient(135deg,#75b6ff,#0756c9)}
.medal-card.bronze{border:1px solid #ff7777}.medal-card.bronze:after{background:linear-gradient(135deg,#ff7777,#e31d35)}
.medal-card.total{border:1px solid #69b5ff}.medal-card.total:after{background:linear-gradient(135deg,#62c5ff,#0756c9)}
.medal-card .medal-icon{width:64px;height:64px;background:transparent;font-size:48px;z-index:1}
.medal-card strong{font-size:44px;color:#102b70}
.medal-card span{font-size:13px;color:#0b2453;font-weight:900}
.results-shell{border-radius:18px;border:1px solid #d9e6f7;box-shadow:0 9px 26px #0b3c8010}
.results-topline{min-height:64px}
.results-brand{font-size:12px;color:#103578}
.results-tabs{background:#fff}
.results-tab{font-size:13px}
.results-tab.active{color:#0649bd;border-bottom:3px solid #ffda16}
.results-content{padding:25px}
.results-heading h2{font-size:28px;color:#102c68}
.results-heading p{font-size:13px;color:#73849b}
.results-count{font-size:11px;color:#7c8da3}
.results-tools{margin:17px 0}
.search-box,.results-tools select{border-radius:10px;border-color:#d6e2f2;min-height:47px}
.search-box input{font-size:13px}
.sport-directory{gap:10px}
.sport-directory-card{background:#fff;border:1px solid #dce7f5;border-left:4px solid #0756c9;border-radius:13px;padding:14px 17px;gap:14px;box-shadow:0 4px 12px #0b3c8008}
.sport-directory-card:nth-child(4n+2){border-left-color:#31a65b}
.sport-directory-card:nth-child(4n+3){border-left-color:#f0c900}
.sport-directory-card:nth-child(4n+4){border-left-color:#e6333d}
.sport-directory-card:hover{transform:translateY(-2px);box-shadow:0 9px 20px #0b3c8016}
.cabor-logo{width:54px;height:54px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:13px;background:linear-gradient(145deg,#eef5ff,#fff);border:1px solid #e0eaf7;padding:4px;overflow:hidden}
.cabor-logo img{width:100%;height:100%;object-fit:contain;display:block}
.cabor-logo-fallback{font-size:27px}
.directory-main strong{font-size:15px;color:#102b65}
.directory-main small{font-size:10px;color:#7b8da5}
.directory-medals{gap:8px}
.mini-medal{min-width:48px;justify-content:center;padding:7px 8px;border-radius:9px}
.mini-medal b{font-size:16px}
.mini-medal small{font-size:14px}
.directory-total{min-width:65px}
.directory-total b{font-size:24px;color:#092f86}
.directory-total small{font-size:8px}
.directory-chevron{color:#0756c9}
.sport-detail-hero{background:linear-gradient(115deg,#073da9,#0756c9 60%,#087d82);border-radius:16px}
.sport-detail-identity{display:flex;align-items:center;gap:17px}
.detail-cabor-logo{width:86px;height:86px;background:#fff;border:2px solid #ffffff80;border-radius:16px;padding:7px}
.sport-detail-hero h2{font-size:34px}
.detail-medal{background:#fff;border-radius:12px;box-shadow:0 3px 12px #0b3c8008}
.detail-event-card{border-color:#dce7f5;box-shadow:0 3px 12px #0b3c8008}
.detail-event-heading h4{font-size:14px}
footer{border-image:linear-gradient(90deg,#0756c9 0 25%,#f6d719 25% 50%,#31a65b 50% 75%,#e6333d 75% 100%) 1}
@media(max-width:850px){
 .header-inner{min-height:72px;gap:8px;flex-wrap:wrap;padding:7px 0}
 .brand{min-width:0;gap:8px;flex:1}
 .brand .porprov-logo{width:53px;height:49px}
 .topbar-label{padding-left:9px}
 .topbar-label .eyebrow{font-size:7px}
 .topbar-label strong{font-size:11px}
 .header-nav{order:3;width:100%;margin:0;justify-content:center}
 .header-nav-link{font-size:10px;padding:8px 12px}
 .refresh-btn{padding:9px 12px;font-size:10px}
 main{padding:14px 11px 30px}
 .hero{min-height:185px;padding:22px 17px;border-radius:14px}
 .hero h1{font-size:42px}
 .hero p{font-size:11px;max-width:78%}
 .hero-crest{width:90px;height:95px;position:absolute;right:9px;top:36px}
 .hero .event-pill{font-size:8px;padding:6px 10px}
 .hero-meta{font-size:7px}
 .medal-grid{gap:8px}
 .medal-card{min-height:100px;padding:10px 8px;gap:6px}
 .medal-card .medal-icon{width:37px;height:37px;font-size:28px}
 .medal-card strong{font-size:30px}
 .medal-card span{font-size:8px}
 .medal-card small{font-size:7px}
 .results-content{padding:15px 11px}
 .results-heading h2{font-size:23px}
 .results-heading p{font-size:10px}
 .sport-directory-card{padding:10px 8px;gap:7px}
 .cabor-logo{width:39px;height:39px;padding:3px;border-radius:9px}
 .directory-main strong{font-size:10px}
 .directory-main small{font-size:7px}
 .mini-medal{min-width:0;padding:5px 4px;gap:2px}
 .mini-medal b{font-size:11px}.mini-medal small{font-size:10px}
 .directory-total{min-width:34px;padding-left:7px}
 .directory-total b{font-size:16px}.directory-total small{font-size:6px}
 .directory-chevron{font-size:18px}
 .detail-cabor-logo{width:55px;height:55px}
 .sport-detail-identity{gap:10px}
 .sport-detail-hero h2{font-size:22px}
}

/* Medal standing table — matches the supplied reference layout */
#matrixTable{width:100%}
.standing-table-scroll{width:100%;overflow-x:auto;border-radius:11px}
.standing-table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0 4px;table-layout:fixed}
.standing-table thead th{height:43px;padding:10px 12px;background:#0646b8;color:#fff;text-align:center;font-size:14px;font-weight:800;white-space:nowrap}
.standing-table thead th:first-child{width:68px;border-radius:10px 0 0 10px}
.standing-table thead th:nth-child(2){width:34%;text-align:left}
.standing-table thead th:nth-child(3),.standing-table thead th:nth-child(4),.standing-table thead th:nth-child(5){width:15%}
.standing-table thead th:last-child{width:115px;background:#ffd400;color:#092d68;border-radius:0 10px 10px 0}
.standing-table tbody td{height:49px;padding:5px 12px;text-align:center;color:#071e53;font-size:15px;font-weight:700;border:0}
.standing-table tbody tr:nth-child(odd){background:#eaf1fc}
.standing-table tbody tr:nth-child(even){background:#fff}
.standing-table tbody tr:hover{background:#dce9ff}
.standing-table tbody td:first-child{border-radius:10px 0 0 10px}
.standing-table tbody td:last-child{border-radius:0 10px 10px 0}
.standing-number span{display:inline-flex;width:34px;height:32px;align-items:center;justify-content:center;background:#dce8fa;border-radius:9px;color:#0a347b;font-weight:800}
.standing-sport{text-align:left!important}
.standing-sport-inner{display:flex;align-items:center;gap:14px;min-width:0}
.standing-sport-inner strong{font-size:15px;font-weight:800;letter-spacing:.1px;color:#071e53;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.standing-cabor-logo{width:39px;height:39px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0860d6;border:2px solid #fff;box-shadow:0 1px 4px #092f7b22;padding:5px;overflow:hidden}
.standing-cabor-logo img{width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1)}
.standing-cabor-logo.cabor-logo-fallback{font-size:19px;color:#fff}
.standing-medal{font-size:16px!important;font-weight:800!important;color:#111d34!important}
.standing-total{background:#fff4c8!important;color:#071e53!important;font-size:17px!important;font-weight:900!important}
.standing-total span{display:inline-flex;min-width:42px;justify-content:center}
.standing-table tbody tr{cursor:pointer;outline-offset:2px}
.standing-table tbody tr:focus-visible{outline:3px solid #ffcf00}
.gold-value,.silver-value,.bronze-value{color:#17243c!important}
@media(max-width:760px){
 .standing-table{min-width:650px}
 .standing-table thead th{height:40px;font-size:12px;padding:8px}
 .standing-table tbody td{height:46px;font-size:13px;padding:4px 8px}
 .standing-table thead th:first-child{width:52px}
 .standing-table thead th:nth-child(2){width:235px}
 .standing-table thead th:nth-child(3),.standing-table thead th:nth-child(4),.standing-table thead th:nth-child(5){width:85px}
 .standing-table thead th:last-child{width:80px}
 .standing-sport-inner{gap:9px}
 .standing-sport-inner strong{font-size:12px}
 .standing-cabor-logo{width:34px;height:34px;padding:4px}
 .standing-number span{width:29px;height:29px}
 .standing-total{font-size:15px!important}
}

/* Larger, more prominent medal symbols */
.medal-card{min-height:138px;gap:18px;padding:22px}
.medal-icon{width:68px;height:68px;border-radius:17px;font-size:39px;box-shadow:inset 0 0 0 1px #ffffffa6}
.medal-card strong{font-size:43px}
.standing-table thead th.medal-heading{font-size:15px}
.medal-heading{vertical-align:middle}
.medal-heading-icon{display:inline-block;font-size:27px;line-height:1;vertical-align:middle;margin-right:7px;filter:drop-shadow(0 2px 1px #001b4433)}
.standing-medal{font-size:19px!important;font-weight:900!important}
.detail-medal-summary .detail-medal{min-height:82px;padding:15px 17px;gap:13px}
.detail-medal-summary .detail-medal b{font-size:30px}
.detail-medal-summary .detail-medal span{font-size:13px}
.detail-medal-summary .detail-medal::before{font-size:27px;line-height:1}
.detail-medal-summary .detail-medal.gold::before{content:"🥇"}
.detail-medal-summary .detail-medal.silver::before{content:"🥈"}
.detail-medal-summary .detail-medal.bronze::before{content:"🥉"}
.medal-pill{font-size:11px;padding:7px 11px;gap:7px}
.podium-medal{font-size:31px}
@media(max-width:760px){
 .medal-card{min-height:112px;padding:13px;gap:10px}
 .medal-icon{width:49px;height:49px;font-size:29px;border-radius:13px}
 .medal-card strong{font-size:34px}
 .medal-heading-icon{font-size:23px;margin-right:4px}
 .standing-table thead th.medal-heading{font-size:12px}
 .standing-medal{font-size:16px!important}
 .detail-medal-summary .detail-medal{min-height:72px;padding:10px 8px;gap:6px}
 .detail-medal-summary .detail-medal b{font-size:23px}
 .detail-medal-summary .detail-medal span{font-size:10px}
 .detail-medal-summary .detail-medal::before{font-size:22px}
 .medal-pill{font-size:10px;padding:6px 8px}
 .podium-medal{font-size:27px}
}

/* Dedicated cabor detail page — redesigned to match the supplied medal portal reference */
#view-sport-detail{background:transparent}
#sportDetailContent{width:100%}
.detail-page{display:flex;flex-direction:column;gap:14px;padding:2px 0 12px}
.detail-backline{display:flex;align-items:center}
.detail-backline button{border:0;border-radius:999px;background:#fff;color:#082e79;padding:11px 18px;font:800 12px "DM Sans";box-shadow:0 4px 14px #143d781c;cursor:pointer}
.detail-backline button:hover{background:#f1f6ff;transform:translateY(-1px)}
.detail-banner{position:relative;overflow:hidden;min-height:138px;border-radius:20px;padding:25px 34px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:linear-gradient(110deg,#07358f 0%,#0756c5 58%,#087d85 100%);box-shadow:0 10px 26px #0a4bb51c}
.detail-banner:before{content:"";position:absolute;right:-40px;top:-120px;width:390px;height:300px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 28px #ffffff08,0 0 0 56px #ffffff06}
.detail-banner:after{content:"";position:absolute;right:-30px;bottom:-80px;width:380px;height:115px;transform:rotate(-13deg);border-radius:100% 0 0 0;border-top:15px solid #168b54;box-shadow:0 -14px 0 -1px #ffdf00,0 -29px 0 -2px #e91e35}
.detail-banner-copy{position:relative;z-index:1}
.detail-banner-kicker{display:block;font-size:9px;font-weight:800;letter-spacing:2px;color:#c9dcff;margin-bottom:8px}
.detail-banner h2{font:italic 800 clamp(34px,4vw,58px)/.98 "Barlow Condensed";letter-spacing:.3px;color:#fff;margin:0;text-transform:uppercase}
.detail-banner-underline{display:block;width:135px;height:7px;border-radius:8px;background:linear-gradient(90deg,#ffdc00,#ffb900);margin:11px 0 8px}
.detail-banner p{margin:0;color:#e3efff;font-size:11px;font-weight:600}
.detail-banner-logo{position:relative;z-index:1;width:92px;height:92px;border-radius:17px;background:#fff;display:grid;place-items:center;padding:12px;box-shadow:0 6px 18px #002c6d40}
.detail-cabor-emblem{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:transparent;padding:0}
.detail-cabor-emblem img{width:100%;height:100%;object-fit:contain;filter:none}
.detail-medal-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.detail-medal-card{position:relative;overflow:hidden;min-height:105px;border-radius:16px;border:1px solid #dce6f4;background:#fff;display:flex;align-items:center;gap:15px;padding:15px 20px;box-shadow:0 5px 15px #153e7510}
.detail-medal-card:after{content:"";position:absolute;right:-30px;bottom:-44px;width:135px;height:75px;border-radius:100% 0 0 0;transform:rotate(-12deg);opacity:.95}
.detail-medal-card.gold{border-color:#f5d45b}.detail-medal-card.gold:after{background:linear-gradient(130deg,#ffe98c,#f4b900)}
.detail-medal-card.silver{border-color:#c8d5e6}.detail-medal-card.silver:after{background:linear-gradient(130deg,#e6edf6,#879bb4)}
.detail-medal-card.bronze{border-color:#f3c6a4}.detail-medal-card.bronze:after{background:linear-gradient(130deg,#ffd6b6,#ed792c)}
.detail-medal-card.total{border-color:#8ebcff}.detail-medal-card.total:after{background:linear-gradient(130deg,#9dcaff,#0756c5)}
.detail-medal-art{position:relative;z-index:1;font-size:47px;line-height:1;filter:drop-shadow(0 3px 2px #19345b20)}
.detail-medal-card>div{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px}
.detail-medal-card small{font-size:11px;font-weight:900;letter-spacing:1px;color:#40536f}
.detail-medal-card strong{font:800 39px/1 "Barlow Condensed";color:#092b75}
.detail-results-panel{background:#fff;border:1px solid #e1eaf7;border-radius:20px;padding:22px 24px 25px;box-shadow:0 10px 30px #123d7510}
.detail-results-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.detail-results-heading h3{font:800 25px "DM Sans";color:#092b75;margin:0 0 4px}
.detail-results-heading p{font-size:11px;color:#73849c;margin:0}
.detail-search{display:flex;align-items:center;gap:10px;width:min(430px,45%);height:47px;padding:0 16px;border:1.5px solid #cbd9ee;border-radius:999px;background:#fff;color:#123e86}
.detail-search span{font-size:24px;line-height:1}
.detail-search input{width:100%;border:0;outline:0;background:transparent;font:500 12px "DM Sans";color:#17365f}
.detail-winner-list{display:flex;flex-direction:column;gap:8px}
.detail-winner-row{display:grid;grid-template-columns:minmax(220px,1.05fr) 190px minmax(240px,1.25fr);align-items:center;gap:18px;min-height:76px;padding:10px 18px;border:1.5px solid #d6e1f1;border-left:6px solid #1458bc;border-radius:16px;background:linear-gradient(100deg,#fff,#fbfdff);transition:background .15s,transform .15s}
.detail-winner-row:hover{background:#f5f9ff;transform:translateY(-1px)}
.detail-winner-row:has(.detail-winner-medal.bronze){border-left-color:#f17b27}
.detail-winner-row:has(.detail-winner-medal.gold){border-left-color:#e8b900}
.detail-winner-event{display:flex;flex-direction:column;gap:5px;min-width:0}
.detail-winner-event strong{font-size:15px;line-height:1.35;color:#0a286c;font-weight:800}
.detail-winner-event small{font-size:11px;color:#586e8c}
.detail-winner-medal{display:flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:6px 12px;border-radius:999px;background:#eaf1fc;color:#0b4eaa}
.detail-winner-medal span{font-size:27px;line-height:1}
.detail-winner-medal b{font-size:15px;font-weight:900}
.detail-winner-medal.gold{background:#fff3cb;color:#a67500}
.detail-winner-medal.silver{background:#eaf0f7;color:#526b8a}
.detail-winner-medal.bronze{background:#ffeadc;color:#b64b0b}
.detail-winner-athletes{min-height:42px;border-left:2px solid #cbd7e8;padding:5px 0 5px 19px;display:flex;flex-direction:column;justify-content:center;gap:4px;color:#092b75;font-size:13px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.detail-empty,.detail-no-results{padding:30px;text-align:center;color:#77879d;font-size:13px}
.detail-no-results.hidden{display:none}
@media(max-width:850px){
 .detail-medal-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .detail-winner-row{grid-template-columns:minmax(160px,1fr) 140px minmax(170px,1.1fr);gap:10px;padding:10px 12px}
 .detail-winner-event strong{font-size:12px}
 .detail-winner-athletes{font-size:11px;padding-left:11px}
 .detail-winner-medal b{font-size:12px}
}
@media(max-width:600px){
 .detail-page{gap:10px}
 .detail-backline button{font-size:11px;padding:10px 14px}
 .detail-banner{min-height:112px;padding:20px 17px;border-radius:14px}
 .detail-banner h2{font-size:36px}
 .detail-banner p{font-size:9px;max-width:230px}
 .detail-banner-logo{width:63px;height:63px;border-radius:12px;padding:8px}
 .detail-medal-cards{gap:7px}
 .detail-medal-card{min-height:82px;padding:10px 9px;gap:7px;border-radius:11px}
 .detail-medal-art{font-size:31px}
 .detail-medal-card small{font-size:8px;letter-spacing:.6px}
 .detail-medal-card strong{font-size:29px}
 .detail-results-panel{padding:15px 11px;border-radius:14px}
 .detail-results-heading{align-items:stretch;flex-direction:column;gap:11px;margin-bottom:13px}
 .detail-results-heading h3{font-size:20px}
 .detail-results-heading p{font-size:9px}
 .detail-search{width:100%;height:42px}
 .detail-search input{font-size:10px}
 .detail-winner-list{gap:8px}
 .detail-winner-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;min-height:0;padding:11px;border-radius:12px}
 .detail-winner-event{grid-column:1}
 .detail-winner-event strong{font-size:12px}
 .detail-winner-event small{font-size:9px}
 .detail-winner-medal{grid-column:2;grid-row:1/3;min-width:90px;min-height:38px;padding:5px 8px;gap:5px}
 .detail-winner-medal span{font-size:21px}
 .detail-winner-medal b{font-size:10px}
 .detail-winner-athletes{grid-column:1/-1;border-left:0;border-top:1px solid #e3eaf4;padding:8px 0 0;min-height:0;font-size:10px}
}

/* Achievement presentation: medal-grouped editorial cards, not spreadsheet rows */
.achievement-results{background:#fff;border:1px solid #e0e9f6;border-radius:20px;padding:22px 24px 26px;box-shadow:0 10px 30px #123d750d}
.achievement-results-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.achievement-results-heading h3{font:800 24px "DM Sans";color:#092b75;margin:0 0 5px}
.achievement-results-heading p{font-size:11px;color:#71839d;margin:0}
.achievement-section{margin:0 0 22px}
.achievement-section:last-child{margin-bottom:0}
.achievement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding-bottom:11px;border-bottom:2px solid #edf1f7}
.achievement-title{display:flex;align-items:center;gap:12px}
.achievement-icon{font-size:33px;line-height:1;filter:drop-shadow(0 3px 2px #243d6422)}
.achievement-title h3{font:800 19px "DM Sans";margin:0 0 3px;color:#13366e}
.achievement-title p{margin:0;font-size:10px;color:#8090a5}
.achievement-count{padding:7px 12px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.achievement-section.gold .achievement-count{background:#fff2c8;color:#9c7100}
.achievement-section.silver .achievement-count{background:#eaf0f7;color:#526b89}
.achievement-section.bronze .achievement-count{background:#ffeadc;color:#b65a20}
.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.achievement-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:180px;padding:16px 17px 15px;border:1px solid #e0e8f3;border-radius:14px;background:linear-gradient(145deg,#fff 0%,#fbfdff 100%);box-shadow:0 4px 14px #123d7508}
.achievement-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d3a400}
.achievement-section.silver .achievement-card:before{background:#8ea1b9}
.achievement-section.bronze .achievement-card:before{background:#d47a42}
.achievement-card-top{display:flex;align-items:center;gap:7px;margin-bottom:9px}
.achievement-medal-mark{font-size:23px;line-height:1}
.achievement-medal-label{font-size:9px;font-weight:900;letter-spacing:1px;text-transform:uppercase;color:#9a7100}
.achievement-section.silver .achievement-medal-label{color:#637994}
.achievement-section.bronze .achievement-medal-label{color:#b96c38}
.achievement-card h4{margin:0 0 5px;font-size:14px;line-height:1.4;color:#102f69;font-weight:800}
.achievement-category{font-size:10px;color:#8493a8}
.achievement-athletes{width:100%;margin-top:auto;padding-top:12px}
.athlete-caption{display:block;font-size:8px;font-weight:900;letter-spacing:1.2px;color:#9aa7b7;margin-bottom:7px}
.achievement-athlete{display:flex;align-items:center;gap:8px;margin-top:6px;min-width:0}
.athlete-avatar{width:25px;height:25px;display:grid;place-items:center;flex:none;border-radius:50%;background:#eaf1fc;color:#1556a2;font-size:10px;font-weight:900}
.achievement-athlete strong{font-size:10px;line-height:1.35;color:#25436e;overflow-wrap:anywhere}
.achievement-empty{grid-column:1/-1;padding:16px;border:1px dashed #dbe4f0;border-radius:12px;color:#95a2b2;font-size:11px;text-align:center}
@media(max-width:650px){
 .achievement-results{padding:15px 11px;border-radius:14px}
 .achievement-results-heading{flex-direction:column;align-items:stretch;gap:12px}
 .achievement-results-heading h3{font-size:20px}
 .achievement-grid{grid-template-columns:1fr;gap:9px}
 .achievement-card{min-height:0;padding:13px 13px 12px}
 .achievement-card h4{font-size:13px}
 .achievement-athletes{margin-top:12px;padding-top:10px}
 .achievement-title{gap:8px}
 .achievement-icon{font-size:27px}
 .achievement-title h3{font-size:16px}
 .achievement-title p{font-size:9px}
 .achievement-count{font-size:9px;padding:6px 9px}
}

/* MOBILE PORTAL: compact KONI-style medal standings, no clipped columns */
@media (max-width: 600px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden; }
  .topbar { min-height:72px; padding:7px 12px; gap:9px; }
  .brand { min-width:0; flex:0 0 auto; gap:7px; }
  .brand img { width:34px; height:40px; }
  .brand .porprov-logo { width:46px; height:42px; }
  .topbar-label { min-width:0; flex:1; padding-left:9px; gap:3px; }
  .topbar-label .eyebrow { font-size:7px; letter-spacing:1px; }
  .topbar-label strong { font-size:11px; line-height:1.15; white-space:normal; }
  .refresh-btn { flex:0 0 auto; width:42px; height:42px; padding:0; justify-content:center; border-radius:50%; }
  .refresh-btn .refresh-icon { font-size:23px; }
  main { width:100%; max-width:100%; padding:10px 9px 28px; }
  .hero { min-height:145px; padding:17px 14px; border-radius:13px; }
  .hero h1 { font-size:34px; margin:11px 0 7px; }
  .hero p { max-width:76%; font-size:9px; line-height:1.45; }
  .hero .event-pill { padding:5px 8px; font-size:7px; }
  .hero-meta { margin-top:10px; gap:6px; font-size:6px; letter-spacing:.5px; }
  .hero-crest { width:67px; height:70px; right:7px; top:36px; }
  .status-row { padding:8px 3px; font-size:8px; gap:6px; }
  .status-row #lastUpdated { text-align:right; font-size:7px; }
  .medal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .medal-card { min-height:75px; padding:8px 9px; gap:7px; border-radius:10px; }
  .medal-card .medal-icon { width:31px; height:31px; font-size:23px; }
  .medal-card span { font-size:7px; letter-spacing:.8px; }
  .medal-card strong { font-size:26px; }
  .medal-card small { font-size:6px; }
  .results-shell { border-radius:13px; }
  .results-topline { min-height:48px; padding:7px 10px; }
  .results-brand { font-size:8px; gap:6px; }
  .gender-filter { gap:2px; }
  .gender-btn { padding:6px 7px; font-size:8px; }
  .results-tabs { padding:0 7px; }
  .results-tab { padding:12px 10px 10px; font-size:10px; }
  .results-content { padding:13px 9px 12px; }
  .results-heading { margin-bottom:10px; }
  .results-heading h2 { font-size:20px; }
  .results-heading p { font-size:9px; line-height:1.4; }
  .results-count { font-size:8px; }
  .results-tools { gap:6px; margin:10px 0; }
  .results-tools .search-box { min-width:0; flex:1; min-height:39px; }
  .results-tools .search-box input { min-width:0; font-size:10px; }
  .results-tools select { width:118px; min-width:0; height:39px; padding:0 7px; font-size:9px; }

  /* All six medal-table columns stay visible at once on a phone. */
  #matrixTable { width:100%; max-width:100%; overflow:visible; }
  .standing-table-scroll { width:100%; max-width:100%; overflow-x:hidden; border-radius:9px; }
  .standing-table { width:100%; min-width:0 !important; max-width:100%; table-layout:fixed; border-spacing:0 3px; }
  .standing-table thead th { height:37px; padding:5px 2px; font-size:9px; line-height:1.05; white-space:nowrap; }
  .standing-table thead th:first-child { width:36px; border-radius:8px 0 0 8px; }
  .standing-table thead th:nth-child(2) { width:auto; min-width:0; text-align:left; padding-left:7px; }
  .standing-table thead th:nth-child(3),
  .standing-table thead th:nth-child(4),
  .standing-table thead th:nth-child(5),
  .standing-table thead th:last-child { width:11.5%; }
  .standing-table thead th:last-child { border-radius:0 8px 8px 0; }
  .standing-table thead th.medal-heading { font-size:8px; }
  .standing-table .medal-heading-icon { font-size:17px; margin:0; vertical-align:middle; }
  .standing-table .medal-heading span:last-child { display:none; }
  .standing-table tbody td { height:43px; padding:4px 2px; font-size:11px; }
  .standing-table tbody td:first-child { border-radius:8px 0 0 8px; }
  .standing-table tbody td:last-child { border-radius:0 8px 8px 0; }
  .standing-number span { width:25px; height:27px; border-radius:7px; font-size:10px; }
  .standing-sport-inner { gap:6px; min-width:0; }
  .standing-cabor-logo { width:29px; height:29px; padding:3px; border-radius:50%; }
  .standing-sport-inner strong { min-width:0; font-size:9px; line-height:1.15; white-space:normal; overflow-wrap:anywhere; }
  .standing-medal { font-size:11px !important; font-weight:800 !important; }
  .standing-total { font-size:12px !important; }
  .standing-total span { min-width:0; }
  .results-foot { gap:7px; font-size:7px; line-height:1.3; }
  .results-foot span:last-child { text-align:right; }
  footer { padding:16px 12px; }
}

@media (max-width:380px) {
  .brand img { width:29px; height:35px; }
  .brand .porprov-logo { width:39px; height:37px; }
  .topbar-label .eyebrow { font-size:6px; }
  .topbar-label strong { font-size:9px; }
  .refresh-btn { width:36px; height:36px; }
  .standing-table thead th:first-child { width:31px; }
  .standing-table thead th:nth-child(3),
  .standing-table thead th:nth-child(4),
  .standing-table thead th:nth-child(5),
  .standing-table thead th:last-child { width:10.5%; }
  .standing-number span { width:22px; }
  .standing-cabor-logo { width:25px; height:25px; }
  .standing-sport-inner strong { font-size:8px; }
  .standing-table tbody td { font-size:10px; }
}

/* HEADER + HERO REFINEMENT — November 2026 */
.topbar{min-height:104px;padding:10px clamp(20px,4vw,64px);gap:24px}
.brand{min-width:0;gap:18px;flex:0 0 auto}
.brand img:first-child{width:66px;height:74px;object-fit:contain}
.brand .porprov-logo{width:126px;height:76px;object-fit:contain}
.topbar-label{padding-left:20px;gap:5px}
.topbar-label .eyebrow{font-size:11px;letter-spacing:1.8px}
.topbar-label strong{font-size:21px;line-height:1.15}
.refresh-btn{min-height:48px;padding:12px 20px;font-size:14px}
.hero{min-height:258px;padding:42px 50px}
.hero-copy{max-width:calc(100% - 245px)}
.hero h1{font-size:clamp(48px,5.2vw,70px);font-style:normal;font-weight:900;line-height:1.04;letter-spacing:-1.2px;margin:0 0 13px}
.hero h1 em{font-style:normal}
.hero p{font-size:16px;line-height:1.65;max-width:700px}
.hero-crest{right:5%;width:230px;height:150px;opacity:1}
.hero-crest img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px #001b5d30)}
/* Keep the live data hooks in the DOM for app.js, but remove the status strip visually. */
.status-row{display:none!important}
@media(max-width:850px){
 .topbar{min-height:88px;padding:8px 14px;gap:10px}
 .brand{gap:8px}
 .brand img:first-child{width:48px;height:56px}
 .brand .porprov-logo{width:88px;height:55px}
 .topbar-label{padding-left:11px;gap:4px}
 .topbar-label .eyebrow{font-size:8px;letter-spacing:1.1px}
 .topbar-label strong{font-size:13px;line-height:1.15}
 .refresh-btn{min-height:42px;padding:9px 12px;font-size:11px}
 .hero{min-height:190px;padding:27px 22px}
 .hero-copy{max-width:100%;position:relative;z-index:2}
 .hero h1{font-size:clamp(35px,6.4vw,52px);line-height:1.05;margin-bottom:10px}
 .hero p{font-size:13px;max-width:78%;line-height:1.5}
 .hero-crest{width:112px;height:90px;right:10px;top:48px;opacity:.95}
}
@media(max-width:600px){
 .topbar{min-height:82px;padding:7px 10px;gap:7px}
 .brand{gap:5px}
 .brand img:first-child{width:40px;height:48px}
 .brand .porprov-logo{width:76px;height:48px}
 .topbar-label{padding-left:8px;gap:3px;min-width:0;flex:1}
 .topbar-label .eyebrow{font-size:7px;letter-spacing:.85px;white-space:nowrap}
 .topbar-label strong{font-size:10px;line-height:1.2}
 .refresh-btn{width:42px;height:42px;min-height:42px;padding:0;flex:0 0 42px;border-radius:50%;justify-content:center}
 .refresh-btn span:last-child{display:none}
 .refresh-btn .refresh-icon{font-size:23px}
 main{padding:12px 10px 28px}
 .hero{min-height:166px;padding:25px 17px;border-radius:15px}
 .hero-copy{max-width:100%;padding-right:0}
 .hero h1{font-size:clamp(30px,8vw,38px);letter-spacing:-.8px;line-height:1.08;margin:0 0 9px;white-space:normal}
 .hero p{font-size:11px;line-height:1.55;max-width:100%;margin:0}
 .hero-crest{display:none}
 .hero-shape{opacity:.55}
 .medal-grid{margin-top:12px}
}
@media(max-width:380px){
 .brand img:first-child{width:35px;height:43px}
 .brand .porprov-logo{width:67px;height:44px}
 .topbar-label .eyebrow{font-size:6px}
 .topbar-label strong{font-size:9px}
 .hero h1{font-size:29px}
}

/* Detail cabor: nomor pertandingan sebagai accordion agar ringkas di ponsel */
.event-accordion-list{display:flex;flex-direction:column;gap:9px}
.event-accordion{border:1px solid #dfe8f5;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 3px 12px #123d7508}
.event-accordion[open]{border-color:#a9c8ef;box-shadow:0 5px 16px #123d7510}
.event-accordion-summary{display:flex;align-items:center;gap:11px;min-height:66px;padding:12px 14px;cursor:pointer;list-style:none}
.event-accordion-summary::-webkit-details-marker{display:none}
.event-number-index{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:#edf4ff;color:#1554a5;font-size:11px;font-weight:900}
.event-summary-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.event-summary-copy strong{font-size:13px;line-height:1.35;color:#102f69;font-weight:800;overflow-wrap:anywhere}
.event-summary-copy small{font-size:10px;color:#8190a5}
.event-summary-medals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:40%}
.event-medal-chip{display:inline-flex;align-items:center;gap:3px;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}
.event-medal-chip.gold{background:#fff3cd;color:#986d00}.event-medal-chip.silver{background:#edf2f8;color:#5c7089}.event-medal-chip.bronze{background:#ffecdf;color:#ad5724}
.event-accordion-chevron{flex:none;color:#7890ad;font-size:20px;transition:transform .2s}
.event-accordion[open] .event-accordion-chevron{transform:rotate(180deg)}
.event-accordion-content{padding:0 14px 13px 57px}
.event-winner-block{padding:10px 0 0;border-top:1px solid #edf1f7;margin-top:8px}
.event-winner-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.event-winner-heading>span:last-child{font-size:9px;color:#8492a6}
.event-winner-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.event-winner-name{display:flex;align-items:center;gap:7px;min-width:0}
.event-winner-name strong{font-size:10px;line-height:1.35;color:#25436e;overflow-wrap:anywhere}
.event-accordion.hidden{display:none}
@media(max-width:600px){
 .event-accordion-summary{min-height:60px;padding:10px 9px;gap:7px}
 .event-number-index{width:28px;height:28px;border-radius:8px;font-size:10px}
 .event-summary-copy strong{font-size:11px}
 .event-summary-copy small{font-size:9px}
 .event-summary-medals{max-width:34%;gap:3px}
 .event-medal-chip{font-size:8px;padding:4px 5px}
 .event-accordion-content{padding:0 10px 11px 43px}
 .event-winner-names{grid-template-columns:1fr;gap:6px}
 .event-winner-name strong{font-size:10px}
}


/* Premium mobile detail cabor: clearer medals, stronger athlete names, richer visual hierarchy */
.event-list-panel{position:relative;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 150px);border:1px solid #cbdcf3;border-radius:20px;box-shadow:0 12px 30px rgba(17,62,126,.09)}
.event-list-panel:before{content:"";position:absolute;left:0;top:0;width:100%;height:5px;background:linear-gradient(90deg,#0756bd 0 42%,#f4c431 42% 64%,#e34b4b 64% 82%,#24a56a 82%);border-radius:20px 20px 0 0}
.event-list-panel .achievement-results-heading{padding-top:5px}
.event-list-panel .achievement-results-heading h3{font-size:23px;letter-spacing:-.35px}
.event-list-panel .achievement-results-heading p{font-size:12px;color:#667d9d}
.event-accordion-list{gap:12px}
.event-accordion{border:1px solid #d4e1f3;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);box-shadow:0 5px 15px rgba(22,65,125,.07);transition:border-color .18s,box-shadow .18s,transform .18s}
.event-accordion:nth-child(4n+1){border-left:4px solid #1765c4}
.event-accordion:nth-child(4n+2){border-left:4px solid #e4b62c}
.event-accordion:nth-child(4n+3){border-left:4px solid #24a56a}
.event-accordion:nth-child(4n){border-left:4px solid #e16b55}
.event-accordion[open]{border-color:#8eb6e8;box-shadow:0 9px 22px rgba(16,75,151,.13);background:#fff}
.event-accordion-summary{min-height:76px;padding:13px 15px;gap:12px}
.event-number-index{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#e8f1ff,#d7e7ff);color:#064da9;font-size:12px;box-shadow:inset 0 0 0 1px #c8dcf8}
.event-summary-copy strong{font-size:14px;line-height:1.35;color:#0a2d68;font-weight:900}
.event-summary-copy small{font-size:11px;color:#627995;font-weight:600}
.event-summary-medals{max-width:42%;gap:6px}
.event-medal-chip{font-size:10px;padding:7px 10px;gap:5px;border:1px solid transparent;box-shadow:0 2px 5px rgba(0,0,0,.04)}
.event-medal-chip.gold{background:#fff2c6;color:#815900;border-color:#f1d47b}
.event-medal-chip.silver{background:#edf2f8;color:#405a78;border-color:#d1dbe7}
.event-medal-chip.bronze{background:#ffeadb;color:#994416;border-color:#f2c19e}
.event-accordion-chevron{font-size:22px;color:#245b9e;font-weight:900}
.event-accordion-content{padding:2px 16px 16px 65px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.event-winner-block{margin-top:10px;padding:12px 13px 13px;border:1px solid #e1e9f4;border-radius:13px;background:#fff;box-shadow:0 3px 10px rgba(20,60,110,.05)}
.event-winner-block.gold{border-left:4px solid #e4b52c;background:linear-gradient(110deg,#fffaf0,#fff 65%)}
.event-winner-block.silver{border-left:4px solid #8b9db3;background:linear-gradient(110deg,#f5f8fc,#fff 65%)}
.event-winner-block.bronze{border-left:4px solid #d17a42;background:linear-gradient(110deg,#fff6ef,#fff 65%)}
.event-winner-heading{margin-bottom:11px;padding-bottom:9px;border-bottom:1px dashed #dbe4ef}
.winner-medal-title{display:flex;align-items:center;gap:9px}
.winner-medal-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.09);font-size:25px}
.winner-medal-title strong{font-size:13px;letter-spacing:.7px;color:#795600}
.event-winner-block.silver .winner-medal-title strong{color:#465d78}
.event-winner-block.bronze .winner-medal-title strong{color:#984817}
.winner-count{padding:6px 9px;border-radius:20px;background:#edf3fb;color:#3d5b82;font-size:10px;font-weight:800}
.event-winner-names{display:grid;grid-template-columns:1fr;gap:8px}
.event-winner-name{display:flex;align-items:center;gap:10px;min-height:39px;padding:7px 10px;border-radius:10px;background:#f2f6fc;border:1px solid #e3ebf6}
.event-winner-name .athlete-avatar{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:9px;background:#155bb4;color:#fff;font-size:11px;font-weight:900;box-shadow:0 2px 5px rgba(14,72,148,.2)}
.event-winner-name strong{font-size:13px;line-height:1.4;color:#102f65;font-weight:900;letter-spacing:.05px;overflow-wrap:anywhere}
@media(max-width:600px){
 .event-list-panel{padding:17px 12px 16px;border-radius:17px}
 .event-list-panel .achievement-results-heading h3{font-size:21px}
 .event-list-panel .achievement-results-heading p{font-size:11px;line-height:1.45}
 .event-accordion-list{gap:10px}
 .event-accordion-summary{min-height:76px;padding:12px 9px;gap:8px}
 .event-number-index{width:34px;height:34px;font-size:11px}
 .event-summary-copy{gap:5px}
 .event-summary-copy strong{font-size:12px;line-height:1.4}
 .event-summary-copy small{font-size:10px}
 .event-summary-medals{max-width:37%;gap:4px}
 .event-medal-chip{font-size:9px;padding:6px 7px;gap:4px}
 .event-accordion-content{padding:2px 9px 12px 43px}
 .event-winner-block{padding:10px 9px 11px;margin-top:9px}
 .winner-medal-symbol{width:34px;height:34px;font-size:25px}
 .winner-medal-title strong{font-size:12px}
 .winner-count{font-size:9px;padding:5px 7px}
 .event-winner-name{min-height:43px;padding:7px 9px;gap:9px}
 .event-winner-name .athlete-avatar{width:29px;height:29px;font-size:11px}
 .event-winner-name strong{font-size:13px;line-height:1.35}
}


/* Per Day: date-first accordion layout */
.per-day-list{display:grid;gap:12px}
.per-day-card{background:#fff;border:1px solid #dce6f2;border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #102d5008}
.per-day-day-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#fff;border:0;text-align:left;cursor:pointer;color:var(--navy);font:inherit}
.per-day-day-toggle:hover{background:#f8fbff}
.per-day-day-copy{display:flex;flex-direction:column;gap:6px}
.per-day-kicker{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#8494a8}
.per-day-day-copy strong{font-size:15px;font-weight:800;color:#102d50}
.per-day-day-meta{display:flex;align-items:center;gap:6px;color:#60748d}
.per-day-day-count{font:800 25px "Barlow Condensed",sans-serif;color:#102d50}
.per-day-day-meta small{font-size:10px}
.per-day-day-chevron{font-size:20px;margin-left:10px;transition:transform .2s}
.per-day-card.expanded .per-day-day-chevron{transform:rotate(180deg)}
.per-day-day-summary{display:flex;gap:7px;padding:0 20px 14px}
.per-day-day-summary span{border-radius:20px;padding:5px 9px;background:#f3f6fa;font-size:11px;font-weight:800}
.per-day-day-summary .gold{color:#a97700}.per-day-day-summary .silver{color:#68758a}.per-day-day-summary .bronze{color:#a65b35}
.per-day-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px 16px}
.per-day-result{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;text-align:left;padding:14px 15px;border:1px solid #e0e8f1;border-radius:11px;background:#fff;color:#102d50;cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s,transform .15s}
.per-day-result:hover{border-color:#8bb4e8;box-shadow:0 5px 16px #173e6812;transform:translateY(-1px)}
.per-day-result-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.per-day-sport{font-size:10px;font-weight:800;letter-spacing:1px;color:#71859c;text-transform:uppercase}
.per-day-event{font-size:13px;line-height:1.45;color:#102d50}
.per-day-category{font-size:10px;color:#8292a5}
.per-day-result-medal{display:flex;align-items:center;gap:7px;white-space:nowrap}
.per-day-result-medal>strong{font-size:11px;color:#24364b}
.per-day-result-link{grid-column:1/-1;border-top:1px solid #edf1f5;padding-top:9px;text-align:center;font-size:11px;font-weight:700;color:#1555a6}
.per-day-result-link span{font-size:15px;margin-left:4px}
@media(max-width:700px){
 .per-day-day-toggle{padding:15px 14px}
 .per-day-results{grid-template-columns:1fr;padding:0 10px 12px}
 .per-day-result{padding:12px}
 .per-day-result-medal{gap:4px}
 .per-day-result-medal .medal-pill{font-size:9px;padding:5px 7px}
}


/* Per Day: tanggal tampil sendiri; rincian baru muncul setelah tanggal dibuka */
.per-day-list{display:grid;gap:12px}
.per-day-card{background:#fff;border:1px solid #dce6f2;border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #102d5008}
.per-day-day-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#fff;border:0;text-align:left;cursor:pointer;color:var(--navy);font:inherit}
.per-day-day-toggle:hover{background:#f8fbff}
.per-day-day-copy{display:flex;flex-direction:column;gap:6px}
.per-day-kicker{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#8494a8}
.per-day-day-copy strong{font-size:15px;font-weight:800;color:#102d50}
.per-day-day-meta{display:flex;align-items:center;gap:6px;color:#60748d}
.per-day-day-count{font:800 25px "Barlow Condensed",sans-serif;color:#102d50}
.per-day-day-meta small{font-size:10px}
.per-day-day-chevron{font-size:20px;margin-left:10px;transition:transform .2s}
.per-day-card.expanded .per-day-day-chevron{transform:rotate(180deg)}
.per-day-results{padding:0 16px 16px}
.per-day-medal-summary{display:flex;flex-wrap:wrap;gap:7px;padding:0 4px 12px}
.per-day-medal-summary span{border-radius:20px;padding:6px 10px;background:#f3f6fa;font-size:10px;font-weight:700;color:#617187}
.per-day-medal-summary .gold b{color:#a97700}.per-day-medal-summary .silver b{color:#68758a}.per-day-medal-summary .bronze b{color:#a65b35}
.per-day-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.per-day-result{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;text-align:left;padding:14px 15px;border:1px solid #e0e8f1;border-radius:11px;background:#fff;color:#102d50;cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s,transform .15s}
.per-day-result:hover{border-color:#8bb4e8;box-shadow:0 5px 16px #173e6812;transform:translateY(-1px)}
.per-day-result-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.per-day-sport{font-size:10px;font-weight:800;letter-spacing:1px;color:#1556a2;text-transform:uppercase}
.per-day-event{font-size:13px;line-height:1.45;color:#102d50}
.per-day-category{font-size:10px;color:#8292a5}
.per-day-result-medal{display:flex;align-items:center;gap:7px;white-space:nowrap}
.per-day-result-medal>strong{font-size:11px;color:#24364b}
.per-day-result-link{grid-column:1/-1;border-top:1px solid #edf1f5;padding-top:9px;text-align:center;font-size:11px;font-weight:700;color:#1555a6}
.per-day-result-link span{font-size:15px;margin-left:4px}
@media(max-width:700px){
 .per-day-day-toggle{padding:15px 14px}
 .per-day-results{padding:0 10px 12px}
 .per-day-result-grid{grid-template-columns:1fr}
 .per-day-result{padding:12px}
}


/* Per Day final behavior: tanggal collapsed by default; result cards are informational only */
.per-day-results.hidden{display:none!important}
.per-day-results:not(.hidden){display:block}
.per-day-result{cursor:default;transform:none!important;box-shadow:none!important}
.per-day-result:hover{border-color:#e0e8f1;box-shadow:none}
.per-day-result-link{display:none!important}
.per-day-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.per-day-result{background:#fff}
@media(max-width:700px){.per-day-result-grid{grid-template-columns:1fr}}


/* Per Day: stronger visual distinction for date header */
.per-day-day-toggle{background:linear-gradient(90deg,#f5f9ff 0%,#fff 58%);border-left:4px solid #1555a6;padding-left:16px}
.per-day-day-toggle:hover{background:linear-gradient(90deg,#edf5ff 0%,#fff 62%)}
.per-day-day-copy{gap:7px}
.per-day-kicker{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:5px;background:#e8f1ff;color:#1555a6;font-size:8px;letter-spacing:1.2px}
.per-day-day-copy strong{font-size:16px;letter-spacing:.1px}
.per-day-card.expanded .per-day-day-toggle{background:#f0f6ff;border-left-color:#e5ad20}
.per-day-result-medal>strong{display:none!important}
.per-day-result-medal{justify-content:flex-end}


/* Per Day – visual treatment based on the supplied dashboard reference */
.results-content:has(#view-per-day:not(.hidden)) .results-heading{
  margin:0 0 12px;
  padding:22px 26px;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(112deg,#073eaa 0%,#0755c8 62%,#0b3e9e 100%);
  box-shadow:0 8px 22px rgba(5,61,158,.18);
  position:relative;
  overflow:hidden;
}
.results-content:has(#view-per-day:not(.hidden)) .results-heading:after{
  content:"";
  position:absolute;right:-35px;bottom:-78px;width:310px;height:150px;
  border:18px solid #f2c900;border-left-color:transparent;border-bottom-color:transparent;
  border-radius:50%;transform:rotate(-12deg);opacity:.95;pointer-events:none
}
.results-content:has(#view-per-day:not(.hidden)) .results-heading h2{color:#fff;font-size:30px;letter-spacing:-.5px}
.results-content:has(#view-per-day:not(.hidden)) .results-heading p{color:rgba(255,255,255,.9)}
.results-content:has(#view-per-day:not(.hidden)) .results-count{color:#dbeaff;position:relative;z-index:1}
.results-content:has(#view-per-day:not(.hidden)) .results-tools{padding:10px 14px;background:#fff;border-radius:14px;margin-bottom:12px}

.per-day-list{gap:12px}
.per-day-card{border:1px solid #cfe0f7;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 4px 13px rgba(17,75,155,.08)}
.per-day-day-toggle{
  min-height:62px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 22px;background:linear-gradient(100deg,#f7fbff 0%,#fff 70%);
  border:0;border-left:7px solid #0758d4;border-radius:0;text-align:left;cursor:pointer;
  color:#09265e;font:inherit;transition:background .18s,border-color .18s
}
.per-day-day-toggle:hover{background:#edf5ff}
.per-day-day-copy{display:flex;align-items:center;gap:15px;min-width:0}
.per-day-calendar{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:9px;background:#e6f0ff;color:#0758d4;font-size:25px;font-weight:800;line-height:1}
.per-day-day-copy strong{font-size:17px;font-weight:850;color:#09265e;letter-spacing:-.2px}
.per-day-day-meta{display:flex;align-items:center;gap:15px;color:#08245b}
.per-day-medal-summary{display:none;align-items:center;gap:9px;padding:0;margin:0}
.per-day-medal-summary span{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:22px;background:#fff;font-size:13px;font-weight:800;box-shadow:0 2px 5px rgba(0,0,0,.08)}
.per-day-medal-summary .gold{color:#8c5a00;background:#fff2cf}
.per-day-medal-summary .silver{color:#36506f;background:#e8eff8}
.per-day-medal-summary .bronze{color:#9d431e;background:#ffeadf}
.per-day-total{display:inline-flex;align-items:center;gap:5px;padding:7px 15px;border-radius:22px;background:#e6efff;color:#09265e;font-size:12px;white-space:nowrap}
.per-day-total b{font-size:21px;font-weight:900}
.per-day-day-chevron{font-size:23px;line-height:1;color:#09265e;transition:transform .18s}
.per-day-card.expanded .per-day-day-toggle{
  min-height:68px;background:linear-gradient(105deg,#0644b5 0%,#0757cf 72%,#0645b4 100%);
  border-left-color:#f4d000;color:#fff
}
.per-day-card.expanded .per-day-calendar{background:rgba(255,255,255,.15);color:#fff}
.per-day-card.expanded .per-day-day-copy strong{color:#fff}
.per-day-card.expanded .per-day-day-meta{color:#fff}
.per-day-card.expanded .per-day-medal-summary{display:flex}
.per-day-card.expanded .per-day-total{background:#e7efff;color:#09265e}
.per-day-card.expanded .per-day-day-chevron{color:#fff;transform:rotate(180deg)}
.per-day-results{padding:12px 16px 16px;background:#fff}
.per-day-results.hidden{display:none!important}
.per-day-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.per-day-result{
  min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;
  padding:12px 15px;border:1px solid #d8e5f7;border-radius:14px;background:#fff;
  color:#09265e;cursor:default;box-shadow:0 2px 7px rgba(16,70,145,.06)
}
.per-day-result:before{content:"";width:5px;align-self:stretch;grid-column:1;grid-row:1;background:#0870df;border-radius:5px;float:left}
.per-day-result-main{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:4px;min-width:0;padding-left:10px}
.per-day-sport{font-size:10px;font-weight:900;letter-spacing:.8px;color:#0755bd;text-transform:uppercase}
.per-day-event{font-size:13px;line-height:1.35;font-weight:850;color:#0a285e}
.per-day-category{font-size:11px;color:#5d7394}
.per-day-result-medal{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end}
.per-day-result-medal .medal-pill{padding:8px 14px;border-radius:22px;font-size:12px;font-weight:850;white-space:nowrap}
.per-day-result-medal>strong{display:none!important}
@media(max-width:760px){
 .results-content:has(#view-per-day:not(.hidden)) .results-heading{padding:17px}
 .results-content:has(#view-per-day:not(.hidden)) .results-heading h2{font-size:24px}
 .per-day-day-toggle{padding:11px 12px;gap:8px}
 .per-day-day-copy{gap:8px}
 .per-day-day-copy strong{font-size:13px}
 .per-day-calendar{width:29px;height:29px;font-size:20px}
 .per-day-day-meta{gap:6px}
 .per-day-medal-summary{gap:4px}
 .per-day-medal-summary span{padding:5px 7px;font-size:10px}
 .per-day-total{padding:5px 8px;font-size:10px}
 .per-day-total b{font-size:16px}
 .per-day-results{padding:10px}
 .per-day-result-grid{grid-template-columns:1fr}
 .per-day-result{padding:10px}
}
@media(max-width:460px){
 .per-day-card.expanded .per-day-day-toggle{align-items:flex-start;flex-wrap:wrap}
 .per-day-card.expanded .per-day-day-meta{width:100%;justify-content:flex-end}
}


/* Per Day mobile-first refinement */
@media (max-width: 600px) {
  #view-per-day { min-width: 0; }
  #view-per-day .results-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 6px 10px;
    padding: 16px 15px 14px;
    margin: 0 0 12px;
    border-radius: 16px;
    background: linear-gradient(125deg,#0645ad 0%,#0b55c4 72%,#0b3e98 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(7,58,143,.16);
  }
  #view-per-day .results-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -.3px;
  }
  #view-per-day .results-heading p {
    grid-column: 1 / -1;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 11px;
    line-height: 1.45;
    max-width: 290px;
  }
  #view-per-day .results-count {
    color: rgba(255,255,255,.9);
    font-size: 9px;
    white-space: nowrap;
    align-self: start;
  }
  #view-per-day .results-tools {
    display: grid;
    grid-template-columns: minmax(0,1fr) 116px;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
  }
  #view-per-day .search-box {
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border-radius: 12px;
  }
  #view-per-day .search-box input {
    min-width: 0;
    font-size: 11px;
  }
  #view-per-day #medalFilter {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 10px;
  }
  #view-per-day .per-day-list { gap: 10px; }
  #view-per-day .per-day-card {
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(12,54,105,.055);
  }
  #view-per-day .per-day-day-toggle {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "date total"
      "summary summary";
    gap: 9px 8px;
    padding: 12px 12px 11px;
    border-left-width: 4px;
    background: linear-gradient(110deg,#f3f8ff,#fff 75%);
  }
  #view-per-day .per-day-day-copy {
    grid-area: date;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  #view-per-day .per-day-calendar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e7f0ff;
    color: #0753b9;
    font-size: 16px;
  }
  #view-per-day .per-day-day-copy strong {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }
  #view-per-day .per-day-day-meta { display: contents; }
  #view-per-day .per-day-medal-summary {
    grid-area: summary;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
  }
  #view-per-day .per-day-medal-summary span {
    padding: 4px 7px;
    border-radius: 20px;
    font-size: 9px;
    line-height: 1.2;
  }
  #view-per-day .per-day-total {
    grid-area: total;
    align-self: center;
    justify-self: end;
    padding: 5px 8px;
    border-radius: 20px;
    background: #e8f0ff;
    color: #123c83;
    font-size: 9px;
    white-space: nowrap;
  }
  #view-per-day .per-day-total b { font-size: 15px; }
  #view-per-day .per-day-day-chevron {
    grid-area: total;
    position: absolute;
    right: 8px;
    top: 5px;
    opacity: 0;
    pointer-events: none;
  }
  #view-per-day .per-day-day-toggle { position: relative; }
  #view-per-day .per-day-card.expanded .per-day-day-toggle {
    background: linear-gradient(115deg,#0645ad,#0b55c4);
    border-left-color: #ffd323;
  }
  #view-per-day .per-day-card.expanded .per-day-day-copy strong { color: #fff; }
  #view-per-day .per-day-card.expanded .per-day-calendar {
    color: #fff;
    background: rgba(255,255,255,.17);
  }
  #view-per-day .per-day-card.expanded .per-day-medal-summary span {
    background: rgba(255,255,255,.95);
  }
  #view-per-day .per-day-card.expanded .per-day-total {
    background: rgba(255,255,255,.95);
    color: #123c83;
  }
  #view-per-day .per-day-results {
    display: block;
    padding: 9px;
    background: #f8fbff;
  }
  #view-per-day .per-day-result-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #view-per-day .per-day-result {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    padding: 11px 10px;
    border-radius: 12px;
    box-shadow: none;
  }
  #view-per-day .per-day-result-main { gap: 3px; }
  #view-per-day .per-day-sport {
    font-size: 9px;
    letter-spacing: .8px;
  }
  #view-per-day .per-day-event {
    font-size: 12px;
    line-height: 1.35;
  }
  #view-per-day .per-day-category { font-size: 10px; }
  #view-per-day .per-day-result-medal { align-self: center; }
  #view-per-day .medal-pill {
    padding: 6px 8px;
    font-size: 10px;
    white-space: nowrap;
  }
}


/* Per Day clean cards: hide calendar icon and colored event stripe */
.per-day-calendar{display:none!important}
.per-day-result:before{display:none!important;content:none!important}
.per-day-result{grid-template-columns:minmax(0,1fr) auto!important}
.per-day-result-main{grid-column:1!important;padding-left:0!important}
.per-day-result-medal{grid-column:2!important}
@media(max-width:760px){
  .per-day-day-copy{gap:0!important}
  .per-day-result{padding:12px 14px!important}
}


/* Per Athlete: grouped athlete profiles and discovery filters */
.athlete-directory-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:0 0 16px}
.athlete-filter-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.athlete-filter-field>span{font-size:10px;font-weight:800;letter-spacing:.5px;color:#71839a}
.athlete-filter-field select{height:40px;min-width:0;padding:0 12px;border:1px solid #d7e3f2;border-radius:10px;background:#fff;color:#17365f;font:inherit;font-size:12px}
.athlete-directory-count{padding:11px 0;font-size:11px;color:#71839a;white-space:nowrap}
.athlete-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.athlete-profile-card{min-width:0;padding:14px;border:1px solid #dce6f2;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(16,54,100,.045)}
.athlete-profile-head{display:flex;align-items:center;gap:10px}
.athlete-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:12px;background:#eaf2ff;color:#1555a6;font-size:12px;font-weight:900}
.athlete-profile-name{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.athlete-profile-name strong{font-size:13px;line-height:1.3;color:#102d50}
.athlete-profile-name small{font-size:10px;color:#7b8ca1}
.athlete-profile-count{min-width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#edf3fc;color:#164f9d;font-size:12px;font-weight:900}
.athlete-medal-totals{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 9px}
.athlete-medal-totals span{padding:5px 8px;border-radius:20px;background:#f3f6fa;font-size:10px;font-weight:800}
.athlete-medal-totals .gold{color:#9b7000;background:#fff4d5}.athlete-medal-totals .silver{color:#586a80;background:#edf1f6}.athlete-medal-totals .bronze{color:#a65b35;background:#fff0e7}
.athlete-sport-groups{display:grid;gap:9px}
.athlete-sport-group{padding-top:9px;border-top:1px solid #edf1f6}
.athlete-sport-title{margin-bottom:5px;font-size:10px;font-weight:900;letter-spacing:.7px;color:#1555a6;text-transform:uppercase}
.athlete-event-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0}
.athlete-event-info{display:flex;min-width:0;flex-direction:column;gap:2px}
.athlete-event-info strong{font-size:11px;line-height:1.35;color:#243b59;font-weight:700}
.athlete-event-info small{font-size:9px;color:#8392a5}
.athlete-event-row .medal-pill{flex:0 0 auto;padding:5px 7px;font-size:9px}
.athlete-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:18px 0 4px}
.athlete-pagination button{padding:9px 13px;border:1px solid #d7e3f2;border-radius:9px;background:#fff;color:#164f9d;font-size:11px;font-weight:700}
.athlete-pagination button:disabled{opacity:.4;cursor:not-allowed}
.athlete-pagination span{font-size:11px;color:#71839a}
@media(max-width:760px){
 .athlete-directory-tools{grid-template-columns:1fr 1fr;gap:9px}
 .athlete-directory-count{grid-column:1/-1;padding:0;font-size:10px}
 .athlete-profile-grid{grid-template-columns:1fr;gap:9px}
 .athlete-profile-card{padding:12px;border-radius:12px}
 .athlete-profile-name strong{font-size:12px}
 .athlete-event-info strong{font-size:11px}
 .athlete-pagination{gap:8px}
 .athlete-pagination button{padding:8px 10px}
}


/* Per Athlete: collapsed profile cards with medal-count spoiler */
.athlete-profile-card{padding:0;overflow:hidden}
.athlete-profile-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:15px 16px 10px;border:0;background:transparent;text-align:left;cursor:pointer}
.athlete-profile-name{flex:1;min-width:0}
.athlete-profile-name strong{font-size:14px;line-height:1.35;color:#102d50}
.athlete-profile-count{padding:7px 12px;border-radius:22px;background:#eaf1ff;color:#164b9b;font-size:11px;font-weight:900;white-space:nowrap}
.athlete-profile-chevron{color:#164b9b;font-size:19px;line-height:1;transition:transform .18s ease}
.athlete-profile-toggle[aria-expanded="true"] .athlete-profile-chevron{transform:rotate(180deg)}
.athlete-medal-totals{margin:0;padding:0 16px 13px}
.athlete-profile-details{padding:0 16px 14px}
.athlete-profile-details.hidden{display:none!important}
.athlete-profile-details .athlete-sport-group:first-child{border-top:1px solid #dce6f2}
.athlete-profile-card.expanded{border-color:#cbdcf5}
@media(max-width:760px){
 .athlete-profile-toggle{padding:13px 13px 9px;gap:8px}
 .athlete-profile-name strong{font-size:13px}
 .athlete-profile-count{padding:6px 9px;font-size:10px}
 .athlete-medal-totals{padding:0 13px 11px}
 .athlete-profile-details{padding:0 13px 12px}
}


/* Per Day: expand athlete names inline, without leaving the date view */
.per-day-result-wrap{min-width:0;border:1px solid #dce6f2;border-radius:13px;background:#fff;overflow:hidden}
.per-day-result-wrap .per-day-result{width:100%;text-align:left;border:0;border-radius:0;background:transparent;cursor:pointer}
.per-day-result-side{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.per-day-result-chevron{font-size:16px;color:#1b55a2;transition:transform .18s ease}
.per-day-result[aria-expanded="true"] .per-day-result-chevron{transform:rotate(180deg)}
.per-day-result-wrap.expanded{border-color:#b9d0f1;box-shadow:0 3px 12px rgba(18,70,130,.07)}
.per-day-athlete-details{padding:10px 14px 13px;border-top:1px solid #edf1f7;background:#f8fbff}
.per-day-athlete-details.hidden{display:none!important}
.per-day-athlete-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px;color:#1555a6;font-size:9px;font-weight:900;letter-spacing:.8px}
.per-day-athlete-heading span{padding:4px 8px;border-radius:20px;background:#e8f0fc;color:#526b8b;font-size:9px;letter-spacing:0}
.per-day-athlete-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.per-day-athlete-name{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 9px;border:1px solid #e3ebf5;border-radius:8px;background:#fff}
.per-day-athlete-name span{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;border-radius:6px;background:#eaf2ff;color:#1555a6;font-size:9px;font-weight:800}
.per-day-athlete-name strong{min-width:0;font-size:10px;line-height:1.3;color:#203b5d;overflow-wrap:anywhere}
.per-day-athlete-empty{font-size:11px;color:#7c8da3}
@media(max-width:600px){
 .per-day-athlete-list{grid-template-columns:1fr}
 .per-day-athlete-details{padding:9px 10px 11px}
 .per-day-athlete-name{padding:8px}
 .per-day-athlete-name strong{font-size:11px}
}


/* Unified identity and shared page banner for Medal Table, Per Athlete, and Per Day */
.topbar-label{gap:2px}
.topbar-label strong{
  font-family:"DM Sans",sans-serif;
  font-size:clamp(19px,2vw,25px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:.35px;
  color:#0b347f;
}
.topbar-label .topbar-subtitle{
  color:#49658f;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:1.05px;
}
.results-content .results-heading{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:104px;
  margin:0 0 16px;
  padding:20px 23px;
  overflow:hidden;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(112deg,#073da8 0%,#0750bd 58%,#0b3e9b 100%);
  box-shadow:0 7px 18px rgba(5,61,160,.13);
}
.results-content .results-heading:before{
  content:"";
  position:absolute;
  width:230px;
  height:230px;
  right:-48px;
  top:-145px;
  border:22px solid rgba(255,255,255,.055);
  border-radius:50%;
}
.results-content .results-heading:after{
  content:"";
  position:absolute;
  width:190px;
  height:15px;
  right:-34px;
  top:23px;
  border-radius:20px;
  background:#ffd500;
  transform:rotate(-24deg);
  box-shadow:0 14px 0 #e9273e,0 28px 0 #138b57;
}
.results-content .results-heading>div:first-child{
  position:relative;
  z-index:1;
  min-width:0;
}
.results-content .results-heading h2{
  margin:0 0 6px;
  color:#fff;
  font-size:clamp(22px,3vw,29px);
  font-weight:900;
  letter-spacing:-.5px;
}
.results-content .results-heading p{
  color:rgba(255,255,255,.88);
  font-size:11px;
  line-height:1.45;
  max-width:540px;
}
.results-content .results-count{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:22px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
/* Remove the old Per Day-only banner treatment; all three tabs now share one style. */
.results-content:has(#view-per-day:not(.hidden)) .results-heading{
  min-height:104px;
  margin:0 0 16px;
  padding:20px 23px;
  border-radius:15px;
}
.results-content:has(#view-per-day:not(.hidden)) .results-heading:after{
  width:190px;
  height:15px;
  right:-34px;
  top:23px;
  background:#ffd500;
  box-shadow:0 14px 0 #e9273e,0 28px 0 #138b57;
}
.results-content:has(#view-per-day:not(.hidden)) .results-heading h2{
  color:#fff;
  font-size:clamp(22px,3vw,29px);
}
.results-content:has(#view-per-day:not(.hidden)) .results-heading p{
  color:rgba(255,255,255,.88);
}
@media(max-width:760px){
  .topbar{min-height:76px;padding:7px 10px;gap:7px}
  .brand{gap:5px}
  .brand img:first-child{width:39px;height:46px}
  .brand .porprov-logo{width:72px;height:46px}
  .topbar-label{padding-left:8px;gap:2px}
  .topbar-label .eyebrow{font-size:6.5px;letter-spacing:.75px}
  .topbar-label strong{font-size:19px;line-height:1}
  .topbar-label .topbar-subtitle{font-size:8px;letter-spacing:.65px}
  .results-content .results-heading,
  .results-content:has(#view-per-day:not(.hidden)) .results-heading{
    min-height:91px;
    padding:15px 14px;
    margin-bottom:13px;
    border-radius:13px;
  }
  .results-content .results-heading h2,
  .results-content:has(#view-per-day:not(.hidden)) .results-heading h2{
    font-size:22px;
    margin-bottom:5px;
  }
  .results-content .results-heading p,
  .results-content:has(#view-per-day:not(.hidden)) .results-heading p{
    max-width:245px;
    font-size:9px;
    line-height:1.4;
  }
  .results-content .results-count{font-size:8px;padding:6px 8px}
  .results-content .results-heading:after,
  .results-content:has(#view-per-day:not(.hidden)) .results-heading:after{
    width:135px;height:11px;right:-30px;top:22px;
    box-shadow:0 10px 0 #e9273e,0 20px 0 #138b57;
  }
}
@media(max-width:380px){
  .topbar-label strong{font-size:17px}
  .topbar-label .topbar-subtitle{font-size:7px}
  .results-content .results-heading,
  .results-content:has(#view-per-day:not(.hidden)) .results-heading{
    padding:13px 12px;
  }
}


/* Unified solid-blue banner: remove all multicolor accents from every tab */
.results-content .results-heading:after,
.results-content:has(#view-per-day:not(.hidden)) .results-heading:after{
  display:none!important;
  content:none!important;
}
.results-content .results-heading:before{
  border-color:rgba(255,255,255,.055)!important;
}
.results-content .results-heading{
  background:linear-gradient(112deg,#073da8 0%,#0849b8 58%,#073da8 100%)!important;
}
.results-content .results-count{
  border-color:rgba(255,255,255,.2)!important;
  background:rgba(255,255,255,.12)!important;
}


/* Use the newly supplied official Porprov XV logo in the hero and mobile layout */
.hero-crest{
  right:7%!important;
  width:205px!important;
  height:185px!important;
  opacity:1!important;
  display:grid!important;
  visibility:visible!important;
  z-index:2!important;
}
.hero-crest img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  opacity:1!important;
  filter:drop-shadow(0 5px 12px rgba(0,18,70,.22))!important;
}
@media(max-width:850px){
  .hero{
    min-height:190px!important;
    padding:22px 15px!important;
    display:flex!important;
    align-items:center!important;
  }
  .hero-copy{
    width:calc(100% - 112px)!important;
    max-width:calc(100% - 112px)!important;
    position:relative!important;
    z-index:3!important;
  }
  .hero h1{
    font-size:clamp(29px,7vw,39px)!important;
    line-height:1.02!important;
    margin:8px 0 8px!important;
    white-space:normal!important;
  }
  .hero p{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    font-size:10px!important;
    line-height:1.45!important;
    white-space:normal!important;
  }
  .hero-crest{
    display:grid!important;
    visibility:visible!important;
    position:absolute!important;
    right:8px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:108px!important;
    height:118px!important;
    opacity:1!important;
  }
  .hero-crest img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    opacity:1!important;
  }
}
@media(max-width:380px){
  .hero-copy{
    width:calc(100% - 100px)!important;
    max-width:calc(100% - 100px)!important;
  }
  .hero h1{font-size:29px!important}
  .hero-crest{width:98px!important;height:108px!important;right:5px!important}
}
