/* Tablet course headers follow the home page's compact top navigation. */
.ai-profile-page.education-learning-page .tablet-home-menu-icon {
  display: none;
}

/* Mobile course headers use the same left and right icon groups as the home page. */
@media (max-width: 767.98px) {
  .ai-profile-page.education-learning-page #header {
    height: 74px;
  }

  .ai-profile-page.education-learning-page .profile-header-inner {
    display: grid;
    grid-template-columns: 46px 37px minmax(0, 1fr) 32px 40px;
    align-items: center;
    gap: 0;
    padding: 0 14px;
  }

  .ai-profile-page.education-learning-page .profile-nav-start,
  .ai-profile-page.education-learning-page .profile-nav-end {
    display: contents;
  }

  .ai-profile-page.education-learning-page .profile-nav-links {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: 37px;
    height: 32px;
    align-items: center;
  }

  .ai-profile-page.education-learning-page .profile-mobile-brand {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
  }

  .ai-profile-page.education-learning-page .profile-mobile-brand img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  .ai-profile-page.education-learning-page .profile-depth-trigger {
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0;
    font-size: 15px;
  }

  .ai-profile-page.education-learning-page .profile-depth-trigger > i {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    font-size: 22px;
    line-height: 1;
  }

  .ai-profile-page.education-learning-page .profile-depth-trigger > span {
    display: none;
  }

  .ai-profile-page.education-learning-page .profile-icon-link {
    grid-column: 4;
    grid-row: 1;
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    transform: translateX(6px);
  }

  .ai-profile-page.education-learning-page .profile-icon-link .icon-search {
    font-size: 24px;
  }

  .ai-profile-page.education-learning-page .header-mini-btn {
    grid-column: 5;
    grid-row: 1;
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    justify-self: end;
  }

  .ai-profile-page.education-learning-page .header-mini-btn label {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
  }

  .ai-profile-page.education-learning-page .header-mini-btn input[type="checkbox"] {
    display: block;
    width: 32px;
    height: 32px;
    z-index: 1;
  }

  .ai-profile-page.education-learning-page .header-mini-btn svg {
    display: none;
  }

  .ai-profile-page.education-learning-page .header-mini-btn .tablet-home-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 24px;
    line-height: 1;
  }
}

@media (orientation: portrait) and (min-width: 768px) and (max-width: 1100px) {
  .ai-profile-page.education-learning-page #header {
    height: 74px;
  }

  .ai-profile-page.education-learning-page .profile-header-inner {
    display: grid;
    grid-template-columns: 46px 37px minmax(0, 1fr) 32px 56px;
    align-items: center;
    gap: 0;
    padding: 0 16px;
  }

  .ai-profile-page.education-learning-page .profile-nav-start,
  .ai-profile-page.education-learning-page .profile-nav-end {
    display: contents;
  }

  .ai-profile-page.education-learning-page .profile-mobile-brand {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
  }

  .ai-profile-page.education-learning-page .profile-mobile-brand img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  .ai-profile-page.education-learning-page .profile-depth-trigger {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0;
    font-size: 15px;
  }

  .ai-profile-page.education-learning-page .profile-depth-trigger > i {
    display: inline-flex;
    width: var(--home-top-short-icon-size, 22px);
    height: var(--home-top-short-icon-size, 22px);
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    font-size: var(--home-top-short-icon-size, 22px);
    line-height: 1;
  }

  .ai-profile-page.education-learning-page .profile-depth-trigger > span {
    display: none;
  }

  .ai-profile-page.education-learning-page .profile-icon-link {
    grid-column: 4;
    grid-row: 1;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
  }

  .ai-profile-page.education-learning-page .profile-icon-link .icon-search {
    font-size: 26px;
  }

  .ai-profile-page.education-learning-page .header-mini-btn {
    grid-column: 5;
    grid-row: 1;
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    justify-self: end;
  }

  .ai-profile-page.education-learning-page .header-mini-btn label {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
  }

  .ai-profile-page.education-learning-page .header-mini-btn input[type="checkbox"] {
    display: block;
    width: 32px;
    height: 32px;
    z-index: 1;
  }

  .ai-profile-page.education-learning-page .header-mini-btn svg {
    display: none;
  }

  .ai-profile-page.education-learning-page .header-mini-btn .tablet-home-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 26px;
    line-height: 1;
  }
}

@media (orientation: portrait) and (min-width: 800px) and (max-width: 1023px) {
  .ai-profile-page.education-learning-page .big-header-banner {
    --home-top-short-icon-size: 23px;
  }
}

@media (orientation: portrait) and (min-width: 1024px) and (max-width: 1366px) {
  .ai-profile-page.education-learning-page .big-header-banner {
    --home-top-short-icon-size: 24px;
  }
}
