/* Public scores proof of concept: wide, readable, responsive and ID-only. */
.scores-page{max-width:1540px}
.scores-main{padding:35px 35px 60px;background:#cbd6c3;min-height:65vh}
.scores-heading{background:#fffefa;border:1px solid #abbba4;border-radius:12px;padding:26px 30px;display:flex;justify-content:space-between;gap:24px;align-items:end;box-shadow:0 4px 18px #343b3015}
.scores-eyebrow{letter-spacing:.15em;font-size:11px;font-weight:800;color:#506c49}
.scores-heading h1{font:800 clamp(26px,3vw,38px)/1.15 Manrope,sans-serif;margin:5px 0 10px;color:#273e2c}
.scores-heading p{font-size:15px;color:#435440;margin:0}
.scores-select{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.scores-select label{font-size:13px;font-weight:800;white-space:nowrap}
.scores-select select,.scores-select button{border:1px solid #9bae95;padding:9px 12px;border-radius:6px;font:700 14px 'DM Sans',sans-serif}
.scores-select select{background:#fff}
.scores-select button{background:#445a42;color:#fff;cursor:pointer}
.scores-explanation{color:#30402f;font-size:14px;padding:16px 5px 12px}
.scores-back{margin:14px 0 0;font-weight:700}
.score-division{background:#fffefa;border:1px solid #b0c0a9;border-radius:12px;margin:16px 0;padding:19px 19px 15px;box-shadow:0 4px 18px #343b3015}
.score-division-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
.score-division-title h2{font:800 21px/1.3 Manrope,sans-serif;margin:0;color:#2d462e}
.score-division-title h2 span{font-weight:600}
.score-division-title>span{font-size:12px;color:#52624f}
.score-scroll{overflow-x:auto;max-width:100%}
.score-scroll table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;font:500 14px/1.4 'DM Sans',sans-serif;font-variant-numeric:tabular-nums}
.score-scroll thead th{background:#3e563e;color:#fff;text-align:center;font-weight:800;padding:10px 9px;border-right:1px solid #ffffff19}
.score-scroll thead th:first-child{text-align:left;position:sticky;left:0;z-index:2;min-width:95px}
.score-scroll tbody th,.score-scroll tbody td{padding:10px 9px;border-bottom:1px solid #e0e6db;text-align:center}
.score-scroll tbody tr:nth-child(even){background:#f3f6ee}
.score-scroll tbody tr:hover{background:#e9efdf}
.score-scroll tbody th{position:sticky;left:0;background:#fffefa;text-align:left;z-index:1}
.score-scroll tbody tr:nth-child(even) th{background:#f3f6ee}
.score-scroll tbody th a{font-weight:800;color:#304b33;text-decoration:underline;text-underline-offset:3px}
.score-scroll tbody th small{display:block;color:#63735b;font-size:11px}
.score-scroll .score-average{font-weight:800;background:#edf2e7;color:#2e5431}
.scores-message{margin:30px 0;padding:25px;background:#fffefa;border:1px solid #b4c0ab;border-radius:10px}
.scores-page footer{background:#cbd6c3;margin:0;padding:20px;text-align:center}
@media(max-width:760px){.scores-main{padding:15px 10px 35px}.scores-heading{padding:20px;display:block}.scores-select{margin-top:20px}.score-division{padding:14px 8px}.score-division-title{padding:0 8px}.score-scroll table{font-size:13px}}

/* Make the ID-to-details action unmistakable without using shooter names. */
.score-scroll thead th:first-child{min-width:130px}
.score-scroll tbody th .shooter-detail-link{display:inline-flex;align-items:center;gap:8px;padding:5px 9px;background:#e5eee0;border:1px solid #a8bba3;border-radius:7px;color:#24472b;text-decoration:none;white-space:nowrap;transition:background .12s,border-color .12s}
.score-scroll tbody th .shooter-detail-id{font-size:15px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.score-scroll tbody th .shooter-detail-label{font-size:11px;font-weight:800;color:#3c583e}
.score-scroll tbody th .shooter-detail-link:hover{background:#cfdcc8;border-color:#486c48;color:#19361e}
.score-scroll tbody th .shooter-detail-link:focus-visible{outline:3px solid #b96b35;outline-offset:2px}
.scores-explanation strong{color:#253e29;margin-right:7px}

/* v3: shooter-detail tables and scalable score trend graphics. */
.detail-table{max-width:780px}
.detail-table thead th:first-child,.detail-table tbody td:first-child{position:static;text-align:left}
.detail-table thead th:nth-child(2),.detail-table tbody td:nth-child(2){text-align:left}
.scores-charts-heading{font:800 26px/1.3 Manrope,sans-serif;color:#273e2c;margin:30px 0 15px}
.scores-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.score-chart-card{min-width:0;background:#fffefa;border:1px solid #b0c0a9;border-radius:12px;padding:23px 22px 17px;box-shadow:0 4px 18px #343b3015}
.score-chart-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.score-chart-title h3{font:800 18px/1.3 Manrope,sans-serif;color:#2d462e;margin:0}
.score-chart-title span{font-size:13px;font-weight:700;color:#53614f}
.score-chart-card p{font-size:13px;color:#465a40;margin:7px 0 14px}
.score-chart-card svg{display:block;width:100%;height:auto;background:#fffefa}
.chart-grid{stroke:#d5dfd0;stroke-width:1;stroke-dasharray:4 4}
.chart-axis{fill:#53624e;font:13px "DM Sans",sans-serif}
.chart-line{fill:none;stroke:#a35c32;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.chart-point{fill:#5f7b59;stroke:#fff;stroke-width:1.4}
@media(max-width:1100px){.scores-chart-grid{grid-template-columns:1fr}}
@media(max-width:760px){.score-chart-card{padding:15px 10px}.scores-charts-heading{font-size:22px}}

/* v4: click-to-enlarge chart dialog; date labels visible on the X axis. */
.chart-expand{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:left;color:inherit}
.chart-expand:focus-visible{outline:3px solid #b96b35;outline-offset:3px;border-radius:5px}
.chart-expand:hover svg{background:#f7f9f4}
.chart-expand-hint{display:block;text-align:right;font-size:12px;font-weight:800;color:#486b46;margin-top:4px}
.chart-axis{font-size:16px;fill:#3d5140}
.score-chart-dialog{width:min(1300px,96vw);max-width:96vw;max-height:95vh;border:1px solid #8ea185;border-radius:12px;padding:18px 24px 24px;background:#fffefa;color:#242821;box-shadow:0 20px 65px #0005}
.score-chart-dialog::backdrop{background:#151d15bc}
.chart-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dae1d5;padding-bottom:12px}
.chart-dialog-header h2{font:800 23px/1.3 Manrope,sans-serif;margin:0;color:#2d462e}
.chart-dialog-close{border:1px solid #a9bba3;background:#e8efe1;border-radius:7px;padding:9px 14px;font:800 14px "DM Sans",sans-serif;color:#29432f;cursor:pointer}
.chart-dialog-close:hover{background:#d2e0c9}
.chart-dialog-content{width:100%;overflow:auto}
.chart-dialog-content svg{width:100%;height:auto;display:block;min-width:650px;max-height:75vh}
@media(max-width:760px){.score-chart-dialog{padding:12px;max-width:98vw}.chart-dialog-header h2{font-size:18px}}

/* v5: historical improvement dashboard, session averages + trend by division */
.progress-dashboard{margin:24px 0 36px;padding:28px;background:#f4f6ef;border:1px solid #a8bba2;border-radius:13px;box-shadow:0 4px 18px #343b3012}
.progress-dashboard-heading{margin-bottom:22px}
.progress-dashboard-heading h2{font:800 30px/1.2 Manrope,sans-serif;color:#2a462f;margin:6px 0}
.progress-dashboard-heading p{font-size:15px;color:#435444;margin:0;max-width:850px}
.progress-event{padding:22px 25px;margin:20px 0;background:#fffefa;border:1px solid #b5c4ac;border-radius:12px}
.progress-event-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:20px}
.progress-event-heading h3{font:800 22px Manrope,sans-serif;color:#2a462f;margin:0}
.progress-event-heading label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:800;color:#3c5141}
.progress-division{font:700 15px "DM Sans",sans-serif;padding:10px 14px;background:#fff;border:1px solid #a2b39b;border-radius:7px;min-width:155px;color:#283b2a}
.progress-variant[hidden]{display:none!important}
.progress-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.progress-metrics>div{background:#eaf0e4;padding:18px 16px;border-radius:8px;border-top:3px solid #7f9776}
.progress-metrics small,.progress-metrics strong,.progress-metrics span{display:block}
.progress-metrics small{font-size:12px;font-weight:700;color:#425a41}
.progress-metrics strong{font:800 25px/1.3 Manrope,sans-serif;color:#263e2b;margin-top:7px}
.progress-metrics span{font-size:12px;color:#495a47;margin-top:3px}
.progress-legend{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0 8px;font-size:13px;font-weight:700;color:#40563e}
.progress-legend span{display:inline-flex;align-items:center;gap:8px}
.progress-legend span:before{content:"";height:4px;width:27px;display:inline-block;border-radius:4px}
.legend-raw:before{background:#a45a34}
.legend-trend:before{background:#405e40}
.progress-raw-line{fill:none;stroke:#ad6f4a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.progress-trend-line{fill:none;stroke:#345c3e;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.progress-point{fill:#ac6642;stroke:white;stroke-width:1}
.progress-note{font-size:13px;color:#4a5945;margin:12px 0 0}
.scores-chart-intro{font-size:15px;color:#40523f;margin:0 0 12px}
.progress-expand svg{display:block;width:100%;height:auto}
@media(max-width:1000px){.progress-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.progress-dashboard{padding:14px}.progress-event{padding:14px}.progress-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-metrics>div{padding:12px}.progress-metrics strong{font-size:21px}.progress-event-heading{align-items:stretch}.progress-event-heading label{justify-content:space-between}}

/* v6: full-screen-friendly graph popup with safe date-label margins. */
.score-chart-dialog{
  box-sizing:border-box;
  width:calc(100vw - 36px);
  max-width:1540px;
  max-height:calc(100dvh - 30px);
  padding:20px 26px 24px;
}
.chart-dialog-content{width:100%;overflow:auto;padding:4px 0 16px}
.chart-dialog-content svg{
  width:100%;
  min-width:760px;
  max-height:none;
  height:auto;
}
@media(max-width:760px){
 .score-chart-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);padding:12px}
}
