/* Responsive controls extend the established green identity. */
.skip-link{position:fixed;top:8px;left:8px;z-index:100;background:var(--panel);padding:14px;transform:translateY(-150%)}.skip-link:focus{transform:none}
.menu-toggle{display:none}.brand .brand-caption{font-size:11px;line-height:1.5;font-weight:400;letter-spacing:0;max-width:175px;color:#c3d0c3;margin-top:13px}
.mobile-actions{display:none}
body:has(dialog[open]){overflow:hidden}
main>.page{padding-top:26px}h1#league-title{font-size:30px;margin:0;font-weight:600;letter-spacing:-1px}
header button{min-height:44px}main:focus{outline:0}.rating-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.rating-controls label{font-size:11px;color:var(--muted);width:244px}.rating-controls select{font-size:13px;padding:12px;margin-top:6px;min-height:44px}.rating-controls>a{min-height:44px;align-items:center}
.table-options{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);padding:4px 22px;position:relative}.table-options>.text-link{min-height:44px}.column-switch{display:none}.column-guide{padding:0;border:0;margin-left:auto}.column-guide summary{font-size:11px;min-height:44px;align-items:center;gap:12px;color:var(--muted)}.column-guide p{margin:0;padding:16px;position:absolute;top:48px;left:0;right:0;z-index:4;background:var(--panel);box-shadow:0 12px 22px #0002;border-block:1px solid var(--line);max-width:none;font-size:12px}
#strength-table{min-width:820px}#strength-table th:nth-child(2){width:26%}#strength-table th,#strength-table td{padding-right:12px}#strength-table th:last-child,#strength-table td:last-child{padding-right:0}#strength-table th small{display:block;font-size:10px;line-height:1.5}#strength-table th button{min-height:44px}#strength-table .change-detail{min-width:92px}.change{font:600 13px 'Inter',Arial,sans-serif;font-variant-numeric:tabular-nums}.change.positive{color:#267447}.change.negative{color:#a74c37}.change.neutral,.change.unavailable{color:var(--muted)}.dark .change.positive{color:#b3dc98}.dark .change.negative{color:#f1a690}.check-target{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer}.check-target input{margin:0;width:18px;height:18px}
.table-scroll{overscroll-behavior-x:contain}.table-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.comparison-changes{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px}.comparison-changes>span:last-child{text-align:right}.comparison-changes small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.profile-changes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-changes>div{display:flex;flex-direction:column;gap:6px}.profile-changes>div>span:last-child{font-size:11px;color:var(--muted)}.profile-date{margin-bottom:0}.profile-scores{margin:20px 0}.profile-note{margin:18px 0}.rating-history{border-top:1px solid var(--line);padding-top:18px}.rating-history h3{font-size:18px;margin:0}.rating-history .note{font-size:11px;margin-bottom:0}.rating-history svg{display:block;width:100%;height:auto}.rating-history details{padding:0}.rating-history summary{min-height:44px;align-items:center;font-size:12px}.history-table{min-width:600px;margin-top:10px}.history-table td,.history-table th{height:44px;padding:8px;font-size:11px;width:auto!important;text-align:left!important;min-width:0;position:static!important}.history-table td:first-child{color:var(--ink);font:11px 'Inter',sans-serif}.history-table .selected-snapshot{background:var(--soft)}dialog{max-height:90dvh;overflow:auto;overscroll-behavior:contain}#close{width:44px;height:44px;top:3px;right:7px;z-index:1;background:var(--panel);border-radius:50%}#profile-name{padding-right:20px}
.footer-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.footer-links a,.footer-links button{font-size:11px;min-height:44px;display:inline-flex;align-items:center}
.period-controls{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.period-controls button{min-height:44px;padding:10px 16px;background:var(--panel);border:1px solid var(--line);border-radius:7px;font-size:12px}.period-controls button[aria-pressed=true]{background:var(--soft);color:var(--green);border-color:var(--green);font-weight:600}.fixture-filter{display:block}
.snapshot-table{min-width:600px}.snapshot-table.performance{min-width:880px}.snapshot-table th button{min-height:44px}.scroll-hint{display:none}.fixture-filter{max-width:280px;margin-bottom:18px;font-size:11px;color:var(--muted)}.fixture-filter select{padding:12px;min-height:44px;font-size:13px}.fixture-card summary{min-height:44px;align-items:center}.fixture-card details{padding-top:4px}.fixture-card .fixture-teams>strong{line-height:1.5}
@media(max-width:1080px) and (min-width:761px){main{padding-inline:22px}.table-tools{padding:18px}.search{max-width:190px}}
@media(max-width:760px){
  body{font-size:14px}
  aside#site-navigation{position:relative;inset:auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:17px 18px;border:0;z-index:6;min-height:101px}
  .brand{max-width:230px;padding:0}.brand-logo{width:145px}.brand .brand-caption{font-size:10px;line-height:1.4;max-width:none;letter-spacing:0;white-space:nowrap;margin-top:9px}
  .menu-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-width:80px;min-height:44px;color:#e8efe4;border:1px solid #ffffff35;border-radius:8px;font-size:12px;padding:10px}.menu-toggle .icon{width:18px;height:18px}
  #primary-nav{display:none;flex-direction:column;width:100%;margin:16px 0 0;padding:12px 0 0;gap:5px;overflow:visible;border-top:1px solid #ffffff22}
  .menu-open #primary-nav{display:flex}#primary-nav button,#primary-nav>a{min-height:48px;font-size:13px;gap:12px;padding:12px 14px;white-space:normal}#primary-nav button span{font-size:13px}#primary-nav .icon{width:20px;height:20px}#primary-nav .nav-divider{display:block;margin:6px 12px}
  main{padding:0 16px;min-width:0}header{height:58px;font-size:8px;letter-spacing:1px}header button{padding:10px;min-width:44px;min-height:44px}header button span{font-size:11px}.breadcrumb em{margin-inline:8px}
  main>.page{padding-top:20px}h1#league-title{font-size:29px;letter-spacing:-1.1px}.section-top{gap:17px;margin-bottom:18px}.eyebrow{font-size:10px;letter-spacing:1.2px}.league-picker-label{font-size:10px;letter-spacing:1px}.league-picker-label select{font-size:16px;letter-spacing:0;min-height:48px;padding:11px 12px;margin-top:7px}
  .tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;border:1px solid var(--line);padding:5px;background:var(--panel);border-radius:10px;margin-bottom:18px;overflow:visible;white-space:normal}
  .tabs button{padding:11px 6px;min-height:44px;line-height:1.3;border:0;border-radius:6px;font-size:12px}.tabs button.active{background:var(--soft);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
  .index-guide{font-size:11px;gap:8px;line-height:1.5;margin-bottom:10px}.index-guide p{max-width:none;flex:1}.index-guide .text-link{min-height:44px;font-size:11px;flex-basis:100%;margin:0;display:none}.reference-chip{font-size:12px;padding:3px 6px}
  .rating-controls{align-items:flex-end;gap:14px;margin-bottom:16px}.rating-controls label{width:auto;flex:1;min-width:0;font-size:11px}.rating-controls select{font-size:16px;min-height:46px;padding:10px 8px}.rating-controls>a{font-size:11px;max-width:92px;line-height:1.5;flex-shrink:0}
  .table-tools{padding:16px;gap:14px}.table-tools h3{font-size:18px}.table-tools h3 span{font-size:11px}.table-tools p{font-size:11px;line-height:1.5}.search{min-height:46px;padding:10px 12px}.search input,input[type=search]{font-size:16px;min-width:0}.search kbd{display:none}
  .table-options{padding:8px 12px;gap:8px;flex-wrap:wrap;justify-content:space-between}.column-switch{display:flex;gap:2px;border:1px solid var(--line);padding:2px;border-radius:7px;background:var(--bg)}.column-switch button{min-height:40px;padding:9px 12px;font-size:12px;border-radius:5px;color:var(--muted)}.column-switch button[aria-pressed=true]{background:var(--panel);color:var(--green);font-weight:700;box-shadow:0 1px 4px #0001}.table-options>.text-link{font-size:11px}.column-guide{width:100%;margin:0;border-top:1px solid var(--line)}.column-guide summary{min-height:36px;font-size:11px}.column-guide p{position:static;box-shadow:none;border:0;padding:3px 0 12px;font-size:12px}
  #strength-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}#strength-table th,#strength-table td{min-width:0!important;width:auto;padding:6px 4px;font-size:10px}
  #strength-table th:first-child,#strength-table td:first-child,#strength-table .compare-column{display:none}
  #strength-table th:nth-child(2),#strength-table td:nth-child(2){width:43%;position:static;padding-left:12px;background:inherit}
  #strength-table th:nth-child(2){background:var(--bg)}#strength-table th:last-of-type{width:auto}
  #strength-table td{height:67px}#strength-table th button{font-size:10px;line-height:1.5;min-height:44px;text-align:left;padding:0}
  #strength-table th small{font-size:9px;line-height:1.35}
  #strength-table .club{width:100%;min-height:48px;font-size:12px;line-height:1.35;gap:8px;white-space:normal}.club-name{overflow-wrap:normal}#strength-table .crest{flex-shrink:0;width:24px;height:28px;font-size:7px}
  #strength-table .score{font-size:13px}#strength-table .bar{width:85%;height:2px}#strength-table .bar i{height:2px}
  #strength-view[data-columns=ratings] .change-detail{display:none}
  #strength-view[data-columns=changes] .rating-detail{display:none}
  #strength-view[data-columns=changes] #strength-table th:nth-child(2),#strength-view[data-columns=changes] #strength-table td:nth-child(2){width:41%}
  #strength-table .change{font-size:12px}.table-foot{font-size:10px;line-height:1.5;padding:14px;gap:9px}.table-foot>span{display:block;width:100%}
  .snapshot-table{min-width:570px}.snapshot-table.performance{min-width:840px}.snapshot-table th,.snapshot-table td{padding:0 12px}.snapshot-table th:nth-child(2),.snapshot-table td:nth-child(2){min-width:170px;max-width:190px;position:sticky;left:0;background:var(--panel);box-shadow:4px 0 5px #00000008;z-index:1}.snapshot-table th:nth-child(2){background:var(--bg)}.snapshot-table .club{font-size:12px;min-height:48px;line-height:1.4;white-space:normal}.snapshot-table th{font-size:11px}.snapshot-table td{font-size:13px}
  .scroll-hint{display:block;font-size:11px;color:var(--muted);padding:0 16px 12px;margin:0}.view-intro{gap:6px}.view-intro p{font-size:12px;line-height:1.6}.view-intro .text-link{font-size:12px;min-height:44px}.period-controls{gap:5px}.period-controls button{flex:1;font-size:12px;padding-inline:10px}
  .fixture-filter{max-width:none;font-size:12px}.fixture-filter select{font-size:16px;min-height:48px}.fixture-card{padding:20px}.fixture-date{font-size:12px;line-height:1.5}.fixture-teams>strong{font-size:13px!important}.fixture-score{font-size:20px}.fixture-score small{font-size:10px;line-height:1.4}.probabilities{font-size:11px}.probabilities b{font-size:16px}.fixture-card summary,.fixture-card details p{font-size:12px}
  .comparison-select{grid-template-columns:1fr;gap:12px;margin:22px 0}.comparison-select>span{display:none}.comparison-select label{font-size:12px}.comparison-select select{font-size:16px;min-height:48px;padding:12px}.comparison{padding:22px 18px}.comparison-head{font-size:18px;line-height:1.4}.comparison-head>span{width:48%}.comparison-head>span:last-child{text-align:right}.duel-label span{font-size:11px}.duel-label b{font-size:15px}.comparison-changes small{font-size:10px}
  .compare-tray{bottom:max(12px,env(safe-area-inset-bottom));flex-wrap:wrap}.compare-tray>span{width:100%;font-size:12px}.compare-tray button{min-height:44px}
  dialog{width:100%;max-width:none;max-height:92dvh;max-height:92svh;margin:auto 0 0;border-radius:18px 18px 0 0;padding:28px 20px calc(22px + env(safe-area-inset-bottom));border-bottom:0}dialog h2{font-size:26px;line-height:1.3}.profile-scores{gap:7px}.profile-scores strong{font-size:25px}.profile-scores span{font-size:10px}.profile-changes .change{font-size:16px}.profile-note{font-size:12px}.rating-history summary{font-size:13px}.history-table th,.history-table td{font-size:11px;min-width:0!important;padding:8px;position:static!important}#profileCompare{width:100%;min-height:48px;font-size:13px}
  .callout{padding:22px}.primary{min-height:44px;font-size:12px;line-height:1.5}.live-panel p{font-size:14px}.competition-grid a{min-height:64px;font-size:17px}.page>p,.note{font-size:13px}
  .prose details{padding:14px 0}.prose summary{font-size:14px;min-height:44px;align-items:center;line-height:1.5}.prose details p{font-size:14px}.prose .text-link{min-height:44px;font-size:13px}
  footer{font-size:10px;line-height:1.6;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.footer-links{gap:20px}.footer-links a,.footer-links button{font-size:12px}
}
@media(max-width:360px){
  aside#site-navigation{padding-inline:14px}.brand .brand-caption{font-size:9px}.brand-logo{width:135px}.menu-toggle{min-width:70px;gap:5px;padding:9px}
  main{padding-inline:12px}.breadcrumb{font-size:7px}.tabs button{font-size:11px}
  #strength-table th:nth-child(2),#strength-table td:nth-child(2){width:42%;padding-left:9px}#strength-table .club{font-size:11px;gap:6px}#strength-table .crest{width:21px;height:25px;font-size:6px}
  #strength-table th,#strength-table td{padding-inline:3px}#strength-table .score{font-size:12px}.table-options{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Keep the first clubs within the initial phone screen. */
@media(max-width:760px){
  aside#site-navigation{min-height:94px}
  .mobile-actions{display:flex;align-items:center;gap:6px}
  .mobile-actions #theme,.mobile-actions #menu-toggle{height:44px;width:44px;min-width:44px;border:1px solid #ffffff35;border-radius:8px;color:#e8efe4;display:flex;align-items:center;justify-content:center;padding:10px}
  .mobile-actions #theme .icon{width:19px;height:19px}
  .mobile-actions #theme span,.mobile-actions #menu-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  main>header{display:none}
  h1#league-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .section-top{gap:0;margin-bottom:17px}
  .section-top .eyebrow{margin-bottom:7px}
  .league-picker-label{font-size:0}
  .league-picker-label select{font-size:19px;margin-top:0;letter-spacing:-.4px}
  #strength-view .table-tools>div{display:none}
  #strength-view .table-tools{padding:12px}
  .table-options{flex-wrap:nowrap;gap:5px;padding:7px 10px}
  .table-options>.text-link{font-size:10px;white-space:nowrap}
  .column-guide{width:auto;border:0;flex-shrink:0;margin-left:0}
  .column-guide summary{font-size:0;width:44px;height:44px;justify-content:center;gap:0}
  .column-guide summary:after{content:'?';font:600 12px 'Inter',sans-serif;border:1px solid var(--line);border-radius:50%;height:23px;width:23px;display:flex;align-items:center;justify-content:center}
  .column-guide[open] summary:after{content:'−'}
  .column-guide p{position:absolute;top:58px;left:0;right:0;background:var(--panel);padding:18px;box-shadow:0 10px 20px #0002;border-block:1px solid var(--line)}
  .column-switch button{min-height:44px}
  #strength-table th button{min-width:44px;width:100%}
}

/* Mobile league-view dropdown: labelled select with a persistent chevron. */
.mobile-view-picker{display:none}
@media(max-width:760px){
  #ratings .tabs>button[data-view]{display:none}
  #ratings .tabs .mobile-view-picker{display:block;grid-column:1/-1;min-width:0;padding:3px 5px 5px}
  .mobile-view-picker-title{display:block;margin-bottom:5px;font-size:11px;font-weight:600;line-height:1.4;color:var(--muted)}
  .mobile-view-picker-field{position:relative;display:block}
  .mobile-view-picker-field select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:48px;margin:0;padding:11px 44px 11px 13px;border:1px solid var(--green);border-radius:7px;background:var(--panel);color:var(--ink);font-size:16px;font-weight:600;line-height:1.4;cursor:pointer}
  .mobile-view-picker-field::after{content:'';position:absolute;right:18px;top:50%;width:9px;height:9px;border-right:2px solid var(--green);border-bottom:2px solid var(--green);transform:translateY(-70%) rotate(45deg);pointer-events:none}
}

#global-movement small{display:block;font-size:10px;line-height:1.5}
