/* Phone and small-tablet layout. One file, used by the home page (inlined) and every other page (public/mobile.css).
   Rule of thumb: keep the chalkboard look, make text readable (16px+), and make everything easy to tap (44px+). */

header nav a.acct.gone{display:none!important}
header nav .btn .sm{display:none}

/* ---------- the header: logo, Sign up, and a menu button ---------- */
header{position:relative;z-index:40}
.menubtn{display:none;flex:none;width:46px;height:46px;padding:0;border:3px solid var(--chalk,#F4F2E8);border-radius:50% 46% 54% 48%/48% 54% 46% 50%;background:transparent;color:var(--chalk,#F4F2E8);cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.menubtn span{display:block;width:20px;height:3px;border-radius:3px;background:currentColor;transition:transform .2s,opacity .2s}
.menubtn[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.menubtn[aria-expanded="true"] span:nth-child(2){opacity:0}
.menubtn[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.menubtn:hover,.menubtn:focus-visible{color:var(--yel,#F7D65A);border-color:var(--yel,#F7D65A);outline:none}
.mmenu{position:absolute;left:12px;right:12px;top:100%;margin-top:6px;padding:8px 18px 14px;background:var(--board,#142A20);border:3px solid var(--chalk,#F4F2E8);border-radius:22px 14px 26px 14px/14px 26px 14px 22px;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.mmenu[hidden]{display:none}
.mmenu a{display:flex;align-items:center;min-height:52px;font:700 21px 'Shantell Sans',cursive;text-decoration:none;color:var(--chalk,#F4F2E8);border-bottom:2px dashed rgba(244,242,232,.28)}
.mmenu a:last-child{border-bottom:0;color:var(--yel,#F7D65A)}
.mmenu a:hover,.mmenu a:focus-visible{color:var(--yel,#F7D65A);outline:none}

@media (max-width:860px){
  .menubtn{display:inline-flex}
  header .wrap{gap:12px;flex-wrap:nowrap}
  header nav{margin-left:auto;gap:10px}
  header nav a:not(.btn):not(.acct){display:none}
  header .logo{min-width:0}
}
@media (max-width:560px){
  header nav a.acct{display:none!important}
  header nav .btn .lg{display:none}
  header nav .btn .sm{display:inline}
  header .wrap{padding-top:16px;padding-left:16px;padding-right:16px}
  header .logo{font-size:17px!important;gap:8px!important}
  header .logo svg{width:38px!important}
  header nav .btn{min-height:44px!important;padding:0 16px!important;font-size:16px!important}
}
@media (max-width:340px){
  header .wrap{gap:4px;padding-left:8px;padding-right:8px}
  header .logo{font-size:11.5px!important;gap:4px!important}
  header .logo svg{width:24px!important}
  header nav .btn{padding:0 7px!important;font-size:13px!important;border-width:2px!important;min-width:0!important}
  .menubtn{width:42px;height:42px}
}
@media (max-width:400px){
  header .logo{font-size:15px!important}
  header .logo svg{width:32px!important}
  header nav .btn{padding:0 12px!important;font-size:15px!important}
  .menubtn{width:44px;height:44px}
}

/* ---------- home page hero: keep the chalk doodles, smaller and tucked in ---------- */
@media (max-width:900px){
  .hero .wrap{padding-bottom:150px}
  .d2,.d3{display:block}
  .d1,.d4,.d5,.hero .fxnote{display:none}
  .d1{right:20px;top:34px;font-size:56px}
  .d2{left:22px;right:auto;top:auto;bottom:70px;font-size:22px}
  .d3{right:22px;left:auto;top:auto;bottom:34px;font-size:22px}
}
@media (max-width:420px){
  .hero .wrap{padding-top:44px}
  .hero h1{font-size:clamp(44px,13.4vw,56px)}
  .d1{font-size:34px;right:14px;top:4px}
  .d5{display:none}
  .lede{font-size:20px}
  .ctas{flex-direction:column;align-items:stretch;gap:14px}
  .ctas .btn{width:100%}
}

.flegal{display:block;margin-top:6px;font-size:14px;opacity:.9}
.flegal a{color:inherit}

/* ---------- easier to tap and easier to read on a phone, on every page ---------- */
@media (max-width:700px){
  .back{display:inline-flex;align-items:center;min-height:44px}
  .linkbtn,.pwshow{min-height:44px;display:inline-flex;align-items:center}
  .pwshow{padding:0 2px}
  .chip{font-size:14px;padding:4px 12px}
  header .logo{min-height:44px}
  .filters select,#fSubject,#fFormat{min-height:48px}
  main{padding-top:28px}
  .panelc{padding-left:20px;padding-right:20px}
  .acctrow .btn{width:100%}
  .row{gap:12px}
}
