/**
 * Less chrome, more content - phone + laptop.
 */

@media (max-width: 959px) {
 :root {
 --ama-mobile-header: calc(54px + env(safe-area-inset-top, 0px));
 --ama-mobile-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
 }

 .ama-topbar__inner {
 padding: 4px 8px 2px !important;
 gap: 6px !important;
 }

 .ama-topbar-history {
 padding: 0 8px 4px;
 gap: 6px;
 }

 .ama-topbar-nav {
 min-height: 28px;
 min-width: 28px;
 width: 28px;
 padding: 0;
 border-width: 1px;
 }

 .brand-logo-frame,
 .brand-logo {
 max-height: 36px;
 width: auto;
 }

 .brand-program {
 font-size: 0.72rem !important;
 letter-spacing: 0.04em;
 }

 .brand-teacher {
 display: none;
 }

 .ama-topbar-actions .ama-util-btn {
 min-height: 32px;
 padding: 0 8px;
 font-size: 0.62rem;
 }

 .ama-topbar-actions .ama-util-btn span:not(.app-sync-dot) {
 display: none;
 }

 .ama-topbar-signin span {
 display: none;
 }

 .ama-topbar-signin {
 min-width: 36px;
 padding: 0 10px;
 }

 #nav-toggle {
 display: none !important;
 }

 #mobile-bottom-nav button {
 min-height: 42px;
 padding: 4px 2px;
 font-size: 0.52rem;
 gap: 2px;
 }

 #mobile-bottom-nav button i {
 font-size: 0.95rem !important;
 }
}

@media (min-width: 960px) {
 .ama-topbar-history {
 padding: 0 12px 6px;
 }

 .ama-topbar-nav {
 min-height: 32px;
 padding: 0 10px;
 }

 .ama-topbar-nav__label {
 font-size: 0.72rem;
 }

 #nav-toggle {
 display: none !important;
 }

 .top-main-nav-wrap .ama-nav-pill {
 min-height: 38px;
 padding: 6px 12px;
 font-size: 0.78rem;
 }
}

/* Study focus - actually free the screen */
body.ama-study-focus .ama-topbar-history,
body.ama-study-focus .top-main-nav-wrap,
body.ama-study-focus #mobile-bottom-nav,
body.ama-study-focus .brand-teacher {
 display: none !important;
}

body.ama-study-focus .ama-topbar__inner {
 padding: 3px 8px !important;
}

body.ama-study-focus .ama-topbar-actions .ama-util-btn:not(.ama-study-focus-toggle):not(.app-refresh-btn):not(.ama-topbar-signin) {
 display: none !important;
}

body.ama-study-focus #app-main {
 padding-bottom: 12px !important;
 min-height: calc(100vh - 44px);
}

body.ama-study-focus .site-header {
 box-shadow: none;
}


/* Hard compact: give students the page back */
@media (max-width: 900px) {
 .ama-topbar-history {
 display: none !important;
 }
 .brand-teacher {
 display: none !important;
 }
 .brand-logo-frame,
 .brand-logo {
 max-height: 30px !important;
 }
 .brand-program {
 font-size: 0.68rem !important;
 line-height: 1.1 !important;
 }
 .ama-topbar__inner {
 padding: 2px 6px !important;
 gap: 4px !important;
 }
 .top-main-nav-wrap .ama-nav-pill {
 min-height: 34px !important;
 padding: 4px 8px !important;
 font-size: 0.68rem !important;
 }
 .top-main-nav-wrap {
 padding: 2px 4px 4px !important;
 }
}

@media (max-height: 760px), (max-width: 700px) {
 .ama-site-ticker {
 display: none !important;
 }
}

