/* Mobilens gränssnitt. Datorlayouten behåller projektets befintliga stilar. */
/* Förskjutningen räcker inte för att dölja meddelanden när rutan lyfts upp. */
#notice:not(.show){visibility:hidden;opacity:0;pointer-events:none}
#notice.show{visibility:visible;opacity:1}
.compact-builder .candidate-native .bt-action button[aria-pressed=true]{background:#edf2f7;border-color:#dce5ef;color:#64758a;opacity:1}
.compact-builder .candidate-native .bt-action button[aria-pressed=true]:hover{background:#e2e8ef;border-color:#bccbdc;filter:none}
.member-navigation{display:none}
@media(min-width:761px){
 .site-header .member-navigation:not([hidden]){display:block;max-width:1440px;margin:10px auto 0}
 .member-navigation-inner{display:flex;align-items:center;gap:20px;padding:6px 18px;background:#132238;border-radius:13px;color:#e6edf5}
 .member-navigation-label{flex:none;font-size:10px;font-weight:700;letter-spacing:1.5px;color:#f4d62b;white-space:nowrap}
 .site-header .member-navigation nav{display:flex;flex:1;flex-wrap:wrap;justify-content:flex-start;width:auto;order:0;margin:0;gap:4px;font-size:13px}
 .site-header .member-navigation nav a{display:flex;align-items:center;min-height:44px;padding:10px 13px;border:0;border-radius:8px;color:#d5dfec;font-weight:600;white-space:nowrap}
 .site-header .member-navigation nav a:hover{background:#ffffff0d;color:#fff}
 .site-header .member-navigation nav a[aria-current=page]{background:#ffffff12;color:#f4d62b;box-shadow:inset 0 -2px #f4d62b}
}
.mobile-navigation,.mobile-builder-nav,.mobile-team-summary{display:none}
.mobile-team-more,.mobile-team-more-content,.mobile-league-info{display:contents}
.mobile-team-more>summary,.mobile-league-info>summary{display:none}
.site-header .header-actions a.account-link,.site-header .header-actions .account-link,.site-header .account-menu>summary,.site-header .header-actions .new-team-link{height:36px;min-height:36px;padding:7px 10px;font-size:12px;border-radius:8px}
.site-header .header-actions .new-team-label{font-size:12px;line-height:20px}
.site-header .header-actions .admin-link{width:32px;height:32px;padding:6px!important}
.home-shortcuts.home-context-card{display:grid;grid-template-columns:minmax(0,1fr);gap:0;overflow:visible;margin:0 0 24px;padding:0}
.home-shortcuts.home-context-card .home-shortcut{width:100%;min-width:0;min-height:0;flex:none;overflow-wrap:anywhere;transform:none}
.home-context-card .shortcut-heading{margin-bottom:12px}
.home-context-card .shortcut-news>div{min-width:0}
.home-context-card .shortcut-news p{min-width:0;flex:1}
.home-context-card .home-shortcut>p{margin-top:0}
@media(max-width:760px){
 html{scroll-padding-top:125px;-webkit-text-size-adjust:100%}
 body{--mobile-navy:#132238;background:#eef2f6;padding-bottom:calc(78px + env(safe-area-inset-bottom));font-size:16px}
 main#app{padding:0 14px 28px;min-width:0;width:100%}
 main#app>*{min-width:0}
 button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
 button,.button,summary{touch-action:manipulation}
 main#app input:not([type=checkbox]):not([type=radio]),main#app select,main#app textarea{font-size:16px;min-height:46px;max-width:100%}
 main#app button,main#app .button{min-height:44px}
 main#app summary{min-height:44px;align-content:center}
 main#app input[type=checkbox]{width:24px;height:24px;min-width:24px;accent-color:#25754d;cursor:pointer}
 main#app label:has(input[type=checkbox]){min-height:44px}
 .site-header{position:sticky;top:0;z-index:40;background:#132238;border:0;border-radius:0;padding:env(safe-area-inset-top) 0 0;max-width:none}
 .site-header .header-inner{padding:8px 14px;min-height:60px;gap:8px;flex-wrap:nowrap;background:#132238;border-radius:0;box-shadow:none}
 .site-header .brand{color:#fff;font-size:20px;letter-spacing:-.5px;gap:6px;white-space:nowrap}
 .site-header .brand-icon{width:32px;height:32px;border-radius:7px}
 .site-header nav{display:none}
 .site-header .header-actions{margin:0 0 0 auto;gap:4px;flex-wrap:nowrap}
 .site-header .header-actions a.account-link,.site-header .account-menu>summary{height:36px;min-height:36px;font-size:11px;padding:7px 8px;border-radius:8px;gap:3px}
 .site-header .header-actions .new-team-link{display:inline-flex;width:32px;min-width:32px;height:36px;min-height:36px;padding:4px;border-radius:8px}
 .site-header .header-actions .new-team-link .new-team-label{display:none}
 .site-header .header-actions .new-team-link>span:first-child{font-size:22px;line-height:1}
 .site-header .header-actions .admin-link:not([hidden]){display:inline-flex;width:30px;height:36px;padding:5px!important;border-radius:8px}
 .site-header .account-dropdown{max-height:calc(100dvh - 160px);overflow:auto;right:0;top:calc(100% + 8px)}
 .site-header .account-dropdown a,.site-header .account-dropdown button{height:auto;min-height:46px}
 .mobile-navigation{position:fixed;z-index:60;bottom:0;left:0;right:0;height:calc(72px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));margin:0;background:#132238;border-top:1px solid #ffffff1f;box-shadow:0 -4px 20px #13223814;color:#bdcadb;isolation:isolate}
 .mobile-navigation>a,.mobile-more>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;padding:5px 0;border:0;border-radius:10px;line-height:1.2;font-size:11px;font-weight:600;color:#bdcadb;cursor:pointer;text-align:center;text-decoration:none}
 .mobile-navigation svg{width:23px;height:23px;flex:none}
 .mobile-navigation>a[aria-current=page],.mobile-more.has-current>summary,.mobile-more[open]>summary{color:#f4d62b;background:#ffffff0d}
 .mobile-more{margin:0;padding:0;border:0;min-width:0}
 .mobile-more>summary{list-style:none}
 .mobile-more>summary::-webkit-details-marker{display:none}
 .mobile-more-panel{position:absolute;bottom:calc(100% + 8px);right:12px;left:12px;max-height:calc(100dvh - 160px - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:12px;background:#fff;color:#132238;border:1px solid #dce5ef;border-radius:18px;box-shadow:0 -12px 45px #10213c30}
 .mobile-menu-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px}
 .mobile-menu-heading button{width:44px;height:44px;padding:0;border:0;background:#eef2f6;color:#132238;border-radius:50%;font-size:25px}
 .mobile-more-panel a{display:flex;align-items:center;min-height:50px;padding:10px;border:0;border-radius:9px;font-size:14px;white-space:normal}
 .mobile-more-panel a[aria-current=page]{background:#fff8d3;color:#132238}
 .mobile-more-panel [hidden]{display:none}
 #notice{bottom:calc(88px + env(safe-area-inset-bottom));max-width:calc(100vw - 28px);width:max-content;font-size:14px;z-index:90}
 body:has(dialog[open]) .mobile-navigation,body:has(dialog[open]) .mobile-team-summary{visibility:hidden}
 .page-title,.following-page .page-title{padding:24px 0 18px}
 .page-title h1,.following-page .page-title h1,.news-page-heading h1{font-size:34px!important;line-height:1.08;letter-spacing:-.5px;margin-bottom:10px;overflow-wrap:anywhere}
 .page-title p,.following-page .page-title p{font-size:14px;line-height:1.5}
 .eyebrow{font-size:10px;letter-spacing:1.2px;margin-bottom:10px}
 .section-head{gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
 .section-head h2{font-size:24px;line-height:1.15}
 .section-head>a{font-size:13px;min-height:44px;display:inline-flex;align-items:center}
 .yellow-hero{display:block;min-height:0;padding:24px 20px;margin:16px 0;border-radius:18px;background:#132238;color:#fff}
 .yellow-hero .yellow-hero-copy h1{font-size:36px;line-height:1.03;color:#fff;margin:0 0 12px}
 .yellow-hero .yellow-hero-copy h1 em{color:#132238;background:#f4d62b;padding:0 5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
 .yellow-hero .yellow-hero-copy p{font-size:14px;color:#c1cddd;margin:0 0 18px}
 .yellow-hero .yellow-hero-track{display:none}
 .yellow-hero .yellow-hero-cta{background:#f4d62b;color:#132238;min-height:46px;padding:12px 16px;font-size:15px;border-radius:10px}
 .home-shortcuts.home-context-card{display:block;margin:0 0 24px;padding:0;overflow:visible}
 .home-shortcuts.home-context-card .home-shortcut{display:flex;width:100%;min-width:0;padding:16px;border-radius:15px;min-height:0}
 .shortcut-heading h2{font-size:24px}
 .home-shortcut .shortcut-team-icon{display:none}
 .home-shortcut p{font-size:13px;line-height:1.5}
 .home-shortcut .shortcut-clubs{margin:12px 0}
 .home-news{margin-top:4px}
 .home-news .following-news-list{display:block}
 .home-news .following-news-row,.following-news-row{display:block;border-right:0!important;padding:16px}
 .following-news-clubs{margin-bottom:8px;display:flex;flex-direction:row;flex-wrap:wrap;padding:0;gap:6px 12px}
 .following-news-copy h2,.home-news .following-news-copy h2{font-size:23px;line-height:1.2;display:block;-webkit-line-clamp:unset;overflow:visible;margin:6px 0 10px}
 .following-news-copy small{font-size:12px;line-height:1.5}
 .following-news-copy p{font-size:14px;line-height:1.55}
 .following-news-row>a,.home-news .following-news-row>a{display:flex;align-items:center;justify-content:flex-end;min-height:44px;font-size:13px;margin-top:6px}
 .news-page .news-page-heading{display:block;margin:22px 0 14px}
 .news-page .news-source-note{margin-top:12px;padding:12px;font-size:12px}
 .news-tabs,.compact-builder .driver-tabs,.admin-tabs{display:flex;flex-wrap:nowrap;overflow:auto;gap:7px;padding:4px 0 10px;max-width:100%;scrollbar-width:thin}
 .news-tabs button,.compact-builder .driver-tabs button,.admin-tabs button{flex:none;white-space:nowrap;min-height:44px;font-size:13px;padding:10px 14px;border-radius:24px}
 .news-filterbar{display:grid;grid-template-columns:1fr;gap:10px}
 .news-filterbar label,.news-filterbar .news-search{width:100%;min-width:0}
 .follow-summary,.follow-filter-bar,.follow-sidebar{padding:16px;border-radius:14px}
 .follow-filter-bar>div{flex-wrap:nowrap;overflow:auto;max-width:100%}
 .follow-filter-bar button{flex:none;white-space:nowrap;font-size:13px}
 .following-layout.with-panel{grid-template-columns:1fr}
 .following-news-clubs>span{font-size:12px}
 .compact-builder .builder{display:flex;flex-direction:column;gap:20px}
 .compact-builder .builder>.roster-panel,.compact-builder .builder>.builder-driver-panel{width:100%;min-width:0;padding:14px;background:#fff;border:1px solid #dce5ef;border-radius:15px;position:static}
 .compact-builder .builder-team-toolbar{padding:14px;gap:10px;margin-bottom:10px}
 .compact-builder .builder-team-name{flex:1;min-width:160px;max-width:none;font-size:12px}
 .compact-builder #team-name{font-size:17px;height:46px}
 .compact-builder .builder-team-picker{min-width:0;max-width:none;flex-basis:100%;font-size:12px}
 .compact-builder .lineup-actions{display:flex;width:100%;margin:0;gap:10px;align-items:flex-start}
 .compact-builder .lineup-actions>#save-team{flex:1;min-height:46px}
 .mobile-team-more{display:block;flex:1;min-width:0}
 .mobile-team-more>summary{display:block;list-style:none;min-height:46px;padding:11px 10px;border:1px solid #dce5ef;border-radius:9px;text-align:center;font-weight:600;font-size:14px;cursor:pointer}
 .mobile-team-more-content{display:flex;flex-direction:column;gap:8px;margin-top:8px}
 .compact-builder .mobile-team-more-content button{width:100%;white-space:normal;height:auto;min-height:44px;font-size:13px}
 .compact-builder .builder-league-choice{margin:0 0 12px;padding:14px;background:#fff;border-radius:12px}
 .mobile-league-info{display:block;margin-top:8px}
 .mobile-league-info>summary{display:list-item;padding:8px 0;font-size:12px;color:#526681;list-style-position:inside;cursor:pointer}
 .league-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .league-choice-heading{display:block}
 .league-choice-heading>span{display:block;max-width:none;margin-top:8px}
 .league-choice-card{padding:12px 10px}
 .league-choice-name{font-size:15px;overflow-wrap:anywhere}
 .lineup-sharing-note{font-size:12px;margin:10px 2px 16px}
 .mobile-builder-nav{position:sticky;top:calc(60px + env(safe-area-inset-top));z-index:20;display:grid;grid-template-columns:1fr 1fr 1.1fr .8fr;gap:4px;background:#eef2f6;padding:8px 0;margin:0 0 12px}
 .mobile-builder-nav button{border:1px solid #d6e0eb;background:#fff;color:#243951;border-radius:9px;min-height:44px;padding:8px 3px;font-size:12px;font-weight:600}
 .mobile-builder-nav [data-mobile-save]{background:#f4d62b;border-color:#f4d62b}
 #mobile-roster,#mobile-candidates,#match-panel,#mobile-leagues{scroll-margin-top:calc(125px + env(safe-area-inset-top))}
 body.has-mobile-team-summary{padding-bottom:calc(224px + env(safe-area-inset-bottom))}
 .mobile-team-summary{display:block;position:fixed;z-index:45;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:calc(80px + env(safe-area-inset-bottom));padding:8px 12px 12px;background:#fffdf1;color:#132238;border:1px solid #e4dca8;border-radius:15px;box-shadow:0 4px 24px #13223826}
 .mobile-summary-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;border-bottom:1px solid #e9e2bf;padding-bottom:6px}
 .mobile-summary-heading button{border:0;min-height:32px;background:transparent;color:#132238;text-align:left;padding:4px 0;font-size:12px;font-weight:700}
 .mobile-summary-heading .mobile-summary-league{font-size:11px;text-align:right;color:#53637a;font-weight:600}
 .mobile-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .mobile-summary-metrics>div{min-width:0}
 .mobile-summary-metrics small{display:block;font-size:11px;line-height:1.4;color:#596779}
 .mobile-summary-metrics strong{display:block;margin-top:3px;font-size:23px;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums}
 .mobile-team-summary.over-limit [data-summary-cap],.mobile-team-summary.over-limit [data-summary-cap-label]{color:#a02626}
 body.has-mobile-team-summary #notice{bottom:calc(224px + env(safe-area-inset-bottom))}
 body:has(input:not([type=checkbox]):not([type=radio]):focus,textarea:focus) .mobile-team-summary{display:none}
 .builder-column-heading{gap:8px;flex-wrap:wrap}
 .compact-builder .builder-column-heading h2{font-size:25px;margin:0}
 .builder-roster-help,.match-selection-intro{font-size:13px;line-height:1.5}
 .lineup-sort-control{font-size:12px;white-space:normal}
 .compact-builder .builder-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .compact-builder .builder-filters label{min-width:0;font-size:12px}
 .compact-builder .builder-filters .u21-sort,.builder-extra-filters{grid-column:1/-1}
 .builder-quick-search{min-width:0;width:100%}
 .compact-builder #drivers{max-height:none;overflow:visible;scrollbar-gutter:auto}
 .compact-builder .builder-native-table{display:block;width:100%;background:transparent}
 .compact-builder .builder-native-table colgroup{display:none}
 .compact-builder .builder-native-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .compact-builder .builder-native-table tbody{display:block;width:100%}
 .compact-builder .builder-native-table tr,.compact-builder .builder-native-table tr.driver-card{display:grid!important;grid-template-columns:minmax(0,1fr) 62px 44px;gap:2px 8px;padding:12px 0!important;border-bottom:1px solid #e4eaf0!important;align-items:center}
 .compact-builder .builder-native-table td{display:block!important;border:0;padding:0;min-width:0;grid-column:auto}
 .compact-builder .builder-native-table .bt-name{grid-column:1;grid-row:1;font-size:15px}
 .compact-builder .builder-native-table .bt-name strong{font-size:15px;white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.35}
 .compact-builder .candidate-native .bt-name strong{padding-right:0}
 .compact-builder .builder-native-table .bt-club{grid-column:1;grid-row:2;white-space:normal;font-size:12px;overflow-wrap:anywhere;overflow:visible}
 .compact-builder .builder-native-table .bt-club small{display:inline;margin-left:6px;font-size:12px}
 .compact-builder .builder-native-table .bt-average{grid-column:2;grid-row:1/3;padding:0;font-size:23px;text-align:right}
 .compact-builder .builder-native-table .bt-action{grid-column:3;grid-row:1/3;padding:0}
 .compact-builder .builder-native-table .bt-action button{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;border-radius:10px}
 .compact-builder .builder-native-table .bt-name .bt-info{position:static!important;display:block;margin-top:4px!important;max-width:100%}
 .compact-builder .bt-info>summary{width:100%;height:auto;min-height:44px;display:flex;align-items:center;font-size:12px;font-style:normal;background:transparent;list-style:none;color:#526681;border-radius:6px}
 .compact-builder .bt-info>summary::after{content:' · Källa & licens';margin-left:4px}
 .compact-builder .bt-info p{font-size:13px;line-height:1.55}
 .compact-builder .builder-native-table.roster-native tr{grid-template-columns:92px minmax(0,1fr) 60px 44px}
 .compact-builder .roster-native .bt-slot{grid-column:1;grid-row:1/3;padding:0}
 .compact-builder .roster-native .bt-name{grid-column:2;grid-row:1}
 .compact-builder .roster-native .bt-club{grid-column:2;grid-row:2}
 .compact-builder .roster-native .bt-average{grid-column:3}
 .compact-builder .roster-native .bt-action{grid-column:4}
 .compact-builder .builder-native-table .lineup-choice{min-width:0;gap:6px;justify-content:flex-start}
 .compact-builder .builder-native-table .lineup-choice select{height:44px;min-height:44px;width:54px;min-width:54px;max-width:54px;flex-basis:54px;padding-left:10px;font-size:16px}
 .compact-builder .lineup-number-placeholder{flex-basis:54px;width:54px}
 .compact-builder .builder-native-table .bt-vacant{grid-column:2;grid-row:1/3;font-size:13px}
 .compact-builder .builder-native-table .bt-empty{grid-column:1/-1;grid-row:auto;font-size:14px;padding:12px 0}
 .compact-builder .roster-native tr.lineup-selected-row{background:#f0f7f2!important;border-radius:10px!important}
 .compact-builder .roster-native tr.lineup-selected-row>td{background:transparent!important;border-left:0!important}
 .compact-builder .match-selection{margin-top:20px;padding:0}
 .match-selection-heading h2{font-size:14px}
 .match-cap-metrics.lineup-metrics{grid-template-columns:1fr 1fr;gap:12px}
 .match-cap-metrics.lineup-metrics>div:first-child{grid-column:1/-1}
 .match-cap-metrics>div:first-child strong{font-size:38px}
 .match-cap-metrics strong{font-size:26px}
 .match-cap-metrics small{font-size:11px;min-height:0}
 .match-selected-list li{min-height:44px;font-size:14px}
 .match-selection-note,.bt-rule-note,.roster-total-note,.provisional-average-note{font-size:12px!important;line-height:1.6}
 .bauhaus-composition{grid-template-columns:1fr;font-size:13px}
 .lineup-options{margin-top:20px}
 .lineup-options>summary{padding:12px;font-size:14px;flex-wrap:wrap}
 .lineup-options>summary span{font-size:12px;white-space:normal}
 .lineup-settings,.account-profile-form,.comparison-selectors,.missing-driver-dialog form{grid-template-columns:1fr}
 .missing-driver-dialog,.club-info-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 32px);padding:18px;border-radius:18px}
 .missing-driver-dialog button,.club-info-dialog button{min-width:44px;min-height:44px}
 .club-info-facts{grid-template-columns:1fr 1fr;padding:12px}
 .news-grid,.driver-grid.three,.admin-grid{grid-template-columns:minmax(0,1fr)}
 .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}
 .filters label{min-width:0}
 .filters label.wide{grid-column:1/-1}
 .account-profile-form{padding:16px}
 .account-profile-form label,.comparison-selectors label{min-width:0}
 .account-profile-form .account-wide{grid-column:1}
 .join-layout{grid-template-columns:1fr;gap:20px}
 .join-copy h1{font-size:36px}
 .join-visual{min-height:0;padding:20px}
 .public-team-metrics{gap:16px;flex-wrap:wrap}
 .panel,.saved-team-card{min-width:0;overflow-wrap:anywhere}
 .comparison-table,.admin-grid table{display:block;overflow-x:auto;max-width:100%;min-width:0}
 footer{padding:24px 16px;margin-top:20px}
 footer .brand{font-size:24px}
 footer p,footer>span{font-size:12px}
}
@media(max-width:360px){
 .site-header .header-inner{padding-left:10px;padding-right:10px;gap:4px}
 .site-header .brand{font-size:18px}
 .site-header .brand-icon{width:28px;height:28px}
 .site-header .header-actions a.account-link,.site-header .account-menu>summary{font-size:10px;padding:6px}
 .compact-builder .builder-native-table.roster-native tr{grid-template-columns:86px minmax(0,1fr) 52px 44px;gap:2px 4px}
 .compact-builder .builder>.roster-panel,.compact-builder .builder>.builder-driver-panel{padding:10px}
}
@media(prefers-reduced-motion:reduce){.mobile-navigation *{scroll-behavior:auto;transition:none}}

/* FAQ till höger på dator; på mobilen ligger länken i Mer. */
.site-header .header-actions .header-faq-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border:1px solid #dce5ef;border-radius:8px;color:#526681;background:#fff;font-size:12px;font-weight:700;line-height:20px}.site-header .header-actions .header-faq-link:hover{color:#132238;background:#fffbe0;border-color:#e1ce72}@media(max-width:760px){.site-header .header-actions .header-faq-link{display:none}}
