/* Closure: hide built-in Canvas course-nav tabs we don't use.
   Blocklist (not allowlist) so newly installed LTI tools still appear.
   Kept: Home, Pages, Files, Outcomes, Quizzes, Modules, Grades, People, Settings,
   and all LTI tools. People is how admins enroll content creators as Designers.
   Scoped to course pages; account/group/profile nav also uses #section-tabs. */
body[class*="context-course_"] #section-tabs li.section:has(> a:is(
  .assignments, .discussions, .syllabus, .rubrics,
  .announcements, .conferences, .collaborations, .ai_experiences,
  .schedule, .groups, .search, .course_paces, .accessibility,
  .notebook, .item_banks, .youtube_migration
)) { display: none !important; }

/* Closure: trim the global nav (the dark left rail).
   Calendar and Inbox go for everyone. Dashboard and Courses only list
   enrollments, which admins don't have, so they go only when the Admin item is
   there; it leads to the account's course list, and theme.js sends admins
   there from the Dashboard. */
#menu li:has(> :is(#global_nav_calendar_link, #global_nav_conversations_link)),
#menu:has(#global_nav_accounts_link)
  li:has(> :is(#global_nav_dashboard_link, #global_nav_courses_link)) {
  display: none !important;
}

/* Closure: the rail's active look, for the tool link theme.js marks current
   (Canvas's own active class is stripped from tool links; see theme.js).
   Matches .ic-app-header__menu-list-item--active in _ic_app_header.scss. */
#menu .ic-app-header__menu-list-item.closure-nav-current .ic-app-header__menu-list-link { background: #fff; }
#menu .closure-nav-current .ic-icon-svg { fill: var(--ic-brand-global-nav-ic-icon-svg-fill--active); }
#menu .closure-nav-current .menu-item__text { color: var(--ic-brand-global-nav-menu-item__text-color--active); }

/* Closure: the header logo. Canvas sizes it to fill the 75px-tall box
   (background-size: contain), which suits its own padded PNG but not our
   unpadded C mark. */
.ic-app-header__logomark { background-size: 40px; }

/* Closure: no footer under a tool. Canvas's is empty here (a "By Instructure"
   link) yet it sizes the tool's frame to the window less the footer's height,
   leaving a blank strip below the tool. Hidden, it measures 0 and the frame
   reaches the bottom of the window. */
body:has(.tool_content_wrapper) #footer { display: none !important; }

/* Closure: a taller page editor. Canvas opens the rich content editor at 400px
   (DEFAULT_RCE_HEIGHT in RCEWrapper.tsx), which shows a lesson picture and
   little else. min-height rather than height, so the editor's resize grip can
   still make it taller. Only the page editor: other RCEs (discussions, quiz
   questions) keep Canvas's size. */
.rce-wrapper:has(#wiki_page_body) .tox-tinymce { min-height: max(400px, 70vh) !important; }

/* Closure: no Options or Assign Access under the page editor. Who can edit,
   the student to-do, and assigning a page to sections don't apply to lessons,
   which learners read in the learner app. Hidden, not removed: the form still
   saves what they hold (only teachers edit, assigned to everyone). */
.form-horizontal-wiki-page .edit-content > .responsive-control-group.options { display: none !important; }
