/* Phone and tablet fixes, loaded last: the phone header gets its links back,
   and the Parents tab's request card wraps. (A day with Curio needs nothing
   here: the timeline stacks by itself below 900px.) */
@media (max-width:900px){
  /* header: logo and the Teachers/Parents tabs on the first row; How it works,
     FAQ and the sign-up button on a second row that folds away once the page
     is scrolled, so the sticky header stays one row tall while reading */
  .nav .w{height:auto!important;flex-wrap:wrap;row-gap:0;padding-top:8px;padding-bottom:8px}
  .nav nav{display:flex!important;order:5;flex:1 1 auto;gap:20px;align-items:center;overflow:hidden;max-height:48px;transition:max-height .25s ease,opacity .2s ease}
  .nav nav a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;white-space:nowrap}
  .nav #navCta{display:inline-flex!important;order:6;align-self:center;overflow:hidden;max-height:48px;transition:max-height .25s ease,opacity .2s ease,padding .25s ease,margin .25s ease}
  /* Sign in sits on the second row, between the links and the button, and folds away with them */
  .nav #navIn{display:inline-flex!important;order:6;align-items:center;min-height:44px;margin-right:12px;white-space:nowrap;overflow:hidden;max-height:48px;transition:max-height .25s ease,opacity .2s ease}
  .nav #navCta{order:7}
  /* with Sign in on the row there is no room for all three: "How it works" is the section just below, so it gives way */
  .nav nav a[data-go="how"],.nav nav a[href="/#how"]{display:none}
  .t5scrolled .nav nav,.t5scrolled .nav #navCta,.t5scrolled .nav #navIn{max-height:0;opacity:0;pointer-events:none;min-height:0;padding-top:0;padding-bottom:0;border-width:0;box-shadow:none}
}
@media (max-width:767px){
  /* too narrow for one row: the second row always starts at the links (FAQ alone would slip up beside the tabs) */
  .nav .w::before{content:"";order:4;flex:0 0 100%;height:0}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){
  .nav nav,.nav #navCta,.nav #navIn{transition:none}
}
@media (max-width:560px){
  /* Parents tab, Controls card: the request's text keeps its own line and the
     two answers sit under it, instead of one word per line beside them */
  .pp-ctrl .pp-nt{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px 12px}
  .pp-ctrl .pp-nt>span:nth-child(2){flex:1 1 0;min-width:0}
  .pp-ctrl .pp-nt .pp-bt{flex:1 1 100%;display:flex;justify-content:flex-end;gap:8px}
}
