/* Spēlētāju lapas: viena navigācija un kompakti, salasāmi izmēri telefonā. Ielādē PĒDĒJO. */
.gnav{display:none}
@media (max-width:700px){
  /* ---- galvenā izvēlne apakšā ---- */
  html body .gnav{position:fixed;left:0;right:0;bottom:0;z-index:46;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));background:#14275a;border-top:1px solid rgba(255,255,255,.14);box-shadow:0 -4px 16px rgba(10,25,60,.22)}
  html body .gnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:50px;border-radius:12px;color:#c3d1ee;text-decoration:none;font:600 12px/1.15 Inter,system-ui,sans-serif;white-space:nowrap;touch-action:manipulation}
  html body .gnav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  html body .gnav a[aria-current="page"]{background:#2b55c8;color:#fff}
  html body .gnav a:focus-visible{outline:2px solid #fff;outline-offset:-3px}
  html body.has-gnav{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))!important}
  /* ---- galvene: logo, nosaukums, valoda; lapu saites ir apakšā ---- */
  html body .pub-header .appsw{display:none!important}
  html body .pub-header .brand{display:inline!important;font-size:17px;margin-right:auto}
  html body .pub-header .top-in{padding-top:7px!important;padding-bottom:7px!important;min-height:50px}
  html body .pub-header .logo-img{width:32px;height:32px}
  html body .pub-header [data-language-control]{max-width:110px!important;width:auto!important;height:36px}

  /* ---- sadaļas lapas iekšienē: čipi zem galvenes, nevis otra apakšējā josla ---- */
  html body.pub nav.tabs.pubtabs,html body.stats-page #stats .st-tabs{
    position:sticky!important;top:var(--pn-head,50px)!important;bottom:auto!important;left:auto!important;right:auto!important;z-index:18;
    margin:0 -12px 8px!important;max-width:none!important;width:auto!important;padding:6px 12px!important;border-radius:0!important;gap:6px;
    background:var(--bg,#eef2fa)!important;box-shadow:none!important}
  html body.pub .pubtabs button,html body.stats-page #stats .st-tabs a{
    flex:0 0 auto;flex-direction:row;gap:5px;min-width:0;min-height:40px;padding:0 13px!important;border-radius:99px!important;font-size:13.5px;
    background:var(--sf-card,#fff)!important;border:1px solid var(--sf-line,#d8dfec)!important;color:var(--ink,#10254a)!important}
  html body.pub .pubtabs button[aria-pressed="true"],html body.stats-page #stats .st-tabs a[aria-current="page"]{background:#14275a!important;border-color:#14275a!important;color:#fff!important}
  html body.pub .pubtabs button svg,html body.stats-page #stats .st-tabs a svg{display:none}
  html[data-theme="dark"] body.pub nav.tabs.pubtabs,html[data-theme="dark"] body.stats-page #stats .st-tabs{background:#0d1525!important}
  html[data-theme="dark"] body.pub .pubtabs button[aria-pressed="true"],html[data-theme="dark"] body.stats-page #stats .st-tabs a[aria-current="page"]{background:#7fa8ff!important;border-color:#7fa8ff!important;color:#102343!important}

  /* ---- reitinga un rezultātu lapa: mazāks virsraksta bloks ---- */
  html body.stats-page .wrap{padding:0 12px}
  html body.stats-page #stats{margin-top:0;padding-top:0}
  html body.stats-page #stats .st-head{padding:11px 14px!important;margin:8px 0 4px!important;border-radius:14px;min-height:0;display:block}
  html body.stats-page #stats .st-brand{display:none}
  html body.stats-page #stats .st-title{font-size:18px!important;line-height:1.25;margin:0}
  html body.stats-page #stats .st-head p{font-size:12.5px;margin:2px 0 0}
  html body.stats-page #stats .st-body{gap:10px!important;padding:0!important}
  html body.stats-page #stats .card{padding:12px!important;border-radius:14px}
  html body.stats-page #stats h2{font-size:17px;margin:0 0 8px}
  /* skaitļu kartītes */
  html body.stats-page #stats .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html body.stats-page #stats .tile{padding:9px 12px!important;border-radius:12px}
  html body.stats-page #stats .tile b{font-size:22px!important}
  html body.stats-page #stats .tile em{font-size:12px}
  /* kluba reitings: vieta, spēlētājs, punkti, līmenis — viss redzams bez sāniskas ritināšanas (pārējais spēlētāja lapā) */
  html body.stats-page #stats #st-rt{width:100%;min-width:0!important;table-layout:auto}
  html body.stats-page #stats #st-rt tr>:nth-child(n+5){display:none}
  html body.stats-page #stats #st-rt tr>*{padding:7px 5px!important;height:auto;white-space:nowrap;font-size:14px}
  html body.stats-page #stats #st-rt tr>:nth-child(1){width:34px;min-width:0;text-align:center}
  html body.stats-page #stats #st-rt tr>:nth-child(2){white-space:normal;line-height:1.25;min-width:0;max-width:none;position:static}
  html body.stats-page #stats #st-rt thead th button{min-height:36px;padding:0;font-size:12px}
  html body.stats-page #stats #st-rt td:nth-child(3) .d{display:block;font-size:11.5px}
  html body.stats-page #stats #st-rt td:nth-child(4){width:44px}
  html body.stats-page #stats .tag{font-size:11.5px}
  /* turnīra lapa */
  html body.stats-page #stats a.back{display:inline-flex;align-items:center;min-height:40px}
  html body.stats-page #stats .podium{grid-template-columns:minmax(0,1fr)!important;gap:6px}
  html body.stats-page #stats .podium .pd{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:6px 12px}
  html body.stats-page #stats .podium .pd>span{font-size:12px}
  html body.stats-page #stats .ch-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible}
  html body.stats-page #stats .ch-card{min-width:0;width:auto}
  html body.stats-page #stats .ch-card :is(img,.ch-in){width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;font-size:30px}
  html body.stats-page #stats .ch-card b{font-size:13px;line-height:1.25;overflow-wrap:anywhere}
  html body.stats-page #stats .ch-card span:not(.ch-in){font-size:11.5px}
  /* krusttabulā vārds paliek redzams, ritinot rezultātus */
  html body.stats-page #stats .xt tr>:first-child{display:none}
  html body.stats-page #stats .xt tr>:nth-child(2){position:sticky;left:0;z-index:1;background:var(--sf-solid,#fff);min-width:112px;max-width:132px;white-space:normal;line-height:1.2;text-align:left}
  /* spēlētāja lapa */
  html body.stats-page #stats .card.hero{gap:8px}
  html body.stats-page #stats .hero-ph{width:68px!important;height:68px!important}
  html body.stats-page #stats .hero h1{font-size:20px}
  html body.stats-page #stats .hero-r .big{font-size:30px}

  /* ---- apskati ---- */
  html body.raksti-page .rk-in h1{font-size:24px}
  html body.raksti-page .rk-sub{font-size:14px;margin:0 0 12px}
  html body.raksti-page .rk-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  html body.raksti-page .rk-grid .rk-card{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:stretch}
  html body.raksti-page .rk-grid .rk-card :is(img,.rk-noimg){width:104px;height:100%;min-height:112px;aspect-ratio:auto;font-size:22px}
  html body.raksti-page .rk-grid .rk-ct{padding:10px 12px;gap:4px;align-content:center}
  html body.raksti-page .rk-grid .rk-ct h2{font-size:15.5px;line-height:1.3}
  html body.raksti-page .rk-grid .rk-ct p{font-size:12.5px;line-height:1.35}
  html body.raksti-page .rk-tag{font-size:11.5px;letter-spacing:.02em}
  html body.raksti-page .rk-lead{font-size:17px}

  /* ---- kalendārs ---- */
  html body.turniri-page .tn{padding:12px 12px 24px}
  html body.turniri-page .tn h1{font-size:24px}
  html body.turniri-page .tn-sub{font-size:14px;margin:0 0 10px}
  html body.turniri-page .tn-find{padding:12px;margin:0 0 12px}
  html body.turniri-page .tn-find h2{font-size:17px}
  html body.turniri-page .tn-find .tn-sub{font-size:13px;line-height:1.4}
  html body.turniri-page .tn-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 10px}
  html body.turniri-page .tn-chip{flex:none;min-height:40px;padding:0 14px;font-size:13.5px}
  html body.turniri-page .tn-date{padding:6px 12px;gap:8px}
  html body.turniri-page .tn-date b{font-size:22px}
  html body.turniri-page .tn-date span{font-size:14px}
  html body.turniri-page .tn-date em{font-size:12px;color:#d5e1fb}
  html body.turniri-page .tn-main{padding:10px 12px 12px}
  html body.turniri-page .tn-main h2{font-size:16.5px;margin:2px 0 6px}
  html body.turniri-page .tn-type{font-size:11.5px}
  html body.turniri-page .tn-when{font-size:12.5px}
  html body.turniri-page .tn-big{font-size:14.5px}
  html body.turniri-page .tn-groups{gap:4px;margin:6px 0 2px}
  html body.turniri-page .tn-groups li{padding:5px 8px;gap:2px 8px}
  html body.turniri-page .tn-gl{font-size:15px}
  html body.turniri-page .tn-gt,html body.turniri-page .tn-ok,html body.turniri-page .tn-no{font-size:12.5px}
  html body.turniri-page .tn-main p{font-size:13.5px;line-height:1.4;margin:6px 0}
  html body.turniri-page .tn-row{margin-top:8px;gap:6px}
  html body.turniri-page .tn-btn{min-height:40px;padding:0 13px;font-size:14px}
  html body.turniri-page summary{min-height:36px;display:flex;align-items:center}
}
@media (max-width:360px){
  html body.stats-page #stats .ch-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* dators un planšete: sadaļas arī ir čipi lapas augšā, peldošā apakšējā josla vairs neaizsedz saturu */
@media (min-width:701px){
  html body.pub nav.tabs.pubtabs,html body.stats-page #stats .st-tabs{
    position:sticky!important;top:var(--pn-head,60px)!important;bottom:auto!important;left:auto!important;right:auto!important;z-index:18;
    margin:0 auto 12px!important;max-width:1120px!important;width:100%!important;padding:8px 0!important;border-radius:0!important;gap:6px;flex-wrap:wrap;overflow:visible;
    background:var(--bg,#eef2fa)!important;box-shadow:none!important;justify-content:flex-start!important}
  html body.pub .pubtabs button,html body.stats-page #stats .st-tabs a{
    flex:0 0 auto;flex-direction:row;gap:7px;min-width:0;min-height:38px;padding:0 15px!important;border-radius:99px!important;font-size:13.5px;
    background:var(--sf-card,#fff)!important;border:1px solid var(--sf-line,#d8dfec)!important;color:var(--ink,#10254a)!important}
  html body.pub .pubtabs button[aria-pressed="true"],html body.stats-page #stats .st-tabs a[aria-current="page"]{background:#14275a!important;border-color:#14275a!important;color:#fff!important}
  html body.pub .pubtabs button svg,html body.stats-page #stats .st-tabs a svg{width:16px;height:16px}
  html[data-theme="dark"] body.pub nav.tabs.pubtabs,html[data-theme="dark"] body.stats-page #stats .st-tabs{background:#0d1525!important}
  html[data-theme="dark"] body.pub .pubtabs button[aria-pressed="true"],html[data-theme="dark"] body.stats-page #stats .st-tabs a[aria-current="page"]{background:#7fa8ff!important;border-color:#7fa8ff!important;color:#102343!important}
  html body.pub nav.tabs.pubtabs{padding-left:16px!important;padding-right:16px!important}
}