/* Mobile layout V7. Desktop data/layout and the ranking formulas are unchanged. */
@media screen and (max-width:760px){
 body[data-ranking-page],body[data-table-utilities]{max-width:100%;overflow-x:clip}
 body[data-ranking-page] main,body[data-ranking-page]:has(.view-contests) main,
 body[data-table-utilities] main{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px 10px 28px!important;margin:0!important}
 body[data-ranking-page] input,body[data-ranking-page] select,
 body[data-table-utilities] input,body[data-table-utilities] select,
 .survey-page input,.survey-page select{font-size:16px!important;box-sizing:border-box;max-width:100%;min-height:44px}
 body[data-ranking-page] .filters input[type=number]{width:100%!important;max-width:100%!important}
 body[data-ranking-page] .filters label{min-width:0!important;width:100%!important}
 .mobile-rank-navigation{display:grid;gap:8px;margin:12px 0}
 .mobile-rank-navigation>label{display:grid;gap:5px}
 #mobileRankingSelect{width:100%;max-width:100%;min-width:0;min-height:46px}
 .tabs[data-mobile-source-navigation]{display:none!important}
 .mobile-page-links{display:flex;flex-wrap:wrap;gap:8px}
 .mobile-page-links a{flex:1 1 135px;display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px;border:1px solid #98b5d0;border-radius:8px;text-align:center;text-decoration:none;background:#164875;color:#fff;box-sizing:border-box}
 .mobile-page-links .season-tab{margin:0!important;max-width:100%;font-size:14px!important}
 .mobile-advanced,.mobile-weekend-method{display:block;margin:10px 0;border:1px solid #adc2d6;border-radius:10px;background:#fff;color:#172b45;padding:0 10px}
 .mobile-advanced>summary,.mobile-weekend-method>summary{padding:12px 3px;min-height:44px;box-sizing:border-box;font-weight:700;cursor:pointer}
 .mobile-advanced-content>.filters{margin:8px 0!important;padding:10px!important}
 .mobile-advanced .mobile-no-controls,.mobile-extra-criteria[hidden],.mobile-advanced[hidden]{display:none!important}
 .mobile-weekend-method #description{margin:6px 0 12px!important}
 .mobile-table-tools{display:grid;gap:5px;margin:10px 0 5px}
 .mobile-table-tools[hidden]{display:none!important}
 .mobile-table-tools .mobile-toggle{display:block;width:100%;min-height:44px;margin:0}
 .mobile-table-hint{margin:0;font-size:13px;line-height:1.4;color:#40566e}
 body[data-ranking-page] .tablewrap{box-sizing:border-box;width:100%!important;max-width:100%!important;padding:10px 5px!important;overflow-x:auto!important}
 body[data-ranking-page] .tablewrap.mobile-compact{overflow-x:auto!important}
 body[data-ranking-page] .tablewrap.mobile-compact>table,
 body[data-ranking-page] .tablewrap.mobile-compact>table#alltimeTable,
 body[data-ranking-page] .tablewrap.mobile-compact.season-average-places>table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important}
 body[data-ranking-page] .tablewrap.mobile-compact>table :is(th,td),
 body[data-ranking-page] .tablewrap.mobile-compact>table#alltimeTable :is(th,td){box-sizing:border-box;min-width:0!important;padding:9px 4px!important;font-size:clamp(13px,3.5vw,15px)!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;overflow:visible!important;text-overflow:clip!important}
 body[data-ranking-page] .tablewrap.mobile-compact>table th :is(.thsort,.history-sort-header){min-height:44px;padding:3px 0!important;font-size:inherit!important;white-space:normal!important;line-height:1.3!important}
 body[data-ranking-page] .tablewrap:not(.mobile-compact)>table,
 body[data-ranking-page] .tablewrap:not(.mobile-compact)>table#alltimeTable{width:max-content!important;min-width:0!important;max-width:none!important;table-layout:auto!important}
 body[data-ranking-page] .tablewrap:not(.mobile-compact)>table :is(th,td){min-width:0!important;width:auto!important;padding:9px 7px!important;font-size:13px!important;overflow:visible!important;text-overflow:clip!important}
 body[data-ranking-page] .tablewrap:not(.mobile-compact)>table th :is(.thsort,.history-sort-header){min-height:44px;max-width:130px;white-space:normal!important}
 .mobile-row-button{display:block;margin:5px auto 0;min-height:44px;max-width:100%;padding:6px;font-size:12px!important;border-radius:7px}
 .tablewrap:not(.mobile-compact) .mobile-row-button{display:none}
 .mobile-row-dialog{position:fixed;inset:auto 0 0;width:calc(100% - 16px);max-width:600px;max-height:85vh;max-height:85dvh;box-sizing:border-box;margin:0 auto 8px;padding:14px;border:1px solid #7297ba;border-radius:14px;background:#fff;color:#172b45;overflow:auto;overscroll-behavior:contain;box-shadow:0 4px 28px #0005;z-index:1000}
 .mobile-row-dialog::backdrop{background:#05182f99}
 .mobile-row-dialog h2{font-size:19px;line-height:1.3;margin:0 0 10px;overflow-wrap:anywhere}
 .mobile-dialog-close{position:sticky;top:0;z-index:1;display:block;min-height:44px;width:100%;margin:0 0 12px;background:#164875;color:#fff}
 .mobile-row-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 12px;font-size:15px;line-height:1.45;margin:0}
 .mobile-row-values dt{font-weight:650;overflow-wrap:anywhere}
 .mobile-row-values details{min-width:0!important;max-width:100%!important;white-space:normal}
 .mobile-row-values summary{min-height:44px;cursor:pointer}
 .mobile-row-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
 .mobile-calc-toggle{display:block;min-height:44px;width:100%;margin:10px 0}
 .mobile-calc-toggle[hidden]{display:none!important}
 #jumpCalculator:not(.mobile-calculator-open){display:none!important}
 body[data-ranking-page] #favoriteControls input{min-width:0!important;width:100%!important}
 .ranking-description-toggle{min-height:44px;width:100%;margin:10px 0}
 #rankingDescriptionPanel{padding:8px 11px;box-sizing:border-box;overflow-wrap:anywhere}
 #rankingDescriptionPanel p{font-size:14px;line-height:1.5}
 body[data-table-utilities] header{padding:16px;border-radius:12px}
 body[data-table-utilities] header h1{font-size:24px;overflow-wrap:anywhere}
 body[data-table-utilities] section{padding:12px;margin:12px 0}
 body[data-table-utilities] button,.survey-page button{min-height:44px;max-width:100%}
 body[data-table-utilities] #list>div{gap:8px;overflow-wrap:anywhere}
 body[data-table-utilities] form{display:flex;flex-direction:column;align-items:stretch;width:100%}
 body[data-table-utilities] form>label,body[data-table-utilities] section{box-sizing:border-box;max-width:100%;min-width:0}
 body[data-table-utilities] form>label,body[data-table-utilities] form>button{width:100%}
 body[data-table-utilities] :is(.scroll,.hill-category-table){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 body[data-table-utilities] .scroll>table,body[data-table-utilities] #hillCategoryDialog table{width:max-content;max-width:none;table-layout:auto}
 body[data-table-utilities] #hillCategoryDialog{box-sizing:border-box;width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:90dvh;padding:12px}
 .mobile-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .mobile-table-scroll>.survey-results{width:max-content;min-width:100%;table-layout:auto}
 .mobile-table-scroll>.survey-results td:nth-child(2){max-width:180px;white-space:normal;overflow-wrap:anywhere}
}
@media screen and (min-width:360px) and (max-width:760px){
 body[data-ranking-page] .filters.mobile-context{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-ranking-page] .mobile-context .mobile-wide{grid-column:1/-1}
}
@media screen and (min-width:761px){
 .mobile-rank-navigation,.mobile-advanced,.mobile-weekend-method,.mobile-table-tools,.mobile-row-button,.mobile-row-dialog,.mobile-calc-toggle{display:none!important}
}
@media print{
 [data-mobile-ui],.mobile-row-dialog{display:none!important}
}
