:root{--g:#1f6f43;--g2:#e8f3ec;--ink:#1d2421;--mut:#6b7671;--line:#dfe5e2;
--hio:#7b2cbf;--alb:#5a189a;--eag:#f4a300;--bir:#e63946;--par:#ffffff;--bog:#a8dadc;--dbl:#457b9d;--tri:#1d3557;--oth:#111;--pick:#bbb}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:#f6f8f7}
a{color:var(--g)}
.top{background:var(--g);color:#fff;padding:14px 20px;display:flex;gap:14px;align-items:baseline}
.brand{color:#fff;text-decoration:none;font-weight:700;font-size:20px}
.sub{opacity:.8;font-size:14px}
main{max-width:1100px;margin:0 auto;padding:20px}
.foot{max-width:1100px;margin:0 auto;padding:10px 20px 30px;color:var(--mut);font-size:13px}
.muted{color:var(--mut)}
h1{margin:.2em 0 .1em;font-size:26px}
h2{font-size:18px;margin:28px 0 10px}
.crumbs{font-size:14px;margin-bottom:8px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;text-decoration:none;color:inherit;display:block}
.card:hover{border-color:var(--g);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.card .t{font-weight:700;font-size:17px}
.card .m{color:var(--mut);font-size:14px;margin-top:4px}
.card .w{margin-top:10px;font-size:14px}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.pill{background:var(--g2);border-radius:20px;padding:4px 10px;font-size:13px}
table{border-collapse:collapse;width:100%;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
th,td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;white-space:nowrap}
th{background:#f0f4f2;font-weight:600;font-size:13px;color:#39433f}
td.n,th.n{text-align:right}
tr.click{cursor:pointer}
tr.click:hover td{background:#f4faf6}
.big{font-weight:700;font-size:16px}
.scroll{overflow-x:auto;border-radius:10px}
.sc td,.sc th{text-align:center;padding:6px 4px;min-width:34px}
.sc th:first-child,.sc td:first-child{text-align:left;min-width:110px;padding-left:10px}
.sc .sum{background:#f0f4f2;font-weight:700}
.h{display:inline-block;min-width:26px;padding:3px 0;border-radius:4px;font-weight:600}
.HOLE-IN-ONE,.ALBATROS{background:var(--alb);color:#fff;border-radius:50%}
.EAGLE{background:var(--eag);color:#fff;border-radius:50%}
.BIRDIE{background:var(--bir);color:#fff;border-radius:50%}
.PAR{background:var(--par);border:1px solid var(--line)}
.BOGEY{background:var(--bog)}
.DOUBLE-BOGEY{background:var(--dbl);color:#fff}
.TRIPLE-BOGEY{background:var(--tri);color:#fff}
.OTHER{background:var(--oth);color:#fff}
.PICKED-UP{background:var(--pick);color:#fff}
.legend{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0;font-size:13px;align-items:center}
.legend span.h{min-width:18px;height:18px;padding:0}
.bars{display:grid;grid-template-columns:130px 1fr 40px;gap:6px 10px;align-items:center;font-size:14px;max-width:600px}
.bar{height:16px;border-radius:3px}
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:12px 0}
.kpi{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px}
.kpi .v{font-size:22px;font-weight:700}
.kpi .l{color:var(--mut);font-size:13px}
@media (max-width:640px){.hide-s{display:none}h1{font-size:21px}}
.top{flex-wrap:wrap}
#nav{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
#nav a{color:#fff;text-decoration:none;padding:6px 10px;border-radius:6px;font-size:14px;opacity:.9}
#nav a:hover{background:rgba(255,255,255,.15)}
#nav a.on{background:#fff;color:var(--g);opacity:1;font-weight:600}
th.sortable{cursor:pointer;user-select:none}
th.sortable:hover{background:#e4ece8}
.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:800px){.two{grid-template-columns:1fr}}
.kpi small{font-size:13px;font-weight:400;color:var(--mut)}
.small{font-size:13px}
h3{font-size:15px;margin:18px 0 8px}
.wrap{white-space:normal;display:block;min-width:220px}

/* ===== Vzhled podle PDF propozic Kunsters ===== */
:root{--g:#005e43;--g2:#e6efe0;--cream:#ffefd3;--lime:#b5d334;--yel:#ffe500;--bg:#87998c;--line:#e6dcc6;--mut:#5f6b64}
body{font-family:"Barlow Semi Condensed",system-ui,"Segoe UI",sans-serif;font-size:16px;background:var(--bg);transition:background-color .5s;min-height:100vh;display:flex;flex-direction:column}
body::before{content:"";position:fixed;right:-140px;bottom:-60px;width:560px;height:560px;background:url(img/logo-512.png?v=18) no-repeat center/contain;opacity:.13;pointer-events:none;z-index:0}
h1,h2,h3,.kpi .v,.card .t,.brand .bt{font-family:Dosis,"Barlow Semi Condensed",sans-serif;letter-spacing:.02em}
h1{color:var(--g);font-weight:800;font-size:30px}
h2{color:var(--g);font-weight:700;font-size:21px}
.top{background:var(--g);padding:10px 20px;align-items:center;position:relative;z-index:2;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.brand{display:inline-flex;align-items:center;gap:12px;color:#fff}
.brand .logo{width:64px;height:64px;border-radius:50%;background:none;padding:0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.brand .bt{display:block;font-size:30px;font-weight:700;line-height:1;letter-spacing:.06em}
.brand .bs{display:block;font-size:13px;font-weight:500;color:var(--lime);margin-top:3px}
#nav a{font-family:"Barlow Semi Condensed",sans-serif;font-size:16px;font-weight:600}
#nav a.on{background:var(--lime);color:var(--g)}
main{position:relative;z-index:1;flex:1;width:calc(100% - 32px);max-width:1140px;margin:24px auto 0;padding:22px 26px 30px;background:rgba(255,239,211,.96);border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.12)}
table,.kpi,.card{background:#fffdf8;border-color:var(--line)}
th{background:#f6ead0;color:var(--g)}
th.sortable:hover{background:#efe0bf}
td,th{font-size:15px}
.kpi .v{color:var(--g)}
.pill{background:#f6ead0}
a{color:var(--g)}
a.kpi.click:hover,.card:hover{border-color:var(--g)}
.rulebox{background:#fffdf8;border-left:5px solid var(--lime);border-radius:8px;padding:10px 14px;margin:10px 0 4px}
table.rules td{white-space:normal;min-width:60px}
td.warn{background:#fff2b3;font-weight:700}
.timeline{display:grid;gap:8px}
.tl{display:grid;grid-template-columns:70px 1fr;gap:12px;background:#fffdf8;border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.tl .y{font-family:Dosis,sans-serif;font-weight:800;font-size:22px;color:var(--g)}
/* pozadí: tráva přes celou šířku a míček-jahoda na týčku vpravo (fixně, za obsahem) */
.bgball{position:fixed;left:12px;bottom:34px;width:118px;height:222px;background:url(img/balltee.png?v=18) no-repeat center bottom/contain;z-index:0;pointer-events:none}
.bggrass{position:fixed;left:0;right:0;bottom:0;height:72px;background:url(img/grass.png?v=18) repeat-x left bottom/auto 72px;z-index:0;pointer-events:none}
.foot{position:relative;z-index:1;max-width:none;margin:28px 0 0;padding:0 16px 84px;color:#fff;background:transparent}
.foot .fin{max-width:1140px;margin:0 auto;background:rgba(0,94,67,.94);border-radius:14px;padding:14px 22px 16px;box-shadow:0 6px 24px rgba(0,0,0,.12)}
.foot .motto{font-family:Dosis,sans-serif;font-weight:700;font-size:22px}
.foot .src{font-size:14px;opacity:.85;margin-top:6px}
.foot a{color:var(--lime)}
/* hlavičky tabulek se zalamují */
th{white-space:normal;vertical-align:bottom;line-height:1.15}
/* stránka Pravidla: širší, bez vodorovného posuvníku */
body.wide main{max-width:1640px}
.fit table.rules{table-layout:auto;width:100%}
table.rules th,table.rules td{white-space:normal;padding:7px 7px;font-size:14px;min-width:0}
table.rules th{min-width:44px;max-width:96px;white-space:normal;word-break:normal;hyphens:auto}
table.rules td.small{font-size:13px;min-width:150px}
@media (max-width:1100px){.fit{overflow-x:auto}}
@media (max-width:640px){.brand .bt{font-size:24px}.brand .logo{width:48px;height:48px}.brand .bs{display:none}main{padding:16px 14px;width:calc(100% - 16px)}.foot .motto{font-size:18px}.bgball{width:70px;height:132px;left:12px;bottom:26px}.bggrass{height:50px;background-size:auto 50px}.foot{padding-bottom:60px}body::before{width:320px;height:320px;right:-90px}}

/* oficiální výsledky sezóny */
table.season th,table.season td{padding:6px 7px;font-size:14px}
table.season th.tcol{min-width:64px;max-width:110px;white-space:normal}
table.season th.tcol a{color:var(--g)}
table.season a.cnt{font-weight:700;text-decoration:none}
table.season a.drop,span.drop{text-decoration:line-through;color:#9a8f7a}
table.season td.big{font-weight:800;color:var(--g)}
td.neg{color:#b3261e;font-weight:700}
span.warn{color:#b3261e;font-size:12px;font-weight:700}

/* lepivá horní lišta */
.top{position:sticky;top:0;z-index:100}
html{scroll-padding-top:96px}
/* karty sezón: první tři */
.season-card .w1{margin-top:10px;font-size:19px;font-weight:700;font-family:Dosis,sans-serif;color:var(--g)}
.season-card .w2{font-size:15px;margin-top:3px}
/* oddělení ročníků v seznamu turnajů */
tr.ysep td{border-top:3px solid #d9ccb0}
/* číslování řádků a zvýraznění sloupce, podle kterého se řadí */
th.rn,td.rn{color:var(--mut);width:36px}
th.sorted{background:#e9d9b4!important}
td.sorted{background:rgba(181,211,52,.14);font-weight:700}
/* telefony */
@media (max-width:760px){
 .top{padding:6px 10px;gap:6px}
 .brand .logo{width:40px;height:40px}.brand .bt{font-size:21px}.brand .bs{display:none}
 #nav{width:100%;margin-left:0;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
 #nav::-webkit-scrollbar{display:none}
 #nav a{white-space:nowrap;padding:5px 9px;font-size:15px}
 html{scroll-padding-top:110px}
 main{margin-top:12px;padding:14px 12px;width:calc(100% - 12px)}
 .kpis{grid-template-columns:repeat(2,1fr)}
 .two{grid-template-columns:1fr}
 .cards{grid-template-columns:1fr}
 td,th{font-size:14px;padding:6px 7px}
 h1{font-size:23px}
 .fit{overflow-x:auto}
}


/* Historic statistics v2 responsive foundation */
main{width:min(1460px,calc(100% - 48px));max-width:none;box-sizing:border-box}
.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.two>div{min-width:0}
.two .scroll{max-width:100%;overflow-x:auto}
td,th{overflow-wrap:anywhere}
.player-external{opacity:.48}
.player-external:hover{opacity:.8}
.player-guest{opacity:.78;background:rgba(255,255,255,.22)}
.player-member{font-weight:600}
.pill.mini{padding:1px 6px;font-size:.72em;vertical-align:middle}
@media(max-width:1050px){.two{grid-template-columns:1fr}main{width:min(100% - 24px,900px)}}
@media(max-width:650px){main{width:calc(100% - 12px);padding-left:14px;padding-right:14px}}
.course-map{height:360px;max-width:720px;margin:14px 0 4px;border-radius:10px;overflow:hidden;z-index:0}
.course-map.wide{max-width:none;height:520px}
.map-legend .map-key{white-space:nowrap;margin-right:6px}.map-legend i{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid #1d2b24;margin-right:4px;vertical-align:-1px}
