/* Colours, typography and page structure adapted from mv-bowling.de. */
*{box-sizing:border-box}
:root{font-family:"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;color:#3a3a3a;background:#efefef;font-synthesis:none}
body{margin:0;line-height:1.5}
a{color:#1e73be;text-underline-offset:3px}
a:hover{color:#154f83}
.skip-link{position:absolute;left:12px;top:-100px;z-index:10;background:#fff;padding:12px 18px}
.skip-link:focus{top:12px}
.site-header{display:block;max-width:1280px;margin:0 auto;padding:40px;background:#fff}
.site-brand{display:flex;align-items:center;justify-content:center;gap:28px}
.site-logo{display:block;flex:0 0 100px;line-height:0}
.site-logo img{display:block;width:100px;height:100px;object-fit:contain}
.site-name{font-size:clamp(24px,3.4vw,45px);line-height:1.15;font-weight:700;color:#222;margin:0;max-width:900px}
.site-name a{color:inherit;text-decoration:none}
.site-description{font-size:16px;line-height:1.5;color:#757575;margin:10px 0 0}
.site-nav{max-width:1280px;margin:auto;background:#575760;display:flex;justify-content:center;flex-wrap:wrap}
.site-nav a{display:block;padding:17px 24px;color:#fff;text-decoration:none;font-size:16px;line-height:1.5}
.site-nav a:hover,.site-nav a[aria-current="page"]{background:#3f3f3f;color:#fff}
main{max-width:1280px;margin:0 auto;padding:40px;background:#fff;min-width:0}
.page-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 32px}
h1{font-size:35px;line-height:1.2;letter-spacing:0;color:#222;margin:0 0 14px}
p{color:#575760;margin:6px 0;line-height:1.6}
.eyebrow{font-size:13px;line-height:1.5;font-weight:600;letter-spacing:.6px;color:#1e73be;margin:0 0 8px}
.badge{display:inline-block;max-width:330px;white-space:normal;border-radius:2px;background:#edf4fb;color:#205b90;padding:9px 14px;font-size:13px;line-height:1.5;flex-shrink:0}
section{border:1px solid #ddd;border-radius:0;background:#fff;box-shadow:none;margin:24px 0;overflow:hidden}
.section-head{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
h2{font-size:24px;font-weight:700;line-height:1.4;margin:0 0 4px;color:#222}
.step{color:#1e73be;font-size:18px;margin-right:10px}
.hint{font-size:14px;color:#626262}
.toolbar{display:flex;gap:8px;flex-wrap:wrap}
button{font:inherit;font-size:14px;font-weight:600;line-height:1.4;min-height:44px;padding:11px 16px;border:1px solid #bcbcbc;border-radius:2px;background:#f4f4f4;color:#3a3a3a;cursor:pointer}
button:hover{background:#e7e7e7;border-color:#999}
button.primary{background:#1e73be;border-color:#1e73be;color:#fff}
button.primary:hover{background:#185c98;border-color:#185c98}
button:disabled{opacity:.6;cursor:wait}
button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible,.scroll:focus-visible{outline:3px solid #1e73be;outline-offset:3px}
#league-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:24px;padding-top:4px}
#league-buttons h3{font-size:18px;font-weight:600;line-height:1.4;color:#fff;background:#1e73be;margin:0 0 10px;padding:10px 14px}
#league-buttons .toolbar{display:flex;flex-direction:column;gap:7px}
#league-buttons button{width:100%;background:#575760;border-color:#575760;color:#fff;text-align:left;font-weight:400}
#league-buttons button:hover{background:#3f3f3f;border-color:#3f3f3f}
#league-buttons button[aria-pressed="true"]{background:#1e73be;border-color:#1e73be;font-weight:600;box-shadow:inset 4px 0 0 #fff}
.scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
th,td{padding:10px 12px;border-bottom:1px solid #ddd;text-align:right}
th{font-size:13px;color:#444;background:#f1f1f1;white-space:nowrap}
th.team,td.team{text-align:left}
tbody tr:nth-child(even){background:#f7f7f7}
tbody tr:last-child td{border-bottom:0}
.group th{background:#e5e5e5;color:#333;text-align:center;letter-spacing:.5px;padding:12px;text-transform:uppercase}
.group th:last-child{background:#dcebf8;color:#205b90}
#entry{min-width:660px;table-layout:fixed}
#entry .position{width:44px}
#entry .teamcol{width:28%}
#entry .today{background:#edf4fb}
input{font:inherit;color:#3a3a3a;background:#fafafa;border:1px solid #ccc;border-radius:2px;padding:5px;min-height:44px;width:100%;min-width:0;text-align:right}
input:focus{background:#fff;border-color:#1e73be}
input[type=text]{text-align:left}
input:invalid{border-color:#b94233;background:#fff4f0}
input[type=number]{appearance:textfield}
input::-webkit-inner-spin-button{appearance:none}
.foot{padding:16px 24px;background:#f7f7f7;border-top:1px solid #e5e5e5;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.empty{padding:30px;text-align:center;color:#757575}
.result{min-width:450px}
.points{font-weight:700;color:#1e73be}
.status{min-height:25px;font-size:14px;color:#205b90}
.status.error{color:#ad382b}
details{font-size:14px;color:#575760;line-height:1.7;margin:28px 0 0;padding:18px 20px;background:#f7f7f7;border:1px solid #ddd}
summary{cursor:pointer;font-weight:600;color:#3a3a3a}
footer{font-size:13px;color:#757575;margin-top:28px;padding-top:16px;border-top:1px solid #e5e5e5}
.site-footer{max-width:1280px;margin:auto;padding:22px 24px;background:#222;text-align:center;color:#fff;font-size:13px}
.site-footer p{color:#ddd;margin:5px 0}
.site-footer a{color:#fff}
@media(max-width:900px){#league-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header{padding:30px}.site-name{font-size:32px}.badge{max-width:230px}}
@media(max-width:740px){.site-header{padding:24px 18px}.site-brand{gap:16px}.site-logo{flex-basis:70px}.site-logo img{width:70px;height:70px}.site-name{font-size:24px}.site-description{font-size:12px;margin-top:6px}.site-nav a{padding:13px 15px;font-size:14px}main{padding:26px 12px 30px}.page-intro{flex-direction:column;gap:12px;margin-bottom:24px}.badge{display:inline-block;max-width:100%}h1{font-size:30px}h2{font-size:21px}.section-head{padding:16px}.foot{padding:14px 16px}th,td{padding:7px 6px}#entry .teamcol{width:26%}#league-buttons{gap:14px}#league-buttons h3{font-size:16px}#league-buttons button{font-size:13px}details{padding:15px}}
@media(max-width:380px){.site-brand{align-items:flex-start;gap:12px}.site-name{font-size:21px}.site-logo{flex-basis:55px}.site-logo img{width:55px;height:55px}.site-nav a{padding:12px 11px;font-size:13px}#league-buttons{grid-template-columns:1fr}}
@media print{body,:root{background:#fff;color:#000}.site-header,.site-nav,.site-footer,.skip-link,button,.toolbar,details,footer,.badge,section[aria-labelledby="league-title"]{display:none}main{padding:0;max-width:none}.page-intro{display:block;margin-bottom:14px}.eyebrow{display:none}section{box-shadow:none;break-inside:avoid;border:1px solid #aaa}.scroll{overflow:visible}input{border:0;padding:0;background:transparent}h1{font-size:24px}h2{font-size:18px}}
@media screen and (max-width:740px) {
  #entry {
    min-width:600px;
  }

  #entry .teamcol {
    width:172px;
  }
}
