/*
 * base/14-responsivo.css
 * Ajustes de tablet e celular (mobile-first na área do aluno).
 */

@media (max-width:1100px) {
  .main2 {
    grid-template-columns: minmax(0,1fr);
  }
  .g4 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:1023px) {
  .side {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    height: 100%;
    transition: left .22s;
    padding-top: env(safe-area-inset-top,0px);
  }
  .side.open {
    left: 0;
  }
  .scrim.on {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 25;
  }
  #mb {
    display: grid;
  }
}

@media (max-width:760px) {
  .top {
    padding: 10px 16px;
    top: env(safe-area-inset-top,0px);
  }
  .top .tt h2 {
    font-size: 21px;
  }
  main {
    padding: 18px 16px 110px;
  }
  .banner {
    padding: 8px 16px;
  }
  .g2,.g3 {
    grid-template-columns: 1fr;
  }
  .g4 {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .kpi {
    padding: 14px;
  }
  .num {
    font-size: 28px;
  }
  .card {
    padding: 16px;
  }
  .hero {
    padding: 22px 18px;
  }
  .hero::after {
    background-position: 0 0,72% 46%;
    opacity: .4;
  }
  .climb {
    height: 84px;
    gap: 2px;
  }
  .cal>div {
    min-height: 58px;
    padding: 3px;
  }
  .cal .ev {
    font-size: 0;
    height: 6px;
    padding: 0;
    border-left: 0;
    background: var(--c,var(--gd));
    overflow: hidden;
  }
  .cal .ev.t {
    background: var(--in);
  }
  .cal .ev.x {
    background: var(--ok);
  }
  .stu .side {
    display: none;
  }
  .stu #mb {
    display: none;
  }
  .bnav {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: color-mix(in srgb,#000 92%,transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #222;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom,0px));
  }
  .bnav button {
    background: none;
    border: 0;
    color: #8a857c;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font: 600 10.5px var(--ui);
    padding: 6px 0;
    cursor: pointer;
    position: relative;
  }
  .bnav button svg {
    width: 21px;
    height: 21px;
  }
  .bnav button.on {
    color: #fdd982;
  }
  .bnav .bd {
    position: absolute;
    top: 0;
    left: calc(50% + 6px);
  }
  .sheet.on {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,.6);
  }
  .sheet .pn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d0d0d;
    border-top: 1px solid #2a2a2a;
    border-radius: 20px 20px 0 0;
    padding: 10px 12px calc(16px + env(safe-area-inset-bottom,0px));
  }
  .sheet .grab {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: #333;
    margin: 4px auto 12px;
  }
  .sheet .nv {
    width: 100%;
    margin: 2px 0;
    padding: 13px 14px;
    font-size: 14.5px;
  }
  .tabs button {
    padding: 10px 11px;
  }
  #modal {
    align-items: flex-end;
    padding: 0;
  }
  #mbox {
    border-radius: 20px 20px 0 0;
    max-height: 92%;
    padding-bottom: env(safe-area-inset-bottom,0px);
  }
  .mf {
    padding-bottom: calc(20px + env(safe-area-inset-bottom,0px));
  }
  #toast {
    bottom: calc(84px + env(safe-area-inset-bottom,0px));
  }
  .hide-m {
    display: none!important;
  }
}
