/* Leading SAFe® page, phone design: the pinned bar and the bottom sheets (template-parts/leading-safe/phone/shell.php).
   Only what cannot be written inline. */

/* The reference sizes boxes the browser's way (content-box; buttons and fields border-box). ls.css makes every box
   border-box, which makes the class tag 2px shorter than the reference. Inline box-sizing still wins. */
.ls-p .ms :not(button,input,select,textarea){box-sizing:content-box}

/* The pinned bar's height (ls-core.js measures it into --ls-pinned-h, 0px while the bar is hidden): while the bar shows
   (html.ms-past) the sheet sits just above it; while it is out of sight the sheet reaches the bottom of the window. The
   spacer always keeps the page's last content out from under the bar. Beats shell.php's inline 107px. */
.ls-p .ms-sheet{padding-bottom:0 !important}
html.ms-past .ls-p .ms-sheet{padding-bottom:var(--ls-pinned-h, 107px) !important}

/* Section pill and pinned bar (changes of November 17, 2026, section 3.3; phone-shell.js sets html.ms-past). Out of
   sight on load: the pill 8px up and see-through, the bar below the window's bottom edge, both visibility: hidden so
   the keyboard and screen readers skip them. In: the pill fades in and drops into place in 0.2 s, the bar slides up in
   0.25 s. ls.css turns the movement off for reduced motion. Without scripts (no html.ls-js) the bar stays in sight. */
.ls-p .ms-nav{opacity:0;transform:translateY(-8px);visibility:hidden;transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
html.ms-past .ls-p .ms-nav{opacity:1;transform:none;visibility:visible;transition:opacity .2s ease,transform .2s ease,visibility 0s linear 0s}
html.ls-js .ls-p .ms-bar[data-ls-pinned]{transform:translate(-50%,105%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
html.ls-js.ms-past .ls-p .ms-bar[data-ls-pinned]{transform:translate(-50%,0);visibility:visible;transition:transform .25s ease,visibility 0s linear 0s}
.ls-p .ms-nav.ms-open [data-ms-navbtn] svg{transform:rotate(180deg)}
.ls-p .ms-nav a.ms-on{background:#E4F7F8 !important;color:#12283A !important;font-weight:600 !important}
/* Focus stays clear of the bar only while the bar shows (ls.css pads the window's bottom by the bar's height). */
@media (max-width:1023.98px){html.ls-js:not(.ms-past){scroll-padding-bottom:12px}}
.ls-p .ms-spacer{height:var(--ls-pinned-h, 107px) !important;background:#12283A} /* the footer's navy (changes of November 17, PhoneShell diff) */

/* The class sheet prints the photo and rating line of every trainer with a class; the chosen class's trainer shows. */
.ls-p .ms .ms-off{display:none !important}

/* "Email me this class": the core puts its failure line after Send, inside the field row. Give it its own line under
   the row (the field still takes the room Send leaves, as in the reference). */
.ls-p .ms-mail{flex-wrap:wrap}
.ls-p .ms-mail>input{flex-basis:0 !important}
.ls-p .ms-mail>.ls-fail{flex:1 1 100%}
.ls-p .ms form .ls-fail{margin:0}

/* Legal sheets here and the laptop's legal panel (laptop/footer.php [data-lp-legal]): the policy texts (headings,
   paragraphs, lists) inside the reference's text box. */
:is(.ls-l [data-lp-legal],.ls-p .ms-legal) :is(h4,h5,h6){margin:16px 0 6px;font-family:'Work Sans',Arial,sans-serif;font-weight:600;font-size:17px;line-height:1.3;color:#12283A}
:is(.ls-l [data-lp-legal],.ls-p .ms-legal) :is(h5,h6){font-size:15px}
:is(.ls-l [data-lp-legal],.ls-p .ms-legal) :is(p,ul,ol){margin:0 0 10px}
:is(.ls-l [data-lp-legal],.ls-p .ms-legal) :is(ul,ol){padding-left:20px}
:is(.ls-l [data-lp-legal],.ls-p .ms-legal) li{margin:0 0 4px}
:is(.ls-l [data-lp-legal],.ls-p .ms-legal)>:first-child{margin-top:0}
:is(.ls-l [data-lp-legal],.ls-p .ms-legal)>:last-child{margin-bottom:0}

/* A sheet body that scrolls is a Tab stop (phone-shell.js fitBody). The sheet clips anything outside the body, so its
   focus ring sits just inside the body's edge. */
.ls-p .ms [data-ms-body]:focus-visible{outline-offset:-3px}
