/* 1TTD Trainer publish25 (PRIVATE PROTOTYPE). Detailed odds, Practice / Edit a Copy, phone layout, accessibility. */
.p25-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Detailed odds: the Odds tab (and its panels) come back only when asked for */
html.r54-beginner.p25-detail #r4tab-odds.r54-adv,html.r54-beginner.p25-detail #quickOddsReview.r54-adv,
html.r54-beginner.p25-detail #topCompareRoutes.r54-adv,html.r54-beginner.p25-detail #dockOdds.r54-adv{display:revert!important}
html.r61-standalone.r54-beginner.p25-detail .pitchConditionEditor.r61-beg-hide{display:revert!important}
html.p22.r54-beginner.p25-practice #r4tab-practice{display:revert!important}
/* Edit a Copy / Compare routes: proxies in the Replay and Odds tabs (the originals stay in the hidden replay group) */
.p25-proxyrow{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.p25-proxyrow button[disabled]{opacity:.55;cursor:not-allowed}
html:not(.p25-detail) .p25-detail-only{display:none!important}
.p25-detail-row{margin:6px 0 0}
.p25-detail-link{background:none;border:0;padding:6px 2px;min-height:44px;color:#ffd98a;font-weight:700;text-decoration:underline;cursor:pointer;font:inherit}
.p25-detail-link:focus-visible{outline:2px solid #ffd98a;outline-offset:2px}
.p25-moretools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}
.p25-moretools .p22-fine{flex:1 0 100%;margin:0}
.p25-moretools button[disabled]{opacity:.55;cursor:not-allowed}
/* Phones: pitch on the first screen, nothing sticky over the pitch, a sticky one-row action bar, 44px tap targets */
@media (max-width:900px){
  html.p25 header.top .sub,html.p25 header.top p.muted{display:none}
  html.p25.ttd-r4 .r4-board{order:1}
  html.p25.ttd-r4 #p22Top{order:4}
  html.p25.ttd-r4 .r4-actions{order:2;position:sticky;bottom:0;z-index:60;padding:6px;margin:0 -6px;background:rgba(10,22,16,.97);border-top:1px solid #3c5a46;box-shadow:0 -4px 14px rgba(0,0,0,.45)}
  html.p25.ttd-r4 .r4-actions #primaryBar{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  html.p25.ttd-r4 .r4-actions #primaryBar>button{flex:0 0 auto!important;width:auto!important;min-width:84px;min-height:44px}
  html.p25.ttd-r4 .r4-actions #p23EndHint{display:none}
  html.p25.ttd-r4 .r4-tabs{order:3}
  html.p25.ttd-r4 .r4-panels{order:5}
  html.p25.p22.r54-beginner .boardPanel>#playerDock,html.p25 #playerDock,html.p25 .boardPanel>#p22Bubble,html.p25 #p22Bubble{position:static!important;bottom:auto!important;top:auto!important}
  html.p25 main.layout{scroll-padding-bottom:72px}
  html.p25{scroll-padding-bottom:72px}
  html.p25 .r4-board{padding-bottom:4px}
  html.p25 button,html.p25 select,html.p25 summary,html.p25 [role=tab],html.p25 input[type=text],html.p25 input[type=search],html.p25 input[type=number]{min-height:44px!important}
  html.p25 label:has(> input[type=checkbox]),html.p25 label:has(> input[type=radio]){min-height:44px;display:inline-flex;align-items:center;gap:8px}
  html.p25 input[type=checkbox],html.p25 input[type=radio]{width:22px;height:22px}
  html.p25 a.brand{min-height:44px!important;display:inline-flex;align-items:center}
  html.p25 select{min-width:52px}
}
@media (prefers-reduced-motion:reduce){html.p25 *,html.p25 *::before,html.p25 *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
